Class CfnHost.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnHost.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnHost>
- Enclosing class:
CfnHost
@Stability(Stable)
public static final class CfnHost.Builder
extends Object
implements software.amazon.jsii.Builder<CfnHost>
A fluent builder for
CfnHost
.-
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 CfnHost.Builder
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.
-
Method Details
-
create
@Stability(Stable) public static CfnHost.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnHost.Builder
.
-
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:
-
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:
off
- 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:
-
hostMaintenance
Indicates whether host maintenance is enabled or disabled for the Dedicated Host.- 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:
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:
-
build
-