amazonka-clouddirectory-1.6.0: Amazon CloudDirectory 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.CloudDirectory.BatchWrite

Contents

Description

Performs all the write operations in a batch. Either all the operations succeed or none.

Synopsis

Creating a Request

batchWrite Source #

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

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

  • bwDirectoryARN - The Amazon Resource Name (ARN) that is associated with the Directory . For more information, see arns .
  • bwOperations - A list of operations that are part of the batch.

data BatchWrite Source #

See: batchWrite smart constructor.

Instances

Eq BatchWrite Source # 
Data BatchWrite Source # 

Methods

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

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

toConstr :: BatchWrite -> Constr #

dataTypeOf :: BatchWrite -> DataType #

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

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

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

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

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

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

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

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

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

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

Read BatchWrite Source # 
Show BatchWrite Source # 
Generic BatchWrite Source # 

Associated Types

type Rep BatchWrite :: * -> * #

Hashable BatchWrite Source # 
ToJSON BatchWrite Source # 
NFData BatchWrite Source # 

Methods

rnf :: BatchWrite -> () #

AWSRequest BatchWrite Source # 
ToHeaders BatchWrite Source # 

Methods

toHeaders :: BatchWrite -> [Header] #

ToPath BatchWrite Source # 
ToQuery BatchWrite Source # 
type Rep BatchWrite Source # 
type Rep BatchWrite = D1 * (MetaData "BatchWrite" "Network.AWS.CloudDirectory.BatchWrite" "amazonka-clouddirectory-1.6.0-8IFjLCYNMx175Dinq6Lqlq" False) (C1 * (MetaCons "BatchWrite'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_bwDirectoryARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_bwOperations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [BatchWriteOperation]))))
type Rs BatchWrite Source # 

Request Lenses

bwDirectoryARN :: Lens' BatchWrite Text Source #

The Amazon Resource Name (ARN) that is associated with the Directory . For more information, see arns .

bwOperations :: Lens' BatchWrite [BatchWriteOperation] Source #

A list of operations that are part of the batch.

Destructuring the Response

batchWriteResponse Source #

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

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

data BatchWriteResponse Source #

See: batchWriteResponse smart constructor.

Instances

Eq BatchWriteResponse Source # 
Data BatchWriteResponse Source # 

Methods

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

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

toConstr :: BatchWriteResponse -> Constr #

dataTypeOf :: BatchWriteResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read BatchWriteResponse Source # 
Show BatchWriteResponse Source # 
Generic BatchWriteResponse Source # 
NFData BatchWriteResponse Source # 

Methods

rnf :: BatchWriteResponse -> () #

type Rep BatchWriteResponse Source # 
type Rep BatchWriteResponse = D1 * (MetaData "BatchWriteResponse" "Network.AWS.CloudDirectory.BatchWrite" "amazonka-clouddirectory-1.6.0-8IFjLCYNMx175Dinq6Lqlq" False) (C1 * (MetaCons "BatchWriteResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_bwrsResponses") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [BatchWriteOperationResponse]))) (S1 * (MetaSel (Just Symbol "_bwrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

bwrsResponses :: Lens' BatchWriteResponse [BatchWriteOperationResponse] Source #

A list of all the responses for each batch write.

bwrsResponseStatus :: Lens' BatchWriteResponse Int Source #

  • - | The response status code.