interface CfnPlacementGroupProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EC2.CfnPlacementGroupProps |
Java | software.amazon.awscdk.services.ec2.CfnPlacementGroupProps |
Python | aws_cdk.aws_ec2.CfnPlacementGroupProps |
TypeScript | @aws-cdk/aws-ec2 » CfnPlacementGroupProps |
Properties for defining a CfnPlacementGroup
.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ec2 from '@aws-cdk/aws-ec2';
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
host
only 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.