@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:28.284Z") @Stability(value=Stable) public interface CfnHostProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
CfnHostProps cfnHostProps = CfnHostProps.builder()
.availabilityZone("availabilityZone")
.instanceType("instanceType")
// the properties below are optional
.autoPlacement("autoPlacement")
.hostRecovery("hostRecovery")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnHostProps.Builder
A builder for
CfnHostProps |
static class |
CfnHostProps.Jsii$Proxy
An implementation for
CfnHostProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnHostProps.Builder |
builder() |
default String |
getAutoPlacement()
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.
|
String |
getAvailabilityZone()
The Availability Zone in which to allocate the Dedicated Host.
|
default String |
getHostRecovery()
Indicates whether to enable or disable host recovery for the Dedicated Host.
|
String |
getInstanceType()
Specifies the instance type to be supported by the Dedicated Hosts.
|
@Stability(value=Stable) @NotNull String getAvailabilityZone()
@Stability(value=Stable) @NotNull String getInstanceType()
If you specify an instance type, the Dedicated Hosts support instances of the specified instance type only.
@Stability(value=Stable) @Nullable default String getAutoPlacement()
For more information, see Understanding auto-placement and affinity in the Amazon EC2 User Guide .
Default: on
@Stability(value=Stable) @Nullable default String getHostRecovery()
Host recovery is disabled by default. For more information, see Host recovery in the Amazon EC2 User Guide .
Default: off
@Stability(value=Stable) static CfnHostProps.Builder builder()
CfnHostProps.Builder of CfnHostPropsCopyright © 2022. All rights reserved.