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 IDs of instances to which you want to bind the SSH key pair.
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 IDs of instances to which you want to bind the SSH key pair.

The value can be a JSON array that consists of up to 50 instance IDs. Separate multiple instance IDs with commas (,).


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