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 |
Configures one or more gateway local disks as cache for a gateway. This operation is only supported in the cached volume, tape, and file gateway type (see How Storage Gateway works (architecture).
In the request, you specify the gateway Amazon Resource Name (ARN) to which you want to add cache, and one or more disk IDs that you want to configure as cache.
Synopsis
- data AddCache = AddCache' {
- gatewayARN :: Text
- diskIds :: [Text]
- newAddCache :: Text -> AddCache
- addCache_gatewayARN :: Lens' AddCache Text
- addCache_diskIds :: Lens' AddCache [Text]
- data AddCacheResponse = AddCacheResponse' {
- gatewayARN :: Maybe Text
- httpStatus :: Int
- newAddCacheResponse :: Int -> AddCacheResponse
- addCacheResponse_gatewayARN :: Lens' AddCacheResponse (Maybe Text)
- addCacheResponse_httpStatus :: Lens' AddCacheResponse Int
Creating a Request
See: newAddCache
smart constructor.
AddCache' | |
|
Instances
Create a value of AddCache
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:AddCache'
, addCache_gatewayARN
- Undocumented member.
$sel:diskIds:AddCache'
, addCache_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
addCache_diskIds :: Lens' AddCache [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 AddCacheResponse Source #
See: newAddCacheResponse
smart constructor.
AddCacheResponse' | |
|
Instances
Create a value of AddCacheResponse
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:AddCache'
, addCacheResponse_gatewayARN
- Undocumented member.
$sel:httpStatus:AddCacheResponse'
, addCacheResponse_httpStatus
- The response's http status code.
Response Lenses
addCacheResponse_gatewayARN :: Lens' AddCacheResponse (Maybe Text) Source #
Undocumented member.
addCacheResponse_httpStatus :: Lens' AddCacheResponse Int Source #
The response's http status code.