ClusterSnapshot
Manages a DocDB database cluster snapshot for DocDB clusters.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.DocDB.ClusterSnapshot("example", new Aws.DocDB.ClusterSnapshotArgs
{
DbClusterIdentifier = aws_docdb_cluster.Example.Id,
DbClusterSnapshotIdentifier = "resourcetestsnapshot1234",
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/docdb"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := docdb.NewClusterSnapshot(ctx, "example", &docdb.ClusterSnapshotArgs{
DbClusterIdentifier: pulumi.String(aws_docdb_cluster.Example.Id),
DbClusterSnapshotIdentifier: pulumi.String("resourcetestsnapshot1234"),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.docdb.ClusterSnapshot("example",
db_cluster_identifier=aws_docdb_cluster["example"]["id"],
db_cluster_snapshot_identifier="resourcetestsnapshot1234")import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.docdb.ClusterSnapshot("example", {
dbClusterIdentifier: aws_docdb_cluster_example.id,
dbClusterSnapshotIdentifier: "resourcetestsnapshot1234",
});Create a ClusterSnapshot Resource
new ClusterSnapshot(name: string, args: ClusterSnapshotArgs, opts?: CustomResourceOptions);def ClusterSnapshot(resource_name, opts=None, db_cluster_identifier=None, db_cluster_snapshot_identifier=None, __props__=None);func NewClusterSnapshot(ctx *Context, name string, args ClusterSnapshotArgs, opts ...ResourceOption) (*ClusterSnapshot, error)public ClusterSnapshot(string name, ClusterSnapshotArgs args, CustomResourceOptions? opts = null)- 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.
- opts ResourceOptions
- A bag of options that control this 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.
ClusterSnapshot Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The ClusterSnapshot resource accepts the following input properties:
- Db
Cluster stringIdentifier The DocDB Cluster Identifier from which to take the snapshot.
- Db
Cluster stringSnapshot Identifier The Identifier for the snapshot.
- Db
Cluster stringIdentifier The DocDB Cluster Identifier from which to take the snapshot.
- Db
Cluster stringSnapshot Identifier The Identifier for the snapshot.
- db
Cluster stringIdentifier The DocDB Cluster Identifier from which to take the snapshot.
- db
Cluster stringSnapshot Identifier The Identifier for the snapshot.
- db_
cluster_ stridentifier The DocDB Cluster Identifier from which to take the snapshot.
- db_
cluster_ strsnapshot_ identifier The Identifier for the snapshot.
Outputs
All input properties are implicitly available as output properties. Additionally, the ClusterSnapshot resource produces the following output properties:
- Availability
Zones List<string> List of EC2 Availability Zones that instances in the DocDB cluster snapshot can be restored in.
- Db
Cluster stringSnapshot Arn The Amazon Resource Name (ARN) for the DocDB Cluster Snapshot.
- Engine string
Specifies the name of the database engine.
- Engine
Version string Version of the database engine for this DocDB cluster snapshot.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key stringId If storage_encrypted is true, the AWS KMS key identifier for the encrypted DocDB cluster snapshot.
- Port int
Port that the DocDB cluster was listening on at the time of the snapshot.
- Snapshot
Type string - Source
Db stringCluster Snapshot Arn - Status string
The status of this DocDB Cluster Snapshot.
- Storage
Encrypted bool Specifies whether the DocDB cluster snapshot is encrypted.
- Vpc
Id string The VPC ID associated with the DocDB cluster snapshot.
- Availability
Zones []string List of EC2 Availability Zones that instances in the DocDB cluster snapshot can be restored in.
- Db
Cluster stringSnapshot Arn The Amazon Resource Name (ARN) for the DocDB Cluster Snapshot.
- Engine string
Specifies the name of the database engine.
- Engine
Version string Version of the database engine for this DocDB cluster snapshot.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key stringId If storage_encrypted is true, the AWS KMS key identifier for the encrypted DocDB cluster snapshot.
- Port int
Port that the DocDB cluster was listening on at the time of the snapshot.
- Snapshot
Type string - Source
Db stringCluster Snapshot Arn - Status string
The status of this DocDB Cluster Snapshot.
- Storage
Encrypted bool Specifies whether the DocDB cluster snapshot is encrypted.
- Vpc
Id string The VPC ID associated with the DocDB cluster snapshot.
- availability
Zones string[] List of EC2 Availability Zones that instances in the DocDB cluster snapshot can be restored in.
- db
Cluster stringSnapshot Arn The Amazon Resource Name (ARN) for the DocDB Cluster Snapshot.
- engine string
Specifies the name of the database engine.
- engine
Version string Version of the database engine for this DocDB cluster snapshot.
- id string
- The provider-assigned unique ID for this managed resource.
- kms
Key stringId If storage_encrypted is true, the AWS KMS key identifier for the encrypted DocDB cluster snapshot.
- port number
Port that the DocDB cluster was listening on at the time of the snapshot.
- snapshot
Type string - source
Db stringCluster Snapshot Arn - status string
The status of this DocDB Cluster Snapshot.
- storage
Encrypted boolean Specifies whether the DocDB cluster snapshot is encrypted.
- vpc
Id string The VPC ID associated with the DocDB cluster snapshot.
- availability_
zones List[str] List of EC2 Availability Zones that instances in the DocDB cluster snapshot can be restored in.
- db_
cluster_ strsnapshot_ arn The Amazon Resource Name (ARN) for the DocDB Cluster Snapshot.
- engine str
Specifies the name of the database engine.
- engine_
version str Version of the database engine for this DocDB cluster snapshot.
- id str
- The provider-assigned unique ID for this managed resource.
- kms_
key_ strid If storage_encrypted is true, the AWS KMS key identifier for the encrypted DocDB cluster snapshot.
- port float
Port that the DocDB cluster was listening on at the time of the snapshot.
- snapshot_
type str - source_
db_ strcluster_ snapshot_ arn - status str
The status of this DocDB Cluster Snapshot.
- storage_
encrypted bool Specifies whether the DocDB cluster snapshot is encrypted.
- vpc_
id str The VPC ID associated with the DocDB cluster snapshot.
Look up an 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): ClusterSnapshotstatic get(resource_name, id, opts=None, availability_zones=None, db_cluster_identifier=None, db_cluster_snapshot_arn=None, db_cluster_snapshot_identifier=None, engine=None, engine_version=None, kms_key_id=None, port=None, snapshot_type=None, source_db_cluster_snapshot_arn=None, status=None, storage_encrypted=None, vpc_id=None, __props__=None);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)- 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.
The following state arguments are supported:
- Availability
Zones List<string> List of EC2 Availability Zones that instances in the DocDB cluster snapshot can be restored in.
- Db
Cluster stringIdentifier The DocDB Cluster Identifier from which to take the snapshot.
- Db
Cluster stringSnapshot Arn The Amazon Resource Name (ARN) for the DocDB Cluster Snapshot.
- Db
Cluster stringSnapshot Identifier The Identifier for the snapshot.
- Engine string
Specifies the name of the database engine.
- Engine
Version string Version of the database engine for this DocDB cluster snapshot.
- Kms
Key stringId If storage_encrypted is true, the AWS KMS key identifier for the encrypted DocDB cluster snapshot.
- Port int
Port that the DocDB cluster was listening on at the time of the snapshot.
- Snapshot
Type string - Source
Db stringCluster Snapshot Arn - Status string
The status of this DocDB Cluster Snapshot.
- Storage
Encrypted bool Specifies whether the DocDB cluster snapshot is encrypted.
- Vpc
Id string The VPC ID associated with the DocDB cluster snapshot.
- Availability
Zones []string List of EC2 Availability Zones that instances in the DocDB cluster snapshot can be restored in.
- Db
Cluster stringIdentifier The DocDB Cluster Identifier from which to take the snapshot.
- Db
Cluster stringSnapshot Arn The Amazon Resource Name (ARN) for the DocDB Cluster Snapshot.
- Db
Cluster stringSnapshot Identifier The Identifier for the snapshot.
- Engine string
Specifies the name of the database engine.
- Engine
Version string Version of the database engine for this DocDB cluster snapshot.
- Kms
Key stringId If storage_encrypted is true, the AWS KMS key identifier for the encrypted DocDB cluster snapshot.
- Port int
Port that the DocDB cluster was listening on at the time of the snapshot.
- Snapshot
Type string - Source
Db stringCluster Snapshot Arn - Status string
The status of this DocDB Cluster Snapshot.
- Storage
Encrypted bool Specifies whether the DocDB cluster snapshot is encrypted.
- Vpc
Id string The VPC ID associated with the DocDB cluster snapshot.
- availability
Zones string[] List of EC2 Availability Zones that instances in the DocDB cluster snapshot can be restored in.
- db
Cluster stringIdentifier The DocDB Cluster Identifier from which to take the snapshot.
- db
Cluster stringSnapshot Arn The Amazon Resource Name (ARN) for the DocDB Cluster Snapshot.
- db
Cluster stringSnapshot Identifier The Identifier for the snapshot.
- engine string
Specifies the name of the database engine.
- engine
Version string Version of the database engine for this DocDB cluster snapshot.
- kms
Key stringId If storage_encrypted is true, the AWS KMS key identifier for the encrypted DocDB cluster snapshot.
- port number
Port that the DocDB cluster was listening on at the time of the snapshot.
- snapshot
Type string - source
Db stringCluster Snapshot Arn - status string
The status of this DocDB Cluster Snapshot.
- storage
Encrypted boolean Specifies whether the DocDB cluster snapshot is encrypted.
- vpc
Id string The VPC ID associated with the DocDB cluster snapshot.
- availability_
zones List[str] List of EC2 Availability Zones that instances in the DocDB cluster snapshot can be restored in.
- db_
cluster_ stridentifier The DocDB Cluster Identifier from which to take the snapshot.
- db_
cluster_ strsnapshot_ arn The Amazon Resource Name (ARN) for the DocDB Cluster Snapshot.
- db_
cluster_ strsnapshot_ identifier The Identifier for the snapshot.
- engine str
Specifies the name of the database engine.
- engine_
version str Version of the database engine for this DocDB cluster snapshot.
- kms_
key_ strid If storage_encrypted is true, the AWS KMS key identifier for the encrypted DocDB cluster snapshot.
- port float
Port that the DocDB cluster was listening on at the time of the snapshot.
- snapshot_
type str - source_
db_ strcluster_ snapshot_ arn - status str
The status of this DocDB Cluster Snapshot.
- storage_
encrypted bool Specifies whether the DocDB cluster snapshot is encrypted.
- vpc_
id str The VPC ID associated with the DocDB cluster snapshot.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.