aws.rds.ClusterSnapshotCopy
Explore with Pulumi AI
Manages an RDS database cluster snapshot copy. For managing RDS database instance snapshot copies, see the aws.rds.SnapshotCopy
resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.rds.Cluster("example", {
clusterIdentifier: "aurora-cluster-demo",
databaseName: "test",
engine: aws.rds.EngineType.AuroraMysql,
masterUsername: "tfacctest",
masterPassword: "avoid-plaintext-passwords",
skipFinalSnapshot: true,
});
const exampleClusterSnapshot = new aws.rds.ClusterSnapshot("example", {
dbClusterIdentifier: example.clusterIdentifier,
dbClusterSnapshotIdentifier: "example",
});
const exampleClusterSnapshotCopy = new aws.rds.ClusterSnapshotCopy("example", {
sourceDbClusterSnapshotIdentifier: exampleClusterSnapshot.dbClusterSnapshotArn,
targetDbClusterSnapshotIdentifier: "example-copy",
});
import pulumi
import pulumi_aws as aws
example = aws.rds.Cluster("example",
cluster_identifier="aurora-cluster-demo",
database_name="test",
engine=aws.rds.EngineType.AURORA_MYSQL,
master_username="tfacctest",
master_password="avoid-plaintext-passwords",
skip_final_snapshot=True)
example_cluster_snapshot = aws.rds.ClusterSnapshot("example",
db_cluster_identifier=example.cluster_identifier,
db_cluster_snapshot_identifier="example")
example_cluster_snapshot_copy = aws.rds.ClusterSnapshotCopy("example",
source_db_cluster_snapshot_identifier=example_cluster_snapshot.db_cluster_snapshot_arn,
target_db_cluster_snapshot_identifier="example-copy")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/rds"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := rds.NewCluster(ctx, "example", &rds.ClusterArgs{
ClusterIdentifier: pulumi.String("aurora-cluster-demo"),
DatabaseName: pulumi.String("test"),
Engine: pulumi.String(rds.EngineTypeAuroraMysql),
MasterUsername: pulumi.String("tfacctest"),
MasterPassword: pulumi.String("avoid-plaintext-passwords"),
SkipFinalSnapshot: pulumi.Bool(true),
})
if err != nil {
return err
}
exampleClusterSnapshot, err := rds.NewClusterSnapshot(ctx, "example", &rds.ClusterSnapshotArgs{
DbClusterIdentifier: example.ClusterIdentifier,
DbClusterSnapshotIdentifier: pulumi.String("example"),
})
if err != nil {
return err
}
_, err = rds.NewClusterSnapshotCopy(ctx, "example", &rds.ClusterSnapshotCopyArgs{
SourceDbClusterSnapshotIdentifier: exampleClusterSnapshot.DbClusterSnapshotArn,
TargetDbClusterSnapshotIdentifier: pulumi.String("example-copy"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Rds.Cluster("example", new()
{
ClusterIdentifier = "aurora-cluster-demo",
DatabaseName = "test",
Engine = Aws.Rds.EngineType.AuroraMysql,
MasterUsername = "tfacctest",
MasterPassword = "avoid-plaintext-passwords",
SkipFinalSnapshot = true,
});
var exampleClusterSnapshot = new Aws.Rds.ClusterSnapshot("example", new()
{
DbClusterIdentifier = example.ClusterIdentifier,
DbClusterSnapshotIdentifier = "example",
});
var exampleClusterSnapshotCopy = new Aws.Rds.ClusterSnapshotCopy("example", new()
{
SourceDbClusterSnapshotIdentifier = exampleClusterSnapshot.DbClusterSnapshotArn,
TargetDbClusterSnapshotIdentifier = "example-copy",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.rds.Cluster;
import com.pulumi.aws.rds.ClusterArgs;
import com.pulumi.aws.rds.ClusterSnapshot;
import com.pulumi.aws.rds.ClusterSnapshotArgs;
import com.pulumi.aws.rds.ClusterSnapshotCopy;
import com.pulumi.aws.rds.ClusterSnapshotCopyArgs;
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 Cluster("example", ClusterArgs.builder()
.clusterIdentifier("aurora-cluster-demo")
.databaseName("test")
.engine("aurora-mysql")
.masterUsername("tfacctest")
.masterPassword("avoid-plaintext-passwords")
.skipFinalSnapshot(true)
.build());
var exampleClusterSnapshot = new ClusterSnapshot("exampleClusterSnapshot", ClusterSnapshotArgs.builder()
.dbClusterIdentifier(example.clusterIdentifier())
.dbClusterSnapshotIdentifier("example")
.build());
var exampleClusterSnapshotCopy = new ClusterSnapshotCopy("exampleClusterSnapshotCopy", ClusterSnapshotCopyArgs.builder()
.sourceDbClusterSnapshotIdentifier(exampleClusterSnapshot.dbClusterSnapshotArn())
.targetDbClusterSnapshotIdentifier("example-copy")
.build());
}
}
resources:
example:
type: aws:rds:Cluster
properties:
clusterIdentifier: aurora-cluster-demo
databaseName: test
engine: aurora-mysql
masterUsername: tfacctest
masterPassword: avoid-plaintext-passwords
skipFinalSnapshot: true
exampleClusterSnapshot:
type: aws:rds:ClusterSnapshot
name: example
properties:
dbClusterIdentifier: ${example.clusterIdentifier}
dbClusterSnapshotIdentifier: example
exampleClusterSnapshotCopy:
type: aws:rds:ClusterSnapshotCopy
name: example
properties:
sourceDbClusterSnapshotIdentifier: ${exampleClusterSnapshot.dbClusterSnapshotArn}
targetDbClusterSnapshotIdentifier: example-copy
Create ClusterSnapshotCopy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ClusterSnapshotCopy(name: string, args: ClusterSnapshotCopyArgs, opts?: CustomResourceOptions);
@overload
def ClusterSnapshotCopy(resource_name: str,
args: ClusterSnapshotCopyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ClusterSnapshotCopy(resource_name: str,
opts: Optional[ResourceOptions] = None,
source_db_cluster_snapshot_identifier: Optional[str] = None,
target_db_cluster_snapshot_identifier: Optional[str] = None,
copy_tags: Optional[bool] = None,
destination_region: Optional[str] = None,
kms_key_id: Optional[str] = None,
presigned_url: Optional[str] = None,
shared_accounts: Optional[Sequence[str]] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[ClusterSnapshotCopyTimeoutsArgs] = None)
func NewClusterSnapshotCopy(ctx *Context, name string, args ClusterSnapshotCopyArgs, opts ...ResourceOption) (*ClusterSnapshotCopy, error)
public ClusterSnapshotCopy(string name, ClusterSnapshotCopyArgs args, CustomResourceOptions? opts = null)
public ClusterSnapshotCopy(String name, ClusterSnapshotCopyArgs args)
public ClusterSnapshotCopy(String name, ClusterSnapshotCopyArgs args, CustomResourceOptions options)
type: aws:rds:ClusterSnapshotCopy
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 ClusterSnapshotCopyArgs
- 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 ClusterSnapshotCopyArgs
- 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 ClusterSnapshotCopyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterSnapshotCopyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClusterSnapshotCopyArgs
- 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 clusterSnapshotCopyResource = new Aws.Rds.ClusterSnapshotCopy("clusterSnapshotCopyResource", new()
{
SourceDbClusterSnapshotIdentifier = "string",
TargetDbClusterSnapshotIdentifier = "string",
CopyTags = false,
DestinationRegion = "string",
KmsKeyId = "string",
PresignedUrl = "string",
SharedAccounts = new[]
{
"string",
},
Tags =
{
{ "string", "string" },
},
Timeouts = new Aws.Rds.Inputs.ClusterSnapshotCopyTimeoutsArgs
{
Create = "string",
},
});
example, err := rds.NewClusterSnapshotCopy(ctx, "clusterSnapshotCopyResource", &rds.ClusterSnapshotCopyArgs{
SourceDbClusterSnapshotIdentifier: pulumi.String("string"),
TargetDbClusterSnapshotIdentifier: pulumi.String("string"),
CopyTags: pulumi.Bool(false),
DestinationRegion: pulumi.String("string"),
KmsKeyId: pulumi.String("string"),
PresignedUrl: pulumi.String("string"),
SharedAccounts: pulumi.StringArray{
pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &rds.ClusterSnapshotCopyTimeoutsArgs{
Create: pulumi.String("string"),
},
})
var clusterSnapshotCopyResource = new ClusterSnapshotCopy("clusterSnapshotCopyResource", ClusterSnapshotCopyArgs.builder()
.sourceDbClusterSnapshotIdentifier("string")
.targetDbClusterSnapshotIdentifier("string")
.copyTags(false)
.destinationRegion("string")
.kmsKeyId("string")
.presignedUrl("string")
.sharedAccounts("string")
.tags(Map.of("string", "string"))
.timeouts(ClusterSnapshotCopyTimeoutsArgs.builder()
.create("string")
.build())
.build());
cluster_snapshot_copy_resource = aws.rds.ClusterSnapshotCopy("clusterSnapshotCopyResource",
source_db_cluster_snapshot_identifier="string",
target_db_cluster_snapshot_identifier="string",
copy_tags=False,
destination_region="string",
kms_key_id="string",
presigned_url="string",
shared_accounts=["string"],
tags={
"string": "string",
},
timeouts={
"create": "string",
})
const clusterSnapshotCopyResource = new aws.rds.ClusterSnapshotCopy("clusterSnapshotCopyResource", {
sourceDbClusterSnapshotIdentifier: "string",
targetDbClusterSnapshotIdentifier: "string",
copyTags: false,
destinationRegion: "string",
kmsKeyId: "string",
presignedUrl: "string",
sharedAccounts: ["string"],
tags: {
string: "string",
},
timeouts: {
create: "string",
},
});
type: aws:rds:ClusterSnapshotCopy
properties:
copyTags: false
destinationRegion: string
kmsKeyId: string
presignedUrl: string
sharedAccounts:
- string
sourceDbClusterSnapshotIdentifier: string
tags:
string: string
targetDbClusterSnapshotIdentifier: string
timeouts:
create: string
ClusterSnapshotCopy 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 ClusterSnapshotCopy resource accepts the following input properties:
- Source
Db stringCluster Snapshot Identifier - Identifier of the source snapshot.
- Target
Db stringCluster Snapshot Identifier Identifier for the snapshot.
The following arguments are optional:
- bool
- Whether to copy existing tags. Defaults to
false
. - Destination
Region string - The Destination region to place snapshot copy.
- Kms
Key stringId - KMS key ID.
- Presigned
Url string - URL that contains a Signature Version 4 signed request.
- List<string>
- List of AWS Account IDs to share the snapshot with. Use
all
to make the snapshot public. - Dictionary<string, string>
- Key-value map of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Timeouts
Cluster
Snapshot Copy Timeouts
- Source
Db stringCluster Snapshot Identifier - Identifier of the source snapshot.
- Target
Db stringCluster Snapshot Identifier Identifier for the snapshot.
The following arguments are optional:
- bool
- Whether to copy existing tags. Defaults to
false
. - Destination
Region string - The Destination region to place snapshot copy.
- Kms
Key stringId - KMS key ID.
- Presigned
Url string - URL that contains a Signature Version 4 signed request.
- []string
- List of AWS Account IDs to share the snapshot with. Use
all
to make the snapshot public. - map[string]string
- Key-value map of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Timeouts
Cluster
Snapshot Copy Timeouts Args
- source
Db StringCluster Snapshot Identifier - Identifier of the source snapshot.
- target
Db StringCluster Snapshot Identifier Identifier for the snapshot.
The following arguments are optional:
- Boolean
- Whether to copy existing tags. Defaults to
false
. - destination
Region String - The Destination region to place snapshot copy.
- kms
Key StringId - KMS key ID.
- presigned
Url String - URL that contains a Signature Version 4 signed request.
- List<String>
- List of AWS Account IDs to share the snapshot with. Use
all
to make the snapshot public. - Map<String,String>
- Key-value map of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts
Cluster
Snapshot Copy Timeouts
- source
Db stringCluster Snapshot Identifier - Identifier of the source snapshot.
- target
Db stringCluster Snapshot Identifier Identifier for the snapshot.
The following arguments are optional:
- boolean
- Whether to copy existing tags. Defaults to
false
. - destination
Region string - The Destination region to place snapshot copy.
- kms
Key stringId - KMS key ID.
- presigned
Url string - URL that contains a Signature Version 4 signed request.
- string[]
- List of AWS Account IDs to share the snapshot with. Use
all
to make the snapshot public. - {[key: string]: string}
- Key-value map of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts
Cluster
Snapshot Copy Timeouts
- source_
db_ strcluster_ snapshot_ identifier - Identifier of the source snapshot.
- target_
db_ strcluster_ snapshot_ identifier Identifier for the snapshot.
The following arguments are optional:
- bool
- Whether to copy existing tags. Defaults to
false
. - destination_
region str - The Destination region to place snapshot copy.
- kms_
key_ strid - KMS key ID.
- presigned_
url str - URL that contains a Signature Version 4 signed request.
- Sequence[str]
- List of AWS Account IDs to share the snapshot with. Use
all
to make the snapshot public. - Mapping[str, str]
- Key-value map of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts
Cluster
Snapshot Copy Timeouts Args
- source
Db StringCluster Snapshot Identifier - Identifier of the source snapshot.
- target
Db StringCluster Snapshot Identifier Identifier for the snapshot.
The following arguments are optional:
- Boolean
- Whether to copy existing tags. Defaults to
false
. - destination
Region String - The Destination region to place snapshot copy.
- kms
Key StringId - KMS key ID.
- presigned
Url String - URL that contains a Signature Version 4 signed request.
- List<String>
- List of AWS Account IDs to share the snapshot with. Use
all
to make the snapshot public. - Map<String>
- Key-value map of resource tags. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the ClusterSnapshotCopy resource produces the following output properties:
- Allocated
Storage int - Specifies the allocated storage size in gigabytes (GB).
- Db
Cluster stringSnapshot Arn - The Amazon Resource Name (ARN) for the DB cluster snapshot.
- Engine string
- Specifies the name of the database engine.
- Engine
Version string - Specifies the version of the database engine.
- Id string
- The provider-assigned unique ID for this managed resource.
- License
Model string - License model information for the restored DB instance.
- Snapshot
Type string - Storage
Encrypted bool - Specifies whether the DB cluster snapshot is encrypted.
- Storage
Type string - Specifies the storage type associated with DB cluster snapshot.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Vpc
Id string - Provides the VPC ID associated with the DB cluster snapshot.
- Allocated
Storage int - Specifies the allocated storage size in gigabytes (GB).
- Db
Cluster stringSnapshot Arn - The Amazon Resource Name (ARN) for the DB cluster snapshot.
- Engine string
- Specifies the name of the database engine.
- Engine
Version string - Specifies the version of the database engine.
- Id string
- The provider-assigned unique ID for this managed resource.
- License
Model string - License model information for the restored DB instance.
- Snapshot
Type string - Storage
Encrypted bool - Specifies whether the DB cluster snapshot is encrypted.
- Storage
Type string - Specifies the storage type associated with DB cluster snapshot.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Vpc
Id string - Provides the VPC ID associated with the DB cluster snapshot.
- allocated
Storage Integer - Specifies the allocated storage size in gigabytes (GB).
- db
Cluster StringSnapshot Arn - The Amazon Resource Name (ARN) for the DB cluster snapshot.
- engine String
- Specifies the name of the database engine.
- engine
Version String - Specifies the version of the database engine.
- id String
- The provider-assigned unique ID for this managed resource.
- license
Model String - License model information for the restored DB instance.
- snapshot
Type String - storage
Encrypted Boolean - Specifies whether the DB cluster snapshot is encrypted.
- storage
Type String - Specifies the storage type associated with DB cluster snapshot.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - vpc
Id String - Provides the VPC ID associated with the DB cluster snapshot.
- allocated
Storage number - Specifies the allocated storage size in gigabytes (GB).
- db
Cluster stringSnapshot Arn - The Amazon Resource Name (ARN) for the DB cluster snapshot.
- engine string
- Specifies the name of the database engine.
- engine
Version string - Specifies the version of the database engine.
- id string
- The provider-assigned unique ID for this managed resource.
- license
Model string - License model information for the restored DB instance.
- snapshot
Type string - storage
Encrypted boolean - Specifies whether the DB cluster snapshot is encrypted.
- storage
Type string - Specifies the storage type associated with DB cluster snapshot.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - vpc
Id string - Provides the VPC ID associated with the DB cluster snapshot.
- allocated_
storage int - Specifies the allocated storage size in gigabytes (GB).
- db_
cluster_ strsnapshot_ arn - The Amazon Resource Name (ARN) for the DB cluster snapshot.
- engine str
- Specifies the name of the database engine.
- engine_
version str - Specifies the version of the database engine.
- id str
- The provider-assigned unique ID for this managed resource.
- license_
model str - License model information for the restored DB instance.
- snapshot_
type str - storage_
encrypted bool - Specifies whether the DB cluster snapshot is encrypted.
- storage_
type str - Specifies the storage type associated with DB cluster snapshot.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - vpc_
id str - Provides the VPC ID associated with the DB cluster snapshot.
- allocated
Storage Number - Specifies the allocated storage size in gigabytes (GB).
- db
Cluster StringSnapshot Arn - The Amazon Resource Name (ARN) for the DB cluster snapshot.
- engine String
- Specifies the name of the database engine.
- engine
Version String - Specifies the version of the database engine.
- id String
- The provider-assigned unique ID for this managed resource.
- license
Model String - License model information for the restored DB instance.
- snapshot
Type String - storage
Encrypted Boolean - Specifies whether the DB cluster snapshot is encrypted.
- storage
Type String - Specifies the storage type associated with DB cluster snapshot.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - vpc
Id String - Provides the VPC ID associated with the DB cluster snapshot.
Look up Existing ClusterSnapshotCopy Resource
Get an existing ClusterSnapshotCopy 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?: ClusterSnapshotCopyState, opts?: CustomResourceOptions): ClusterSnapshotCopy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allocated_storage: Optional[int] = None,
copy_tags: Optional[bool] = None,
db_cluster_snapshot_arn: Optional[str] = None,
destination_region: Optional[str] = None,
engine: Optional[str] = None,
engine_version: Optional[str] = None,
kms_key_id: Optional[str] = None,
license_model: Optional[str] = None,
presigned_url: Optional[str] = None,
shared_accounts: Optional[Sequence[str]] = None,
snapshot_type: Optional[str] = None,
source_db_cluster_snapshot_identifier: Optional[str] = None,
storage_encrypted: Optional[bool] = None,
storage_type: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
target_db_cluster_snapshot_identifier: Optional[str] = None,
timeouts: Optional[ClusterSnapshotCopyTimeoutsArgs] = None,
vpc_id: Optional[str] = None) -> ClusterSnapshotCopy
func GetClusterSnapshotCopy(ctx *Context, name string, id IDInput, state *ClusterSnapshotCopyState, opts ...ResourceOption) (*ClusterSnapshotCopy, error)
public static ClusterSnapshotCopy Get(string name, Input<string> id, ClusterSnapshotCopyState? state, CustomResourceOptions? opts = null)
public static ClusterSnapshotCopy get(String name, Output<String> id, ClusterSnapshotCopyState 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.
- Allocated
Storage int - Specifies the allocated storage size in gigabytes (GB).
- bool
- Whether to copy existing tags. Defaults to
false
. - Db
Cluster stringSnapshot Arn - The Amazon Resource Name (ARN) for the DB cluster snapshot.
- Destination
Region string - The Destination region to place snapshot copy.
- Engine string
- Specifies the name of the database engine.
- Engine
Version string - Specifies the version of the database engine.
- Kms
Key stringId - KMS key ID.
- License
Model string - License model information for the restored DB instance.
- Presigned
Url string - URL that contains a Signature Version 4 signed request.
- List<string>
- List of AWS Account IDs to share the snapshot with. Use
all
to make the snapshot public. - Snapshot
Type string - Source
Db stringCluster Snapshot Identifier - Identifier of the source snapshot.
- Storage
Encrypted bool - Specifies whether the DB cluster snapshot is encrypted.
- Storage
Type string - Specifies the storage type associated with DB cluster snapshot.
- Dictionary<string, string>
- Key-value map of resource tags. 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. - Target
Db stringCluster Snapshot Identifier Identifier for the snapshot.
The following arguments are optional:
- Timeouts
Cluster
Snapshot Copy Timeouts - Vpc
Id string - Provides the VPC ID associated with the DB cluster snapshot.
- Allocated
Storage int - Specifies the allocated storage size in gigabytes (GB).
- bool
- Whether to copy existing tags. Defaults to
false
. - Db
Cluster stringSnapshot Arn - The Amazon Resource Name (ARN) for the DB cluster snapshot.
- Destination
Region string - The Destination region to place snapshot copy.
- Engine string
- Specifies the name of the database engine.
- Engine
Version string - Specifies the version of the database engine.
- Kms
Key stringId - KMS key ID.
- License
Model string - License model information for the restored DB instance.
- Presigned
Url string - URL that contains a Signature Version 4 signed request.
- []string
- List of AWS Account IDs to share the snapshot with. Use
all
to make the snapshot public. - Snapshot
Type string - Source
Db stringCluster Snapshot Identifier - Identifier of the source snapshot.
- Storage
Encrypted bool - Specifies whether the DB cluster snapshot is encrypted.
- Storage
Type string - Specifies the storage type associated with DB cluster snapshot.
- map[string]string
- Key-value map of resource tags. 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. - Target
Db stringCluster Snapshot Identifier Identifier for the snapshot.
The following arguments are optional:
- Timeouts
Cluster
Snapshot Copy Timeouts Args - Vpc
Id string - Provides the VPC ID associated with the DB cluster snapshot.
- allocated
Storage Integer - Specifies the allocated storage size in gigabytes (GB).
- Boolean
- Whether to copy existing tags. Defaults to
false
. - db
Cluster StringSnapshot Arn - The Amazon Resource Name (ARN) for the DB cluster snapshot.
- destination
Region String - The Destination region to place snapshot copy.
- engine String
- Specifies the name of the database engine.
- engine
Version String - Specifies the version of the database engine.
- kms
Key StringId - KMS key ID.
- license
Model String - License model information for the restored DB instance.
- presigned
Url String - URL that contains a Signature Version 4 signed request.
- List<String>
- List of AWS Account IDs to share the snapshot with. Use
all
to make the snapshot public. - snapshot
Type String - source
Db StringCluster Snapshot Identifier - Identifier of the source snapshot.
- storage
Encrypted Boolean - Specifies whether the DB cluster snapshot is encrypted.
- storage
Type String - Specifies the storage type associated with DB cluster snapshot.
- Map<String,String>
- Key-value map of resource tags. 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. - target
Db StringCluster Snapshot Identifier Identifier for the snapshot.
The following arguments are optional:
- timeouts
Cluster
Snapshot Copy Timeouts - vpc
Id String - Provides the VPC ID associated with the DB cluster snapshot.
- allocated
Storage number - Specifies the allocated storage size in gigabytes (GB).
- boolean
- Whether to copy existing tags. Defaults to
false
. - db
Cluster stringSnapshot Arn - The Amazon Resource Name (ARN) for the DB cluster snapshot.
- destination
Region string - The Destination region to place snapshot copy.
- engine string
- Specifies the name of the database engine.
- engine
Version string - Specifies the version of the database engine.
- kms
Key stringId - KMS key ID.
- license
Model string - License model information for the restored DB instance.
- presigned
Url string - URL that contains a Signature Version 4 signed request.
- string[]
- List of AWS Account IDs to share the snapshot with. Use
all
to make the snapshot public. - snapshot
Type string - source
Db stringCluster Snapshot Identifier - Identifier of the source snapshot.
- storage
Encrypted boolean - Specifies whether the DB cluster snapshot is encrypted.
- storage
Type string - Specifies the storage type associated with DB cluster snapshot.
- {[key: string]: string}
- Key-value map of resource tags. 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. - target
Db stringCluster Snapshot Identifier Identifier for the snapshot.
The following arguments are optional:
- timeouts
Cluster
Snapshot Copy Timeouts - vpc
Id string - Provides the VPC ID associated with the DB cluster snapshot.
- allocated_
storage int - Specifies the allocated storage size in gigabytes (GB).
- bool
- Whether to copy existing tags. Defaults to
false
. - db_
cluster_ strsnapshot_ arn - The Amazon Resource Name (ARN) for the DB cluster snapshot.
- destination_
region str - The Destination region to place snapshot copy.
- engine str
- Specifies the name of the database engine.
- engine_
version str - Specifies the version of the database engine.
- kms_
key_ strid - KMS key ID.
- license_
model str - License model information for the restored DB instance.
- presigned_
url str - URL that contains a Signature Version 4 signed request.
- Sequence[str]
- List of AWS Account IDs to share the snapshot with. Use
all
to make the snapshot public. - snapshot_
type str - source_
db_ strcluster_ snapshot_ identifier - Identifier of the source snapshot.
- storage_
encrypted bool - Specifies whether the DB cluster snapshot is encrypted.
- storage_
type str - Specifies the storage type associated with DB cluster snapshot.
- Mapping[str, str]
- Key-value map of resource tags. 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. - target_
db_ strcluster_ snapshot_ identifier Identifier for the snapshot.
The following arguments are optional:
- timeouts
Cluster
Snapshot Copy Timeouts Args - vpc_
id str - Provides the VPC ID associated with the DB cluster snapshot.
- allocated
Storage Number - Specifies the allocated storage size in gigabytes (GB).
- Boolean
- Whether to copy existing tags. Defaults to
false
. - db
Cluster StringSnapshot Arn - The Amazon Resource Name (ARN) for the DB cluster snapshot.
- destination
Region String - The Destination region to place snapshot copy.
- engine String
- Specifies the name of the database engine.
- engine
Version String - Specifies the version of the database engine.
- kms
Key StringId - KMS key ID.
- license
Model String - License model information for the restored DB instance.
- presigned
Url String - URL that contains a Signature Version 4 signed request.
- List<String>
- List of AWS Account IDs to share the snapshot with. Use
all
to make the snapshot public. - snapshot
Type String - source
Db StringCluster Snapshot Identifier - Identifier of the source snapshot.
- storage
Encrypted Boolean - Specifies whether the DB cluster snapshot is encrypted.
- storage
Type String - Specifies the storage type associated with DB cluster snapshot.
- Map<String>
- Key-value map of resource tags. 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. - target
Db StringCluster Snapshot Identifier Identifier for the snapshot.
The following arguments are optional:
- timeouts Property Map
- vpc
Id String - Provides the VPC ID associated with the DB cluster snapshot.
Supporting Types
ClusterSnapshotCopyTimeouts, ClusterSnapshotCopyTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Import
Using pulumi import
, import aws_rds_cluster_snapshot_copy
using the id
. For example:
$ pulumi import aws:rds/clusterSnapshotCopy:ClusterSnapshotCopy example my-snapshot
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.