SSHKeyPairProps
Properties for defining a SSHKeyPair
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-sshkeypair
Initializer
import com.aliyun.ros.cdk.ecs.SSHKeyPairProps;
SSHKeyPairProps.builder()
.keyPairName(java.lang.String)
.keyPairName(IResolvable)
// .publicKeyBody(java.lang.String)
// .publicKeyBody(IResolvable)
// .resourceGroupId(java.lang.String)
// .resourceGroupId(IResolvable)
// .tags(java.util.List<TagsProperty>)
.build();
Properties
Name | Type | Description |
---|---|---|
keyPairName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property keyPairName: SSH key pair name. |
publicKeyBody |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property publicKeyBody: SSH Public key. |
resourceGroupId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property resourceGroupId: Resource group id. |
tags |
java.util.List<TagsProperty> |
Property tags: Tags to attach to instance. |
keyPairName
Required
public java.lang.Object getKeyPairName();
- Type: java.lang.String OR com.aliyun.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 "-".
publicKeyBody
Optional
public java.lang.Object getPublicKeyBody();
- Type: java.lang.String OR com.aliyun.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.
resourceGroupId
Optional
public java.lang.Object getResourceGroupId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property resourceGroupId: Resource group id.
tags
Optional
public java.util.List<TagsProperty> getTags();
- Type: java.util.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.