Skip to content

CreatePlacementGroupRequest

Source code in docs_src/capo_ec2/types/create_placement_group_request.py
class CreatePlacementGroupRequest(TypedDict, closed=True):
    partition_count: NotRequired["capo_ec2.types.integer.Integer"]
    """<p>The number of partitions. Valid only when <b>Strategy</b> is set to <code>partition</code>.</p>"""
    tag_specifications: NotRequired[
        "capo_ec2.types.tag_specification_list.TagSpecificationList"
    ]
    """<p>The tags to apply to the new placement group.</p>"""
    spread_level: NotRequired["capo_ec2.types.spread_level.SpreadLevel"]
    """<p>Determines how placement groups spread instances. </p> <ul> <li> <p>Host – You can use <code>host</code> only with Outpost placement groups.</p> </li> <li> <p>Rack – No usage restrictions.</p> </li> </ul>"""
    linked_group_id: NotRequired["capo_ec2.types.placement_group_id.PlacementGroupId"]
    """<p>Reserved for future use.</p>"""
    operator: NotRequired["capo_ec2.types.operator_request.OperatorRequest"]
    """<p>Reserved for internal use.</p>"""
    parent_group_id: NotRequired["capo_ec2.types.placement_group_id.PlacementGroupId"]
    """<p>The ID of a parent placement group. Valid only when <b>Strategy</b> is set to <code>cluster</code>.</p>"""
    dry_run: NotRequired["capo_ec2.types.boolean.Boolean"]
    """<p>Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>"""
    group_name: NotRequired["capo_ec2.types.string.String"]
    """<p>A name for the placement group. Must be unique within the scope of your account for the Region.</p> <p>Constraints: Up to 255 ASCII characters</p>"""
    strategy: NotRequired["capo_ec2.types.placement_strategy.PlacementStrategy"]
    """<p>The placement strategy.</p>"""

dry_run instance-attribute

dry_run: NotRequired[Boolean]

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

group_name instance-attribute

group_name: NotRequired[String]

A name for the placement group. Must be unique within the scope of your account for the Region.

Constraints: Up to 255 ASCII characters

linked_group_id instance-attribute

linked_group_id: NotRequired[PlacementGroupId]

Reserved for future use.

operator instance-attribute

operator: NotRequired[OperatorRequest]

Reserved for internal use.

parent_group_id instance-attribute

parent_group_id: NotRequired[PlacementGroupId]

The ID of a parent placement group. Valid only when Strategy is set to cluster.

partition_count instance-attribute

partition_count: NotRequired[Integer]

The number of partitions. Valid only when Strategy is set to partition.

spread_level instance-attribute

spread_level: NotRequired[SpreadLevel]

Determines how placement groups spread instances.

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

  • Rack – No usage restrictions.

strategy instance-attribute

strategy: NotRequired[PlacementStrategy]

The placement strategy.

tag_specifications instance-attribute

tag_specifications: NotRequired[TagSpecificationList]

The tags to apply to the new placement group.