CfnPlacementGroupProps

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

Bases: object

Properties for defining a CfnPlacementGroup.

Parameters
  • spread_level (Optional[str]) – AWS::EC2::PlacementGroup.SpreadLevel.

  • strategy (Optional[str]) – The placement strategy.

Link

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.
import aws_cdk.aws_ec2 as ec2

cfn_placement_group_props = ec2.CfnPlacementGroupProps(
    spread_level="spreadLevel",
    strategy="strategy"
)

Attributes

spread_level

AWS::EC2::PlacementGroup.SpreadLevel.

Link

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

Return type

Optional[str]

strategy

The placement strategy.

Link

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

Return type

Optional[str]