@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.221Z") @Stability(value=Stable) public interface CfnKeyPairProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
CfnKeyPairProps cfnKeyPairProps = CfnKeyPairProps.builder()
.keyName("keyName")
// the properties below are optional
.keyType("keyType")
.publicKeyMaterial("publicKeyMaterial")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnKeyPairProps.Builder
A builder for
CfnKeyPairProps |
static class |
CfnKeyPairProps.Jsii$Proxy
An implementation for
CfnKeyPairProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnKeyPairProps.Builder |
builder() |
String |
getKeyName()
A unique name for the key pair.
|
default String |
getKeyType()
The type of key pair.
|
default String |
getPublicKeyMaterial()
The public key material.
|
default List<CfnTag> |
getTags()
The tags to apply to the key pair.
|
@Stability(value=Stable) @NotNull String getKeyName()
Constraints: Up to 255 ASCII characters
@Stability(value=Stable) @Nullable default String getKeyType()
If the PublicKeyMaterial property is specified, the KeyType property is ignored, and the key type is inferred from the PublicKeyMaterial value.
Default: rsa
@Stability(value=Stable) @Nullable default String getPublicKeyMaterial()
The PublicKeyMaterial property is used to import a key pair. If this property is not specified, then a new key pair will be created.
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
@Stability(value=Stable) static CfnKeyPairProps.Builder builder()
CfnKeyPairProps.Builder of CfnKeyPairPropsCopyright © 2022. All rights reserved.