Package com.pulumi.aws.rds
Class ClusterSnapshot
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.rds.ClusterSnapshot
-
public class ClusterSnapshot extends com.pulumi.resources.CustomResourceManages an RDS database cluster snapshot for Aurora clusters. For managing RDS database instance snapshots, see the `aws.rds.Snapshot` resource. ## Example Usage
## Import Using `pulumi import`, import `aws.rds.ClusterSnapshot` using the cluster snapshot identifier. For example: ```sh $ pulumi import aws:rds/clusterSnapshot:ClusterSnapshot example my-cluster-snapshot ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.rds.ClusterSnapshot; import com.pulumi.aws.rds.ClusterSnapshotArgs; import java.util.ArrayList; import java.util.Arrays; 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(exampleAwsRdsCluster.id()) .dbClusterSnapshotIdentifier("resourcetestsnapshot1234") .build()); } }
-
-
Constructor Summary
Constructors Constructor Description ClusterSnapshot(java.lang.String name)ClusterSnapshot(java.lang.String name, ClusterSnapshotArgs args)ClusterSnapshot(java.lang.String name, ClusterSnapshotArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.Integer>allocatedStorage()com.pulumi.core.Output<java.util.List<java.lang.String>>availabilityZones()com.pulumi.core.Output<java.lang.String>dbClusterIdentifier()com.pulumi.core.Output<java.lang.String>dbClusterSnapshotArn()com.pulumi.core.Output<java.lang.String>dbClusterSnapshotIdentifier()com.pulumi.core.Output<java.lang.String>engine()com.pulumi.core.Output<java.lang.String>engineVersion()static ClusterSnapshotget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, ClusterSnapshotState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>kmsKeyId()com.pulumi.core.Output<java.lang.String>licenseModel()com.pulumi.core.Output<java.lang.Integer>port()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>sharedAccounts()com.pulumi.core.Output<java.lang.String>snapshotType()com.pulumi.core.Output<java.lang.String>sourceDbClusterSnapshotArn()com.pulumi.core.Output<java.lang.String>status()com.pulumi.core.Output<java.lang.Boolean>storageEncrypted()com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>tags()com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>tagsAll()com.pulumi.core.Output<java.lang.String>vpcId()
-
-
-
Constructor Detail
-
ClusterSnapshot
public ClusterSnapshot(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
ClusterSnapshot
public ClusterSnapshot(java.lang.String name, ClusterSnapshotArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
ClusterSnapshot
public ClusterSnapshot(java.lang.String name, ClusterSnapshotArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
allocatedStorage
public com.pulumi.core.Output<java.lang.Integer> allocatedStorage()
- Returns:
- Allocated storage size in gigabytes (GB).
-
availabilityZones
public com.pulumi.core.Output<java.util.List<java.lang.String>> availabilityZones()
- Returns:
- List of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in.
-
dbClusterIdentifier
public com.pulumi.core.Output<java.lang.String> dbClusterIdentifier()
- Returns:
- DB Cluster Identifier from which to take the snapshot.
-
dbClusterSnapshotArn
public com.pulumi.core.Output<java.lang.String> dbClusterSnapshotArn()
- Returns:
- ARN for the DB Cluster Snapshot.
-
dbClusterSnapshotIdentifier
public com.pulumi.core.Output<java.lang.String> dbClusterSnapshotIdentifier()
- Returns:
- Identifier for the snapshot.
-
engine
public com.pulumi.core.Output<java.lang.String> engine()
- Returns:
- Name of the database engine.
-
engineVersion
public com.pulumi.core.Output<java.lang.String> engineVersion()
- Returns:
- Version of the database engine for this DB cluster snapshot.
-
kmsKeyId
public com.pulumi.core.Output<java.lang.String> kmsKeyId()
- Returns:
- If storageEncrypted is true, the AWS KMS key identifier for the encrypted DB cluster snapshot.
-
licenseModel
public com.pulumi.core.Output<java.lang.String> licenseModel()
- Returns:
- License model information for the restored DB cluster.
-
port
public com.pulumi.core.Output<java.lang.Integer> port()
- Returns:
- Port that the DB cluster was listening on at the time of the snapshot.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
sharedAccounts
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> sharedAccounts()
- Returns:
- List of AWS Account IDs to share the snapshot with. Use `all` to make the snapshot public.
-
snapshotType
public com.pulumi.core.Output<java.lang.String> snapshotType()
- Returns:
- Type of the DB cluster snapshot.
-
sourceDbClusterSnapshotArn
public com.pulumi.core.Output<java.lang.String> sourceDbClusterSnapshotArn()
- Returns:
- DB Cluster Snapshot ARN that the DB Cluster Snapshot was copied from. It only has value in case of cross customer or cross region copy.
-
status
public com.pulumi.core.Output<java.lang.String> status()
- Returns:
- Status of this DB Cluster Snapshot.
-
storageEncrypted
public com.pulumi.core.Output<java.lang.Boolean> storageEncrypted()
- Returns:
- Whether the DB cluster snapshot is encrypted.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- Map of tags to assign to the DB cluster. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
-
tagsAll
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll()
- Returns:
- Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
-
vpcId
public com.pulumi.core.Output<java.lang.String> vpcId()
- Returns:
- VPC ID associated with the DB cluster snapshot.
-
get
public static ClusterSnapshot get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable ClusterSnapshotState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-