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 DsVolumeArgs { /** * (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 */ mostRecent?: boolean | core.BooleanOut; /** * A map of tags for the resource. */ tags?: core.Map | core.MapOut; } export class DsVolume extends core.Data { /** * The volume ARN (e.g., arn:aws:ec2:us-east-1:0123456789012:volume/vol-59fcb34e). */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * The AZ where the EBS volume exists. */ @core.attr(String, { computed: true }) public availabilityZone!: string | core.StringOut; /** * Whether the disk 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 volume ID (e.g., vol-59fcb34e). */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The amount of IOPS for the disk. */ @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; /** * (Optional) If more than one result is returned, use the most */ @core.attr(Boolean) public mostRecent?: boolean | core.BooleanOut; /** * (Optional) Specifies whether Amazon EBS Multi-Attach is enabled. */ @core.attr(Boolean, { computed: true }) public multiAttachEnabled!: boolean | core.BooleanOut; /** * The Amazon Resource Name (ARN) of the Outpost. */ @core.attr(String, { computed: true }) public outpostArn!: string | core.StringOut; /** * The size of the drive in GiBs. */ @core.attr(Number, { computed: true }) public size!: number | core.NumberOut; /** * The snapshot_id the EBS volume is based off. */ @core.attr(String, { computed: true }) public snapshotId!: string | core.StringOut; /** * A map of tags for the resource. */ @core.attr(String, { computed: true, kind: "map" }) public tags?: core.Map | core.MapOut; /** * The throughput that the volume supports, in MiB/s. */ @core.attr(Number, { computed: true }) public throughput!: number | core.NumberOut; /** * The volume ID (e.g., vol-59fcb34e). */ @core.attr(String, { computed: true }) public volumeId!: string | core.StringOut; /** * The type of EBS volume. */ @core.attr(String, { computed: true }) public volumeType!: string | core.StringOut; constructor(name: string, args?: DsVolumeArgs) { super(name, "aws_ebs_volume", args); } public override getNamespace(): string { return "aws_ebs"; } }