Class ClusterSnapshotCopy


  • public class ClusterSnapshotCopy
    extends com.pulumi.resources.CustomResource
    Manages an RDS database cluster snapshot copy. For managing RDS database instance snapshot copies, see the `aws.rds.SnapshotCopy` resource. ## Example Usage
     
     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.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 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());
     
         }
     }
     
     
    ## Import Using `pulumi import`, import `aws.rds.ClusterSnapshotCopy` using the `id`. For example: ```sh $ pulumi import aws:rds/clusterSnapshotCopy:ClusterSnapshotCopy example my-snapshot ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • 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.Optional<java.lang.Boolean>> copyTags()  
      com.pulumi.core.Output<java.lang.String> dbClusterSnapshotArn()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> destinationRegion()  
      com.pulumi.core.Output<java.lang.String> engine()  
      com.pulumi.core.Output<java.lang.String> engineVersion()  
      static ClusterSnapshotCopy get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, ClusterSnapshotCopyState 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.util.Optional<java.lang.String>> kmsKeyId()  
      com.pulumi.core.Output<java.lang.String> licenseModel()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> presignedUrl()  
      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> sourceDbClusterSnapshotIdentifier()  
      com.pulumi.core.Output<java.lang.Boolean> storageEncrypted()  
      com.pulumi.core.Output<java.lang.String> storageType()  
      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> targetDbClusterSnapshotIdentifier()  
      com.pulumi.core.Output<java.util.Optional<ClusterSnapshotCopyTimeouts>> timeouts()  
      com.pulumi.core.Output<java.lang.String> vpcId()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClusterSnapshotCopy

        public ClusterSnapshotCopy​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • ClusterSnapshotCopy

        public ClusterSnapshotCopy​(java.lang.String name,
                                   ClusterSnapshotCopyArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • ClusterSnapshotCopy

        public ClusterSnapshotCopy​(java.lang.String name,
                                   ClusterSnapshotCopyArgs 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).
      • copyTags

        public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> copyTags()
        Returns:
        Whether to copy existing tags. Defaults to `false`.
      • dbClusterSnapshotArn

        public com.pulumi.core.Output<java.lang.String> dbClusterSnapshotArn()
        Returns:
        ARN for the DB cluster snapshot.
      • destinationRegion

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> destinationRegion()
        Returns:
        Destination region to place the snapshot copy.
      • 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.
      • kmsKeyId

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> kmsKeyId()
        Returns:
        KMS key ID.
      • licenseModel

        public com.pulumi.core.Output<java.lang.String> licenseModel()
        Returns:
        License model information for the restored DB instance.
      • presignedUrl

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> presignedUrl()
        Returns:
        URL that contains a Signature Version 4 signed request.
      • 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.
      • sourceDbClusterSnapshotIdentifier

        public com.pulumi.core.Output<java.lang.String> sourceDbClusterSnapshotIdentifier()
        Returns:
        Identifier of the source snapshot.
      • storageEncrypted

        public com.pulumi.core.Output<java.lang.Boolean> storageEncrypted()
        Returns:
        Whether the DB cluster snapshot is encrypted.
      • storageType

        public com.pulumi.core.Output<java.lang.String> storageType()
        Returns:
        Storage type associated with DB cluster snapshot.
      • tags

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        Key-value map of resource tags. 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.
      • targetDbClusterSnapshotIdentifier

        public com.pulumi.core.Output<java.lang.String> targetDbClusterSnapshotIdentifier()
        Returns:
        Identifier for the snapshot. The following arguments are optional:
      • vpcId

        public com.pulumi.core.Output<java.lang.String> vpcId()
        Returns:
        Provides the VPC ID associated with the DB cluster snapshot.
      • get

        public static ClusterSnapshotCopy get​(java.lang.String name,
                                              com.pulumi.core.Output<java.lang.String> id,
                                              @Nullable
                                              ClusterSnapshotCopyState 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.