Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Amazonka.BackupStorage.StartObject
Description
Start upload containing one or many chunks.
Synopsis
- data StartObject = StartObject' {}
- newStartObject :: Text -> Text -> StartObject
- startObject_throwOnDuplicate :: Lens' StartObject (Maybe Bool)
- startObject_backupJobId :: Lens' StartObject Text
- startObject_objectName :: Lens' StartObject Text
- data StartObjectResponse = StartObjectResponse' {
- httpStatus :: Int
- uploadId :: Text
- newStartObjectResponse :: Int -> Text -> StartObjectResponse
- startObjectResponse_httpStatus :: Lens' StartObjectResponse Int
- startObjectResponse_uploadId :: Lens' StartObjectResponse Text
Creating a Request
data StartObject Source #
See: newStartObject
smart constructor.
Constructors
StartObject' | |
Fields
|
Instances
Create a value of StartObject
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:throwOnDuplicate:StartObject'
, startObject_throwOnDuplicate
- Throw an exception if Object name is already exist.
$sel:backupJobId:StartObject'
, startObject_backupJobId
- Backup job Id for the in-progress backup
$sel:objectName:StartObject'
, startObject_objectName
- Name for the object.
Request Lenses
startObject_throwOnDuplicate :: Lens' StartObject (Maybe Bool) Source #
Throw an exception if Object name is already exist.
startObject_backupJobId :: Lens' StartObject Text Source #
Backup job Id for the in-progress backup
startObject_objectName :: Lens' StartObject Text Source #
Name for the object.
Destructuring the Response
data StartObjectResponse Source #
See: newStartObjectResponse
smart constructor.
Constructors
StartObjectResponse' | |
Fields
|
Instances
newStartObjectResponse Source #
Arguments
:: Int | |
-> Text | |
-> StartObjectResponse |
Create a value of StartObjectResponse
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:StartObjectResponse'
, startObjectResponse_httpStatus
- The response's http status code.
$sel:uploadId:StartObjectResponse'
, startObjectResponse_uploadId
- Upload Id for a given upload.
Response Lenses
startObjectResponse_httpStatus :: Lens' StartObjectResponse Int Source #
The response's http status code.
startObjectResponse_uploadId :: Lens' StartObjectResponse Text Source #
Upload Id for a given upload.