CfnSnapshotProps
- class aws_cdk.aws_elasticache.CfnSnapshotProps(*, snapshot_name, cache_cluster_id=None, kms_key_id=None, replication_group_id=None, tags=None)
Bases:
objectProperties for defining a
CfnSnapshot.- Parameters:
snapshot_name (
str) – The name of a snapshot. Must be unique within the customer account.cache_cluster_id (
Optional[str]) – The identifier of an existing cluster to create a snapshot from. The snapshot is created from this cluster.kms_key_id (
Optional[str]) – The ID of the KMS key used to encrypt the snapshot.replication_group_id (
Optional[str]) – The identifier of an existing replication group to create a snapshot from. The snapshot is created from this replication group.tags (
Optional[Sequence[Union[CfnTag,Dict[str,Any]]]]) – A list of tags to be added to this resource.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticache-snapshot.html
- ExampleMetadata:
fixture=_generated
Example:
from aws_cdk import CfnTag # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_elasticache as elasticache cfn_snapshot_props = elasticache.CfnSnapshotProps( snapshot_name="snapshotName", # the properties below are optional cache_cluster_id="cacheClusterId", kms_key_id="kmsKeyId", replication_group_id="replicationGroupId", tags=[CfnTag( key="key", value="value" )] )
Attributes
- cache_cluster_id
The identifier of an existing cluster to create a snapshot from.
The snapshot is created from this cluster.
- kms_key_id
The ID of the KMS key used to encrypt the snapshot.
- replication_group_id
The identifier of an existing replication group to create a snapshot from.
The snapshot is created from this replication group.
- snapshot_name
The name of a snapshot.
Must be unique within the customer account.
- tags
A list of tags to be added to this resource.