CfnHostProps

class aws_cdk.aws_ec2.CfnHostProps(*, availability_zone, auto_placement=None, host_maintenance=None, host_recovery=None, instance_family=None, instance_type=None, outpost_arn=None)

Bases: object

Properties for defining a CfnHost.

Parameters:
  • availability_zone (str) – The Availability Zone in which to allocate the Dedicated Host.

  • auto_placement (Optional[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. For more information, see Understanding auto-placement and affinity in the Amazon EC2 User Guide . Default: on

  • host_maintenance (Optional[str]) – Indicates whether host maintenance is enabled or disabled for the Dedicated Host.

  • host_recovery (Optional[str]) – 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

  • instance_family (Optional[str]) – The instance family supported by the Dedicated Host. For example, m5 .

  • instance_type (Optional[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.

  • outpost_arn (Optional[str]) – The Amazon Resource Name (ARN) of the AWS Outpost on which the Dedicated Host is allocated.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2

cfn_host_props = ec2.CfnHostProps(
    availability_zone="availabilityZone",

    # the properties below are optional
    auto_placement="autoPlacement",
    host_maintenance="hostMaintenance",
    host_recovery="hostRecovery",
    instance_family="instanceFamily",
    instance_type="instanceType",
    outpost_arn="outpostArn"
)

Attributes

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.

For more information, see Understanding auto-placement and affinity in the Amazon EC2 User Guide .

Default: on

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html#cfn-ec2-host-autoplacement

availability_zone

The Availability Zone in which to allocate the Dedicated Host.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html#cfn-ec2-host-availabilityzone

host_maintenance

Indicates whether host maintenance is enabled or disabled for the Dedicated Host.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html#cfn-ec2-host-hostmaintenance

host_recovery

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

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html#cfn-ec2-host-hostrecovery

instance_family

The instance family supported by the Dedicated Host.

For example, m5 .

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html#cfn-ec2-host-instancefamily

instance_type

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.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html#cfn-ec2-host-instancetype

outpost_arn

The Amazon Resource Name (ARN) of the AWS Outpost on which the Dedicated Host is allocated.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-host.html#cfn-ec2-host-outpostarn