interface CfnPlacementGroupProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EC2.CfnPlacementGroupProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnPlacementGroupProps |
Java | software.amazon.awscdk.services.ec2.CfnPlacementGroupProps |
Python | aws_cdk.aws_ec2.CfnPlacementGroupProps |
TypeScript | aws-cdk-lib » aws_ec2 » CfnPlacementGroupProps |
Properties for defining a CfnPlacementGroup.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-placementgroup.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnPlacementGroupProps: ec2.CfnPlacementGroupProps = {
partitionCount: 123,
spreadLevel: 'spreadLevel',
strategy: 'strategy',
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| partition | number | The number of partitions. |
| spread | string | Determines how placement groups spread instances. |
| strategy? | string | The placement strategy. |
| tags? | Cfn[] | The tags to apply to the new placement group. |
partitionCount?
Type:
number
(optional)
The number of partitions.
Valid only when Strategy is set to partition .
spreadLevel?
Type:
string
(optional)
Determines how placement groups spread instances.
- Host – You can use
hostonly with Outpost placement groups. - Rack – No usage restrictions.
strategy?
Type:
string
(optional)
The placement strategy.
tags?
Type:
Cfn[]
(optional)
The tags to apply to the new placement group.

.NET
Go
Java
Python
TypeScript