import * as core from "@terrascript/core"; export interface DsDbSnapshotArgs { /** * (Optional) Returns the list of snapshots created by the specific db_instance */ dbInstanceIdentifier?: string | core.StringOut; /** * (Optional) Returns information on a specific snapshot_id. */ dbSnapshotIdentifier?: string | core.StringOut; /** * (Optional) Set this value to true to include manual DB snapshots that are public and can be */ includePublic?: boolean | core.BooleanOut; /** * (Optional) Set this value to true to include shared manual DB snapshots from other */ includeShared?: boolean | core.BooleanOut; /** * (Optional) If more than one result is returned, use the most */ mostRecent?: boolean | core.BooleanOut; /** * (Optional) The type of snapshots to be returned. If you don't specify a SnapshotType */ snapshotType?: string | core.StringOut; } export class DsDbSnapshot extends core.Data { /** * 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) Returns the list of snapshots created by the specific db_instance */ @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; /** * (Optional) Returns information on a specific snapshot_id. */ @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; /** * The snapshot ID. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) Set this value to true to include manual DB snapshots that are public and can be */ @core.attr(Boolean) public includePublic?: boolean | core.BooleanOut; /** * (Optional) Set this value to true to include shared manual DB snapshots from other */ @core.attr(Boolean) public includeShared?: boolean | core.BooleanOut; /** * 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; /** * (Optional) If more than one result is returned, use the most */ @core.attr(Boolean) public mostRecent?: boolean | core.BooleanOut; /** * 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; /** * Provides the time when the snapshot was taken, in Universal Coordinated Time (UTC). */ @core.attr(String, { computed: true }) public snapshotCreateTime!: string | core.StringOut; /** * (Optional) The type of snapshots to be returned. If you don't specify a SnapshotType */ @core.attr(String) 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; /** * Specifies the ID of the VPC associated with the DB snapshot. */ @core.attr(String, { computed: true }) public vpcId!: string | core.StringOut; constructor(name: string, args?: DsDbSnapshotArgs) { super(name, "aws_db_snapshot", args); } public override getNamespace(): string { return "aws_rds"; } }