@Stability(value=Stable) public static final class CfnKeyPairProps.Builder extends Object implements software.amazon.jsii.Builder<CfnKeyPairProps>
CfnKeyPairProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnKeyPairProps |
build()
Builds the configured instance.
|
CfnKeyPairProps.Builder |
keyName(String keyName)
Sets the value of
CfnKeyPairProps.getKeyName() |
CfnKeyPairProps.Builder |
keyType(String keyType)
Sets the value of
CfnKeyPairProps.getKeyType() |
CfnKeyPairProps.Builder |
publicKeyMaterial(String publicKeyMaterial)
Sets the value of
CfnKeyPairProps.getPublicKeyMaterial() |
CfnKeyPairProps.Builder |
tags(List<? extends CfnTag> tags)
Sets the value of
CfnKeyPairProps.getTags() |
@Stability(value=Stable) public CfnKeyPairProps.Builder keyName(String keyName)
CfnKeyPairProps.getKeyName()keyName - A unique name for the key pair. This parameter is required.
Constraints: Up to 255 ASCII charactersthis@Stability(value=Stable) public CfnKeyPairProps.Builder keyType(String keyType)
CfnKeyPairProps.getKeyType()keyType - The type of key pair. Note that ED25519 keys are not supported for Windows instances.
If the PublicKeyMaterial property is specified, the KeyType property is ignored, and the key type is inferred from the PublicKeyMaterial value.
Default: rsa
this@Stability(value=Stable) public CfnKeyPairProps.Builder publicKeyMaterial(String publicKeyMaterial)
CfnKeyPairProps.getPublicKeyMaterial()publicKeyMaterial - The public key material.
The PublicKeyMaterial property is used to import a key pair. If this property is not specified, then a new key pair will be created.this@Stability(value=Stable) public CfnKeyPairProps.Builder tags(List<? extends CfnTag> tags)
CfnKeyPairProps.getTags()tags - The tags to apply to the key pair.this@Stability(value=Stable) public CfnKeyPairProps build()
build in interface software.amazon.jsii.Builder<CfnKeyPairProps>CfnKeyPairPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.