CfnPlacementGroupProps

class aws_cdk.aws_ec2.CfnPlacementGroupProps(*, partition_count=None, spread_level=None, strategy=None, tags=None)

Bases: object

Properties for defining a CfnPlacementGroup.

Parameters:
  • partition_count (Union[int, float, None]) – The number of partitions. Valid only when Strategy is set to partition .

  • spread_level (Optional[str]) – Determines how placement groups spread instances. - Host – You can use host only 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 .

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-placementgroup.html#cfn-ec2-placementgroup-partitioncount

spread_level

Determines how placement groups spread instances.

  • Host – You can use host only with Outpost placement groups.

  • Rack – No usage restrictions.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-placementgroup.html#cfn-ec2-placementgroup-spreadlevel

strategy

The placement strategy.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-placementgroup.html#cfn-ec2-placementgroup-strategy

tags

The tags to apply to the new placement group.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-placementgroup.html#cfn-ec2-placementgroup-tags