KeyPairAttachmentArgs

data class KeyPairAttachmentArgs(val force: Output<Boolean>? = null, val instanceIds: Output<List<String>>? = null, val keyName: Output<String>? = null, val keyPairName: Output<String>? = null) : ConvertibleToJava<KeyPairAttachmentArgs>

DEPRECATED: This resource has been renamed to alicloud.ecs.EcsKeyPairAttachment from version 1.121.0. Provides a key pair attachment resource to bind key pair for several ECS instances. NOTE: After the key pair is attached with sone instances, there instances must be rebooted to make the key pair affect.

Constructors

Link copied to clipboard
constructor(force: Output<Boolean>? = null, instanceIds: Output<List<String>>? = null, keyName: Output<String>? = null, keyPairName: Output<String>? = null)

Properties

Link copied to clipboard
val force: Output<Boolean>? = null

Set it to true and it will reboot instances which attached with the key pair to make key pair affect immediately.

Link copied to clipboard
val instanceIds: Output<List<String>>? = null

The list of ECS instance's IDs.

Link copied to clipboard
val keyName: Output<String>? = null

The name of key pair used to bind.

Link copied to clipboard
val keyPairName: Output<String>? = null

Functions

Link copied to clipboard
open override fun toJava(): KeyPairAttachmentArgs