Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a cached volume on a specified cached gateway. This operation is supported only for the gateway-cached volume architecture.
Cache storage must be allocated to the gateway before you can create a cached volume. Use the AddCache operation to add cache storage to a gateway.
In the request, you must specify the gateway, size of the volume in bytes, the iSCSI target name, an IP address on which to expose the target, and a unique client token. In response, AWS Storage Gateway creates the volume and returns information about it such as the volume Amazon Resource Name (ARN), its size, and the iSCSI target ARN that initiators can use to connect to the volume target.
- createCachediSCSIVolume :: Text -> Integer -> Text -> Text -> Text -> CreateCachediSCSIVolume
- data CreateCachediSCSIVolume
- ccscsivSnapshotId :: Lens' CreateCachediSCSIVolume (Maybe Text)
- ccscsivGatewayARN :: Lens' CreateCachediSCSIVolume Text
- ccscsivVolumeSizeInBytes :: Lens' CreateCachediSCSIVolume Integer
- ccscsivTargetName :: Lens' CreateCachediSCSIVolume Text
- ccscsivNetworkInterfaceId :: Lens' CreateCachediSCSIVolume Text
- ccscsivClientToken :: Lens' CreateCachediSCSIVolume Text
- createCachediSCSIVolumeResponse :: Int -> CreateCachediSCSIVolumeResponse
- data CreateCachediSCSIVolumeResponse
- ccscsivrsTargetARN :: Lens' CreateCachediSCSIVolumeResponse (Maybe Text)
- ccscsivrsVolumeARN :: Lens' CreateCachediSCSIVolumeResponse (Maybe Text)
- ccscsivrsResponseStatus :: Lens' CreateCachediSCSIVolumeResponse Int
Creating a Request
createCachediSCSIVolume Source #
Creates a value of CreateCachediSCSIVolume
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateCachediSCSIVolume Source #
See: createCachediSCSIVolume
smart constructor.
Request Lenses
ccscsivSnapshotId :: Lens' CreateCachediSCSIVolume (Maybe Text) Source #
Undocumented member.
ccscsivGatewayARN :: Lens' CreateCachediSCSIVolume Text Source #
Undocumented member.
ccscsivVolumeSizeInBytes :: Lens' CreateCachediSCSIVolume Integer Source #
Undocumented member.
ccscsivTargetName :: Lens' CreateCachediSCSIVolume Text Source #
Undocumented member.
ccscsivNetworkInterfaceId :: Lens' CreateCachediSCSIVolume Text Source #
Undocumented member.
ccscsivClientToken :: Lens' CreateCachediSCSIVolume Text Source #
Undocumented member.
Destructuring the Response
createCachediSCSIVolumeResponse Source #
Creates a value of CreateCachediSCSIVolumeResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateCachediSCSIVolumeResponse Source #
See: createCachediSCSIVolumeResponse
smart constructor.
Response Lenses
ccscsivrsTargetARN :: Lens' CreateCachediSCSIVolumeResponse (Maybe Text) Source #
Undocumented member.
ccscsivrsVolumeARN :: Lens' CreateCachediSCSIVolumeResponse (Maybe Text) Source #
Undocumented member.
ccscsivrsResponseStatus :: Lens' CreateCachediSCSIVolumeResponse Int Source #
The response status code.