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

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.CreatePlacementGroup

Contents

Description

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 .

Synopsis

Creating a Request

createPlacementGroup #

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:

  • cpgDryRun - 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 - A name for the placement group. Constraints: Up to 255 ASCII characters
  • cpgStrategy - The placement strategy.

data CreatePlacementGroup #

Contains the parameters for CreatePlacementGroup.

See: createPlacementGroup smart constructor.

Instances

Eq CreatePlacementGroup # 
Data CreatePlacementGroup # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreatePlacementGroup -> c CreatePlacementGroup #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreatePlacementGroup #

toConstr :: CreatePlacementGroup -> Constr #

dataTypeOf :: CreatePlacementGroup -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreatePlacementGroup) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreatePlacementGroup) #

gmapT :: (forall b. Data b => b -> b) -> CreatePlacementGroup -> CreatePlacementGroup #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreatePlacementGroup -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreatePlacementGroup -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreatePlacementGroup -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreatePlacementGroup -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreatePlacementGroup -> m CreatePlacementGroup #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreatePlacementGroup -> m CreatePlacementGroup #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreatePlacementGroup -> m CreatePlacementGroup #

Read CreatePlacementGroup # 
Show CreatePlacementGroup # 
Generic CreatePlacementGroup # 
Hashable CreatePlacementGroup # 
NFData CreatePlacementGroup # 

Methods

rnf :: CreatePlacementGroup -> () #

AWSRequest CreatePlacementGroup # 
ToQuery CreatePlacementGroup # 
ToPath CreatePlacementGroup # 
ToHeaders CreatePlacementGroup # 
type Rep CreatePlacementGroup # 
type Rep CreatePlacementGroup = D1 (MetaData "CreatePlacementGroup" "Network.AWS.EC2.CreatePlacementGroup" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "CreatePlacementGroup'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cpgDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_cpgGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_cpgStrategy") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 PlacementStrategy)))))
type Rs CreatePlacementGroup # 

Request Lenses

cpgDryRun :: Lens' CreatePlacementGroup (Maybe Bool) #

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 #

A name for the placement group. Constraints: Up to 255 ASCII characters

Destructuring the Response

createPlacementGroupResponse :: CreatePlacementGroupResponse #

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

data CreatePlacementGroupResponse #

See: createPlacementGroupResponse smart constructor.

Instances

Eq CreatePlacementGroupResponse # 
Data CreatePlacementGroupResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreatePlacementGroupResponse -> c CreatePlacementGroupResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreatePlacementGroupResponse #

toConstr :: CreatePlacementGroupResponse -> Constr #

dataTypeOf :: CreatePlacementGroupResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreatePlacementGroupResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreatePlacementGroupResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreatePlacementGroupResponse -> CreatePlacementGroupResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreatePlacementGroupResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreatePlacementGroupResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreatePlacementGroupResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreatePlacementGroupResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreatePlacementGroupResponse -> m CreatePlacementGroupResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreatePlacementGroupResponse -> m CreatePlacementGroupResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreatePlacementGroupResponse -> m CreatePlacementGroupResponse #

Read CreatePlacementGroupResponse # 
Show CreatePlacementGroupResponse # 
Generic CreatePlacementGroupResponse # 
NFData CreatePlacementGroupResponse # 
type Rep CreatePlacementGroupResponse # 
type Rep CreatePlacementGroupResponse = D1 (MetaData "CreatePlacementGroupResponse" "Network.AWS.EC2.CreatePlacementGroup" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "CreatePlacementGroupResponse'" PrefixI False) U1)