SSHKeyPairProps
Properties for defining a SSHKeyPair.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-sshkeypair
Initializer
import { SSHKeyPairProps } from '@alicloud/ros-cdk-ecs'
const sSHKeyPairProps: SSHKeyPairProps = { ... }
Properties
| Name | Type | Description |
|---|---|---|
keyPairName | string | @alicloud/ros-cdk-core.IResolvable | Property keyPairName: The name of the key pair. |
publicKeyBody | string | @alicloud/ros-cdk-core.IResolvable | Property publicKeyBody: SSH Public key. |
resourceGroupId | string | @alicloud/ros-cdk-core.IResolvable | Property resourceGroupId: Resource group id. |
tags | TagsProperty[] | Property tags: Tags to attach to instance. |
keyPairNameRequired
public readonly keyPairName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property keyPairName: The name of the key pair.
The name must be unique. It must be 2 to 128 characters in length. It must start with a letter and cannot start with http\:\/\/ or https\:\/\/. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).
publicKeyBodyOptional
public readonly publicKeyBody: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property publicKeyBody: SSH Public key.
If PublicKeyBody is specified, existed public key body will be imported instead of creating new SSH key pair.
resourceGroupIdOptional
public readonly resourceGroupId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property resourceGroupId: Resource group id.
tagsOptional
public readonly tags: TagsProperty[];
- Type: TagsProperty[]
Property tags: Tags to attach to instance.
Max support 20 tags to add during create instance. Each tag with two properties Key and Value, and Key is required.