Skip to content

SSHKeyPairAttachmentProps

Properties for defining a SSHKeyPairAttachment.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-sshkeypairattachment

Initializer

import com.aliyun.ros.cdk.ecs.SSHKeyPairAttachmentProps;
SSHKeyPairAttachmentProps.builder()
    .instanceIds(java.util.List<java.lang.Object>)
    .instanceIds(IResolvable)
    .keyPairName(java.lang.String)
    .keyPairName(IResolvable)
//  .autoReboot(java.lang.Boolean)
//  .autoReboot(IResolvable)
    .build();

Properties

Name Type Description
instanceIds java.util.List OR com.aliyun.ros.cdk.core.IResolvable Property instanceIds: The comma delimited ECS instance id list.
keyPairName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property keyPairName: SSH key pair name.
autoReboot java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property autoReboot: If the instance is running, whether to reboot the instance for the ssh key to take effect.

instanceIdsRequired

public java.lang.Object getInstanceIds();
  • Type: java.util.List OR com.aliyun.ros.cdk.core.IResolvable

Property instanceIds: The comma delimited ECS instance id list.

Only support Linux.


keyPairNameRequired

public java.lang.Object getKeyPairName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property keyPairName: SSH key pair name.


autoRebootOptional

public java.lang.Object getAutoReboot();
  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

Property autoReboot: If the instance is running, whether to reboot the instance for the ssh key to take effect.

Default: false