Class CfnHostPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnHostPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnHostPropsMixin>
- Enclosing class:
CfnHostPropsMixin
@Stability(Stable)
public static final class CfnHostPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnHostPropsMixin>
A fluent builder for
CfnHostPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the Outpost hardware asset on which the Dedicated Host is allocated.autoPlacement(String autoPlacement) 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.availabilityZone(String availabilityZone) The Availability Zone in which to allocate the Dedicated Host.build()static CfnHostPropsMixin.Buildercreate()static CfnHostPropsMixin.Buildercreate(CfnPropertyMixinOptions options) hostMaintenance(String hostMaintenance) Indicates whether host maintenance is enabled or disabled for the Dedicated Host.hostRecovery(String hostRecovery) Indicates whether to enable or disable host recovery for the Dedicated Host.instanceFamily(String instanceFamily) The instance family supported by the Dedicated Host.instanceType(String instanceType) Specifies the instance type to be supported by the Dedicated Hosts.outpostArn(String outpostArn) The Amazon Resource Name (ARN) of the AWS Outpost on which the Dedicated Host is allocated.Any tags assigned to the Dedicated Host.
-
Method Details
-
create
- Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnHostPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnHostPropsMixin.Builder.
-
assetId
The ID of the Outpost hardware asset on which the Dedicated Host is allocated.- Parameters:
assetId- The ID of the Outpost hardware asset on which the Dedicated Host is allocated. This parameter is required.- Returns:
this- See Also:
-
autoPlacement
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:
offDefault: - "on"
- Parameters:
autoPlacement- 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. This parameter is required.- Returns:
this- See Also:
-
availabilityZone
The Availability Zone in which to allocate the Dedicated Host.- Parameters:
availabilityZone- The Availability Zone in which to allocate the Dedicated Host. This parameter is required.- Returns:
this- See Also:
-
hostMaintenance
Indicates whether host maintenance is enabled or disabled for the Dedicated Host.Default: - "off"
- Parameters:
hostMaintenance- Indicates whether host maintenance is enabled or disabled for the Dedicated Host. This parameter is required.- Returns:
this- See Also:
-
hostRecovery
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:
offDefault: - "off"
- Parameters:
hostRecovery- Indicates whether to enable or disable host recovery for the Dedicated Host. This parameter is required.- Returns:
this- See Also:
-
instanceFamily
The instance family supported by the Dedicated Host.For example,
m5.- Parameters:
instanceFamily- The instance family supported by the Dedicated Host. This parameter is required.- Returns:
this- See Also:
-
instanceType
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.
- Parameters:
instanceType- Specifies the instance type to be supported by the Dedicated Hosts. This parameter is required.- Returns:
this- See Also:
-
outpostArn
The Amazon Resource Name (ARN) of the AWS Outpost on which the Dedicated Host is allocated.- Parameters:
outpostArn- The Amazon Resource Name (ARN) of the AWS Outpost on which the Dedicated Host is allocated. This parameter is required.- Returns:
this- See Also:
-
tags
Any tags assigned to the Dedicated Host.- Parameters:
tags- Any tags assigned to the Dedicated Host. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnHostPropsMixin>- Returns:
- a newly built instance of
CfnHostPropsMixin.
-