import * as core from "@terrascript/core"; export interface SnapshotArgs extends core.ResourceArgs { /** * (Optional) A description of what the snapshot is. */ description?: string | core.StringOut; /** * (Optional) The Amazon Resource Name (ARN) of the Outpost on which to create a local snapshot. */ outpostArn?: string | core.StringOut; /** * (Optional) Indicates whether to permanently restore an archived snapshot. */ permanentRestore?: boolean | core.BooleanOut; /** * (Optional) The name of the storage tier. Valid values are `archive` and `standard`. Default value is * standard`. */ storageTier?: string | core.StringOut; /** * (Optional) A map of tags to assign to the snapshot. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ 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) Specifies the number of days for which to temporarily restore an archived snapshot. Requi * red for temporary restores only. The snapshot will be automatically re-archived after this period. */ temporaryRestoreDays?: number | core.NumberOut; /** * (Required) The Volume ID of which to make a snapshot. */ volumeId: string | core.StringOut; } export class Snapshot extends core.Resource { /** * Amazon Resource Name (ARN) of the EBS Snapshot. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * The data encryption key identifier for the snapshot. */ @core.attr(String, { computed: true }) public dataEncryptionKeyId!: string | core.StringOut; /** * (Optional) A description of what the snapshot is. */ @core.attr(String) public description?: string | core.StringOut; /** * Whether the snapshot is encrypted. */ @core.attr(Boolean, { computed: true }) public encrypted!: boolean | core.BooleanOut; /** * The snapshot ID (e.g., snap-59fcb34e). */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The ARN for the KMS encryption key. */ @core.attr(String, { computed: true }) public kmsKeyId!: string | core.StringOut; /** * (Optional) The Amazon Resource Name (ARN) of the Outpost on which to create a local snapshot. */ @core.attr(String) public outpostArn?: string | core.StringOut; /** * Value from an Amazon-maintained list (`amazon`, `aws-marketplace`, `microsoft`) of snapshot owners. */ @core.attr(String, { computed: true }) public ownerAlias!: string | core.StringOut; /** * The AWS account ID of the EBS snapshot owner. */ @core.attr(String, { computed: true }) public ownerId!: string | core.StringOut; /** * (Optional) Indicates whether to permanently restore an archived snapshot. */ @core.attr(Boolean) public permanentRestore?: boolean | core.BooleanOut; /** * (Optional) The name of the storage tier. Valid values are `archive` and `standard`. Default value is * standard`. */ @core.attr(String, { computed: true }) public storageTier?: string | core.StringOut; /** * (Optional) A map of tags to assign to the snapshot. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ @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) Specifies the number of days for which to temporarily restore an archived snapshot. Requi * red for temporary restores only. The snapshot will be automatically re-archived after this period. */ @core.attr(Number) public temporaryRestoreDays?: number | core.NumberOut; /** * (Required) The Volume ID of which to make a snapshot. */ @core.attr(String) public volumeId!: string | core.StringOut; /** * The size of the drive in GiBs. */ @core.attr(Number, { computed: true }) public volumeSize!: number | core.NumberOut; constructor(name: string, args?: SnapshotArgs) { super(name, "aws_ebs_snapshot", args); } public override getNamespace(): string { return "aws_ebs"; } }