amazonka-ec2-1.3.0: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <>
Portabilitynon-portable (GHC extensions)
Safe HaskellNone




Creates a placement group that you launch cluster instances into. You must give the group a name that's unique within the scope of your account.

For more information about placement groups and cluster instances, see Cluster Instances in the Amazon Elastic Compute Cloud User Guide.

See: AWS API Reference for CreatePlacementGroup.


Creating a Request

createPlacementGroup Source

Creates a value of CreatePlacementGroup with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

cpgDryRun :: 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.

cpgGroupName :: Lens' CreatePlacementGroup Text Source

A name for the placement group.

Constraints: Up to 255 ASCII characters

Destructuring the Response

createPlacementGroupResponse :: CreatePlacementGroupResponse Source

Creates a value of CreatePlacementGroupResponse with the minimum fields required to make a request.