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

  • 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 Source #

Contains the parameters for CreatePlacementGroup.

See: createPlacementGroup smart constructor.

Instances
Eq CreatePlacementGroup Source # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

Data CreatePlacementGroup Source # 
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 Source # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

Show CreatePlacementGroup Source # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

Generic CreatePlacementGroup Source # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

Associated Types

type Rep CreatePlacementGroup :: Type -> Type #

Hashable CreatePlacementGroup Source # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

AWSRequest CreatePlacementGroup Source # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

Associated Types

type Rs CreatePlacementGroup :: Type #

ToHeaders CreatePlacementGroup Source # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

ToPath CreatePlacementGroup Source # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

ToQuery CreatePlacementGroup Source # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

NFData CreatePlacementGroup Source # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

Methods

rnf :: CreatePlacementGroup -> () #

type Rep CreatePlacementGroup Source # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

type Rep CreatePlacementGroup = D1 (MetaData "CreatePlacementGroup" "Network.AWS.EC2.CreatePlacementGroup" "amazonka-ec2-1.6.1-GgG1M0FWcBrE5I5IM2QktE" 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 Source # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

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. Must be unique within the scope of your account for the region. 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.

data CreatePlacementGroupResponse Source #

See: createPlacementGroupResponse smart constructor.

Instances
Eq CreatePlacementGroupResponse Source # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

Data CreatePlacementGroupResponse Source # 
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 Source # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

Show CreatePlacementGroupResponse Source # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

Generic CreatePlacementGroupResponse Source # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

Associated Types

type Rep CreatePlacementGroupResponse :: Type -> Type #

NFData CreatePlacementGroupResponse Source # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

type Rep CreatePlacementGroupResponse Source # 
Instance details

Defined in Network.AWS.EC2.CreatePlacementGroup

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