AWS Classic v5.41.0, May 15 23
AWS Classic v5.41.0, May 15 23
aws.redshift.ClusterSnapshot
Explore with Pulumi AI
Creates a Redshift cluster snapshot
Example Usage
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.redshift.ClusterSnapshot;
import com.pulumi.aws.redshift.ClusterSnapshotArgs;
import static com.pulumi.codegen.internal.Serialization.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ClusterSnapshot("example", ClusterSnapshotArgs.builder()
.clusterSnapshotName("example")
.clusterSnapshotContent(serializeJson(
jsonObject(
jsonProperty("AllowDBUserOverride", "1"),
jsonProperty("Client_ID", "ExampleClientID"),
jsonProperty("App_ID", "example")
)))
.build());
}
}
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
new ClusterSnapshot(name: string, args: ClusterSnapshotArgs, opts?: CustomResourceOptions);
@overload
def ClusterSnapshot(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_identifier: Optional[str] = None,
manual_snapshot_retention_period: Optional[int] = None,
snapshot_identifier: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
@overload
def ClusterSnapshot(resource_name: str,
args: ClusterSnapshotArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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
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
Redshift Cluster Snapshots support import by snapshot_identifier
, e.g., console
$ pulumi import aws:redshift/clusterSnapshot:ClusterSnapshot test example
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.