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: SSH key pair name. | 
| 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: SSH key pair name.
It must be unique. [2, 128] characters. All character sets are supported. Do not start with a special character, digit, http://, or https://. It can contain digits, ".", "_", or "-".
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.