import * as core from "@terrascript/core"; export interface DbSnapshotCopyArgs extends core.ResourceArgs { /** * (Optional) Whether to copy existing tags. Defaults to `false`. */ copyTags?: boolean | core.BooleanOut; /** * (Optional) The Destination region to place snapshot copy. */ destinationRegion?: string | core.StringOut; /** * (Optional) KMS key ID. */ kmsKeyId?: string | core.StringOut; /** * Provides the option group name for the DB snapshot. */ optionGroupName?: string | core.StringOut; /** * (Optional) he URL that contains a Signature Version 4 signed request. */ presignedUrl?: string | core.StringOut; /** * (Required) Snapshot identifier of the source snapshot. */ sourceDbSnapshotIdentifier: string | core.StringOut; /** * (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-block) present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; /** * (Optional) The external custom Availability Zone. */ targetCustomAvailabilityZone?: string | core.StringOut; /** * (Required) The Identifier for the snapshot. */ targetDbSnapshotIdentifier: string | core.StringOut; } export class DbSnapshotCopy extends core.Resource { /** * Specifies the allocated storage size in gigabytes (GB). */ @core.attr(Number, { computed: true }) public allocatedStorage!: number | core.NumberOut; /** * Specifies the name of the Availability Zone the DB instance was located in at the time of the DB sna * pshot. */ @core.attr(String, { computed: true }) public availabilityZone!: string | core.StringOut; /** * (Optional) Whether to copy existing tags. Defaults to `false`. */ @core.attr(Boolean) public copyTags?: boolean | core.BooleanOut; /** * The Amazon Resource Name (ARN) for the DB snapshot. */ @core.attr(String, { computed: true }) public dbSnapshotArn!: string | core.StringOut; /** * (Optional) The Destination region to place snapshot copy. */ @core.attr(String) public destinationRegion?: string | core.StringOut; /** * Specifies whether the DB snapshot is encrypted. */ @core.attr(Boolean, { computed: true }) public encrypted!: boolean | core.BooleanOut; /** * Specifies the name of the database engine. */ @core.attr(String, { computed: true }) public engine!: string | core.StringOut; /** * Specifies the version of the database engine. */ @core.attr(String, { computed: true }) public engineVersion!: string | core.StringOut; /** * Snapshot Identifier. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of t * he snapshot. */ @core.attr(Number, { computed: true }) public iops!: number | core.NumberOut; /** * (Optional) KMS key ID. */ @core.attr(String) public kmsKeyId?: string | core.StringOut; /** * License model information for the restored DB instance. */ @core.attr(String, { computed: true }) public licenseModel!: string | core.StringOut; /** * Provides the option group name for the DB snapshot. */ @core.attr(String, { computed: true }) public optionGroupName?: string | core.StringOut; @core.attr(Number, { computed: true }) public port!: number | core.NumberOut; /** * (Optional) he URL that contains a Signature Version 4 signed request. */ @core.attr(String) public presignedUrl?: string | core.StringOut; @core.attr(String, { computed: true }) public snapshotType!: string | core.StringOut; /** * (Required) Snapshot identifier of the source snapshot. */ @core.attr(String) public sourceDbSnapshotIdentifier!: string | core.StringOut; /** * The region that the DB snapshot was created in or copied from. */ @core.attr(String, { computed: true }) public sourceRegion!: string | core.StringOut; /** * Specifies the storage type associated with DB snapshot. */ @core.attr(String, { computed: true }) public storageType!: string | core.StringOut; /** * (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-block) present, tags with matching keys will overwrite those defined at the provider-level. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; /** * (Optional) The external custom Availability Zone. */ @core.attr(String) public targetCustomAvailabilityZone?: string | core.StringOut; /** * (Required) The Identifier for the snapshot. */ @core.attr(String) public targetDbSnapshotIdentifier!: string | core.StringOut; /** * Provides the VPC ID associated with the DB snapshot. */ @core.attr(String, { computed: true }) public vpcId!: string | core.StringOut; constructor(name: string, args?: DbSnapshotCopyArgs) { super(name, "aws_db_snapshot_copy", args); } public override getNamespace(): string { return "aws_rds"; } }