Interface CfnSnapshotProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnSnapshotProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-10-08T16:59:54.493Z")
@Stability(Stable)
public interface CfnSnapshotProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnSnapshot.
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.elasticache.*;
CfnSnapshotProps cfnSnapshotProps = CfnSnapshotProps.builder()
.snapshotName("snapshotName")
// the properties below are optional
.cacheClusterId("cacheClusterId")
.kmsKeyId("kmsKeyId")
.replicationGroupId("replicationGroupId")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnSnapshotPropsstatic final classAn implementation forCfnSnapshotProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnSnapshotProps.Builderbuilder()default StringThe identifier of an existing cluster to create a snapshot from.default StringThe ID of the KMS key used to encrypt the snapshot.default StringThe identifier of an existing replication group to create a snapshot from.The name of a snapshot.getTags()A list of tags to be added to this resource.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSnapshotName
The name of a snapshot.Must be unique within the customer account.
- See Also:
-
getCacheClusterId
The identifier of an existing cluster to create a snapshot from.The snapshot is created from this cluster.
- See Also:
-
getKmsKeyId
The ID of the KMS key used to encrypt the snapshot.- See Also:
-
getReplicationGroupId
The identifier of an existing replication group to create a snapshot from.The snapshot is created from this replication group.
- See Also:
-
getTags
A list of tags to be added to this resource.- See Also:
-
builder
- Returns:
- a
CfnSnapshotProps.BuilderofCfnSnapshotProps
-