ClusterSnapshot

Manages a Neptune database cluster snapshot.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Aws.Neptune.ClusterSnapshot("example", new Aws.Neptune.ClusterSnapshotArgs
        {
            DbClusterIdentifier = aws_neptune_cluster.Example.Id,
            DbClusterSnapshotIdentifier = "resourcetestsnapshot1234",
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/neptune"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := neptune.NewClusterSnapshot(ctx, "example", &neptune.ClusterSnapshotArgs{
            DbClusterIdentifier:         pulumi.String(aws_neptune_cluster.Example.Id),
            DbClusterSnapshotIdentifier: pulumi.String("resourcetestsnapshot1234"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

example = aws.neptune.ClusterSnapshot("example",
    db_cluster_identifier=aws_neptune_cluster["example"]["id"],
    db_cluster_snapshot_identifier="resourcetestsnapshot1234")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.neptune.ClusterSnapshot("example", {
    dbClusterIdentifier: aws_neptune_cluster_example.id,
    dbClusterSnapshotIdentifier: "resourcetestsnapshot1234",
});

Create a ClusterSnapshot Resource

def ClusterSnapshot(resource_name, opts=None, db_cluster_identifier=None, db_cluster_snapshot_identifier=None, __props__=None);
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:

DbClusterIdentifier string

The DB Cluster Identifier from which to take the snapshot.

DbClusterSnapshotIdentifier string

The Identifier for the snapshot.

DbClusterIdentifier string

The DB Cluster Identifier from which to take the snapshot.

DbClusterSnapshotIdentifier string

The Identifier for the snapshot.

dbClusterIdentifier string

The DB Cluster Identifier from which to take the snapshot.

dbClusterSnapshotIdentifier string

The Identifier for the snapshot.

db_cluster_identifier str

The DB Cluster Identifier from which to take the snapshot.

db_cluster_snapshot_identifier str

The Identifier for the snapshot.

Outputs

All input properties are implicitly available as output properties. Additionally, the ClusterSnapshot resource produces the following output properties:

AllocatedStorage int

Specifies the allocated storage size in gigabytes (GB).

AvailabilityZones List<string>

List of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.

DbClusterSnapshotArn string

The Amazon Resource Name (ARN) for the DB Cluster Snapshot.

Engine string

Specifies the name of the database engine.

EngineVersion string

Version of the database engine for this DB cluster snapshot.

Id string
The provider-assigned unique ID for this managed resource.
KmsKeyId string

If storage_encrypted is true, the AWS KMS key identifier for the encrypted DB cluster snapshot.

LicenseModel string

License model information for the restored DB cluster.

Port int

Port that the DB cluster was listening on at the time of the snapshot.

SnapshotType string
SourceDbClusterSnapshotArn string
Status string

The status of this DB Cluster Snapshot.

StorageEncrypted bool

Specifies whether the DB cluster snapshot is encrypted.

VpcId string

The VPC ID associated with the DB cluster snapshot.

AllocatedStorage int

Specifies the allocated storage size in gigabytes (GB).

AvailabilityZones []string

List of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.

DbClusterSnapshotArn string

The Amazon Resource Name (ARN) for the DB Cluster Snapshot.

Engine string

Specifies the name of the database engine.

EngineVersion string

Version of the database engine for this DB cluster snapshot.

Id string
The provider-assigned unique ID for this managed resource.
KmsKeyId string

If storage_encrypted is true, the AWS KMS key identifier for the encrypted DB cluster snapshot.

LicenseModel string

License model information for the restored DB cluster.

Port int

Port that the DB cluster was listening on at the time of the snapshot.

SnapshotType string
SourceDbClusterSnapshotArn string
Status string

The status of this DB Cluster Snapshot.

StorageEncrypted bool

Specifies whether the DB cluster snapshot is encrypted.

VpcId string

The VPC ID associated with the DB cluster snapshot.

allocatedStorage number

Specifies the allocated storage size in gigabytes (GB).

availabilityZones string[]

List of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.

dbClusterSnapshotArn string

The Amazon Resource Name (ARN) for the DB Cluster Snapshot.

engine string

Specifies the name of the database engine.

engineVersion string

Version of the database engine for this DB cluster snapshot.

id string
The provider-assigned unique ID for this managed resource.
kmsKeyId string

If storage_encrypted is true, the AWS KMS key identifier for the encrypted DB cluster snapshot.

licenseModel string

License model information for the restored DB cluster.

port number

Port that the DB cluster was listening on at the time of the snapshot.

snapshotType string
sourceDbClusterSnapshotArn string
status string

The status of this DB Cluster Snapshot.

storageEncrypted boolean

Specifies whether the DB cluster snapshot is encrypted.

vpcId string

The VPC ID associated with the DB cluster snapshot.

allocated_storage float

Specifies the allocated storage size in gigabytes (GB).

availability_zones List[str]

List of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.

db_cluster_snapshot_arn str

The Amazon Resource Name (ARN) for the DB Cluster Snapshot.

engine str

Specifies the name of the database engine.

engine_version str

Version of the database engine for this DB cluster snapshot.

id str
The provider-assigned unique ID for this managed resource.
kms_key_id str

If storage_encrypted is true, the AWS KMS key identifier for the encrypted DB cluster snapshot.

license_model str

License model information for the restored DB cluster.

port float

Port that the DB cluster was listening on at the time of the snapshot.

snapshot_type str
source_db_cluster_snapshot_arn str
status str

The status of this DB Cluster Snapshot.

storage_encrypted bool

Specifies whether the DB cluster snapshot is encrypted.

vpc_id str

The VPC ID associated with the DB 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): ClusterSnapshot
static get(resource_name, id, opts=None, allocated_storage=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, license_model=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:

AllocatedStorage int

Specifies the allocated storage size in gigabytes (GB).

AvailabilityZones List<string>

List of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.

DbClusterIdentifier string

The DB Cluster Identifier from which to take the snapshot.

DbClusterSnapshotArn string

The Amazon Resource Name (ARN) for the DB Cluster Snapshot.

DbClusterSnapshotIdentifier string

The Identifier for the snapshot.

Engine string

Specifies the name of the database engine.

EngineVersion string

Version of the database engine for this DB cluster snapshot.

KmsKeyId string

If storage_encrypted is true, the AWS KMS key identifier for the encrypted DB cluster snapshot.

LicenseModel string

License model information for the restored DB cluster.

Port int

Port that the DB cluster was listening on at the time of the snapshot.

SnapshotType string
SourceDbClusterSnapshotArn string
Status string

The status of this DB Cluster Snapshot.

StorageEncrypted bool

Specifies whether the DB cluster snapshot is encrypted.

VpcId string

The VPC ID associated with the DB cluster snapshot.

AllocatedStorage int

Specifies the allocated storage size in gigabytes (GB).

AvailabilityZones []string

List of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.

DbClusterIdentifier string

The DB Cluster Identifier from which to take the snapshot.

DbClusterSnapshotArn string

The Amazon Resource Name (ARN) for the DB Cluster Snapshot.

DbClusterSnapshotIdentifier string

The Identifier for the snapshot.

Engine string

Specifies the name of the database engine.

EngineVersion string

Version of the database engine for this DB cluster snapshot.

KmsKeyId string

If storage_encrypted is true, the AWS KMS key identifier for the encrypted DB cluster snapshot.

LicenseModel string

License model information for the restored DB cluster.

Port int

Port that the DB cluster was listening on at the time of the snapshot.

SnapshotType string
SourceDbClusterSnapshotArn string
Status string

The status of this DB Cluster Snapshot.

StorageEncrypted bool

Specifies whether the DB cluster snapshot is encrypted.

VpcId string

The VPC ID associated with the DB cluster snapshot.

allocatedStorage number

Specifies the allocated storage size in gigabytes (GB).

availabilityZones string[]

List of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.

dbClusterIdentifier string

The DB Cluster Identifier from which to take the snapshot.

dbClusterSnapshotArn string

The Amazon Resource Name (ARN) for the DB Cluster Snapshot.

dbClusterSnapshotIdentifier string

The Identifier for the snapshot.

engine string

Specifies the name of the database engine.

engineVersion string

Version of the database engine for this DB cluster snapshot.

kmsKeyId string

If storage_encrypted is true, the AWS KMS key identifier for the encrypted DB cluster snapshot.

licenseModel string

License model information for the restored DB cluster.

port number

Port that the DB cluster was listening on at the time of the snapshot.

snapshotType string
sourceDbClusterSnapshotArn string
status string

The status of this DB Cluster Snapshot.

storageEncrypted boolean

Specifies whether the DB cluster snapshot is encrypted.

vpcId string

The VPC ID associated with the DB cluster snapshot.

allocated_storage float

Specifies the allocated storage size in gigabytes (GB).

availability_zones List[str]

List of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.

db_cluster_identifier str

The DB Cluster Identifier from which to take the snapshot.

db_cluster_snapshot_arn str

The Amazon Resource Name (ARN) for the DB Cluster Snapshot.

db_cluster_snapshot_identifier str

The Identifier for the snapshot.

engine str

Specifies the name of the database engine.

engine_version str

Version of the database engine for this DB cluster snapshot.

kms_key_id str

If storage_encrypted is true, the AWS KMS key identifier for the encrypted DB cluster snapshot.

license_model str

License model information for the restored DB cluster.

port float

Port that the DB cluster was listening on at the time of the snapshot.

snapshot_type str
source_db_cluster_snapshot_arn str
status str

The status of this DB Cluster Snapshot.

storage_encrypted bool

Specifies whether the DB cluster snapshot is encrypted.

vpc_id str

The VPC ID associated with the DB cluster snapshot.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.