Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns information about the working storage of a gateway. This operation is only supported in the stored volumes gateway type. This operation is deprecated in cached volumes API version (20120630). Use DescribeUploadBuffer instead.
Working storage is also referred to as upload buffer. You can also use the DescribeUploadBuffer operation to add upload buffer to a stored volume gateway.
The response includes disk IDs that are configured as working storage, and it includes the amount of working storage allocated and used.
Synopsis
- data DescribeWorkingStorage = DescribeWorkingStorage' {
- gatewayARN :: Text
- newDescribeWorkingStorage :: Text -> DescribeWorkingStorage
- describeWorkingStorage_gatewayARN :: Lens' DescribeWorkingStorage Text
- data DescribeWorkingStorageResponse = DescribeWorkingStorageResponse' {}
- newDescribeWorkingStorageResponse :: Int -> DescribeWorkingStorageResponse
- describeWorkingStorageResponse_gatewayARN :: Lens' DescribeWorkingStorageResponse (Maybe Text)
- describeWorkingStorageResponse_diskIds :: Lens' DescribeWorkingStorageResponse (Maybe [Text])
- describeWorkingStorageResponse_workingStorageAllocatedInBytes :: Lens' DescribeWorkingStorageResponse (Maybe Integer)
- describeWorkingStorageResponse_workingStorageUsedInBytes :: Lens' DescribeWorkingStorageResponse (Maybe Integer)
- describeWorkingStorageResponse_httpStatus :: Lens' DescribeWorkingStorageResponse Int
Creating a Request
data DescribeWorkingStorage Source #
A JSON object containing the Amazon Resource Name (ARN) of the gateway.
See: newDescribeWorkingStorage
smart constructor.
Instances
newDescribeWorkingStorage Source #
Create a value of DescribeWorkingStorage
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:gatewayARN:DescribeWorkingStorage'
, describeWorkingStorage_gatewayARN
- Undocumented member.
Request Lenses
describeWorkingStorage_gatewayARN :: Lens' DescribeWorkingStorage Text Source #
Undocumented member.
Destructuring the Response
data DescribeWorkingStorageResponse Source #
A JSON object containing the following fields:
See: newDescribeWorkingStorageResponse
smart constructor.
DescribeWorkingStorageResponse' | |
|
Instances
newDescribeWorkingStorageResponse Source #
Create a value of DescribeWorkingStorageResponse
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:gatewayARN:DescribeWorkingStorage'
, describeWorkingStorageResponse_gatewayARN
- Undocumented member.
$sel:diskIds:DescribeWorkingStorageResponse'
, describeWorkingStorageResponse_diskIds
- An array of the gateway's local disk IDs that are configured as working
storage. Each local disk ID is specified as a string (minimum length of
1 and maximum length of 300). If no local disks are configured as
working storage, then the DiskIds array is empty.
$sel:workingStorageAllocatedInBytes:DescribeWorkingStorageResponse'
, describeWorkingStorageResponse_workingStorageAllocatedInBytes
- The total working storage in bytes allocated for the gateway. If no
working storage is configured for the gateway, this field returns 0.
$sel:workingStorageUsedInBytes:DescribeWorkingStorageResponse'
, describeWorkingStorageResponse_workingStorageUsedInBytes
- The total working storage in bytes in use by the gateway. If no working
storage is configured for the gateway, this field returns 0.
$sel:httpStatus:DescribeWorkingStorageResponse'
, describeWorkingStorageResponse_httpStatus
- The response's http status code.
Response Lenses
describeWorkingStorageResponse_gatewayARN :: Lens' DescribeWorkingStorageResponse (Maybe Text) Source #
Undocumented member.
describeWorkingStorageResponse_diskIds :: Lens' DescribeWorkingStorageResponse (Maybe [Text]) Source #
An array of the gateway's local disk IDs that are configured as working storage. Each local disk ID is specified as a string (minimum length of 1 and maximum length of 300). If no local disks are configured as working storage, then the DiskIds array is empty.
describeWorkingStorageResponse_workingStorageAllocatedInBytes :: Lens' DescribeWorkingStorageResponse (Maybe Integer) Source #
The total working storage in bytes allocated for the gateway. If no working storage is configured for the gateway, this field returns 0.
describeWorkingStorageResponse_workingStorageUsedInBytes :: Lens' DescribeWorkingStorageResponse (Maybe Integer) Source #
The total working storage in bytes in use by the gateway. If no working storage is configured for the gateway, this field returns 0.
describeWorkingStorageResponse_httpStatus :: Lens' DescribeWorkingStorageResponse Int Source #
The response's http status code.