CfnHostProps

class aws_cdk.aws_ec2.CfnHostProps(*, availability_zone, auto_placement=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_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]) – AWS::EC2::Host.InstanceFamily.

  • 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]) – AWS::EC2::Host.OutpostArn.

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.
from aws_cdk import aws_ec2 as ec2

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

    # the properties below are optional
    auto_placement="autoPlacement",
    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

Return type

Optional[str]

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

Return type

str

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

Return type

Optional[str]

instance_family

AWS::EC2::Host.InstanceFamily.

Link

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

Return type

Optional[str]

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

Return type

Optional[str]

outpost_arn

AWS::EC2::Host.OutpostArn.

Link

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

Return type

Optional[str]