1. Packages
  2. Packages
  3. AWS
  4. API Docs
  5. ec2
  6. getDedicatedHost
Viewing docs for AWS v7.34.0
published on Tuesday, Jun 16, 2026 by Pulumi
aws logo
Viewing docs for AWS v7.34.0
published on Tuesday, Jun 16, 2026 by Pulumi

    Use this data source to get information about an EC2 Dedicated Host.

    Example Usage

    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,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    test_dedicated_host = aws.ec2.DedicatedHost("test",
        instance_type="c5.18xlarge",
        availability_zone="us-west-2a")
    test = aws.ec2.get_dedicated_host_output(host_id=test_dedicated_host.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ec2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		testDedicatedHost, err := ec2.NewDedicatedHost(ctx, "test", &ec2.DedicatedHostArgs{
    			InstanceType:     pulumi.String("c5.18xlarge"),
    			AvailabilityZone: pulumi.String("us-west-2a"),
    		})
    		if err != nil {
    			return err
    		}
    		_ = ec2.LookupDedicatedHostOutput(ctx, ec2.GetDedicatedHostOutputArgs{
    			HostId: testDedicatedHost.ID(),
    		}, nil)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var testDedicatedHost = new Aws.Ec2.DedicatedHost("test", new()
        {
            InstanceType = "c5.18xlarge",
            AvailabilityZone = "us-west-2a",
        });
    
        var test = Aws.Ec2.GetDedicatedHost.Invoke(new()
        {
            HostId = testDedicatedHost.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.ec2.DedicatedHost;
    import com.pulumi.aws.ec2.DedicatedHostArgs;
    import com.pulumi.aws.ec2.Ec2Functions;
    import com.pulumi.aws.ec2.inputs.GetDedicatedHostArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var testDedicatedHost = new DedicatedHost("testDedicatedHost", DedicatedHostArgs.builder()
                .instanceType("c5.18xlarge")
                .availabilityZone("us-west-2a")
                .build());
    
            final var test = Ec2Functions.getDedicatedHost(GetDedicatedHostArgs.builder()
                .hostId(testDedicatedHost.id())
                .build());
    
        }
    }
    
    resources:
      testDedicatedHost:
        type: aws:ec2:DedicatedHost
        name: test
        properties:
          instanceType: c5.18xlarge
          availabilityZone: us-west-2a
    variables:
      test:
        fn::invoke:
          function: aws:ec2:getDedicatedHost
          arguments:
            hostId: ${testDedicatedHost.id}
    
    pulumi {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    data "aws_ec2_getdedicatedhost" "test" {
      host_id = aws_ec2_dedicatedhost.test.id
    }
    
    resource "aws_ec2_dedicatedhost" "test" {
      instance_type     = "c5.18xlarge"
      availability_zone = "us-west-2a"
    }
    

    Filter Example

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const test = aws.ec2.getDedicatedHost({
        filters: [{
            name: "instance-type",
            values: ["c5.18xlarge"],
        }],
    });
    
    import pulumi
    import pulumi_aws as aws
    
    test = aws.ec2.get_dedicated_host(filters=[{
        "name": "instance-type",
        "values": ["c5.18xlarge"],
    }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ec2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ec2.LookupDedicatedHost(ctx, &ec2.LookupDedicatedHostArgs{
    			Filters: []ec2.GetDedicatedHostFilter{
    				{
    					Name: "instance-type",
    					Values: []string{
    						"c5.18xlarge",
    					},
    				},
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Aws.Ec2.GetDedicatedHost.Invoke(new()
        {
            Filters = new[]
            {
                new Aws.Ec2.Inputs.GetDedicatedHostFilterInputArgs
                {
                    Name = "instance-type",
                    Values = new[]
                    {
                        "c5.18xlarge",
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.ec2.Ec2Functions;
    import com.pulumi.aws.ec2.inputs.GetDedicatedHostArgs;
    import com.pulumi.aws.ec2.inputs.GetDedicatedHostFilterArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var test = Ec2Functions.getDedicatedHost(GetDedicatedHostArgs.builder()
                .filters(GetDedicatedHostFilterArgs.builder()
                    .name("instance-type")
                    .values("c5.18xlarge")
                    .build())
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: aws:ec2:getDedicatedHost
          arguments:
            filters:
              - name: instance-type
                values:
                  - c5.18xlarge
    
    pulumi {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    data "aws_ec2_getdedicatedhost" "test" {
      filters {
        name   = "instance-type"
        values = ["c5.18xlarge"]
      }
    }
    

    Using getDedicatedHost

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getDedicatedHost(args: GetDedicatedHostArgs, opts?: InvokeOptions): Promise<GetDedicatedHostResult>
    function getDedicatedHostOutput(args: GetDedicatedHostOutputArgs, opts?: InvokeOptions): Output<GetDedicatedHostResult>
    def get_dedicated_host(filters: Optional[Sequence[GetDedicatedHostFilter]] = None,
                           host_id: Optional[str] = None,
                           region: Optional[str] = None,
                           tags: Optional[Mapping[str, str]] = None,
                           opts: Optional[InvokeOptions] = None) -> GetDedicatedHostResult
    def get_dedicated_host_output(filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetDedicatedHostFilterArgs]]]] = None,
                           host_id: pulumi.Input[Optional[str]] = None,
                           region: pulumi.Input[Optional[str]] = None,
                           tags: pulumi.Input[Optional[Mapping[str, pulumi.Input[str]]]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetDedicatedHostResult]
    func LookupDedicatedHost(ctx *Context, args *LookupDedicatedHostArgs, opts ...InvokeOption) (*LookupDedicatedHostResult, error)
    func LookupDedicatedHostOutput(ctx *Context, args *LookupDedicatedHostOutputArgs, opts ...InvokeOption) LookupDedicatedHostResultOutput

    > Note: This function is named LookupDedicatedHost in the Go SDK.

    public static class GetDedicatedHost 
    {
        public static Task<GetDedicatedHostResult> InvokeAsync(GetDedicatedHostArgs args, InvokeOptions? opts = null)
        public static Output<GetDedicatedHostResult> Invoke(GetDedicatedHostInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDedicatedHostResult> getDedicatedHost(GetDedicatedHostArgs args, InvokeOptions options)
    public static Output<GetDedicatedHostResult> getDedicatedHost(GetDedicatedHostArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws:ec2/getDedicatedHost:getDedicatedHost
      arguments:
        # arguments dictionary
    data "aws_ec2_getdedicatedhost" "name" {
        # arguments
    }

    The following arguments are supported:

    Filters List<GetDedicatedHostFilter>
    Configuration block. Detailed below.
    HostId string

    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.

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags Dictionary<string, string>
    Filters []GetDedicatedHostFilter
    Configuration block. Detailed below.
    HostId string

    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.

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags map[string]string
    filters list(object)
    Configuration block. Detailed below.
    host_id string

    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.

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags map(string)
    filters List<GetDedicatedHostFilter>
    Configuration block. Detailed below.
    hostId String

    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.

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String,String>
    filters GetDedicatedHostFilter[]
    Configuration block. Detailed below.
    hostId string

    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.

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags {[key: string]: string}
    filters Sequence[GetDedicatedHostFilter]
    Configuration block. Detailed below.
    host_id str

    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.

    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Mapping[str, str]
    filters List<Property Map>
    Configuration block. Detailed below.
    hostId String

    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.

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String>

    getDedicatedHost Result

    The following output properties are available:

    AllocationTime string
    Time that the Dedicated Host was allocated, in RFC3339 format.
    AllowsMultipleInstanceTypes string
    Whether the Dedicated Host supports multiple instance types of the same instance family. Valid values: on, off.
    Arn string
    ARN of the Dedicated Host.
    AssetId string
    The ID of the Outpost hardware asset on which the Dedicated Host is allocated.
    AutoPlacement string
    Whether auto-placement is on or off.
    AvailabilityZone string
    Availability Zone of the Dedicated Host.
    AvailabilityZoneId string
    AZ ID of the Availability Zone in which the Dedicated Host is allocated (e.g., use1-az1).
    AvailableCapacities List<GetDedicatedHostAvailableCapacity>
    The number of instances that can be launched onto the Dedicated Host based on the host's available capacity.
    Cores int
    Number of cores on the Dedicated Host.
    HostId string
    HostMaintenance string
    Whether host maintenance is enabled or disabled for the Dedicated Host. Valid values: on, off.
    HostRecovery string
    Whether host recovery is enabled or disabled for the Dedicated Host.
    HostReservationId string
    The reservation ID of the Dedicated Host.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceFamily string
    Instance family supported by the Dedicated Host. For example, "m5".
    InstanceType string
    The instance type of the running instance.
    Instances List<GetDedicatedHostInstance>
    The instances running on the Dedicated Host. See instances below.
    MemberOfServiceLinkedResourceGroup bool
    Whether the Dedicated Host is in a host resource group.
    OutpostArn string
    ARN of the AWS Outpost on which the Dedicated Host is allocated.
    OwnerId string
    The ID of the AWS account that owns the instance.
    Region string
    ReleaseTime string
    Time that the Dedicated Host was released, in RFC3339 format.
    Sockets int
    Number of sockets on the Dedicated Host.
    State string
    Allocation state of the Dedicated Host. Valid values: available, under-assessment, permanent-failure, released, released-permanent-failure, pending.
    Tags Dictionary<string, string>
    TotalVcpus int
    Total number of vCPUs on the Dedicated Host.
    Filters List<GetDedicatedHostFilter>
    AllocationTime string
    Time that the Dedicated Host was allocated, in RFC3339 format.
    AllowsMultipleInstanceTypes string
    Whether the Dedicated Host supports multiple instance types of the same instance family. Valid values: on, off.
    Arn string
    ARN of the Dedicated Host.
    AssetId string
    The ID of the Outpost hardware asset on which the Dedicated Host is allocated.
    AutoPlacement string
    Whether auto-placement is on or off.
    AvailabilityZone string
    Availability Zone of the Dedicated Host.
    AvailabilityZoneId string
    AZ ID of the Availability Zone in which the Dedicated Host is allocated (e.g., use1-az1).
    AvailableCapacities []GetDedicatedHostAvailableCapacity
    The number of instances that can be launched onto the Dedicated Host based on the host's available capacity.
    Cores int
    Number of cores on the Dedicated Host.
    HostId string
    HostMaintenance string
    Whether host maintenance is enabled or disabled for the Dedicated Host. Valid values: on, off.
    HostRecovery string
    Whether host recovery is enabled or disabled for the Dedicated Host.
    HostReservationId string
    The reservation ID of the Dedicated Host.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceFamily string
    Instance family supported by the Dedicated Host. For example, "m5".
    InstanceType string
    The instance type of the running instance.
    Instances []GetDedicatedHostInstance
    The instances running on the Dedicated Host. See instances below.
    MemberOfServiceLinkedResourceGroup bool
    Whether the Dedicated Host is in a host resource group.
    OutpostArn string
    ARN of the AWS Outpost on which the Dedicated Host is allocated.
    OwnerId string
    The ID of the AWS account that owns the instance.
    Region string
    ReleaseTime string
    Time that the Dedicated Host was released, in RFC3339 format.
    Sockets int
    Number of sockets on the Dedicated Host.
    State string
    Allocation state of the Dedicated Host. Valid values: available, under-assessment, permanent-failure, released, released-permanent-failure, pending.
    Tags map[string]string
    TotalVcpus int
    Total number of vCPUs on the Dedicated Host.
    Filters []GetDedicatedHostFilter
    allocation_time string
    Time that the Dedicated Host was allocated, in RFC3339 format.
    allows_multiple_instance_types string
    Whether the Dedicated Host supports multiple instance types of the same instance family. Valid values: on, off.
    arn string
    ARN of the Dedicated Host.
    asset_id string
    The ID of the Outpost hardware asset on which the Dedicated Host is allocated.
    auto_placement string
    Whether auto-placement is on or off.
    availability_zone string
    Availability Zone of the Dedicated Host.
    availability_zone_id string
    AZ ID of the Availability Zone in which the Dedicated Host is allocated (e.g., use1-az1).
    available_capacities list(object)
    The number of instances that can be launched onto the Dedicated Host based on the host's available capacity.
    cores number
    Number of cores on the Dedicated Host.
    host_id string
    host_maintenance string
    Whether host maintenance is enabled or disabled for the Dedicated Host. Valid values: on, off.
    host_recovery string
    Whether host recovery is enabled or disabled for the Dedicated Host.
    host_reservation_id string
    The reservation ID of the Dedicated Host.
    id string
    The provider-assigned unique ID for this managed resource.
    instance_family string
    Instance family supported by the Dedicated Host. For example, "m5".
    instance_type string
    The instance type of the running instance.
    instances list(object)
    The instances running on the Dedicated Host. See instances below.
    member_of_service_linked_resource_group bool
    Whether the Dedicated Host is in a host resource group.
    outpost_arn string
    ARN of the AWS Outpost on which the Dedicated Host is allocated.
    owner_id string
    The ID of the AWS account that owns the instance.
    region string
    release_time string
    Time that the Dedicated Host was released, in RFC3339 format.
    sockets number
    Number of sockets on the Dedicated Host.
    state string
    Allocation state of the Dedicated Host. Valid values: available, under-assessment, permanent-failure, released, released-permanent-failure, pending.
    tags map(string)
    total_vcpus number
    Total number of vCPUs on the Dedicated Host.
    filters list(object)
    allocationTime String
    Time that the Dedicated Host was allocated, in RFC3339 format.
    allowsMultipleInstanceTypes String
    Whether the Dedicated Host supports multiple instance types of the same instance family. Valid values: on, off.
    arn String
    ARN of the Dedicated Host.
    assetId String
    The ID of the Outpost hardware asset on which the Dedicated Host is allocated.
    autoPlacement String
    Whether auto-placement is on or off.
    availabilityZone String
    Availability Zone of the Dedicated Host.
    availabilityZoneId String
    AZ ID of the Availability Zone in which the Dedicated Host is allocated (e.g., use1-az1).
    availableCapacities List<GetDedicatedHostAvailableCapacity>
    The number of instances that can be launched onto the Dedicated Host based on the host's available capacity.
    cores Integer
    Number of cores on the Dedicated Host.
    hostId String
    hostMaintenance String
    Whether host maintenance is enabled or disabled for the Dedicated Host. Valid values: on, off.
    hostRecovery String
    Whether host recovery is enabled or disabled for the Dedicated Host.
    hostReservationId String
    The reservation ID of the Dedicated Host.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceFamily String
    Instance family supported by the Dedicated Host. For example, "m5".
    instanceType String
    The instance type of the running instance.
    instances List<GetDedicatedHostInstance>
    The instances running on the Dedicated Host. See instances below.
    memberOfServiceLinkedResourceGroup Boolean
    Whether the Dedicated Host is in a host resource group.
    outpostArn String
    ARN of the AWS Outpost on which the Dedicated Host is allocated.
    ownerId String
    The ID of the AWS account that owns the instance.
    region String
    releaseTime String
    Time that the Dedicated Host was released, in RFC3339 format.
    sockets Integer
    Number of sockets on the Dedicated Host.
    state String
    Allocation state of the Dedicated Host. Valid values: available, under-assessment, permanent-failure, released, released-permanent-failure, pending.
    tags Map<String,String>
    totalVcpus Integer
    Total number of vCPUs on the Dedicated Host.
    filters List<GetDedicatedHostFilter>
    allocationTime string
    Time that the Dedicated Host was allocated, in RFC3339 format.
    allowsMultipleInstanceTypes string
    Whether the Dedicated Host supports multiple instance types of the same instance family. Valid values: on, off.
    arn string
    ARN of the Dedicated Host.
    assetId string
    The ID of the Outpost hardware asset on which the Dedicated Host is allocated.
    autoPlacement string
    Whether auto-placement is on or off.
    availabilityZone string
    Availability Zone of the Dedicated Host.
    availabilityZoneId string
    AZ ID of the Availability Zone in which the Dedicated Host is allocated (e.g., use1-az1).
    availableCapacities GetDedicatedHostAvailableCapacity[]
    The number of instances that can be launched onto the Dedicated Host based on the host's available capacity.
    cores number
    Number of cores on the Dedicated Host.
    hostId string
    hostMaintenance string
    Whether host maintenance is enabled or disabled for the Dedicated Host. Valid values: on, off.
    hostRecovery string
    Whether host recovery is enabled or disabled for the Dedicated Host.
    hostReservationId string
    The reservation ID of the Dedicated Host.
    id string
    The provider-assigned unique ID for this managed resource.
    instanceFamily string
    Instance family supported by the Dedicated Host. For example, "m5".
    instanceType string
    The instance type of the running instance.
    instances GetDedicatedHostInstance[]
    The instances running on the Dedicated Host. See instances below.
    memberOfServiceLinkedResourceGroup boolean
    Whether the Dedicated Host is in a host resource group.
    outpostArn string
    ARN of the AWS Outpost on which the Dedicated Host is allocated.
    ownerId string
    The ID of the AWS account that owns the instance.
    region string
    releaseTime string
    Time that the Dedicated Host was released, in RFC3339 format.
    sockets number
    Number of sockets on the Dedicated Host.
    state string
    Allocation state of the Dedicated Host. Valid values: available, under-assessment, permanent-failure, released, released-permanent-failure, pending.
    tags {[key: string]: string}
    totalVcpus number
    Total number of vCPUs on the Dedicated Host.
    filters GetDedicatedHostFilter[]
    allocation_time str
    Time that the Dedicated Host was allocated, in RFC3339 format.
    allows_multiple_instance_types str
    Whether the Dedicated Host supports multiple instance types of the same instance family. Valid values: on, off.
    arn str
    ARN of the Dedicated Host.
    asset_id str
    The ID of the Outpost hardware asset on which the Dedicated Host is allocated.
    auto_placement str
    Whether auto-placement is on or off.
    availability_zone str
    Availability Zone of the Dedicated Host.
    availability_zone_id str
    AZ ID of the Availability Zone in which the Dedicated Host is allocated (e.g., use1-az1).
    available_capacities Sequence[GetDedicatedHostAvailableCapacity]
    The number of instances that can be launched onto the Dedicated Host based on the host's available capacity.
    cores int
    Number of cores on the Dedicated Host.
    host_id str
    host_maintenance str
    Whether host maintenance is enabled or disabled for the Dedicated Host. Valid values: on, off.
    host_recovery str
    Whether host recovery is enabled or disabled for the Dedicated Host.
    host_reservation_id str
    The reservation ID of the Dedicated Host.
    id str
    The provider-assigned unique ID for this managed resource.
    instance_family str
    Instance family supported by the Dedicated Host. For example, "m5".
    instance_type str
    The instance type of the running instance.
    instances Sequence[GetDedicatedHostInstance]
    The instances running on the Dedicated Host. See instances below.
    member_of_service_linked_resource_group bool
    Whether the Dedicated Host is in a host resource group.
    outpost_arn str
    ARN of the AWS Outpost on which the Dedicated Host is allocated.
    owner_id str
    The ID of the AWS account that owns the instance.
    region str
    release_time str
    Time that the Dedicated Host was released, in RFC3339 format.
    sockets int
    Number of sockets on the Dedicated Host.
    state str
    Allocation state of the Dedicated Host. Valid values: available, under-assessment, permanent-failure, released, released-permanent-failure, pending.
    tags Mapping[str, str]
    total_vcpus int
    Total number of vCPUs on the Dedicated Host.
    filters Sequence[GetDedicatedHostFilter]
    allocationTime String
    Time that the Dedicated Host was allocated, in RFC3339 format.
    allowsMultipleInstanceTypes String
    Whether the Dedicated Host supports multiple instance types of the same instance family. Valid values: on, off.
    arn String
    ARN of the Dedicated Host.
    assetId String
    The ID of the Outpost hardware asset on which the Dedicated Host is allocated.
    autoPlacement String
    Whether auto-placement is on or off.
    availabilityZone String
    Availability Zone of the Dedicated Host.
    availabilityZoneId String
    AZ ID of the Availability Zone in which the Dedicated Host is allocated (e.g., use1-az1).
    availableCapacities List<Property Map>
    The number of instances that can be launched onto the Dedicated Host based on the host's available capacity.
    cores Number
    Number of cores on the Dedicated Host.
    hostId String
    hostMaintenance String
    Whether host maintenance is enabled or disabled for the Dedicated Host. Valid values: on, off.
    hostRecovery String
    Whether host recovery is enabled or disabled for the Dedicated Host.
    hostReservationId String
    The reservation ID of the Dedicated Host.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceFamily String
    Instance family supported by the Dedicated Host. For example, "m5".
    instanceType String
    The instance type of the running instance.
    instances List<Property Map>
    The instances running on the Dedicated Host. See instances below.
    memberOfServiceLinkedResourceGroup Boolean
    Whether the Dedicated Host is in a host resource group.
    outpostArn String
    ARN of the AWS Outpost on which the Dedicated Host is allocated.
    ownerId String
    The ID of the AWS account that owns the instance.
    region String
    releaseTime String
    Time that the Dedicated Host was released, in RFC3339 format.
    sockets Number
    Number of sockets on the Dedicated Host.
    state String
    Allocation state of the Dedicated Host. Valid values: available, under-assessment, permanent-failure, released, released-permanent-failure, pending.
    tags Map<String>
    totalVcpus Number
    Total number of vCPUs on the Dedicated Host.
    filters List<Property Map>

    Supporting Types

    GetDedicatedHostAvailableCapacity

    AvailableInstanceCapacities List<GetDedicatedHostAvailableCapacityAvailableInstanceCapacity>
    The number of instances that can be launched onto the Dedicated Host for each instance size supported. See availableInstanceCapacity below.
    AvailableVcpus int
    The number of vCPUs available for launching instances onto the Dedicated Host.
    AvailableInstanceCapacities []GetDedicatedHostAvailableCapacityAvailableInstanceCapacity
    The number of instances that can be launched onto the Dedicated Host for each instance size supported. See availableInstanceCapacity below.
    AvailableVcpus int
    The number of vCPUs available for launching instances onto the Dedicated Host.
    available_instance_capacities list(object)
    The number of instances that can be launched onto the Dedicated Host for each instance size supported. See availableInstanceCapacity below.
    available_vcpus number
    The number of vCPUs available for launching instances onto the Dedicated Host.
    availableInstanceCapacities List<GetDedicatedHostAvailableCapacityAvailableInstanceCapacity>
    The number of instances that can be launched onto the Dedicated Host for each instance size supported. See availableInstanceCapacity below.
    availableVcpus Integer
    The number of vCPUs available for launching instances onto the Dedicated Host.
    availableInstanceCapacities GetDedicatedHostAvailableCapacityAvailableInstanceCapacity[]
    The number of instances that can be launched onto the Dedicated Host for each instance size supported. See availableInstanceCapacity below.
    availableVcpus number
    The number of vCPUs available for launching instances onto the Dedicated Host.
    available_instance_capacities Sequence[GetDedicatedHostAvailableCapacityAvailableInstanceCapacity]
    The number of instances that can be launched onto the Dedicated Host for each instance size supported. See availableInstanceCapacity below.
    available_vcpus int
    The number of vCPUs available for launching instances onto the Dedicated Host.
    availableInstanceCapacities List<Property Map>
    The number of instances that can be launched onto the Dedicated Host for each instance size supported. See availableInstanceCapacity below.
    availableVcpus Number
    The number of vCPUs available for launching instances onto the Dedicated Host.

    GetDedicatedHostAvailableCapacityAvailableInstanceCapacity

    AvailableCapacity int
    The number of instances that can be launched onto the Dedicated Host based on the host's available capacity.
    InstanceType string
    The instance type of the running instance.
    TotalCapacity int
    The total number of instances that can be launched onto the Dedicated Host if there are no instances running on it.
    AvailableCapacity int
    The number of instances that can be launched onto the Dedicated Host based on the host's available capacity.
    InstanceType string
    The instance type of the running instance.
    TotalCapacity int
    The total number of instances that can be launched onto the Dedicated Host if there are no instances running on it.
    available_capacity number
    The number of instances that can be launched onto the Dedicated Host based on the host's available capacity.
    instance_type string
    The instance type of the running instance.
    total_capacity number
    The total number of instances that can be launched onto the Dedicated Host if there are no instances running on it.
    availableCapacity Integer
    The number of instances that can be launched onto the Dedicated Host based on the host's available capacity.
    instanceType String
    The instance type of the running instance.
    totalCapacity Integer
    The total number of instances that can be launched onto the Dedicated Host if there are no instances running on it.
    availableCapacity number
    The number of instances that can be launched onto the Dedicated Host based on the host's available capacity.
    instanceType string
    The instance type of the running instance.
    totalCapacity number
    The total number of instances that can be launched onto the Dedicated Host if there are no instances running on it.
    available_capacity int
    The number of instances that can be launched onto the Dedicated Host based on the host's available capacity.
    instance_type str
    The instance type of the running instance.
    total_capacity int
    The total number of instances that can be launched onto the Dedicated Host if there are no instances running on it.
    availableCapacity Number
    The number of instances that can be launched onto the Dedicated Host based on the host's available capacity.
    instanceType String
    The instance type of the running instance.
    totalCapacity Number
    The total number of instances that can be launched onto the Dedicated Host if there are no instances running on it.

    GetDedicatedHostFilter

    Name string
    Name of the field to filter by, as defined by the underlying AWS API.
    Values List<string>
    Set of values that are accepted for the given field. A host will be selected if any one of the given values matches.
    Name string
    Name of the field to filter by, as defined by the underlying AWS API.
    Values []string
    Set of values that are accepted for the given field. A host will be selected if any one of the given values matches.
    name string
    Name of the field to filter by, as defined by the underlying AWS API.
    values list(string)
    Set of values that are accepted for the given field. A host will be selected if any one of the given values matches.
    name String
    Name of the field to filter by, as defined by the underlying AWS API.
    values List<String>
    Set of values that are accepted for the given field. A host will be selected if any one of the given values matches.
    name string
    Name of the field to filter by, as defined by the underlying AWS API.
    values string[]
    Set of values that are accepted for the given field. A host will be selected if any one of the given values matches.
    name str
    Name of the field to filter by, as defined by the underlying AWS API.
    values Sequence[str]
    Set of values that are accepted for the given field. A host will be selected if any one of the given values matches.
    name String
    Name of the field to filter by, as defined by the underlying AWS API.
    values List<String>
    Set of values that are accepted for the given field. A host will be selected if any one of the given values matches.

    GetDedicatedHostInstance

    InstanceId string
    The ID of the instance running on the Dedicated Host.
    InstanceType string
    The instance type of the running instance.
    OwnerId string
    The ID of the AWS account that owns the instance.
    InstanceId string
    The ID of the instance running on the Dedicated Host.
    InstanceType string
    The instance type of the running instance.
    OwnerId string
    The ID of the AWS account that owns the instance.
    instance_id string
    The ID of the instance running on the Dedicated Host.
    instance_type string
    The instance type of the running instance.
    owner_id string
    The ID of the AWS account that owns the instance.
    instanceId String
    The ID of the instance running on the Dedicated Host.
    instanceType String
    The instance type of the running instance.
    ownerId String
    The ID of the AWS account that owns the instance.
    instanceId string
    The ID of the instance running on the Dedicated Host.
    instanceType string
    The instance type of the running instance.
    ownerId string
    The ID of the AWS account that owns the instance.
    instance_id str
    The ID of the instance running on the Dedicated Host.
    instance_type str
    The instance type of the running instance.
    owner_id str
    The ID of the AWS account that owns the instance.
    instanceId String
    The ID of the instance running on the Dedicated Host.
    instanceType String
    The instance type of the running instance.
    ownerId String
    The ID of the AWS account that owns the instance.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    Viewing docs for AWS v7.34.0
    published on Tuesday, Jun 16, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial