Interface CfnHostProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnHostProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:36.800Z")
@Stability(Stable)
public interface CfnHostProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnHost.
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")
// the properties below are optional
.assetId("assetId")
.autoPlacement("autoPlacement")
.hostMaintenance("hostMaintenance")
.hostRecovery("hostRecovery")
.instanceFamily("instanceFamily")
.instanceType("instanceType")
.outpostArn("outpostArn")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnHostPropsstatic final classAn implementation forCfnHostProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnHostProps.Builderbuilder()default StringThe ID of the Outpost hardware asset on which the Dedicated Host is allocated.default StringIndicates 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.The Availability Zone in which to allocate the Dedicated Host.default StringIndicates whether host maintenance is enabled or disabled for the Dedicated Host.default StringIndicates whether to enable or disable host recovery for the Dedicated Host.default StringThe instance family supported by the Dedicated Host.default StringSpecifies the instance type to be supported by the Dedicated Hosts.default StringThe Amazon Resource Name (ARN) of the AWS Outpost on which the Dedicated Host is allocated.getTags()Any tags assigned to the Dedicated Host.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAvailabilityZone
The Availability Zone in which to allocate the Dedicated Host.- See Also:
-
getAssetId
The ID of the Outpost hardware asset on which the Dedicated Host is allocated.- See Also:
-
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.For more information, see Understanding auto-placement and affinity in the Amazon EC2 User Guide .
Default:
off- See Also:
-
getHostMaintenance
Indicates whether host maintenance is enabled or disabled for the Dedicated Host.- See Also:
-
getHostRecovery
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- See Also:
-
getInstanceFamily
The instance family supported by the Dedicated Host.For example,
m5.- See Also:
-
getInstanceType
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.
- See Also:
-
getOutpostArn
The Amazon Resource Name (ARN) of the AWS Outpost on which the Dedicated Host is allocated.- See Also:
-
getTags
Any tags assigned to the Dedicated Host.- See Also:
-
builder
- Returns:
- a
CfnHostProps.BuilderofCfnHostProps
-