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

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

Network.AWS.EC2.CreatePlacementGroup

Contents

Description

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.

For more information, see Placement Groups 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. Must be unique within the scope of your account for the region. Constraints: Up to 255 ASCII characters
  • cpgStrategy - The placement strategy.

data CreatePlacementGroup #

Contains the parameters for CreatePlacementGroup.

See: createPlacementGroup smart constructor.

Instances
Eq CreatePlacementGroup # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

Data CreatePlacementGroup # 
Instance details

Defined in Network.AWS.EC2.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 # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

Show CreatePlacementGroup # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

Generic CreatePlacementGroup # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

Associated Types

type Rep CreatePlacementGroup :: Type -> Type #

Hashable CreatePlacementGroup # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

AWSRequest CreatePlacementGroup # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

Associated Types

type Rs CreatePlacementGroup :: Type #

ToHeaders CreatePlacementGroup # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

ToPath CreatePlacementGroup # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

ToQuery CreatePlacementGroup # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

NFData CreatePlacementGroup # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

Methods

rnf :: CreatePlacementGroup -> () #

type Rep CreatePlacementGroup # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

type Rep CreatePlacementGroup = D1 (MetaData "CreatePlacementGroup" "Network.AWS.EC2.CreatePlacementGroup" "amazonka-ec2-1.6.1-H98Zd65xIYr2z4e5UhW9ck" False) (C1 (MetaCons "CreatePlacementGroup'" PrefixI True) (S1 (MetaSel (Just "_cpgDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_cpgGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_cpgStrategy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 PlacementStrategy))))
type Rs CreatePlacementGroup # 
Instance details

Defined in Network.AWS.EC2.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. Must be unique within the scope of your account for the region. 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 # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

Data CreatePlacementGroupResponse # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

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 # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

Show CreatePlacementGroupResponse # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

Generic CreatePlacementGroupResponse # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

Associated Types

type Rep CreatePlacementGroupResponse :: Type -> Type #

NFData CreatePlacementGroupResponse # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

type Rep CreatePlacementGroupResponse # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

type Rep CreatePlacementGroupResponse = D1 (MetaData "CreatePlacementGroupResponse" "Network.AWS.EC2.CreatePlacementGroup" "amazonka-ec2-1.6.1-H98Zd65xIYr2z4e5UhW9ck" False) (C1 (MetaCons "CreatePlacementGroupResponse'" PrefixI False) (U1 :: Type -> Type))