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 |
Configures one or more gateway local disks as working storage for a gateway. This operation is only supported in the stored volume gateway type. This operation is deprecated in cached volume API version 20120630. Use AddUploadBuffer instead.
Working storage is also referred to as upload buffer. You can also use the AddUploadBuffer operation to add upload buffer to a stored volume gateway.
In the request, you specify the gateway Amazon Resource Name (ARN) to which you want to add working storage, and one or more disk IDs that you want to configure as working storage.
Synopsis
- data AddWorkingStorage = AddWorkingStorage' {
- gatewayARN :: Text
- diskIds :: [Text]
- newAddWorkingStorage :: Text -> AddWorkingStorage
- addWorkingStorage_gatewayARN :: Lens' AddWorkingStorage Text
- addWorkingStorage_diskIds :: Lens' AddWorkingStorage [Text]
- data AddWorkingStorageResponse = AddWorkingStorageResponse' {
- gatewayARN :: Maybe Text
- httpStatus :: Int
- newAddWorkingStorageResponse :: Int -> AddWorkingStorageResponse
- addWorkingStorageResponse_gatewayARN :: Lens' AddWorkingStorageResponse (Maybe Text)
- addWorkingStorageResponse_httpStatus :: Lens' AddWorkingStorageResponse Int
Creating a Request
data AddWorkingStorage Source #
A JSON object containing one or more of the following fields:
- AddWorkingStorageInput$DiskIds
See: newAddWorkingStorage
smart constructor.
AddWorkingStorage' | |
|
Instances
Create a value of AddWorkingStorage
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:
AddWorkingStorage
, addWorkingStorage_gatewayARN
- Undocumented member.
$sel:diskIds:AddWorkingStorage'
, addWorkingStorage_diskIds
- An array of strings that identify disks that are to be configured as
working storage. Each string has a minimum length of 1 and maximum
length of 300. You can get the disk IDs from the ListLocalDisks API.
Request Lenses
addWorkingStorage_gatewayARN :: Lens' AddWorkingStorage Text Source #
Undocumented member.
addWorkingStorage_diskIds :: Lens' AddWorkingStorage [Text] Source #
An array of strings that identify disks that are to be configured as working storage. Each string has a minimum length of 1 and maximum length of 300. You can get the disk IDs from the ListLocalDisks API.
Destructuring the Response
data AddWorkingStorageResponse Source #
A JSON object containing the Amazon Resource Name (ARN) of the gateway for which working storage was configured.
See: newAddWorkingStorageResponse
smart constructor.
AddWorkingStorageResponse' | |
|
Instances
newAddWorkingStorageResponse Source #
Create a value of AddWorkingStorageResponse
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:
AddWorkingStorage
, addWorkingStorageResponse_gatewayARN
- Undocumented member.
$sel:httpStatus:AddWorkingStorageResponse'
, addWorkingStorageResponse_httpStatus
- The response's http status code.
Response Lenses
addWorkingStorageResponse_gatewayARN :: Lens' AddWorkingStorageResponse (Maybe Text) Source #
Undocumented member.
addWorkingStorageResponse_httpStatus :: Lens' AddWorkingStorageResponse Int Source #
The response's http status code.