Class CfnKeyPairPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnKeyPairPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnKeyPairPropsMixin>
- Enclosing class:
CfnKeyPairPropsMixin
@Stability(Stable)
public static final class CfnKeyPairPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnKeyPairPropsMixin>
A fluent builder for
CfnKeyPairPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnKeyPairPropsMixin.Buildercreate()static CfnKeyPairPropsMixin.Buildercreate(CfnPropertyMixinOptions options) The format of the key pair.A unique name for the key pair.The type of key pair.publicKeyMaterial(String publicKeyMaterial) The public key material.The tags to apply to the key pair.
-
Method Details
-
create
@Stability(Stable) public static CfnKeyPairPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnKeyPairPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnKeyPairPropsMixin.Builder.
-
keyFormat
The format of the key pair.Default:
pemDefault: - "pem"
- Parameters:
keyFormat- The format of the key pair. This parameter is required.- Returns:
this- See Also:
-
keyName
A unique name for the key pair.Constraints: Up to 255 ASCII characters
- Parameters:
keyName- A unique name for the key pair. This parameter is required.- Returns:
this- See Also:
-
keyType
The type of key pair. Note that ED25519 keys are not supported for Windows instances.If the
PublicKeyMaterialproperty is specified, theKeyTypeproperty is ignored, and the key type is inferred from thePublicKeyMaterialvalue.Default:
rsaDefault: - "rsa"
- Parameters:
keyType- The type of key pair. Note that ED25519 keys are not supported for Windows instances. This parameter is required.- Returns:
this- See Also:
-
publicKeyMaterial
The public key material.The
PublicKeyMaterialproperty is used to import a key pair. If this property is not specified, then a new key pair will be created.- Parameters:
publicKeyMaterial- The public key material. This parameter is required.- Returns:
this- See Also:
-
tags
The tags to apply to the key pair.- Parameters:
tags- The tags to apply to the key pair. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnKeyPairPropsMixin>- Returns:
- a newly built instance of
CfnKeyPairPropsMixin.
-