amazonka-backupstorage-2.0: Amazon Backup Storage 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.BackupStorage.PutObject

Description

Upload object that can store object metadata String and data blob in single API call using inline chunk field.

Synopsis

Creating a Request

data PutObject Source #

See: newPutObject smart constructor.

Constructors

PutObject' 

Fields

Instances

Instances details
ToBody PutObject Source # 
Instance details

Defined in Amazonka.BackupStorage.PutObject

ToHeaders PutObject Source # 
Instance details

Defined in Amazonka.BackupStorage.PutObject

Methods

toHeaders :: PutObject -> [Header] #

ToPath PutObject Source # 
Instance details

Defined in Amazonka.BackupStorage.PutObject

ToQuery PutObject Source # 
Instance details

Defined in Amazonka.BackupStorage.PutObject

AWSRequest PutObject Source # 
Instance details

Defined in Amazonka.BackupStorage.PutObject

Associated Types

type AWSResponse PutObject #

Generic PutObject Source # 
Instance details

Defined in Amazonka.BackupStorage.PutObject

Associated Types

type Rep PutObject :: Type -> Type #

Show PutObject Source # 
Instance details

Defined in Amazonka.BackupStorage.PutObject

type AWSResponse PutObject Source # 
Instance details

Defined in Amazonka.BackupStorage.PutObject

type Rep PutObject Source # 
Instance details

Defined in Amazonka.BackupStorage.PutObject

newPutObject Source #

Create a value of PutObject 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:

PutObject, putObject_inlineChunkChecksum - Inline chunk checksum

PutObject, putObject_inlineChunkChecksumAlgorithm - Inline chunk checksum algorithm

$sel:inlineChunkLength:PutObject', putObject_inlineChunkLength - Length of the inline chunk data.

PutObject, putObject_metadataString - Store user defined metadata like backup checksum, disk ids, restore metadata etc.

PutObject, putObject_objectChecksum - object checksum

PutObject, putObject_objectChecksumAlgorithm - object checksum algorithm

$sel:throwOnDuplicate:PutObject', putObject_throwOnDuplicate - Throw an exception if Object name is already exist.

$sel:backupJobId:PutObject', putObject_backupJobId - Backup job Id for the in-progress backup.

$sel:objectName:PutObject', putObject_objectName - The name of the Object to be uploaded.

$sel:inlineChunk:PutObject', putObject_inlineChunk - Inline chunk data to be uploaded.

Request Lenses

putObject_inlineChunkLength :: Lens' PutObject (Maybe Integer) Source #

Length of the inline chunk data.

putObject_metadataString :: Lens' PutObject (Maybe Text) Source #

Store user defined metadata like backup checksum, disk ids, restore metadata etc.

putObject_throwOnDuplicate :: Lens' PutObject (Maybe Bool) Source #

Throw an exception if Object name is already exist.

putObject_backupJobId :: Lens' PutObject Text Source #

Backup job Id for the in-progress backup.

putObject_objectName :: Lens' PutObject Text Source #

The name of the Object to be uploaded.

putObject_inlineChunk :: Lens' PutObject HashedBody Source #

Inline chunk data to be uploaded.

Destructuring the Response

data PutObjectResponse Source #

See: newPutObjectResponse smart constructor.

Constructors

PutObjectResponse' 

Fields

Instances

Instances details
Generic PutObjectResponse Source # 
Instance details

Defined in Amazonka.BackupStorage.PutObject

Associated Types

type Rep PutObjectResponse :: Type -> Type #

Read PutObjectResponse Source # 
Instance details

Defined in Amazonka.BackupStorage.PutObject

Show PutObjectResponse Source # 
Instance details

Defined in Amazonka.BackupStorage.PutObject

NFData PutObjectResponse Source # 
Instance details

Defined in Amazonka.BackupStorage.PutObject

Methods

rnf :: PutObjectResponse -> () #

Eq PutObjectResponse Source # 
Instance details

Defined in Amazonka.BackupStorage.PutObject

type Rep PutObjectResponse Source # 
Instance details

Defined in Amazonka.BackupStorage.PutObject

type Rep PutObjectResponse = D1 ('MetaData "PutObjectResponse" "Amazonka.BackupStorage.PutObject" "amazonka-backupstorage-2.0-LZ4MZsHhisz8sYMq4uJ5tw" 'False) (C1 ('MetaCons "PutObjectResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "inlineChunkChecksum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "inlineChunkChecksumAlgorithm") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 DataChecksumAlgorithm) :*: (S1 ('MetaSel ('Just "objectChecksum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "objectChecksumAlgorithm") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SummaryChecksumAlgorithm)))))

newPutObjectResponse Source #

Create a value of PutObjectResponse 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:httpStatus:PutObjectResponse', putObjectResponse_httpStatus - The response's http status code.

PutObject, putObjectResponse_inlineChunkChecksum - Inline chunk checksum

PutObject, putObjectResponse_inlineChunkChecksumAlgorithm - Inline chunk checksum algorithm

PutObject, putObjectResponse_objectChecksum - object checksum

PutObject, putObjectResponse_objectChecksumAlgorithm - object checksum algorithm

Response Lenses

putObjectResponse_httpStatus :: Lens' PutObjectResponse Int Source #

The response's http status code.