import * as core from "@terrascript/core"; export interface DbSnapshotArgs extends core.ResourceArgs { /** * (Required) The DB Instance Identifier from which to take the snapshot. */ dbInstanceIdentifier: string | core.StringOut; /** * (Required) The Identifier for the snapshot. */ dbSnapshotIdentifier: 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; } export class DbSnapshot 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; /** * (Required) The DB Instance Identifier from which to take the snapshot. */ @core.attr(String) public dbInstanceIdentifier!: string | core.StringOut; /** * The Amazon Resource Name (ARN) for the DB snapshot. */ @core.attr(String, { computed: true }) public dbSnapshotArn!: string | core.StringOut; /** * (Required) The Identifier for the snapshot. */ @core.attr(String) public dbSnapshotIdentifier!: 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; @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; /** * The ARN for the KMS encryption key. */ @core.attr(String, { computed: true }) 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; @core.attr(String, { computed: true }) public snapshotType!: string | core.StringOut; /** * The DB snapshot Arn that the DB snapshot was copied from. It only has value in case of cross custome * r or cross region copy. */ @core.attr(String, { computed: true }) 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 status of this DB snapshot. */ @core.attr(String, { computed: true }) public status!: 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; /** * Provides the VPC ID associated with the DB snapshot. */ @core.attr(String, { computed: true }) public vpcId!: string | core.StringOut; constructor(name: string, args?: DbSnapshotArgs) { super(name, "aws_db_snapshot", args); } public override getNamespace(): string { return "aws_rds"; } }