import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Use this data source to get information about an EC2 Dedicated Host. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const testDedicatedHost = new aws.ec2.DedicatedHost("test", { * instanceType: "c5.18xlarge", * availabilityZone: "us-west-2a", * }); * const test = aws.ec2.getDedicatedHostOutput({ * hostId: testDedicatedHost.id, * }); * ``` * * ### Filter Example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const test = aws.ec2.getDedicatedHost({ * filters: [{ * name: "instance-type", * values: ["c5.18xlarge"], * }], * }); * ``` */ export declare function getDedicatedHost(args?: GetDedicatedHostArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getDedicatedHost. */ export interface GetDedicatedHostArgs { /** * Configuration block. Detailed below. */ filters?: inputs.ec2.GetDedicatedHostFilter[]; /** * ID of the Dedicated Host. * * The arguments of this data source act as filters for querying the available EC2 Hosts in the current region. * The given filters must match exactly one host whose data will be exported as attributes. */ hostId?: string; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: string; tags?: { [key: string]: string; }; } /** * A collection of values returned by getDedicatedHost. */ export interface GetDedicatedHostResult { /** * Time that the Dedicated Host was allocated, in RFC3339 format. */ readonly allocationTime: string; /** * Whether the Dedicated Host supports multiple instance types of the same instance family. Valid values: `on`, `off`. */ readonly allowsMultipleInstanceTypes: string; /** * ARN of the Dedicated Host. */ readonly arn: string; /** * The ID of the Outpost hardware asset on which the Dedicated Host is allocated. */ readonly assetId: string; /** * Whether auto-placement is on or off. */ readonly autoPlacement: string; /** * Availability Zone of the Dedicated Host. */ readonly availabilityZone: string; /** * AZ ID of the Availability Zone in which the Dedicated Host is allocated (e.g., `use1-az1`). */ readonly availabilityZoneId: string; /** * The number of instances that can be launched onto the Dedicated Host based on the host's available capacity. */ readonly availableCapacities: outputs.ec2.GetDedicatedHostAvailableCapacity[]; /** * Number of cores on the Dedicated Host. */ readonly cores: number; readonly filters?: outputs.ec2.GetDedicatedHostFilter[]; readonly hostId: string; /** * Whether host maintenance is enabled or disabled for the Dedicated Host. Valid values: `on`, `off`. */ readonly hostMaintenance: string; /** * Whether host recovery is enabled or disabled for the Dedicated Host. */ readonly hostRecovery: string; /** * The reservation ID of the Dedicated Host. */ readonly hostReservationId: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Instance family supported by the Dedicated Host. For example, "m5". */ readonly instanceFamily: string; /** * The instance type of the running instance. */ readonly instanceType: string; /** * The instances running on the Dedicated Host. See `instances` below. */ readonly instances: outputs.ec2.GetDedicatedHostInstance[]; /** * Whether the Dedicated Host is in a host resource group. */ readonly memberOfServiceLinkedResourceGroup: boolean; /** * ARN of the AWS Outpost on which the Dedicated Host is allocated. */ readonly outpostArn: string; /** * The ID of the AWS account that owns the instance. */ readonly ownerId: string; readonly region: string; /** * Time that the Dedicated Host was released, in RFC3339 format. */ readonly releaseTime: string; /** * Number of sockets on the Dedicated Host. */ readonly sockets: number; /** * Allocation state of the Dedicated Host. Valid values: `available`, `under-assessment`, `permanent-failure`, `released`, `released-permanent-failure`, `pending`. */ readonly state: string; readonly tags: { [key: string]: string; }; /** * Total number of vCPUs on the Dedicated Host. */ readonly totalVcpus: number; } /** * Use this data source to get information about an EC2 Dedicated Host. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const testDedicatedHost = new aws.ec2.DedicatedHost("test", { * instanceType: "c5.18xlarge", * availabilityZone: "us-west-2a", * }); * const test = aws.ec2.getDedicatedHostOutput({ * hostId: testDedicatedHost.id, * }); * ``` * * ### Filter Example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const test = aws.ec2.getDedicatedHost({ * filters: [{ * name: "instance-type", * values: ["c5.18xlarge"], * }], * }); * ``` */ export declare function getDedicatedHostOutput(args?: GetDedicatedHostOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getDedicatedHost. */ export interface GetDedicatedHostOutputArgs { /** * Configuration block. Detailed below. */ filters?: pulumi.Input[] | undefined>; /** * ID of the Dedicated Host. * * The arguments of this data source act as filters for querying the available EC2 Hosts in the current region. * The given filters must match exactly one host whose data will be exported as attributes. */ hostId?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; } //# sourceMappingURL=getDedicatedHost.d.ts.map