amazonka-clouddirectory-1.6.1: 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 # 
Instance details

Defined in Network.AWS.CloudDirectory.BatchWrite

Data BatchWrite Source # 
Instance details

Defined in Network.AWS.CloudDirectory.BatchWrite

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

Defined in Network.AWS.CloudDirectory.BatchWrite

Show BatchWrite Source # 
Instance details

Defined in Network.AWS.CloudDirectory.BatchWrite

Generic BatchWrite Source # 
Instance details

Defined in Network.AWS.CloudDirectory.BatchWrite

Associated Types

type Rep BatchWrite :: Type -> Type #

Hashable BatchWrite Source # 
Instance details

Defined in Network.AWS.CloudDirectory.BatchWrite

ToJSON BatchWrite Source # 
Instance details

Defined in Network.AWS.CloudDirectory.BatchWrite

AWSRequest BatchWrite Source # 
Instance details

Defined in Network.AWS.CloudDirectory.BatchWrite

Associated Types

type Rs BatchWrite :: Type #

ToHeaders BatchWrite Source # 
Instance details

Defined in Network.AWS.CloudDirectory.BatchWrite

Methods

toHeaders :: BatchWrite -> [Header] #

ToPath BatchWrite Source # 
Instance details

Defined in Network.AWS.CloudDirectory.BatchWrite

ToQuery BatchWrite Source # 
Instance details

Defined in Network.AWS.CloudDirectory.BatchWrite

NFData BatchWrite Source # 
Instance details

Defined in Network.AWS.CloudDirectory.BatchWrite

Methods

rnf :: BatchWrite -> () #

type Rep BatchWrite Source # 
Instance details

Defined in Network.AWS.CloudDirectory.BatchWrite

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

Defined in Network.AWS.CloudDirectory.BatchWrite

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

Defined in Network.AWS.CloudDirectory.BatchWrite

Data BatchWriteResponse Source # 
Instance details

Defined in Network.AWS.CloudDirectory.BatchWrite

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

Defined in Network.AWS.CloudDirectory.BatchWrite

Show BatchWriteResponse Source # 
Instance details

Defined in Network.AWS.CloudDirectory.BatchWrite

Generic BatchWriteResponse Source # 
Instance details

Defined in Network.AWS.CloudDirectory.BatchWrite

Associated Types

type Rep BatchWriteResponse :: Type -> Type #

NFData BatchWriteResponse Source # 
Instance details

Defined in Network.AWS.CloudDirectory.BatchWrite

Methods

rnf :: BatchWriteResponse -> () #

type Rep BatchWriteResponse Source # 
Instance details

Defined in Network.AWS.CloudDirectory.BatchWrite

type Rep BatchWriteResponse = D1 (MetaData "BatchWriteResponse" "Network.AWS.CloudDirectory.BatchWrite" "amazonka-clouddirectory-1.6.1-JrYxtgIzVKD25mU0ZgOTPe" False) (C1 (MetaCons "BatchWriteResponse'" PrefixI True) (S1 (MetaSel (Just "_bwrsResponses") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [BatchWriteOperationResponse])) :*: S1 (MetaSel (Just "_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.