Interface CfnKeyPairMixinProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnKeyPairMixinProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:19:58.484Z")
@Stability(Stable)
public interface CfnKeyPairMixinProps
extends software.amazon.jsii.JsiiSerializable
Properties for CfnKeyPairPropsMixin.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.ec2.*;
CfnKeyPairMixinProps cfnKeyPairMixinProps = CfnKeyPairMixinProps.builder()
.keyFormat("keyFormat")
.keyName("keyName")
.keyType("keyType")
.publicKeyMaterial("publicKeyMaterial")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnKeyPairMixinPropsstatic final classAn implementation forCfnKeyPairMixinProps -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getKeyFormat
The format of the key pair.Default:
pemDefault: - "pem"
- See Also:
-
getKeyName
A unique name for the key pair.Constraints: Up to 255 ASCII characters
- See Also:
-
getKeyType
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"
- See Also:
-
getPublicKeyMaterial
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.- See Also:
-
getTags
The tags to apply to the key pair.- See Also:
-
builder
- Returns:
- a
CfnKeyPairMixinProps.BuilderofCfnKeyPairMixinProps
-