Copyright | (c) 2013-2017 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 |
Language | Haskell2010 |
Creates a cached volume on a specified cached volume gateway. This operation is only supported in the cached volume gateway architecture.
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, the gateway creates the volume and returns information about it. This information includes the volume Amazon Resource Name (ARN), its size, and the iSCSI target ARN that initiators can use to connect to the volume target.
Optionally, you can provide the ARN for an existing volume as the SourceVolumeARN
for this cached volume, which creates an exact copy of the existing volume’s latest recovery point. The VolumeSizeInBytes
value must be equal to or larger than the size of the copied volume, in bytes.
- createCachediSCSIVolume :: Text -> Integer -> Text -> Text -> Text -> CreateCachediSCSIVolume
- data CreateCachediSCSIVolume
- ccscsivSourceVolumeARN :: Lens' CreateCachediSCSIVolume (Maybe Text)
- 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:
ccscsivSourceVolumeARN
- The ARN for an existing volume. Specifying this ARN makes the new volume into an exact copy of the specified existing volume's latest recovery point. TheVolumeSizeInBytes
value for this new volume must be equal to or larger than the size of the existing volume, in bytes.ccscsivSnapshotId
- Undocumented member.ccscsivGatewayARN
- Undocumented member.ccscsivVolumeSizeInBytes
- Undocumented member.ccscsivTargetName
- Undocumented member.ccscsivNetworkInterfaceId
- Undocumented member.ccscsivClientToken
- Undocumented member.
data CreateCachediSCSIVolume Source #
See: createCachediSCSIVolume
smart constructor.
Request Lenses
ccscsivSourceVolumeARN :: Lens' CreateCachediSCSIVolume (Maybe Text) Source #
The ARN for an existing volume. Specifying this ARN makes the new volume into an exact copy of the specified existing volume's latest recovery point. The VolumeSizeInBytes
value for this new volume must be equal to or larger than the size of the existing volume, in bytes.
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:
ccscsivrsTargetARN
- Undocumented member.ccscsivrsVolumeARN
- Undocumented member.ccscsivrsResponseStatus
- -- | The response status code.
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.