@Stability(value=Stable)
public static interface CfnLaunchTemplate.PlacementProperty
extends software.amazon.jsii.JsiiSerializable
Placement is a property of AWS::EC2::LaunchTemplate LaunchTemplateData .
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.*;
PlacementProperty placementProperty = PlacementProperty.builder()
.affinity("affinity")
.availabilityZone("availabilityZone")
.groupName("groupName")
.hostId("hostId")
.hostResourceGroupArn("hostResourceGroupArn")
.partitionNumber(123)
.spreadDomain("spreadDomain")
.tenancy("tenancy")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnLaunchTemplate.PlacementProperty.Builder
A builder for
CfnLaunchTemplate.PlacementProperty |
static class |
CfnLaunchTemplate.PlacementProperty.Jsii$Proxy
An implementation for
CfnLaunchTemplate.PlacementProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnLaunchTemplate.PlacementProperty.Builder |
builder() |
default String |
getAffinity()
The affinity setting for an instance on a Dedicated Host.
|
default String |
getAvailabilityZone()
The Availability Zone for the instance.
|
default String |
getGroupName()
The name of the placement group for the instance.
|
default String |
getHostId()
The ID of the Dedicated Host for the instance.
|
default String |
getHostResourceGroupArn()
The ARN of the host resource group in which to launch the instances.
|
default Number |
getPartitionNumber()
The number of the partition the instance should launch in.
|
default String |
getSpreadDomain()
Reserved for future use.
|
default String |
getTenancy()
The tenancy of the instance (if the instance is running in a VPC).
|
@Stability(value=Stable) @Nullable default String getAffinity()
@Stability(value=Stable) @Nullable default String getAvailabilityZone()
@Stability(value=Stable) @Nullable default String getGroupName()
@Stability(value=Stable) @Nullable default String getHostId()
@Stability(value=Stable) @Nullable default String getHostResourceGroupArn()
If you specify a host resource group ARN, omit the Tenancy parameter or set it to host .
@Stability(value=Stable) @Nullable default Number getPartitionNumber()
Valid only if the placement group strategy is set to partition .
@Stability(value=Stable) @Nullable default String getSpreadDomain()
@Stability(value=Stable) @Nullable default String getTenancy()
An instance with a tenancy of dedicated runs on single-tenant hardware.
@Stability(value=Stable) static CfnLaunchTemplate.PlacementProperty.Builder builder()
Copyright © 2022. All rights reserved.