aws.redshift.ClusterSnapshot
Explore with Pulumi AI
Creates a Redshift cluster snapshot
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
example:
type: aws:redshift:ClusterSnapshot
properties:
clusterSnapshotName: example
clusterSnapshotContent:
fn::toJSON:
AllowDBUserOverride: '1'
Client_ID: ExampleClientID
App_ID: example
Create ClusterSnapshot Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ClusterSnapshot(name: string, args: ClusterSnapshotArgs, opts?: CustomResourceOptions);
@overload
def ClusterSnapshot(resource_name: str,
args: ClusterSnapshotArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ClusterSnapshot(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_identifier: Optional[str] = None,
snapshot_identifier: Optional[str] = None,
manual_snapshot_retention_period: Optional[int] = None,
tags: Optional[Mapping[str, str]] = None)
func NewClusterSnapshot(ctx *Context, name string, args ClusterSnapshotArgs, opts ...ResourceOption) (*ClusterSnapshot, error)
public ClusterSnapshot(string name, ClusterSnapshotArgs args, CustomResourceOptions? opts = null)
public ClusterSnapshot(String name, ClusterSnapshotArgs args)
public ClusterSnapshot(String name, ClusterSnapshotArgs args, CustomResourceOptions options)
type: aws:redshift:ClusterSnapshot
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ClusterSnapshotArgs
- 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 ClusterSnapshotArgs
- 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 ClusterSnapshotArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterSnapshotArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClusterSnapshotArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleclusterSnapshotResourceResourceFromRedshiftclusterSnapshot = new Aws.RedShift.ClusterSnapshot("exampleclusterSnapshotResourceResourceFromRedshiftclusterSnapshot", new()
{
ClusterIdentifier = "string",
SnapshotIdentifier = "string",
ManualSnapshotRetentionPeriod = 0,
Tags =
{
{ "string", "string" },
},
});
example, err := redshift.NewClusterSnapshot(ctx, "exampleclusterSnapshotResourceResourceFromRedshiftclusterSnapshot", &redshift.ClusterSnapshotArgs{
ClusterIdentifier: pulumi.String("string"),
SnapshotIdentifier: pulumi.String("string"),
ManualSnapshotRetentionPeriod: pulumi.Int(0),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var exampleclusterSnapshotResourceResourceFromRedshiftclusterSnapshot = new ClusterSnapshot("exampleclusterSnapshotResourceResourceFromRedshiftclusterSnapshot", ClusterSnapshotArgs.builder()
.clusterIdentifier("string")
.snapshotIdentifier("string")
.manualSnapshotRetentionPeriod(0)
.tags(Map.of("string", "string"))
.build());
examplecluster_snapshot_resource_resource_from_redshiftcluster_snapshot = aws.redshift.ClusterSnapshot("exampleclusterSnapshotResourceResourceFromRedshiftclusterSnapshot",
cluster_identifier="string",
snapshot_identifier="string",
manual_snapshot_retention_period=0,
tags={
"string": "string",
})
const exampleclusterSnapshotResourceResourceFromRedshiftclusterSnapshot = new aws.redshift.ClusterSnapshot("exampleclusterSnapshotResourceResourceFromRedshiftclusterSnapshot", {
clusterIdentifier: "string",
snapshotIdentifier: "string",
manualSnapshotRetentionPeriod: 0,
tags: {
string: "string",
},
});
type: aws:redshift:ClusterSnapshot
properties:
clusterIdentifier: string
manualSnapshotRetentionPeriod: 0
snapshotIdentifier: string
tags:
string: string
ClusterSnapshot Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ClusterSnapshot resource accepts the following input properties:
- Cluster
Identifier string - The cluster identifier for which you want a snapshot.
- Snapshot
Identifier string - A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the Amazon Web Services account.
- Manual
Snapshot intRetention Period - The number of days that a manual snapshot is retained. If the value is
-1
, the manual snapshot is retained indefinitely. Valid values are -1 and between1
and3653
. - Dictionary<string, string>
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- Cluster
Identifier string - The cluster identifier for which you want a snapshot.
- Snapshot
Identifier string - A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the Amazon Web Services account.
- Manual
Snapshot intRetention Period - The number of days that a manual snapshot is retained. If the value is
-1
, the manual snapshot is retained indefinitely. Valid values are -1 and between1
and3653
. - map[string]string
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- cluster
Identifier String - The cluster identifier for which you want a snapshot.
- snapshot
Identifier String - A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the Amazon Web Services account.
- manual
Snapshot IntegerRetention Period - The number of days that a manual snapshot is retained. If the value is
-1
, the manual snapshot is retained indefinitely. Valid values are -1 and between1
and3653
. - Map<String,String>
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- cluster
Identifier string - The cluster identifier for which you want a snapshot.
- snapshot
Identifier string - A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the Amazon Web Services account.
- manual
Snapshot numberRetention Period - The number of days that a manual snapshot is retained. If the value is
-1
, the manual snapshot is retained indefinitely. Valid values are -1 and between1
and3653
. - {[key: string]: string}
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- cluster_
identifier str - The cluster identifier for which you want a snapshot.
- snapshot_
identifier str - A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the Amazon Web Services account.
- manual_
snapshot_ intretention_ period - The number of days that a manual snapshot is retained. If the value is
-1
, the manual snapshot is retained indefinitely. Valid values are -1 and between1
and3653
. - Mapping[str, str]
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- cluster
Identifier String - The cluster identifier for which you want a snapshot.
- snapshot
Identifier String - A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the Amazon Web Services account.
- manual
Snapshot NumberRetention Period - The number of days that a manual snapshot is retained. If the value is
-1
, the manual snapshot is retained indefinitely. Valid values are -1 and between1
and3653
. - Map<String>
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the ClusterSnapshot resource produces the following output properties:
- Arn string
- Amazon Resource Name (ARN) of the snapshot.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key stringId - The Key Management Service (KMS) key ID of the encryption key that was used to encrypt data in the cluster from which the snapshot was taken.
- Owner
Account string - For manual snapshots, the Amazon Web Services account used to create or copy the snapshot. For automatic snapshots, the owner of the cluster. The owner can perform all snapshot actions, such as sharing a manual snapshot.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- Amazon Resource Name (ARN) of the snapshot.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key stringId - The Key Management Service (KMS) key ID of the encryption key that was used to encrypt data in the cluster from which the snapshot was taken.
- Owner
Account string - For manual snapshots, the Amazon Web Services account used to create or copy the snapshot. For automatic snapshots, the owner of the cluster. The owner can perform all snapshot actions, such as sharing a manual snapshot.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- Amazon Resource Name (ARN) of the snapshot.
- id String
- The provider-assigned unique ID for this managed resource.
- kms
Key StringId - The Key Management Service (KMS) key ID of the encryption key that was used to encrypt data in the cluster from which the snapshot was taken.
- owner
Account String - For manual snapshots, the Amazon Web Services account used to create or copy the snapshot. For automatic snapshots, the owner of the cluster. The owner can perform all snapshot actions, such as sharing a manual snapshot.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- Amazon Resource Name (ARN) of the snapshot.
- id string
- The provider-assigned unique ID for this managed resource.
- kms
Key stringId - The Key Management Service (KMS) key ID of the encryption key that was used to encrypt data in the cluster from which the snapshot was taken.
- owner
Account string - For manual snapshots, the Amazon Web Services account used to create or copy the snapshot. For automatic snapshots, the owner of the cluster. The owner can perform all snapshot actions, such as sharing a manual snapshot.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- Amazon Resource Name (ARN) of the snapshot.
- id str
- The provider-assigned unique ID for this managed resource.
- kms_
key_ strid - The Key Management Service (KMS) key ID of the encryption key that was used to encrypt data in the cluster from which the snapshot was taken.
- owner_
account str - For manual snapshots, the Amazon Web Services account used to create or copy the snapshot. For automatic snapshots, the owner of the cluster. The owner can perform all snapshot actions, such as sharing a manual snapshot.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- Amazon Resource Name (ARN) of the snapshot.
- id String
- The provider-assigned unique ID for this managed resource.
- kms
Key StringId - The Key Management Service (KMS) key ID of the encryption key that was used to encrypt data in the cluster from which the snapshot was taken.
- owner
Account String - For manual snapshots, the Amazon Web Services account used to create or copy the snapshot. For automatic snapshots, the owner of the cluster. The owner can perform all snapshot actions, such as sharing a manual snapshot.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Look up Existing ClusterSnapshot Resource
Get an existing ClusterSnapshot resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ClusterSnapshotState, opts?: CustomResourceOptions): ClusterSnapshot
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
cluster_identifier: Optional[str] = None,
kms_key_id: Optional[str] = None,
manual_snapshot_retention_period: Optional[int] = None,
owner_account: Optional[str] = None,
snapshot_identifier: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> ClusterSnapshot
func GetClusterSnapshot(ctx *Context, name string, id IDInput, state *ClusterSnapshotState, opts ...ResourceOption) (*ClusterSnapshot, error)
public static ClusterSnapshot Get(string name, Input<string> id, ClusterSnapshotState? state, CustomResourceOptions? opts = null)
public static ClusterSnapshot get(String name, Output<String> id, ClusterSnapshotState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- Amazon Resource Name (ARN) of the snapshot.
- Cluster
Identifier string - The cluster identifier for which you want a snapshot.
- Kms
Key stringId - The Key Management Service (KMS) key ID of the encryption key that was used to encrypt data in the cluster from which the snapshot was taken.
- Manual
Snapshot intRetention Period - The number of days that a manual snapshot is retained. If the value is
-1
, the manual snapshot is retained indefinitely. Valid values are -1 and between1
and3653
. - Owner
Account string - For manual snapshots, the Amazon Web Services account used to create or copy the snapshot. For automatic snapshots, the owner of the cluster. The owner can perform all snapshot actions, such as sharing a manual snapshot.
- Snapshot
Identifier string - A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the Amazon Web Services account.
- Dictionary<string, string>
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- Amazon Resource Name (ARN) of the snapshot.
- Cluster
Identifier string - The cluster identifier for which you want a snapshot.
- Kms
Key stringId - The Key Management Service (KMS) key ID of the encryption key that was used to encrypt data in the cluster from which the snapshot was taken.
- Manual
Snapshot intRetention Period - The number of days that a manual snapshot is retained. If the value is
-1
, the manual snapshot is retained indefinitely. Valid values are -1 and between1
and3653
. - Owner
Account string - For manual snapshots, the Amazon Web Services account used to create or copy the snapshot. For automatic snapshots, the owner of the cluster. The owner can perform all snapshot actions, such as sharing a manual snapshot.
- Snapshot
Identifier string - A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the Amazon Web Services account.
- map[string]string
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- Amazon Resource Name (ARN) of the snapshot.
- cluster
Identifier String - The cluster identifier for which you want a snapshot.
- kms
Key StringId - The Key Management Service (KMS) key ID of the encryption key that was used to encrypt data in the cluster from which the snapshot was taken.
- manual
Snapshot IntegerRetention Period - The number of days that a manual snapshot is retained. If the value is
-1
, the manual snapshot is retained indefinitely. Valid values are -1 and between1
and3653
. - owner
Account String - For manual snapshots, the Amazon Web Services account used to create or copy the snapshot. For automatic snapshots, the owner of the cluster. The owner can perform all snapshot actions, such as sharing a manual snapshot.
- snapshot
Identifier String - A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the Amazon Web Services account.
- Map<String,String>
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- Amazon Resource Name (ARN) of the snapshot.
- cluster
Identifier string - The cluster identifier for which you want a snapshot.
- kms
Key stringId - The Key Management Service (KMS) key ID of the encryption key that was used to encrypt data in the cluster from which the snapshot was taken.
- manual
Snapshot numberRetention Period - The number of days that a manual snapshot is retained. If the value is
-1
, the manual snapshot is retained indefinitely. Valid values are -1 and between1
and3653
. - owner
Account string - For manual snapshots, the Amazon Web Services account used to create or copy the snapshot. For automatic snapshots, the owner of the cluster. The owner can perform all snapshot actions, such as sharing a manual snapshot.
- snapshot
Identifier string - A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the Amazon Web Services account.
- {[key: string]: string}
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- Amazon Resource Name (ARN) of the snapshot.
- cluster_
identifier str - The cluster identifier for which you want a snapshot.
- kms_
key_ strid - The Key Management Service (KMS) key ID of the encryption key that was used to encrypt data in the cluster from which the snapshot was taken.
- manual_
snapshot_ intretention_ period - The number of days that a manual snapshot is retained. If the value is
-1
, the manual snapshot is retained indefinitely. Valid values are -1 and between1
and3653
. - owner_
account str - For manual snapshots, the Amazon Web Services account used to create or copy the snapshot. For automatic snapshots, the owner of the cluster. The owner can perform all snapshot actions, such as sharing a manual snapshot.
- snapshot_
identifier str - A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the Amazon Web Services account.
- Mapping[str, str]
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- Amazon Resource Name (ARN) of the snapshot.
- cluster
Identifier String - The cluster identifier for which you want a snapshot.
- kms
Key StringId - The Key Management Service (KMS) key ID of the encryption key that was used to encrypt data in the cluster from which the snapshot was taken.
- manual
Snapshot NumberRetention Period - The number of days that a manual snapshot is retained. If the value is
-1
, the manual snapshot is retained indefinitely. Valid values are -1 and between1
and3653
. - owner
Account String - For manual snapshots, the Amazon Web Services account used to create or copy the snapshot. For automatic snapshots, the owner of the cluster. The owner can perform all snapshot actions, such as sharing a manual snapshot.
- snapshot
Identifier String - A unique identifier for the snapshot that you are requesting. This identifier must be unique for all snapshots within the Amazon Web Services account.
- Map<String>
- A map of tags to assign to the resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Import
Using pulumi import
, import Redshift Cluster Snapshots using snapshot_identifier
. For example:
$ pulumi import aws:redshift/clusterSnapshot:ClusterSnapshot test example
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.