Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Creates a placement group in which to launch instances. The strategy of the placement group determines how the instances are organized within the group.
A cluster
placement group is a logical grouping of instances within a
single Availability Zone that benefit from low network latency, high
network throughput. A spread
placement group places instances on
distinct hardware. A partition
placement group places groups of
instances in different partitions, where instances in one partition do
not share the same hardware with instances in another partition.
For more information, see Placement groups in the Amazon EC2 User Guide.
Synopsis
- data CreatePlacementGroup = CreatePlacementGroup' {}
- newCreatePlacementGroup :: CreatePlacementGroup
- createPlacementGroup_dryRun :: Lens' CreatePlacementGroup (Maybe Bool)
- createPlacementGroup_groupName :: Lens' CreatePlacementGroup (Maybe Text)
- createPlacementGroup_partitionCount :: Lens' CreatePlacementGroup (Maybe Int)
- createPlacementGroup_spreadLevel :: Lens' CreatePlacementGroup (Maybe SpreadLevel)
- createPlacementGroup_strategy :: Lens' CreatePlacementGroup (Maybe PlacementStrategy)
- createPlacementGroup_tagSpecifications :: Lens' CreatePlacementGroup (Maybe [TagSpecification])
- data CreatePlacementGroupResponse = CreatePlacementGroupResponse' {}
- newCreatePlacementGroupResponse :: Int -> CreatePlacementGroupResponse
- createPlacementGroupResponse_placementGroup :: Lens' CreatePlacementGroupResponse (Maybe PlacementGroup)
- createPlacementGroupResponse_httpStatus :: Lens' CreatePlacementGroupResponse Int
Creating a Request
data CreatePlacementGroup Source #
See: newCreatePlacementGroup
smart constructor.
CreatePlacementGroup' | |
|
Instances
newCreatePlacementGroup :: CreatePlacementGroup Source #
Create a value of CreatePlacementGroup
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dryRun:CreatePlacementGroup'
, createPlacementGroup_dryRun
- Checks whether you have the required permissions for the action, 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
.
CreatePlacementGroup
, createPlacementGroup_groupName
- A name for the placement group. Must be unique within the scope of your
account for the Region.
Constraints: Up to 255 ASCII characters
CreatePlacementGroup
, createPlacementGroup_partitionCount
- The number of partitions. Valid only when Strategy is set to
partition
.
CreatePlacementGroup
, createPlacementGroup_spreadLevel
- Determines how placement groups spread instances.
- Host – You can use
host
only with Outpost placement groups. - Rack – No usage restrictions.
CreatePlacementGroup
, createPlacementGroup_strategy
- The placement strategy.
CreatePlacementGroup
, createPlacementGroup_tagSpecifications
- The tags to apply to the new placement group.
Request Lenses
createPlacementGroup_dryRun :: Lens' CreatePlacementGroup (Maybe Bool) Source #
Checks whether you have the required permissions for the action, 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
.
createPlacementGroup_groupName :: Lens' CreatePlacementGroup (Maybe Text) Source #
A name for the placement group. Must be unique within the scope of your account for the Region.
Constraints: Up to 255 ASCII characters
createPlacementGroup_partitionCount :: Lens' CreatePlacementGroup (Maybe Int) Source #
The number of partitions. Valid only when Strategy is set to
partition
.
createPlacementGroup_spreadLevel :: Lens' CreatePlacementGroup (Maybe SpreadLevel) Source #
Determines how placement groups spread instances.
- Host – You can use
host
only with Outpost placement groups. - Rack – No usage restrictions.
createPlacementGroup_strategy :: Lens' CreatePlacementGroup (Maybe PlacementStrategy) Source #
The placement strategy.
createPlacementGroup_tagSpecifications :: Lens' CreatePlacementGroup (Maybe [TagSpecification]) Source #
The tags to apply to the new placement group.
Destructuring the Response
data CreatePlacementGroupResponse Source #
See: newCreatePlacementGroupResponse
smart constructor.
CreatePlacementGroupResponse' | |
|
Instances
newCreatePlacementGroupResponse Source #
Create a value of CreatePlacementGroupResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:placementGroup:CreatePlacementGroupResponse'
, createPlacementGroupResponse_placementGroup
- Information about the placement group.
$sel:httpStatus:CreatePlacementGroupResponse'
, createPlacementGroupResponse_httpStatus
- The response's http status code.
Response Lenses
createPlacementGroupResponse_placementGroup :: Lens' CreatePlacementGroupResponse (Maybe PlacementGroup) Source #
Information about the placement group.
createPlacementGroupResponse_httpStatus :: Lens' CreatePlacementGroupResponse Int Source #
The response's http status code.