Interface CfnKeyPairProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnKeyPairProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-09-30T11:04:55.338Z")
@Stability(Stable)
public interface CfnKeyPairProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnKeyPair.
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.lightsail.*;
CfnKeyPairProps cfnKeyPairProps = CfnKeyPairProps.builder()
.keyPairName("keyPairName")
// the properties below are optional
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnKeyPairPropsstatic final classAn implementation forCfnKeyPairProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnKeyPairProps.Builderbuilder()The name of the key pair.getTags()The tag keys and optional values to add to the resource during create.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getKeyPairName
The name of the key pair.- See Also:
-
getTags
The tag keys and optional values to add to the resource during create.- See Also:
-
builder
- Returns:
- a
CfnKeyPairProps.BuilderofCfnKeyPairProps
-