Represents a copy of an entire cluster or replication group as of the time when the snapshot was taken.
Create Snapshot Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
@overload
def Snapshot(resource_name: str,
args: Optional[SnapshotArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Snapshot(resource_name: str,
opts: Optional[ResourceOptions] = None,
cache_cluster_id: Optional[str] = None,
kms_key_id: Optional[str] = None,
replication_group_id: Optional[str] = None,
snapshot_name: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
public Snapshot(String name, SnapshotArgs args)
public Snapshot(String name, SnapshotArgs args, CustomResourceOptions options)
type: aws-native:elasticache:Snapshot
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_elasticache_snapshot" "name" {
# resource properties
}
Parameters
- name
string
- The unique name of the resource.
- args
SnapshotArgs
- The arguments to resource properties.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
str
- The unique name of the resource.
- args
SnapshotArgs
- The arguments to resource properties.
- opts
ResourceOptions
- Bag of options to control resource's behavior.
- ctx
Context
- Context object for the current deployment.
- name
string
- The unique name of the resource.
- args
SnapshotArgs
- The arguments to resource properties.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
string
- The unique name of the resource.
- args
SnapshotArgs
- The arguments to resource properties.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resource.
- args
SnapshotArgs
- The arguments to resource properties.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Snapshot Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Snapshot resource accepts the following input properties:
- CacheClusterId
string
- The identifier of an existing cluster to create a snapshot from. The snapshot is created from this cluster.
- KmsKeyId
string
- The ID of the KMS key used to encrypt the snapshot.
- ReplicationGroupId
string
- The identifier of an existing replication group to create a snapshot from. The snapshot is created from this replication group.
- SnapshotName
string
- The name of a snapshot. Must be unique within the customer account.
- Tags
List<Pulumi.AwsNative.Inputs.Tag>
- A list of tags to be added to this resource.
- CacheClusterId
string
- The identifier of an existing cluster to create a snapshot from. The snapshot is created from this cluster.
- KmsKeyId
string
- The ID of the KMS key used to encrypt the snapshot.
- ReplicationGroupId
string
- The identifier of an existing replication group to create a snapshot from. The snapshot is created from this replication group.
- SnapshotName
string
- The name of a snapshot. Must be unique within the customer account.
- Tags
TagArgs
- A list of tags to be added to this resource.
- cache_cluster_id
string
- The identifier of an existing cluster to create a snapshot from. The snapshot is created from this cluster.
- kms_key_id
string
- The ID of the KMS key used to encrypt the snapshot.
- replication_group_id
string
- The identifier of an existing replication group to create a snapshot from. The snapshot is created from this replication group.
- snapshot_name
string
- The name of a snapshot. Must be unique within the customer account.
- tags
list(object)
- A list of tags to be added to this resource.
- cacheClusterId
String
- The identifier of an existing cluster to create a snapshot from. The snapshot is created from this cluster.
- kmsKeyId
String
- The ID of the KMS key used to encrypt the snapshot.
- replicationGroupId
String
- The identifier of an existing replication group to create a snapshot from. The snapshot is created from this replication group.
- snapshotName
String
- The name of a snapshot. Must be unique within the customer account.
- tags
List<Tag>
- A list of tags to be added to this resource.
- cacheClusterId
string
- The identifier of an existing cluster to create a snapshot from. The snapshot is created from this cluster.
- kmsKeyId
string
- The ID of the KMS key used to encrypt the snapshot.
- replicationGroupId
string
- The identifier of an existing replication group to create a snapshot from. The snapshot is created from this replication group.
- snapshotName
string
- The name of a snapshot. Must be unique within the customer account.
- tags
Tag[]
- A list of tags to be added to this resource.
- cache_cluster_id
str
- The identifier of an existing cluster to create a snapshot from. The snapshot is created from this cluster.
- kms_key_id
str
- The ID of the KMS key used to encrypt the snapshot.
- replication_group_id
str
- The identifier of an existing replication group to create a snapshot from. The snapshot is created from this replication group.
- snapshot_name
str
- The name of a snapshot. Must be unique within the customer account.
- tags
Sequence[TagArgs]
- A list of tags to be added to this resource.
- cacheClusterId
String
- The identifier of an existing cluster to create a snapshot from. The snapshot is created from this cluster.
- kmsKeyId
String
- The ID of the KMS key used to encrypt the snapshot.
- replicationGroupId
String
- The identifier of an existing replication group to create a snapshot from. The snapshot is created from this replication group.
- snapshotName
String
- The name of a snapshot. Must be unique within the customer account.
- tags
List<Property Map>
- A list of tags to be added to this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Snapshot resource produces the following output properties:
- Arn
string
- The ARN (Amazon Resource Name) of the snapshot.
- AutoMinorVersionUpgrade
bool
- If true, opt-in to the next auto minor version upgrade campaign.
- AutomaticFailover
SnapshotAutomaticFailover
- Indicates the status of automatic failover for the source replication group.
- CacheClusterCreateTime
string
- The date and time when the source cluster was created.
- CacheNodeType
string
- The name of the compute and memory capacity node type for the source cluster.
- CacheParameterGroupName
string
- The cache parameter group that is associated with the source cluster.
- CacheSubnetGroupName
string
- The name of the cache subnet group associated with the source cluster.
- DataTiering
SnapshotDataTiering
- Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type.
- Engine
string
- The name of the cache engine used by the source cluster.
- EngineVersion
string
- The version of the cache engine version used by the source cluster.
- Id
string
- The provider-assigned unique ID for this managed resource.
- NodeSnapshots
[]SnapshotNodeSnapshot
- A list of the cache nodes in the source cluster.
- NumCacheNodes
int
- The number of cache nodes in the source cluster.
- NumNodeGroups
int
- The number of node groups (shards) in this snapshot.
- Port
int
- The port number used by each cache nodes in the source cluster.
- PreferredAvailabilityZone
string
- The name of the Availability Zone in which the source cluster is located.
- PreferredMaintenanceWindow
string
- Specifies the weekly time range during which maintenance on the cluster is performed.
- ReplicationGroupDescription
string
- A description of the source replication group.
- SnapshotRetentionLimit
int
- For an automatic snapshot, the number of days for which ElastiCache retains the snapshot before deleting it.
- SnapshotSource
string
- Indicates whether the snapshot is from an automatic backup (automated) or was created manually (manual).
- SnapshotStatus
SnapshotStatus
- The status of the snapshot. Valid values: creating | available | restoring | copying | deleting | failed | deleted.
- SnapshotWindow
string
- The daily time range during which ElastiCache takes daily snapshots of the source cluster.
- TopicArn
string
- The Amazon Resource Name (ARN) for the topic used by the source cluster for publishing notifications.
- VpcId
string
- The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group for the source cluster.
- arn
String
- The ARN (Amazon Resource Name) of the snapshot.
- autoMinorVersionUpgrade
Boolean
- If true, opt-in to the next auto minor version upgrade campaign.
- automaticFailover
SnapshotAutomaticFailover
- Indicates the status of automatic failover for the source replication group.
- cacheClusterCreateTime
String
- The date and time when the source cluster was created.
- cacheNodeType
String
- The name of the compute and memory capacity node type for the source cluster.
- cacheParameterGroupName
String
- The cache parameter group that is associated with the source cluster.
- cacheSubnetGroupName
String
- The name of the cache subnet group associated with the source cluster.
- dataTiering
SnapshotDataTiering
- Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type.
- engine
String
- The name of the cache engine used by the source cluster.
- engineVersion
String
- The version of the cache engine version used by the source cluster.
- id
String
- The provider-assigned unique ID for this managed resource.
- nodeSnapshots
List<SnapshotNodeSnapshot>
- A list of the cache nodes in the source cluster.
- numCacheNodes
Integer
- The number of cache nodes in the source cluster.
- numNodeGroups
Integer
- The number of node groups (shards) in this snapshot.
- port
Integer
- The port number used by each cache nodes in the source cluster.
- preferredAvailabilityZone
String
- The name of the Availability Zone in which the source cluster is located.
- preferredMaintenanceWindow
String
- Specifies the weekly time range during which maintenance on the cluster is performed.
- replicationGroupDescription
String
- A description of the source replication group.
- snapshotRetentionLimit
Integer
- For an automatic snapshot, the number of days for which ElastiCache retains the snapshot before deleting it.
- snapshotSource
String
- Indicates whether the snapshot is from an automatic backup (automated) or was created manually (manual).
- snapshotStatus
SnapshotStatus
- The status of the snapshot. Valid values: creating | available | restoring | copying | deleting | failed | deleted.
- snapshotWindow
String
- The daily time range during which ElastiCache takes daily snapshots of the source cluster.
- topicArn
String
- The Amazon Resource Name (ARN) for the topic used by the source cluster for publishing notifications.
- vpcId
String
- The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group for the source cluster.
- arn
string
- The ARN (Amazon Resource Name) of the snapshot.
- autoMinorVersionUpgrade
boolean
- If true, opt-in to the next auto minor version upgrade campaign.
- automaticFailover
SnapshotAutomaticFailover
- Indicates the status of automatic failover for the source replication group.
- cacheClusterCreateTime
string
- The date and time when the source cluster was created.
- cacheNodeType
string
- The name of the compute and memory capacity node type for the source cluster.
- cacheParameterGroupName
string
- The cache parameter group that is associated with the source cluster.
- cacheSubnetGroupName
string
- The name of the cache subnet group associated with the source cluster.
- dataTiering
SnapshotDataTiering
- Enables data tiering. Data tiering is only supported for replication groups using the r6gd node type.
- engine
string
- The name of the cache engine used by the source cluster.
- engineVersion
string
- The version of the cache engine version used by the source cluster.
- id
string
- The provider-assigned unique ID for this managed resource.
- nodeSnapshots
SnapshotNodeSnapshot[]
- A list of the cache nodes in the source cluster.
- numCacheNodes
number
- The number of cache nodes in the source cluster.
- numNodeGroups
number
- The number of node groups (shards) in this snapshot.
- port
number
- The port number used by each cache nodes in the source cluster.
- preferredAvailabilityZone
string
- The name of the Availability Zone in which the source cluster is located.
- preferredMaintenanceWindow
string
- Specifies the weekly time range during which maintenance on the cluster is performed.
- replicationGroupDescription
string
- A description of the source replication group.
- snapshotRetentionLimit
number
- For an automatic snapshot, the number of days for which ElastiCache retains the snapshot before deleting it.
- snapshotSource
string
- Indicates whether the snapshot is from an automatic backup (automated) or was created manually (manual).
- snapshotStatus
SnapshotStatus
- The status of the snapshot. Valid values: creating | available | restoring | copying | deleting | failed | deleted.
- snapshotWindow
string
- The daily time range during which ElastiCache takes daily snapshots of the source cluster.
- topicArn
string
- The Amazon Resource Name (ARN) for the topic used by the source cluster for publishing notifications.
- vpcId
string
- The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group for the source cluster.
Supporting Types
SnapshotAutomaticFailover, SnapshotAutomaticFailoverArgs
| Name | Value |
|---|
| Enabled | enabled |
| Disabled | disabled |
| Enabling | enabling |
| Disabling | disabling |
| Name | Value |
|---|
| SnapshotAutomaticFailoverEnabled | enabled |
| SnapshotAutomaticFailoverDisabled | disabled |
| SnapshotAutomaticFailoverEnabling | enabling |
| SnapshotAutomaticFailoverDisabling | disabling |
| Value |
|---|
enabled |
disabled |
enabling |
disabling |
| Name | Value |
|---|
| Enabled | enabled |
| Disabled | disabled |
| Enabling | enabling |
| Disabling | disabling |
| Name | Value |
|---|
| Enabled | enabled |
| Disabled | disabled |
| Enabling | enabling |
| Disabling | disabling |
| Name | Value |
|---|
| ENABLED | enabled |
| DISABLED | disabled |
| ENABLING | enabling |
| DISABLING | disabling |
| Value |
|---|
enabled |
disabled |
enabling |
disabling |
SnapshotDataTiering, SnapshotDataTieringArgs
| Name | Value |
|---|
| Enabled | enabled |
| Disabled | disabled |
| Name | Value |
|---|
| SnapshotDataTieringEnabled | enabled |
| SnapshotDataTieringDisabled | disabled |
| Name | Value |
|---|
| Enabled | enabled |
| Disabled | disabled |
| Name | Value |
|---|
| Enabled | enabled |
| Disabled | disabled |
| Name | Value |
|---|
| ENABLED | enabled |
| DISABLED | disabled |
SnapshotNodeSnapshot, SnapshotNodeSnapshotArgs
- CacheClusterId
string
- A unique identifier for the source cluster.
- CacheNodeCreateTime
string
- The date and time when the cache node was created in the source cluster.
- CacheNodeId
string
- The cache node identifier for the node in the source cluster.
- CacheSize
string
- The size of the cache on the source cache node.
- NodeGroupId
string
- A unique identifier for the source node group (shard).
- SnapshotCreateTime
string
- The date and time when the source node's metadata and cache data set was obtained for the snapshot.
- CacheClusterId
string
- A unique identifier for the source cluster.
- CacheNodeCreateTime
string
- The date and time when the cache node was created in the source cluster.
- CacheNodeId
string
- The cache node identifier for the node in the source cluster.
- CacheSize
string
- The size of the cache on the source cache node.
- NodeGroupId
string
- A unique identifier for the source node group (shard).
- SnapshotCreateTime
string
- The date and time when the source node's metadata and cache data set was obtained for the snapshot.
- cache_cluster_id
string
- A unique identifier for the source cluster.
- cache_node_create_time
string
- The date and time when the cache node was created in the source cluster.
- cache_node_id
string
- The cache node identifier for the node in the source cluster.
- cache_size
string
- The size of the cache on the source cache node.
- node_group_id
string
- A unique identifier for the source node group (shard).
- snapshot_create_time
string
- The date and time when the source node's metadata and cache data set was obtained for the snapshot.
- cacheClusterId
String
- A unique identifier for the source cluster.
- cacheNodeCreateTime
String
- The date and time when the cache node was created in the source cluster.
- cacheNodeId
String
- The cache node identifier for the node in the source cluster.
- cacheSize
String
- The size of the cache on the source cache node.
- nodeGroupId
String
- A unique identifier for the source node group (shard).
- snapshotCreateTime
String
- The date and time when the source node's metadata and cache data set was obtained for the snapshot.
- cacheClusterId
string
- A unique identifier for the source cluster.
- cacheNodeCreateTime
string
- The date and time when the cache node was created in the source cluster.
- cacheNodeId
string
- The cache node identifier for the node in the source cluster.
- cacheSize
string
- The size of the cache on the source cache node.
- nodeGroupId
string
- A unique identifier for the source node group (shard).
- snapshotCreateTime
string
- The date and time when the source node's metadata and cache data set was obtained for the snapshot.
- cache_cluster_id
str
- A unique identifier for the source cluster.
- cache_node_create_time
str
- The date and time when the cache node was created in the source cluster.
- cache_node_id
str
- The cache node identifier for the node in the source cluster.
- cache_size
str
- The size of the cache on the source cache node.
- node_group_id
str
- A unique identifier for the source node group (shard).
- snapshot_create_time
str
- The date and time when the source node's metadata and cache data set was obtained for the snapshot.
- cacheClusterId
String
- A unique identifier for the source cluster.
- cacheNodeCreateTime
String
- The date and time when the cache node was created in the source cluster.
- cacheNodeId
String
- The cache node identifier for the node in the source cluster.
- cacheSize
String
- The size of the cache on the source cache node.
- nodeGroupId
String
- A unique identifier for the source node group (shard).
- snapshotCreateTime
String
- The date and time when the source node's metadata and cache data set was obtained for the snapshot.
SnapshotStatus, SnapshotStatusArgs
| Name | Value |
|---|
| Creating | creating |
| Available | available |
| Restoring | restoring |
| Copying | copying |
| Deleting | deleting |
| Failed | failed |
| Deleted | deleted |
| Name | Value |
|---|
| SnapshotStatusCreating | creating |
| SnapshotStatusAvailable | available |
| SnapshotStatusRestoring | restoring |
| SnapshotStatusCopying | copying |
| SnapshotStatusDeleting | deleting |
| SnapshotStatusFailed | failed |
| SnapshotStatusDeleted | deleted |
| Value |
|---|
creating |
available |
restoring |
copying |
deleting |
failed |
deleted |
| Name | Value |
|---|
| Creating | creating |
| Available | available |
| Restoring | restoring |
| Copying | copying |
| Deleting | deleting |
| Failed | failed |
| Deleted | deleted |
| Name | Value |
|---|
| Creating | creating |
| Available | available |
| Restoring | restoring |
| Copying | copying |
| Deleting | deleting |
| Failed | failed |
| Deleted | deleted |
| Name | Value |
|---|
| CREATING | creating |
| AVAILABLE | available |
| RESTORING | restoring |
| COPYING | copying |
| DELETING | deleting |
| FAILED | failed |
| DELETED | deleted |
| Value |
|---|
creating |
available |
restoring |
copying |
deleting |
failed |
deleted |
Tag, TagArgs
A set of tags to apply to the resource.- Key
string
- The key name of the tag
- Value
string
- The value of the tag
- Key
string
- The key name of the tag
- Value
string
- The value of the tag
- key
string
- The key name of the tag
- value
string
- The value of the tag
- key
String
- The key name of the tag
- value
String
- The value of the tag
- key
string
- The key name of the tag
- value
string
- The value of the tag
- key
str
- The key name of the tag
- value
str
- The value of the tag
- key
String
- The key name of the tag
- value
String
- The value of the tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0