@Stability(value=Stable) public static final class CfnKeyPair.Builder extends Object implements software.amazon.jsii.Builder<CfnKeyPair>
CfnKeyPair.| Modifier and Type | Method and Description |
|---|---|
CfnKeyPair |
build() |
static CfnKeyPair.Builder |
create(software.constructs.Construct scope,
String id) |
CfnKeyPair.Builder |
keyName(String keyName)
A unique name for the key pair.
|
CfnKeyPair.Builder |
keyType(String keyType)
The type of key pair.
|
CfnKeyPair.Builder |
publicKeyMaterial(String publicKeyMaterial)
The public key material.
|
CfnKeyPair.Builder |
tags(List<? extends CfnTag> tags)
The tags to apply to the key pair.
|
@Stability(value=Stable) public static CfnKeyPair.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnKeyPair.Builder.@Stability(value=Stable) public CfnKeyPair.Builder keyName(String keyName)
Constraints: Up to 255 ASCII characters
keyName - A unique name for the key pair. This parameter is required.this@Stability(value=Stable) public CfnKeyPair.Builder keyType(String keyType)
If the PublicKeyMaterial property is specified, the KeyType property is ignored, and the key type is inferred from the PublicKeyMaterial value.
Default: rsa
keyType - The type of key pair. Note that ED25519 keys are not supported for Windows instances. This parameter is required.this@Stability(value=Stable) public CfnKeyPair.Builder publicKeyMaterial(String publicKeyMaterial)
The PublicKeyMaterial property is used to import a key pair. If this property is not specified, then a new key pair will be created.
publicKeyMaterial - The public key material. This parameter is required.this@Stability(value=Stable) public CfnKeyPair.Builder tags(List<? extends CfnTag> tags)
tags - The tags to apply to the key pair. This parameter is required.this@Stability(value=Stable) public CfnKeyPair build()
build in interface software.amazon.jsii.Builder<CfnKeyPair>Copyright © 2022. All rights reserved.