SnapshotCopy

class SnapshotCopy : KotlinCustomResource

Manages an RDS database instance snapshot copy. For managing RDS database cluster snapshots, see the aws.rds.ClusterSnapshot resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.rds.Instance;
import com.pulumi.aws.rds.InstanceArgs;
import com.pulumi.aws.rds.Snapshot;
import com.pulumi.aws.rds.SnapshotArgs;
import com.pulumi.aws.rds.SnapshotCopy;
import com.pulumi.aws.rds.SnapshotCopyArgs;
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 exampleInstance = new Instance("exampleInstance", InstanceArgs.builder()
.allocatedStorage(10)
.engine("mysql")
.engineVersion("5.6.21")
.instanceClass("db.t2.micro")
.name("baz")
.password("barbarbarbar")
.username("foo")
.maintenanceWindow("Fri:09:00-Fri:09:30")
.backupRetentionPeriod(0)
.parameterGroupName("default.mysql5.6")
.build());
var exampleSnapshot = new Snapshot("exampleSnapshot", SnapshotArgs.builder()
.dbInstanceIdentifier(exampleInstance.id())
.dbSnapshotIdentifier("testsnapshot1234")
.build());
var exampleSnapshotCopy = new SnapshotCopy("exampleSnapshotCopy", SnapshotCopyArgs.builder()
.sourceDbSnapshotIdentifier(exampleSnapshot.dbSnapshotArn())
.targetDbSnapshotIdentifier("testsnapshot1234-copy")
.build());
}
}

Import

aws_db_snapshot_copy can be imported by using the snapshot identifier, e.g.,

$ pulumi import aws:rds/snapshotCopy:SnapshotCopy example my-snapshot

Properties

Link copied to clipboard
val allocatedStorage: Output<Int>

Specifies the allocated storage size in gigabytes (GB).

Link copied to clipboard

Specifies the name of the Availability Zone the DB instance was located in at the time of the DB snapshot.

Link copied to clipboard
val copyTags: Output<Boolean>?

Whether to copy existing tags. Defaults to false.

Link copied to clipboard
val dbSnapshotArn: Output<String>

The Amazon Resource Name (ARN) for the DB snapshot.

Link copied to clipboard

The Destination region to place snapshot copy.

Link copied to clipboard
val encrypted: Output<Boolean>

Specifies whether the DB snapshot is encrypted.

Link copied to clipboard
val engine: Output<String>

Specifies the name of the database engine.

Link copied to clipboard
val engineVersion: Output<String>

Specifies the version of the database engine.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val iops: Output<Int>

Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.

Link copied to clipboard
val kmsKeyId: Output<String>?

KMS key ID.

Link copied to clipboard
val licenseModel: Output<String>

License model information for the restored DB instance.

Link copied to clipboard
val optionGroupName: Output<String>

The name of an option group to associate with the copy of the snapshot.

Link copied to clipboard
val port: Output<Int>
Link copied to clipboard
val presignedUrl: Output<String>?

he URL that contains a Signature Version 4 signed request.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val snapshotType: Output<String>
Link copied to clipboard

Snapshot identifier of the source snapshot.

Link copied to clipboard
val sourceRegion: Output<String>

The region that the DB snapshot was created in or copied from.

Link copied to clipboard
val storageType: Output<String>

Specifies the storage type associated with DB snapshot.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard

The external custom Availability Zone.

Link copied to clipboard

The Identifier for the snapshot.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val vpcId: Output<String>

Provides the VPC ID associated with the DB snapshot.