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 DsHostArgs { /** * (Optional) Configuration block. Detailed below. */ filter?: core.Array | core.ArrayOut; /** * (Optional) The ID of the Dedicated Host. */ hostId?: string | core.StringOut; tags?: core.Map | core.MapOut; } export class DsHost extends core.Data { /** * The ARN of the Dedicated Host. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * Whether auto-placement is on or off. */ @core.attr(String, { computed: true }) public autoPlacement!: string | core.StringOut; /** * The Availability Zone of the Dedicated Host. */ @core.attr(String, { computed: true }) public availabilityZone!: string | core.StringOut; /** * The number of cores on the Dedicated Host. */ @core.attr(Number, { computed: true }) public cores!: number | core.NumberOut; /** * (Optional) Configuration block. Detailed below. */ @core.attr(Filter, { kind: "array" }) public filter?: core.Array | core.ArrayOut; /** * (Optional) The ID of the Dedicated Host. */ @core.attr(String, { computed: true }) public hostId?: string | core.StringOut; /** * Indicates whether host recovery is enabled or disabled for the Dedicated Host. */ @core.attr(String, { computed: true }) public hostRecovery!: string | core.StringOut; /** * The ID of the Dedicated Host. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The instance family supported by the Dedicated Host. For example, "m5". */ @core.attr(String, { computed: true }) public instanceFamily!: string | core.StringOut; /** * The instance type supported by the Dedicated Host. For example, "m5.large". If the host supports mul * tiple instance types, no instanceType is returned. */ @core.attr(String, { computed: true }) public instanceType!: string | core.StringOut; /** * The Amazon Resource Name (ARN) of the AWS Outpost on which the Dedicated Host is allocated. */ @core.attr(String, { computed: true }) public outpostArn!: string | core.StringOut; /** * The ID of the AWS account that owns the Dedicated Host. */ @core.attr(String, { computed: true }) public ownerId!: string | core.StringOut; /** * The number of sockets on the Dedicated Host. */ @core.attr(Number, { computed: true }) public sockets!: number | core.NumberOut; @core.attr(String, { computed: true, kind: "map" }) public tags?: core.Map | core.MapOut; /** * The total number of vCPUs on the Dedicated Host. */ @core.attr(Number, { computed: true }) public totalVcpus!: number | core.NumberOut; constructor(name: string, args?: DsHostArgs) { super(name, "aws_ec2_host", args); } public override getNamespace(): string { return "aws_ec2"; } }