SSHKeyPairProps
Properties for defining a SSHKeyPair.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-sshkeypair
Initializer
import ros_cdk_ecs
ros_cdk_ecs.SSHKeyPairProps(
key_pair_name: typing.Union[str, IResolvable],
public_key_body: typing.Union[str, IResolvable] = None,
resource_group_id: typing.Union[str, IResolvable] = None,
tags: typing.List[TagsProperty] = None
)
Properties
| Name | Type | Description |
|---|---|---|
key_pair_name | typing.Union[str, ros_cdk_core.IResolvable] | Property keyPairName: The name of the key pair. |
public_key_body | typing.Union[str, ros_cdk_core.IResolvable] | Property publicKeyBody: SSH Public key. |
resource_group_id | typing.Union[str, ros_cdk_core.IResolvable] | Property resourceGroupId: Resource group id. |
tags | typing.List[TagsProperty] | Property tags: Tags to attach to instance. |
key_pair_nameRequired
key_pair_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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 (-).
public_key_bodyOptional
public_key_body: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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.
resource_group_idOptional
resource_group_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property resourceGroupId: Resource group id.
tagsOptional
tags: typing.List[TagsProperty]
- Type: typing.List[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.