Class CfnSnapshot.Builder
java.lang.Object
software.amazon.awscdk.services.memorydb.CfnSnapshot.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSnapshot>
- Enclosing class:
CfnSnapshot
@Stability(Stable)
public static final class CfnSnapshot.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSnapshot>
A fluent builder for
CfnSnapshot.-
Method Summary
Modifier and TypeMethodDescriptionbuild()clusterName(String clusterName) The name of the cluster from which the snapshot was taken.static CfnSnapshot.BuilderThe ID of the KMS key used to encrypt the snapshot.snapshotName(String snapshotName) The name of the snapshot.A list of tags to be added to this resource.
-
Method Details
-
create
@Stability(Stable) public static CfnSnapshot.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
CfnSnapshot.Builder.
-
clusterName
The name of the cluster from which the snapshot was taken.- Parameters:
clusterName- The name of the cluster from which the snapshot was taken. This parameter is required.- Returns:
this- See Also:
-
snapshotName
The name of the snapshot.- Parameters:
snapshotName- The name of the snapshot. This parameter is required.- Returns:
this- See Also:
-
kmsKeyId
The ID of the KMS key used to encrypt the snapshot.- Parameters:
kmsKeyId- The ID of the KMS key used to encrypt the snapshot. This parameter is required.- Returns:
this- See Also:
-
tags
A list of tags to be added to this resource.- Parameters:
tags- A list of tags to be added to this resource. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSnapshot>- Returns:
- a newly built instance of
CfnSnapshot.
-