import * as core from "@terrascript/core"; export interface DbClusterSnapshotArgs extends core.ResourceArgs { /** * (Required) The DB Cluster Identifier from which to take the snapshot. */ dbClusterIdentifier: string | core.StringOut; /** * (Required) The Identifier for the snapshot. */ dbClusterSnapshotIdentifier: string | core.StringOut; /** * (Optional) A map of tags to assign to the DB cluster. If configured with a provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block) present, tags with matching keys will overwrite those defined at the provider-l * evel. */ 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 DbClusterSnapshot extends core.Resource { /** * Specifies the allocated storage size in gigabytes (GB). */ @core.attr(Number, { computed: true }) public allocatedStorage!: number | core.NumberOut; /** * List of EC2 Availability Zones that instances in the DB cluster snapshot can be restored in. */ @core.attr(String, { computed: true, kind: "array" }) public availabilityZones!: core.Array | core.ArrayOut; /** * (Required) The DB Cluster Identifier from which to take the snapshot. */ @core.attr(String) public dbClusterIdentifier!: string | core.StringOut; /** * The Amazon Resource Name (ARN) for the DB Cluster Snapshot. */ @core.attr(String, { computed: true }) public dbClusterSnapshotArn!: string | core.StringOut; /** * (Required) The Identifier for the snapshot. */ @core.attr(String) public dbClusterSnapshotIdentifier!: string | core.StringOut; /** * Specifies the name of the database engine. */ @core.attr(String, { computed: true }) public engine!: string | core.StringOut; /** * Version of the database engine for this DB cluster snapshot. */ @core.attr(String, { computed: true }) public engineVersion!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * If storage_encrypted is true, the AWS KMS key identifier for the encrypted DB cluster snapshot. */ @core.attr(String, { computed: true }) public kmsKeyId!: string | core.StringOut; /** * License model information for the restored DB cluster. */ @core.attr(String, { computed: true }) public licenseModel!: string | core.StringOut; /** * Port that the DB cluster was listening on at the time of the snapshot. */ @core.attr(Number, { computed: true }) public port!: number | core.NumberOut; @core.attr(String, { computed: true }) public snapshotType!: string | core.StringOut; @core.attr(String, { computed: true }) public sourceDbClusterSnapshotArn!: string | core.StringOut; /** * The status of this DB Cluster Snapshot. */ @core.attr(String, { computed: true }) public status!: string | core.StringOut; /** * Specifies whether the DB cluster snapshot is encrypted. */ @core.attr(Boolean, { computed: true }) public storageEncrypted!: boolean | core.BooleanOut; /** * (Optional) A map of tags to assign to the DB cluster. If configured with a provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block) present, tags with matching keys will overwrite those defined at the provider-l * evel. */ @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; /** * The VPC ID associated with the DB cluster snapshot. */ @core.attr(String, { computed: true }) public vpcId!: string | core.StringOut; constructor(name: string, args?: DbClusterSnapshotArgs) { super(name, "aws_db_cluster_snapshot", args); } public override getNamespace(): string { return "aws_rds"; } }