amazonka-clouddirectory-2.0: Amazon CloudDirectory SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CloudDirectory.BatchWrite

Description

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

Synopsis

Creating a Request

data BatchWrite Source #

See: newBatchWrite smart constructor.

Constructors

BatchWrite' 

Fields

Instances

Instances details
ToJSON BatchWrite Source # 
Instance details

Defined in Amazonka.CloudDirectory.BatchWrite

ToHeaders BatchWrite Source # 
Instance details

Defined in Amazonka.CloudDirectory.BatchWrite

Methods

toHeaders :: BatchWrite -> [Header] #

ToPath BatchWrite Source # 
Instance details

Defined in Amazonka.CloudDirectory.BatchWrite

ToQuery BatchWrite Source # 
Instance details

Defined in Amazonka.CloudDirectory.BatchWrite

AWSRequest BatchWrite Source # 
Instance details

Defined in Amazonka.CloudDirectory.BatchWrite

Associated Types

type AWSResponse BatchWrite #

Generic BatchWrite Source # 
Instance details

Defined in Amazonka.CloudDirectory.BatchWrite

Associated Types

type Rep BatchWrite :: Type -> Type #

Read BatchWrite Source # 
Instance details

Defined in Amazonka.CloudDirectory.BatchWrite

Show BatchWrite Source # 
Instance details

Defined in Amazonka.CloudDirectory.BatchWrite

NFData BatchWrite Source # 
Instance details

Defined in Amazonka.CloudDirectory.BatchWrite

Methods

rnf :: BatchWrite -> () #

Eq BatchWrite Source # 
Instance details

Defined in Amazonka.CloudDirectory.BatchWrite

Hashable BatchWrite Source # 
Instance details

Defined in Amazonka.CloudDirectory.BatchWrite

type AWSResponse BatchWrite Source # 
Instance details

Defined in Amazonka.CloudDirectory.BatchWrite

type Rep BatchWrite Source # 
Instance details

Defined in Amazonka.CloudDirectory.BatchWrite

type Rep BatchWrite = D1 ('MetaData "BatchWrite" "Amazonka.CloudDirectory.BatchWrite" "amazonka-clouddirectory-2.0-JYRSwrX5Vm289hhbSwe2zQ" 'False) (C1 ('MetaCons "BatchWrite'" 'PrefixI 'True) (S1 ('MetaSel ('Just "directoryArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "operations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [BatchWriteOperation])))

newBatchWrite Source #

Arguments

:: Text

BatchWrite

-> BatchWrite 

Create a value of BatchWrite with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

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

$sel:operations:BatchWrite', batchWrite_operations - A list of operations that are part of the batch.

Request Lenses

batchWrite_directoryArn :: Lens' BatchWrite Text Source #

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

batchWrite_operations :: Lens' BatchWrite [BatchWriteOperation] Source #

A list of operations that are part of the batch.

Destructuring the Response

data BatchWriteResponse Source #

See: newBatchWriteResponse smart constructor.

Constructors

BatchWriteResponse' 

Fields

Instances

Instances details
Generic BatchWriteResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.BatchWrite

Associated Types

type Rep BatchWriteResponse :: Type -> Type #

Read BatchWriteResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.BatchWrite

Show BatchWriteResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.BatchWrite

NFData BatchWriteResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.BatchWrite

Methods

rnf :: BatchWriteResponse -> () #

Eq BatchWriteResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.BatchWrite

type Rep BatchWriteResponse Source # 
Instance details

Defined in Amazonka.CloudDirectory.BatchWrite

type Rep BatchWriteResponse = D1 ('MetaData "BatchWriteResponse" "Amazonka.CloudDirectory.BatchWrite" "amazonka-clouddirectory-2.0-JYRSwrX5Vm289hhbSwe2zQ" 'False) (C1 ('MetaCons "BatchWriteResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "responses") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [BatchWriteOperationResponse])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newBatchWriteResponse Source #

Create a value of BatchWriteResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:responses:BatchWriteResponse', batchWriteResponse_responses - A list of all the responses for each batch write.

$sel:httpStatus:BatchWriteResponse', batchWriteResponse_httpStatus - The response's http status code.

Response Lenses

batchWriteResponse_responses :: Lens' BatchWriteResponse (Maybe [BatchWriteOperationResponse]) Source #

A list of all the responses for each batch write.