CfnHostProps¶
-
class
aws_cdk.aws_ec2.
CfnHostProps
(*, availability_zone, instance_type, auto_placement=None, host_recovery=None)¶ Bases:
object
Properties for defining a
CfnHost
.- Parameters
availability_zone (
str
) – The Availability Zone in which to allocate the Dedicated Host.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.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
- 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", instance_type="instanceType", # the properties below are optional auto_placement="autoPlacement", host_recovery="hostRecovery" )
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
- Return type
Optional
[str
]
-
availability_zone
¶ The Availability Zone in which to allocate the Dedicated Host.
-
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
- 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.