interface CfnHostProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.EC2.CfnHostProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnHostProps |
![]() | software.amazon.awscdk.services.ec2.CfnHostProps |
![]() | aws_cdk.aws_ec2.CfnHostProps |
![]() | aws-cdk-lib » aws_ec2 » CfnHostProps |
Properties for defining a CfnHost
.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnHostProps: ec2.CfnHostProps = {
availabilityZone: 'availabilityZone',
// the properties below are optional
assetId: 'assetId',
autoPlacement: 'autoPlacement',
hostMaintenance: 'hostMaintenance',
hostRecovery: 'hostRecovery',
instanceFamily: 'instanceFamily',
instanceType: 'instanceType',
outpostArn: 'outpostArn',
};
Properties
Name | Type | Description |
---|---|---|
availability | string | The Availability Zone in which to allocate the Dedicated Host. |
asset | string | The ID of the Outpost hardware asset on which the Dedicated Host is allocated. |
auto | 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. |
host | string | Indicates whether host maintenance is enabled or disabled for the Dedicated Host. |
host | string | Indicates whether to enable or disable host recovery for the Dedicated Host. |
instance | string | The instance family supported by the Dedicated Host. |
instance | string | Specifies the instance type to be supported by the Dedicated Hosts. |
outpost | string | The Amazon Resource Name (ARN) of the AWS Outpost on which the Dedicated Host is allocated. |
availabilityZone
Type:
string
The Availability Zone in which to allocate the Dedicated Host.
assetId?
Type:
string
(optional)
The ID of the Outpost hardware asset on which the Dedicated Host is allocated.
autoPlacement?
Type:
string
(optional)
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.
For more information, see Understanding auto-placement and affinity in the Amazon EC2 User Guide .
Default: off
hostMaintenance?
Type:
string
(optional)
Indicates whether host maintenance is enabled or disabled for the Dedicated Host.
hostRecovery?
Type:
string
(optional)
Indicates whether to enable or disable host recovery for the Dedicated Host.
Host recovery is disabled by default. For more information, see Host recovery in the Amazon EC2 User Guide .
Default: off
instanceFamily?
Type:
string
(optional)
The instance family supported by the Dedicated Host.
For example, m5
.
instanceType?
Type:
string
(optional)
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.
outpostArn?
Type:
string
(optional)
The Amazon Resource Name (ARN) of the AWS Outpost on which the Dedicated Host is allocated.