import * as core from "@terrascript/core"; export interface ClusterSnapshotArgs extends core.ResourceArgs { /** * (Required) The DocDB Cluster Identifier from which to take the snapshot. */ dbClusterIdentifier: string | core.StringOut; /** * (Required) The Identifier for the snapshot. */ dbClusterSnapshotIdentifier: string | core.StringOut; } export class ClusterSnapshot extends core.Resource { /** * List of EC2 Availability Zones that instances in the DocDB cluster snapshot can be restored in. */ @core.attr(String, { computed: true, kind: "array" }) public availabilityZones!: core.Array | core.ArrayOut; /** * (Required) The DocDB Cluster Identifier from which to take the snapshot. */ @core.attr(String) public dbClusterIdentifier!: string | core.StringOut; /** * The Amazon Resource Name (ARN) for the DocDB 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 DocDB 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 DocDB cluster snapshot. */ @core.attr(String, { computed: true }) public kmsKeyId!: string | core.StringOut; /** * Port that the DocDB 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 DocDB Cluster Snapshot. */ @core.attr(String, { computed: true }) public status!: string | core.StringOut; /** * Specifies whether the DocDB cluster snapshot is encrypted. */ @core.attr(Boolean, { computed: true }) public storageEncrypted!: boolean | core.BooleanOut; /** * The VPC ID associated with the DocDB cluster snapshot. */ @core.attr(String, { computed: true }) public vpcId!: string | core.StringOut; constructor(name: string, args?: ClusterSnapshotArgs) { super(name, "aws_docdb_cluster_snapshot", args); } public override getNamespace(): string { return "aws_docdb"; } }