AWS::EC2::HostAllocates a fully dedicated physical server for launching EC2 instances. Because the host is fully dedicated for your use, it can help you address compliance requirements and reduce costs by allowing you to use your existing server-bound software licenses. For more information, see [Dedicated Hosts](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-overview.html) in the *Amazon EC2 User Guide* .
import { CfnHost } from 'aws-cdk-lib/aws-ec2';Or use the module namespace:
import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.CfnHostConfiguration passed to the constructor as CfnHostProps.
availabilityZoneRequiredstringThe Availability Zone in which to allocate the Dedicated Host.
assetIdOptionalstringThe ID of the Outpost hardware asset on which the Dedicated Host is allocated.
autoPlacementOptionalstringIndicates 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. For more information, see [Understanding auto-placement and affinity](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/how-dedicated-hosts-work.html#dedicated-hosts-understanding) in the *Amazon EC2 User Guide* . Default: `off`
Default: - "on"
hostMaintenanceOptionalstringIndicates whether host maintenance is enabled or disabled for the Dedicated Host.
Default: - "off"
hostRecoveryOptionalstringIndicates whether to enable or disable host recovery for the Dedicated Host. Host recovery is disabled by default. For more information, see [Host recovery](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-recovery.html) in the *Amazon EC2 User Guide* . Default: `off`
Default: - "off"
instanceFamilyOptionalstringThe instance family supported by the Dedicated Host. For example, `m5` .
instanceTypeOptionalstringSpecifies 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.
outpostArnOptionalstringThe Amazon Resource Name (ARN) of the AWS Outpost on which the Dedicated Host is allocated.
tagsOptionalCfnTag[]Any tags assigned to the Dedicated Host.
This L1 construct maps directly to the following CloudFormation resource type.
Everything you need to know about Amazon EC2 on one page. HD quality, print-friendly.
Download Free Infographicaws-ec2AWS::EC2::Host