CfnPlacementGroupProps
- class aws_cdk.aws_ec2.CfnPlacementGroupProps(*, partition_count=None, spread_level=None, strategy=None, tags=None)
Bases:
objectProperties for defining a
CfnPlacementGroup.- Parameters:
partition_count (
Union[int,float,None]) – The number of partitions. Valid only when Strategy is set topartition.spread_level (
Optional[str]) – Determines how placement groups spread instances. - Host – You can usehostonly with Outpost placement groups. - Rack – No usage restrictions.strategy (
Optional[str]) – The placement strategy.tags (
Optional[Sequence[Union[CfnTag,Dict[str,Any]]]]) – The tags to apply to the new placement group.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-placementgroup.html
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_ec2 as ec2 cfn_placement_group_props = ec2.CfnPlacementGroupProps( partition_count=123, spread_level="spreadLevel", strategy="strategy", tags=[CfnTag( key="key", value="value" )] )
Attributes
- partition_count
The number of partitions.
Valid only when Strategy is set to
partition.
- spread_level
Determines how placement groups spread instances.
Host – You can use
hostonly with Outpost placement groups.Rack – No usage restrictions.
- strategy
The placement strategy.
- tags
The tags to apply to the new placement group.