Skip to content

SSHKeyPairAttachmentProps

Properties for defining a SSHKeyPairAttachment.

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

Initializer

import ros_cdk_ecs
ros_cdk_ecs.SSHKeyPairAttachmentProps(
  instance_ids: typing.Union[typing.List[typing.Any], IResolvable],
  key_pair_name: typing.Union[str, IResolvable],
  auto_reboot: typing.Union[bool, IResolvable] = None
)

Properties

Name Type Description
instance_ids typing.Union[typing.List[typing.Any], ros_cdk_core.IResolvable] Property instanceIds: The comma delimited ECS instance id list.
key_pair_name typing.Union[str, ros_cdk_core.IResolvable] Property keyPairName: SSH key pair name.
auto_reboot typing.Union[bool, ros_cdk_core.IResolvable] Property autoReboot: If the instance is running, whether to reboot the instance for the ssh key to take effect.

instance_idsRequired

instance_ids: typing.Union[typing.List[typing.Any], IResolvable]
  • Type: typing.Union[typing.List[typing.Any], ros_cdk_core.IResolvable]

Property instanceIds: The comma delimited ECS instance id list.

Only support Linux.


key_pair_nameRequired

key_pair_name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property keyPairName: SSH key pair name.


auto_rebootOptional

auto_reboot: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, 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