import * as core from "@terrascript/core"; export interface FilterArgs extends core.SchemaArgs { name: string | core.StringOut; values: core.Array | core.ArrayOut; } export class Filter extends core.Schema { @core.attr(String) public name!: string | core.StringOut; @core.attr(String, { kind: "array" }) public values!: core.Array | core.ArrayOut; } export interface DsSnapshotArgs { /** * (Optional) One or more name/value pairs to filter off of. There are */ filter?: core.Array | core.ArrayOut; /** * (Optional) If more than one result is returned, use the most recent snapshot. */ mostRecent?: boolean | core.BooleanOut; /** * (Optional) Returns the snapshots owned by the specified owner id. Multiple owners can be specified. */ owners?: core.Array | core.ArrayOut; /** * (Optional) One or more AWS accounts IDs that can create volumes from the snapshot. */ restorableByUserIds?: core.Array | core.ArrayOut; /** * (Optional) Returns information on a specific snapshot_id. */ snapshotIds?: core.Array | core.ArrayOut; /** * A map of tags for the resource. */ tags?: core.Map | core.MapOut; } export class DsSnapshot extends core.Data { /** * 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; /** * A description for the snapshot */ @core.attr(String, { computed: true }) public description!: string | core.StringOut; /** * Whether the snapshot is encrypted. */ @core.attr(Boolean, { computed: true }) public encrypted!: boolean | core.BooleanOut; /** * (Optional) One or more name/value pairs to filter off of. There are */ @core.attr(Filter, { kind: "array" }) public filter?: core.Array | core.ArrayOut; /** * 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) If more than one result is returned, use the most recent snapshot. */ @core.attr(Boolean) public mostRecent?: boolean | core.BooleanOut; /** * The ARN of the Outpost on which the snapshot is stored. */ @core.attr(String, { computed: true }) 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) Returns the snapshots owned by the specified owner id. Multiple owners can be specified. */ @core.attr(String, { kind: "array" }) public owners?: core.Array | core.ArrayOut; /** * (Optional) One or more AWS accounts IDs that can create volumes from the snapshot. */ @core.attr(String, { kind: "array" }) public restorableByUserIds?: | core.Array | core.ArrayOut; /** * The snapshot ID (e.g., snap-59fcb34e). */ @core.attr(String, { computed: true }) public snapshotId!: string | core.StringOut; /** * (Optional) Returns information on a specific snapshot_id. */ @core.attr(String, { kind: "array" }) public snapshotIds?: core.Array | core.ArrayOut; /** * The snapshot state. */ @core.attr(String, { computed: true }) public state!: string | core.StringOut; /** * The storage tier in which the snapshot is stored. */ @core.attr(String, { computed: true }) public storageTier!: string | core.StringOut; /** * A map of tags for the resource. */ @core.attr(String, { computed: true, kind: "map" }) public tags?: core.Map | core.MapOut; /** * The volume ID (e.g., vol-59fcb34e). */ @core.attr(String, { computed: true }) 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?: DsSnapshotArgs) { super(name, "aws_ebs_snapshot", args); } public override getNamespace(): string { return "aws_ebs"; } }