Try AWS Native preview for resources not in the classic version.
aws.ec2.DedicatedHost
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Provides an EC2 Host resource. This allows Dedicated Hosts to be allocated, modified, and released.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
// Create a new host with instance type of c5.18xlarge with Auto Placement
// and Host Recovery enabled.
var test = new Aws.Ec2.DedicatedHost("test", new()
{
AutoPlacement = "on",
AvailabilityZone = "us-west-2a",
HostRecovery = "on",
InstanceType = "c5.18xlarge",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ec2.NewDedicatedHost(ctx, "test", &ec2.DedicatedHostArgs{
AutoPlacement: pulumi.String("on"),
AvailabilityZone: pulumi.String("us-west-2a"),
HostRecovery: pulumi.String("on"),
InstanceType: pulumi.String("c5.18xlarge"),
})
if err != nil {
return err
}
return nil
})
}
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 java.util.List;
import java.util.ArrayList;
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 test = new DedicatedHost("test", DedicatedHostArgs.builder()
.autoPlacement("on")
.availabilityZone("us-west-2a")
.hostRecovery("on")
.instanceType("c5.18xlarge")
.build());
}
}
import pulumi
import pulumi_aws as aws
# Create a new host with instance type of c5.18xlarge with Auto Placement
# and Host Recovery enabled.
test = aws.ec2.DedicatedHost("test",
auto_placement="on",
availability_zone="us-west-2a",
host_recovery="on",
instance_type="c5.18xlarge")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
// Create a new host with instance type of c5.18xlarge with Auto Placement
// and Host Recovery enabled.
const test = new aws.ec2.DedicatedHost("test", {
autoPlacement: "on",
availabilityZone: "us-west-2a",
hostRecovery: "on",
instanceType: "c5.18xlarge",
});
resources:
# Create a new host with instance type of c5.18xlarge with Auto Placement
# // and Host Recovery enabled.
test:
type: aws:ec2:DedicatedHost
properties:
autoPlacement: on
availabilityZone: us-west-2a
hostRecovery: on
instanceType: c5.18xlarge
Create DedicatedHost Resource
new DedicatedHost(name: string, args: DedicatedHostArgs, opts?: CustomResourceOptions);
@overload
def DedicatedHost(resource_name: str,
opts: Optional[ResourceOptions] = None,
asset_id: Optional[str] = None,
auto_placement: Optional[str] = None,
availability_zone: Optional[str] = None,
host_recovery: Optional[str] = None,
instance_family: Optional[str] = None,
instance_type: Optional[str] = None,
outpost_arn: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
@overload
def DedicatedHost(resource_name: str,
args: DedicatedHostArgs,
opts: Optional[ResourceOptions] = None)
func NewDedicatedHost(ctx *Context, name string, args DedicatedHostArgs, opts ...ResourceOption) (*DedicatedHost, error)
public DedicatedHost(string name, DedicatedHostArgs args, CustomResourceOptions? opts = null)
public DedicatedHost(String name, DedicatedHostArgs args)
public DedicatedHost(String name, DedicatedHostArgs args, CustomResourceOptions options)
type: aws:ec2:DedicatedHost
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DedicatedHostArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DedicatedHostArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DedicatedHostArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DedicatedHostArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DedicatedHostArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DedicatedHost Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The DedicatedHost resource accepts the following input properties:
- Availability
Zone string The Availability Zone in which to allocate the Dedicated Host.
- Asset
Id string The ID of the Outpost hardware asset on which to allocate the Dedicated Hosts. This parameter is supported only if you specify OutpostArn. If you are allocating the Dedicated Hosts in a Region, omit this parameter.
- Auto
Placement string 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. Valid values:
on
,off
. Default:on
.- Host
Recovery string Indicates whether to enable or disable host recovery for the Dedicated Host. Valid values:
on
,off
. Default:off
.- Instance
Family string Specifies the instance family to be supported by the Dedicated Hosts. If you specify an instance family, the Dedicated Hosts support multiple instance types within that instance family. Exactly one of
instance_family
orinstance_type
must be specified.- Instance
Type string Specifies the instance type to be supported by the Dedicated Hosts. If you specify an instance type, the Dedicated Hosts support instances of the specified instance type only. Exactly one of
instance_family
orinstance_type
must be specified.- Outpost
Arn string The Amazon Resource Name (ARN) of the AWS Outpost on which to allocate the Dedicated Host.
- Dictionary<string, string>
Map of tags to assign to this resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- Availability
Zone string The Availability Zone in which to allocate the Dedicated Host.
- Asset
Id string The ID of the Outpost hardware asset on which to allocate the Dedicated Hosts. This parameter is supported only if you specify OutpostArn. If you are allocating the Dedicated Hosts in a Region, omit this parameter.
- Auto
Placement string 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. Valid values:
on
,off
. Default:on
.- Host
Recovery string Indicates whether to enable or disable host recovery for the Dedicated Host. Valid values:
on
,off
. Default:off
.- Instance
Family string Specifies the instance family to be supported by the Dedicated Hosts. If you specify an instance family, the Dedicated Hosts support multiple instance types within that instance family. Exactly one of
instance_family
orinstance_type
must be specified.- Instance
Type string Specifies the instance type to be supported by the Dedicated Hosts. If you specify an instance type, the Dedicated Hosts support instances of the specified instance type only. Exactly one of
instance_family
orinstance_type
must be specified.- Outpost
Arn string The Amazon Resource Name (ARN) of the AWS Outpost on which to allocate the Dedicated Host.
- map[string]string
Map of tags to assign to this resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- availability
Zone String The Availability Zone in which to allocate the Dedicated Host.
- asset
Id String The ID of the Outpost hardware asset on which to allocate the Dedicated Hosts. This parameter is supported only if you specify OutpostArn. If you are allocating the Dedicated Hosts in a Region, omit this parameter.
- auto
Placement String 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. Valid values:
on
,off
. Default:on
.- host
Recovery String Indicates whether to enable or disable host recovery for the Dedicated Host. Valid values:
on
,off
. Default:off
.- instance
Family String Specifies the instance family to be supported by the Dedicated Hosts. If you specify an instance family, the Dedicated Hosts support multiple instance types within that instance family. Exactly one of
instance_family
orinstance_type
must be specified.- instance
Type String Specifies the instance type to be supported by the Dedicated Hosts. If you specify an instance type, the Dedicated Hosts support instances of the specified instance type only. Exactly one of
instance_family
orinstance_type
must be specified.- outpost
Arn String The Amazon Resource Name (ARN) of the AWS Outpost on which to allocate the Dedicated Host.
- Map<String,String>
Map of tags to assign to this resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- availability
Zone string The Availability Zone in which to allocate the Dedicated Host.
- asset
Id string The ID of the Outpost hardware asset on which to allocate the Dedicated Hosts. This parameter is supported only if you specify OutpostArn. If you are allocating the Dedicated Hosts in a Region, omit this parameter.
- auto
Placement string 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. Valid values:
on
,off
. Default:on
.- host
Recovery string Indicates whether to enable or disable host recovery for the Dedicated Host. Valid values:
on
,off
. Default:off
.- instance
Family string Specifies the instance family to be supported by the Dedicated Hosts. If you specify an instance family, the Dedicated Hosts support multiple instance types within that instance family. Exactly one of
instance_family
orinstance_type
must be specified.- instance
Type string Specifies the instance type to be supported by the Dedicated Hosts. If you specify an instance type, the Dedicated Hosts support instances of the specified instance type only. Exactly one of
instance_family
orinstance_type
must be specified.- outpost
Arn string The Amazon Resource Name (ARN) of the AWS Outpost on which to allocate the Dedicated Host.
- {[key: string]: string}
Map of tags to assign to this resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- availability_
zone str The Availability Zone in which to allocate the Dedicated Host.
- asset_
id str The ID of the Outpost hardware asset on which to allocate the Dedicated Hosts. This parameter is supported only if you specify OutpostArn. If you are allocating the Dedicated Hosts in a Region, omit this parameter.
- auto_
placement str 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. Valid values:
on
,off
. Default:on
.- host_
recovery str Indicates whether to enable or disable host recovery for the Dedicated Host. Valid values:
on
,off
. Default:off
.- instance_
family str Specifies the instance family to be supported by the Dedicated Hosts. If you specify an instance family, the Dedicated Hosts support multiple instance types within that instance family. Exactly one of
instance_family
orinstance_type
must be specified.- instance_
type str Specifies the instance type to be supported by the Dedicated Hosts. If you specify an instance type, the Dedicated Hosts support instances of the specified instance type only. Exactly one of
instance_family
orinstance_type
must be specified.- outpost_
arn str The Amazon Resource Name (ARN) of the AWS Outpost on which to allocate the Dedicated Host.
- Mapping[str, str]
Map of tags to assign to this resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- availability
Zone String The Availability Zone in which to allocate the Dedicated Host.
- asset
Id String The ID of the Outpost hardware asset on which to allocate the Dedicated Hosts. This parameter is supported only if you specify OutpostArn. If you are allocating the Dedicated Hosts in a Region, omit this parameter.
- auto
Placement String 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. Valid values:
on
,off
. Default:on
.- host
Recovery String Indicates whether to enable or disable host recovery for the Dedicated Host. Valid values:
on
,off
. Default:off
.- instance
Family String Specifies the instance family to be supported by the Dedicated Hosts. If you specify an instance family, the Dedicated Hosts support multiple instance types within that instance family. Exactly one of
instance_family
orinstance_type
must be specified.- instance
Type String Specifies the instance type to be supported by the Dedicated Hosts. If you specify an instance type, the Dedicated Hosts support instances of the specified instance type only. Exactly one of
instance_family
orinstance_type
must be specified.- outpost
Arn String The Amazon Resource Name (ARN) of the AWS Outpost on which to allocate the Dedicated Host.
- Map<String>
Map of tags to assign to this resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the DedicatedHost resource produces the following output properties:
- Arn string
The ARN of the Dedicated Host.
- Id string
The provider-assigned unique ID for this managed resource.
- Owner
Id string The ID of the AWS account that owns the Dedicated Host.
- Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- Arn string
The ARN of the Dedicated Host.
- Id string
The provider-assigned unique ID for this managed resource.
- Owner
Id string The ID of the AWS account that owns the Dedicated Host.
- map[string]string
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- arn String
The ARN of the Dedicated Host.
- id String
The provider-assigned unique ID for this managed resource.
- owner
Id String The ID of the AWS account that owns the Dedicated Host.
- Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- arn string
The ARN of the Dedicated Host.
- id string
The provider-assigned unique ID for this managed resource.
- owner
Id string The ID of the AWS account that owns the Dedicated Host.
- {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- arn str
The ARN of the Dedicated Host.
- id str
The provider-assigned unique ID for this managed resource.
- owner_
id str The ID of the AWS account that owns the Dedicated Host.
- Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- arn String
The ARN of the Dedicated Host.
- id String
The provider-assigned unique ID for this managed resource.
- owner
Id String The ID of the AWS account that owns the Dedicated Host.
- Map<String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
Look up Existing DedicatedHost Resource
Get an existing DedicatedHost resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DedicatedHostState, opts?: CustomResourceOptions): DedicatedHost
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
asset_id: Optional[str] = None,
auto_placement: Optional[str] = None,
availability_zone: Optional[str] = None,
host_recovery: Optional[str] = None,
instance_family: Optional[str] = None,
instance_type: Optional[str] = None,
outpost_arn: Optional[str] = None,
owner_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> DedicatedHost
func GetDedicatedHost(ctx *Context, name string, id IDInput, state *DedicatedHostState, opts ...ResourceOption) (*DedicatedHost, error)
public static DedicatedHost Get(string name, Input<string> id, DedicatedHostState? state, CustomResourceOptions? opts = null)
public static DedicatedHost get(String name, Output<String> id, DedicatedHostState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
The ARN of the Dedicated Host.
- Asset
Id string The ID of the Outpost hardware asset on which to allocate the Dedicated Hosts. This parameter is supported only if you specify OutpostArn. If you are allocating the Dedicated Hosts in a Region, omit this parameter.
- Auto
Placement string 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. Valid values:
on
,off
. Default:on
.- Availability
Zone string The Availability Zone in which to allocate the Dedicated Host.
- Host
Recovery string Indicates whether to enable or disable host recovery for the Dedicated Host. Valid values:
on
,off
. Default:off
.- Instance
Family string Specifies the instance family to be supported by the Dedicated Hosts. If you specify an instance family, the Dedicated Hosts support multiple instance types within that instance family. Exactly one of
instance_family
orinstance_type
must be specified.- Instance
Type string Specifies the instance type to be supported by the Dedicated Hosts. If you specify an instance type, the Dedicated Hosts support instances of the specified instance type only. Exactly one of
instance_family
orinstance_type
must be specified.- Outpost
Arn string The Amazon Resource Name (ARN) of the AWS Outpost on which to allocate the Dedicated Host.
- Owner
Id string The ID of the AWS account that owns the Dedicated Host.
- Dictionary<string, string>
Map of tags to assign to this resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- Arn string
The ARN of the Dedicated Host.
- Asset
Id string The ID of the Outpost hardware asset on which to allocate the Dedicated Hosts. This parameter is supported only if you specify OutpostArn. If you are allocating the Dedicated Hosts in a Region, omit this parameter.
- Auto
Placement string 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. Valid values:
on
,off
. Default:on
.- Availability
Zone string The Availability Zone in which to allocate the Dedicated Host.
- Host
Recovery string Indicates whether to enable or disable host recovery for the Dedicated Host. Valid values:
on
,off
. Default:off
.- Instance
Family string Specifies the instance family to be supported by the Dedicated Hosts. If you specify an instance family, the Dedicated Hosts support multiple instance types within that instance family. Exactly one of
instance_family
orinstance_type
must be specified.- Instance
Type string Specifies the instance type to be supported by the Dedicated Hosts. If you specify an instance type, the Dedicated Hosts support instances of the specified instance type only. Exactly one of
instance_family
orinstance_type
must be specified.- Outpost
Arn string The Amazon Resource Name (ARN) of the AWS Outpost on which to allocate the Dedicated Host.
- Owner
Id string The ID of the AWS account that owns the Dedicated Host.
- map[string]string
Map of tags to assign to this resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- map[string]string
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- arn String
The ARN of the Dedicated Host.
- asset
Id String The ID of the Outpost hardware asset on which to allocate the Dedicated Hosts. This parameter is supported only if you specify OutpostArn. If you are allocating the Dedicated Hosts in a Region, omit this parameter.
- auto
Placement String 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. Valid values:
on
,off
. Default:on
.- availability
Zone String The Availability Zone in which to allocate the Dedicated Host.
- host
Recovery String Indicates whether to enable or disable host recovery for the Dedicated Host. Valid values:
on
,off
. Default:off
.- instance
Family String Specifies the instance family to be supported by the Dedicated Hosts. If you specify an instance family, the Dedicated Hosts support multiple instance types within that instance family. Exactly one of
instance_family
orinstance_type
must be specified.- instance
Type String Specifies the instance type to be supported by the Dedicated Hosts. If you specify an instance type, the Dedicated Hosts support instances of the specified instance type only. Exactly one of
instance_family
orinstance_type
must be specified.- outpost
Arn String The Amazon Resource Name (ARN) of the AWS Outpost on which to allocate the Dedicated Host.
- owner
Id String The ID of the AWS account that owns the Dedicated Host.
- Map<String,String>
Map of tags to assign to this resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- arn string
The ARN of the Dedicated Host.
- asset
Id string The ID of the Outpost hardware asset on which to allocate the Dedicated Hosts. This parameter is supported only if you specify OutpostArn. If you are allocating the Dedicated Hosts in a Region, omit this parameter.
- auto
Placement string 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. Valid values:
on
,off
. Default:on
.- availability
Zone string The Availability Zone in which to allocate the Dedicated Host.
- host
Recovery string Indicates whether to enable or disable host recovery for the Dedicated Host. Valid values:
on
,off
. Default:off
.- instance
Family string Specifies the instance family to be supported by the Dedicated Hosts. If you specify an instance family, the Dedicated Hosts support multiple instance types within that instance family. Exactly one of
instance_family
orinstance_type
must be specified.- instance
Type string Specifies the instance type to be supported by the Dedicated Hosts. If you specify an instance type, the Dedicated Hosts support instances of the specified instance type only. Exactly one of
instance_family
orinstance_type
must be specified.- outpost
Arn string The Amazon Resource Name (ARN) of the AWS Outpost on which to allocate the Dedicated Host.
- owner
Id string The ID of the AWS account that owns the Dedicated Host.
- {[key: string]: string}
Map of tags to assign to this resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- arn str
The ARN of the Dedicated Host.
- asset_
id str The ID of the Outpost hardware asset on which to allocate the Dedicated Hosts. This parameter is supported only if you specify OutpostArn. If you are allocating the Dedicated Hosts in a Region, omit this parameter.
- auto_
placement str 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. Valid values:
on
,off
. Default:on
.- availability_
zone str The Availability Zone in which to allocate the Dedicated Host.
- host_
recovery str Indicates whether to enable or disable host recovery for the Dedicated Host. Valid values:
on
,off
. Default:off
.- instance_
family str Specifies the instance family to be supported by the Dedicated Hosts. If you specify an instance family, the Dedicated Hosts support multiple instance types within that instance family. Exactly one of
instance_family
orinstance_type
must be specified.- instance_
type str Specifies the instance type to be supported by the Dedicated Hosts. If you specify an instance type, the Dedicated Hosts support instances of the specified instance type only. Exactly one of
instance_family
orinstance_type
must be specified.- outpost_
arn str The Amazon Resource Name (ARN) of the AWS Outpost on which to allocate the Dedicated Host.
- owner_
id str The ID of the AWS account that owns the Dedicated Host.
- Mapping[str, str]
Map of tags to assign to this resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
- arn String
The ARN of the Dedicated Host.
- asset
Id String The ID of the Outpost hardware asset on which to allocate the Dedicated Hosts. This parameter is supported only if you specify OutpostArn. If you are allocating the Dedicated Hosts in a Region, omit this parameter.
- auto
Placement String 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. Valid values:
on
,off
. Default:on
.- availability
Zone String The Availability Zone in which to allocate the Dedicated Host.
- host
Recovery String Indicates whether to enable or disable host recovery for the Dedicated Host. Valid values:
on
,off
. Default:off
.- instance
Family String Specifies the instance family to be supported by the Dedicated Hosts. If you specify an instance family, the Dedicated Hosts support multiple instance types within that instance family. Exactly one of
instance_family
orinstance_type
must be specified.- instance
Type String Specifies the instance type to be supported by the Dedicated Hosts. If you specify an instance type, the Dedicated Hosts support instances of the specified instance type only. Exactly one of
instance_family
orinstance_type
must be specified.- outpost
Arn String The Amazon Resource Name (ARN) of the AWS Outpost on which to allocate the Dedicated Host.
- owner
Id String The ID of the AWS account that owns the Dedicated Host.
- Map<String>
Map of tags to assign to this resource. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Map<String>
A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.Please use
tags
instead.
Import
Using pulumi import
, import hosts using the host id
. For example:
$ pulumi import aws:ec2/dedicatedHost:DedicatedHost example h-0385a99d0e4b20cbb
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.