@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.274Z") @Stability(value=Stable) public class CfnPlacementGroup extends CfnResource implements IInspectable
Specifies a placement group in which to launch instances. The strategy of the placement group determines how the instances are organized within the group.
A cluster placement group is a logical grouping of instances within a single Availability Zone that benefit from low network latency, high network throughput. A spread placement group places instances on distinct hardware. A partition placement group places groups of instances in different partitions, where instances in one partition do not share the same hardware with instances in another partition.
For more information, see Placement Groups in the Amazon EC2 User Guide .
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.*;
CfnPlacementGroup cfnPlacementGroup = CfnPlacementGroup.Builder.create(this, "MyCfnPlacementGroup")
.spreadLevel("spreadLevel")
.strategy("strategy")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnPlacementGroup.Builder
A fluent builder for
CfnPlacementGroup. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnPlacementGroup(software.constructs.Construct scope,
String id)
Create a new `AWS::EC2::PlacementGroup`.
|
|
CfnPlacementGroup(software.constructs.Construct scope,
String id,
CfnPlacementGroupProps props)
Create a new `AWS::EC2::PlacementGroup`.
|
protected |
CfnPlacementGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnPlacementGroup(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrGroupName() |
protected Map<String,Object> |
getCfnProperties() |
String |
getSpreadLevel()
`AWS::EC2::PlacementGroup.SpreadLevel`.
|
String |
getStrategy()
The placement strategy.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setSpreadLevel(String value)
`AWS::EC2::PlacementGroup.SpreadLevel`.
|
void |
setStrategy(String value)
The placement strategy.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnPlacementGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnPlacementGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnPlacementGroup(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
CfnPlacementGroupProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties.@Stability(value=Stable)
public CfnPlacementGroup(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrGroupName()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public String getSpreadLevel()
@Stability(value=Stable)
public void setSpreadLevel(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getStrategy()
@Stability(value=Stable)
public void setStrategy(@Nullable
String value)
Copyright © 2022. All rights reserved.