aws.neptune.ClusterSnapshot
Explore with Pulumi AI
Manages a Neptune database cluster snapshot.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.neptune.ClusterSnapshot("example", {
dbClusterIdentifier: exampleAwsNeptuneCluster.id,
dbClusterSnapshotIdentifier: "resourcetestsnapshot1234",
});
import pulumi
import pulumi_aws as aws
example = aws.neptune.ClusterSnapshot("example",
db_cluster_identifier=example_aws_neptune_cluster["id"],
db_cluster_snapshot_identifier="resourcetestsnapshot1234")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/neptune"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := neptune.NewClusterSnapshot(ctx, "example", &neptune.ClusterSnapshotArgs{
DbClusterIdentifier: pulumi.Any(exampleAwsNeptuneCluster.Id),
DbClusterSnapshotIdentifier: pulumi.String("resourcetestsnapshot1234"),
})
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.Neptune.ClusterSnapshot("example", new()
{
DbClusterIdentifier = exampleAwsNeptuneCluster.Id,
DbClusterSnapshotIdentifier = "resourcetestsnapshot1234",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.neptune.ClusterSnapshot;
import com.pulumi.aws.neptune.ClusterSnapshotArgs;
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()
.dbClusterIdentifier(exampleAwsNeptuneCluster.id())
.dbClusterSnapshotIdentifier("resourcetestsnapshot1234")
.build());
}
}
resources:
example:
type: aws:neptune:ClusterSnapshot
properties:
dbClusterIdentifier: ${exampleAwsNeptuneCluster.id}
dbClusterSnapshotIdentifier: resourcetestsnapshot1234
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,
db_cluster_identifier: Optional[str] = None,
db_cluster_snapshot_identifier: Optional[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:neptune: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 awsClusterSnapshotResource = new Aws.Neptune.ClusterSnapshot("awsClusterSnapshotResource", new()
{
DbClusterIdentifier = "string",
DbClusterSnapshotIdentifier = "string",
});
example, err := neptune.NewClusterSnapshot(ctx, "awsClusterSnapshotResource", &neptune.ClusterSnapshotArgs{
DbClusterIdentifier: pulumi.String("string"),
DbClusterSnapshotIdentifier: pulumi.String("string"),
})
var awsClusterSnapshotResource = new ClusterSnapshot("awsClusterSnapshotResource", ClusterSnapshotArgs.builder()
.dbClusterIdentifier("string")
.dbClusterSnapshotIdentifier("string")
.build());
aws_cluster_snapshot_resource = aws.neptune.ClusterSnapshot("awsClusterSnapshotResource",
db_cluster_identifier="string",
db_cluster_snapshot_identifier="string")
const awsClusterSnapshotResource = new aws.neptune.ClusterSnapshot("awsClusterSnapshotResource", {
dbClusterIdentifier: "string",
dbClusterSnapshotIdentifier: "string",
});
type: aws:neptune:ClusterSnapshot
properties:
dbClusterIdentifier: string
dbClusterSnapshotIdentifier: 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
The ClusterSnapshot resource accepts the following input properties:
- Db
Cluster stringIdentifier - The DB Cluster Identifier from which to take the snapshot.
- Db
Cluster stringSnapshot Identifier - The Identifier for the snapshot.
- Db
Cluster stringIdentifier - The DB Cluster Identifier from which to take the snapshot.
- Db
Cluster stringSnapshot Identifier - The Identifier for the snapshot.
- db
Cluster StringIdentifier - The DB Cluster Identifier from which to take the snapshot.
- db
Cluster StringSnapshot Identifier - The Identifier for the snapshot.
- db
Cluster stringIdentifier - The DB Cluster Identifier from which to take the snapshot.
- db
Cluster stringSnapshot Identifier - The Identifier for the snapshot.
- db_
cluster_ stridentifier - The DB Cluster Identifier from which to take the snapshot.
- db_
cluster_ strsnapshot_ identifier - The Identifier for the snapshot.
- db
Cluster StringIdentifier - The DB Cluster Identifier from which to take the snapshot.
- db
Cluster StringSnapshot 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:
- Allocated
Storage int - Specifies the allocated storage size in gigabytes (GB).
- Availability
Zones List<string> - List of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.
- 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 - Version of the database engine for this DB 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 DB cluster snapshot.
- License
Model 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.
- Snapshot
Type string - Source
Db stringCluster Snapshot Arn - Status string
- The status of this DB Cluster Snapshot.
- Storage
Encrypted bool - Specifies whether the DB cluster snapshot is encrypted.
- Vpc
Id string - The VPC ID associated with the DB cluster snapshot.
- Allocated
Storage int - Specifies the allocated storage size in gigabytes (GB).
- Availability
Zones []string - List of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.
- 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 - Version of the database engine for this DB 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 DB cluster snapshot.
- License
Model 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.
- Snapshot
Type string - Source
Db stringCluster Snapshot Arn - Status string
- The status of this DB Cluster Snapshot.
- Storage
Encrypted bool - Specifies whether the DB cluster snapshot is encrypted.
- Vpc
Id string - The VPC ID associated with the DB cluster snapshot.
- allocated
Storage Integer - Specifies the allocated storage size in gigabytes (GB).
- availability
Zones List<String> - List of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.
- 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 - Version of the database engine for this DB 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 DB cluster snapshot.
- license
Model String - License model information for the restored DB cluster.
- port Integer
- Port that the DB cluster was listening on at the time of the snapshot.
- snapshot
Type String - source
Db StringCluster Snapshot Arn - status String
- The status of this DB Cluster Snapshot.
- storage
Encrypted Boolean - Specifies whether the DB cluster snapshot is encrypted.
- vpc
Id String - The VPC ID associated with the DB cluster snapshot.
- allocated
Storage number - Specifies the allocated storage size in gigabytes (GB).
- availability
Zones string[] - List of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.
- 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 - Version of the database engine for this DB 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 DB cluster snapshot.
- license
Model 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.
- snapshot
Type string - source
Db stringCluster Snapshot Arn - status string
- The status of this DB Cluster Snapshot.
- storage
Encrypted boolean - Specifies whether the DB cluster snapshot is encrypted.
- vpc
Id string - The VPC ID associated with the DB cluster snapshot.
- allocated_
storage int - Specifies the allocated storage size in gigabytes (GB).
- availability_
zones Sequence[str] - List of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.
- 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 - Version of the database engine for this DB 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 DB cluster snapshot.
- license_
model str - License model information for the restored DB cluster.
- port int
- Port that the DB cluster was listening on at the time of the snapshot.
- snapshot_
type str - source_
db_ strcluster_ snapshot_ arn - 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.
- allocated
Storage Number - Specifies the allocated storage size in gigabytes (GB).
- availability
Zones List<String> - List of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.
- 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 - Version of the database engine for this DB 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 DB cluster snapshot.
- license
Model 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.
- snapshot
Type String - source
Db StringCluster Snapshot Arn - status String
- The status of this DB Cluster Snapshot.
- storage
Encrypted Boolean - Specifies whether the DB cluster snapshot is encrypted.
- vpc
Id String - The VPC ID associated with the DB cluster snapshot.
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,
allocated_storage: Optional[int] = None,
availability_zones: Optional[Sequence[str]] = None,
db_cluster_identifier: Optional[str] = None,
db_cluster_snapshot_arn: Optional[str] = None,
db_cluster_snapshot_identifier: Optional[str] = None,
engine: Optional[str] = None,
engine_version: Optional[str] = None,
kms_key_id: Optional[str] = None,
license_model: Optional[str] = None,
port: Optional[int] = None,
snapshot_type: Optional[str] = None,
source_db_cluster_snapshot_arn: Optional[str] = None,
status: Optional[str] = None,
storage_encrypted: Optional[bool] = None,
vpc_id: Optional[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.
- Allocated
Storage int - Specifies the allocated storage size in gigabytes (GB).
- Availability
Zones List<string> - List of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.
- Db
Cluster stringIdentifier - The DB Cluster Identifier from which to take the snapshot.
- Db
Cluster stringSnapshot Arn - The Amazon Resource Name (ARN) for the DB 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 DB cluster snapshot.
- Kms
Key stringId - If storage_encrypted is true, the AWS KMS key identifier for the encrypted DB cluster snapshot.
- License
Model 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.
- Snapshot
Type string - Source
Db stringCluster Snapshot Arn - Status string
- The status of this DB Cluster Snapshot.
- Storage
Encrypted bool - Specifies whether the DB cluster snapshot is encrypted.
- Vpc
Id string - The VPC ID associated with the DB cluster snapshot.
- Allocated
Storage int - Specifies the allocated storage size in gigabytes (GB).
- Availability
Zones []string - List of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.
- Db
Cluster stringIdentifier - The DB Cluster Identifier from which to take the snapshot.
- Db
Cluster stringSnapshot Arn - The Amazon Resource Name (ARN) for the DB 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 DB cluster snapshot.
- Kms
Key stringId - If storage_encrypted is true, the AWS KMS key identifier for the encrypted DB cluster snapshot.
- License
Model 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.
- Snapshot
Type string - Source
Db stringCluster Snapshot Arn - Status string
- The status of this DB Cluster Snapshot.
- Storage
Encrypted bool - Specifies whether the DB cluster snapshot is encrypted.
- Vpc
Id string - The VPC ID associated with the DB cluster snapshot.
- allocated
Storage Integer - Specifies the allocated storage size in gigabytes (GB).
- availability
Zones List<String> - List of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.
- db
Cluster StringIdentifier - The DB Cluster Identifier from which to take the snapshot.
- db
Cluster StringSnapshot Arn - The Amazon Resource Name (ARN) for the DB 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 DB cluster snapshot.
- kms
Key StringId - If storage_encrypted is true, the AWS KMS key identifier for the encrypted DB cluster snapshot.
- license
Model String - License model information for the restored DB cluster.
- port Integer
- Port that the DB cluster was listening on at the time of the snapshot.
- snapshot
Type String - source
Db StringCluster Snapshot Arn - status String
- The status of this DB Cluster Snapshot.
- storage
Encrypted Boolean - Specifies whether the DB cluster snapshot is encrypted.
- vpc
Id String - The VPC ID associated with the DB cluster snapshot.
- allocated
Storage number - Specifies the allocated storage size in gigabytes (GB).
- availability
Zones string[] - List of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.
- db
Cluster stringIdentifier - The DB Cluster Identifier from which to take the snapshot.
- db
Cluster stringSnapshot Arn - The Amazon Resource Name (ARN) for the DB 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 DB cluster snapshot.
- kms
Key stringId - If storage_encrypted is true, the AWS KMS key identifier for the encrypted DB cluster snapshot.
- license
Model 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.
- snapshot
Type string - source
Db stringCluster Snapshot Arn - status string
- The status of this DB Cluster Snapshot.
- storage
Encrypted boolean - Specifies whether the DB cluster snapshot is encrypted.
- vpc
Id string - The VPC ID associated with the DB cluster snapshot.
- allocated_
storage int - Specifies the allocated storage size in gigabytes (GB).
- availability_
zones Sequence[str] - List of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.
- db_
cluster_ stridentifier - The DB Cluster Identifier from which to take the snapshot.
- db_
cluster_ strsnapshot_ arn - The Amazon Resource Name (ARN) for the DB 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 DB cluster snapshot.
- kms_
key_ strid - 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 int
- Port that the DB cluster was listening on at the time of the snapshot.
- snapshot_
type str - source_
db_ strcluster_ snapshot_ arn - 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.
- allocated
Storage Number - Specifies the allocated storage size in gigabytes (GB).
- availability
Zones List<String> - List of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.
- db
Cluster StringIdentifier - The DB Cluster Identifier from which to take the snapshot.
- db
Cluster StringSnapshot Arn - The Amazon Resource Name (ARN) for the DB 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 DB cluster snapshot.
- kms
Key StringId - If storage_encrypted is true, the AWS KMS key identifier for the encrypted DB cluster snapshot.
- license
Model 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.
- snapshot
Type String - source
Db StringCluster Snapshot Arn - status String
- The status of this DB Cluster Snapshot.
- storage
Encrypted Boolean - Specifies whether the DB cluster snapshot is encrypted.
- vpc
Id String - The VPC ID associated with the DB cluster snapshot.
Import
Using pulumi import
, import aws_neptune_cluster_snapshot
using the cluster snapshot identifier. For example:
$ pulumi import aws:neptune/clusterSnapshot:ClusterSnapshot example my-cluster-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.