Class CfnKeyPair.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.CfnKeyPair.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnKeyPair>
- Enclosing class:
CfnKeyPair
@Stability(Stable)
public static final class CfnKeyPair.Builder
extends Object
implements software.amazon.jsii.Builder<CfnKeyPair>
A fluent builder for
CfnKeyPair.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnKeyPair.BuilderkeyPairName(String keyPairName) The name of the key pair.The tag keys and optional values to add to the resource during create.
-
Method Details
-
create
@Stability(Stable) public static CfnKeyPair.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnKeyPair.Builder.
-
keyPairName
The name of the key pair.- Parameters:
keyPairName- The name of the key pair. This parameter is required.- Returns:
this- See Also:
-
tags
The tag keys and optional values to add to the resource during create.- Parameters:
tags- The tag keys and optional values to add to the resource during create. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnKeyPair>- Returns:
- a newly built instance of
CfnKeyPair.
-