@Stability(value=Stable) public static final class CfnHostProps.Builder extends Object implements software.amazon.jsii.Builder<CfnHostProps>
CfnHostProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnHostProps.Builder |
autoPlacement(String autoPlacement)
Sets the value of
CfnHostProps.getAutoPlacement() |
CfnHostProps.Builder |
availabilityZone(String availabilityZone)
Sets the value of
CfnHostProps.getAvailabilityZone() |
CfnHostProps |
build()
Builds the configured instance.
|
CfnHostProps.Builder |
hostRecovery(String hostRecovery)
Sets the value of
CfnHostProps.getHostRecovery() |
CfnHostProps.Builder |
instanceFamily(String instanceFamily)
Sets the value of
CfnHostProps.getInstanceFamily() |
CfnHostProps.Builder |
instanceType(String instanceType)
Sets the value of
CfnHostProps.getInstanceType() |
CfnHostProps.Builder |
outpostArn(String outpostArn)
Sets the value of
CfnHostProps.getOutpostArn() |
@Stability(value=Stable) public CfnHostProps.Builder availabilityZone(String availabilityZone)
CfnHostProps.getAvailabilityZone()availabilityZone - The Availability Zone in which to allocate the Dedicated Host. This parameter is required.this@Stability(value=Stable) public CfnHostProps.Builder autoPlacement(String autoPlacement)
CfnHostProps.getAutoPlacement()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: on
this@Stability(value=Stable) public CfnHostProps.Builder hostRecovery(String hostRecovery)
CfnHostProps.getHostRecovery()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
this@Stability(value=Stable) public CfnHostProps.Builder instanceFamily(String instanceFamily)
CfnHostProps.getInstanceFamily()instanceFamily - `AWS::EC2::Host.InstanceFamily`.this@Stability(value=Stable) public CfnHostProps.Builder instanceType(String instanceType)
CfnHostProps.getInstanceType()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.this@Stability(value=Stable) public CfnHostProps.Builder outpostArn(String outpostArn)
CfnHostProps.getOutpostArn()outpostArn - `AWS::EC2::Host.OutpostArn`.this@Stability(value=Stable) public CfnHostProps build()
build in interface software.amazon.jsii.Builder<CfnHostProps>CfnHostPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.