We recommend new projects start with resources from the AWS provider.
Viewing docs for AWS Cloud Control v1.57.0
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
Viewing docs for AWS Cloud Control v1.57.0
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Resource Type definition for AWS::EC2::Host
Using getHost
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 getHost(args: GetHostArgs, opts?: InvokeOptions): Promise<GetHostResult>
function getHostOutput(args: GetHostOutputArgs, opts?: InvokeOptions): Output<GetHostResult>def get_host(host_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetHostResult
def get_host_output(host_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetHostResult]func LookupHost(ctx *Context, args *LookupHostArgs, opts ...InvokeOption) (*LookupHostResult, error)
func LookupHostOutput(ctx *Context, args *LookupHostOutputArgs, opts ...InvokeOption) LookupHostResultOutput> Note: This function is named LookupHost in the Go SDK.
public static class GetHost
{
public static Task<GetHostResult> InvokeAsync(GetHostArgs args, InvokeOptions? opts = null)
public static Output<GetHostResult> Invoke(GetHostInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetHostResult> getHost(GetHostArgs args, InvokeOptions options)
public static Output<GetHostResult> getHost(GetHostArgs args, InvokeOptions options)
fn::invoke:
function: aws-native:ec2:getHost
arguments:
# arguments dictionaryThe following arguments are supported:
- Host
Id string - ID of the host created.
- Host
Id string - ID of the host created.
- host
Id String - ID of the host created.
- host
Id string - ID of the host created.
- host_
id str - ID of the host created.
- host
Id String - ID of the host created.
getHost Result
The following output properties are available:
- Auto
Placement Pulumi.Aws Native. Ec2. Host Auto Placement - Indicates whether the host accepts any untargeted instance launches that match its instance type configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID.
- Host
Id string - ID of the host created.
- Host
Maintenance Pulumi.Aws Native. Ec2. Host Maintenance - Automatically allocates a new dedicated host and moves your instances on to it if a degradation is detected on your current host.
- Host
Recovery Pulumi.Aws Native. Ec2. Host Recovery - Indicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by default.
-
List<Pulumi.
Aws Native. Outputs. Tag> - Any tags assigned to the Host.
- Auto
Placement HostAuto Placement - Indicates whether the host accepts any untargeted instance launches that match its instance type configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID.
- Host
Id string - ID of the host created.
- Host
Maintenance HostMaintenance - Automatically allocates a new dedicated host and moves your instances on to it if a degradation is detected on your current host.
- Host
Recovery HostRecovery - Indicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by default.
- Tag
- Any tags assigned to the Host.
- auto
Placement HostAuto Placement - Indicates whether the host accepts any untargeted instance launches that match its instance type configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID.
- host
Id String - ID of the host created.
- host
Maintenance HostMaintenance - Automatically allocates a new dedicated host and moves your instances on to it if a degradation is detected on your current host.
- host
Recovery HostRecovery - Indicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by default.
- List<Tag>
- Any tags assigned to the Host.
- auto
Placement HostAuto Placement - Indicates whether the host accepts any untargeted instance launches that match its instance type configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID.
- host
Id string - ID of the host created.
- host
Maintenance HostMaintenance - Automatically allocates a new dedicated host and moves your instances on to it if a degradation is detected on your current host.
- host
Recovery HostRecovery - Indicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by default.
- Tag[]
- Any tags assigned to the Host.
- auto_
placement HostAuto Placement - Indicates whether the host accepts any untargeted instance launches that match its instance type configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID.
- host_
id str - ID of the host created.
- host_
maintenance HostMaintenance - Automatically allocates a new dedicated host and moves your instances on to it if a degradation is detected on your current host.
- host_
recovery HostRecovery - Indicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by default.
- Sequence[root_Tag]
- Any tags assigned to the Host.
- auto
Placement "on" | "off" - Indicates whether the host accepts any untargeted instance launches that match its instance type configuration, or if it only accepts Host tenancy instance launches that specify its unique host ID.
- host
Id String - ID of the host created.
- host
Maintenance "on" | "off" - Automatically allocates a new dedicated host and moves your instances on to it if a degradation is detected on your current host.
- host
Recovery "on" | "off" - Indicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by default.
- List<Property Map>
- Any tags assigned to the Host.
Supporting Types
HostAutoPlacement
HostMaintenance
HostRecovery
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
Viewing docs for AWS Cloud Control v1.57.0
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
