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 |
Disconnects a volume from an iSCSI connection and then detaches the volume from the specified gateway. Detaching and attaching a volume enables you to recover your data from one gateway to a different gateway without creating a snapshot. It also makes it easier to move your volumes from an on-premises gateway to a gateway hosted on an Amazon EC2 instance. This operation is only supported in the volume gateway type.
Synopsis
- data DetachVolume = DetachVolume' {
- forceDetach :: Maybe Bool
- volumeARN :: Text
- newDetachVolume :: Text -> DetachVolume
- detachVolume_forceDetach :: Lens' DetachVolume (Maybe Bool)
- detachVolume_volumeARN :: Lens' DetachVolume Text
- data DetachVolumeResponse = DetachVolumeResponse' {
- volumeARN :: Maybe Text
- httpStatus :: Int
- newDetachVolumeResponse :: Int -> DetachVolumeResponse
- detachVolumeResponse_volumeARN :: Lens' DetachVolumeResponse (Maybe Text)
- detachVolumeResponse_httpStatus :: Lens' DetachVolumeResponse Int
Creating a Request
data DetachVolume Source #
AttachVolumeInput
See: newDetachVolume
smart constructor.
DetachVolume' | |
|
Instances
Create a value of DetachVolume
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:forceDetach:DetachVolume'
, detachVolume_forceDetach
- Set to true
to forcibly remove the iSCSI connection of the target
volume and detach the volume. The default is false
. If this value is
set to false
, you must manually disconnect the iSCSI connection from
the target volume.
Valid Values: true
| false
$sel:volumeARN:DetachVolume'
, detachVolume_volumeARN
- The Amazon Resource Name (ARN) of the volume to detach from the gateway.
Request Lenses
detachVolume_forceDetach :: Lens' DetachVolume (Maybe Bool) Source #
Set to true
to forcibly remove the iSCSI connection of the target
volume and detach the volume. The default is false
. If this value is
set to false
, you must manually disconnect the iSCSI connection from
the target volume.
Valid Values: true
| false
detachVolume_volumeARN :: Lens' DetachVolume Text Source #
The Amazon Resource Name (ARN) of the volume to detach from the gateway.
Destructuring the Response
data DetachVolumeResponse Source #
AttachVolumeOutput
See: newDetachVolumeResponse
smart constructor.
DetachVolumeResponse' | |
|
Instances
newDetachVolumeResponse Source #
Create a value of DetachVolumeResponse
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:volumeARN:DetachVolume'
, detachVolumeResponse_volumeARN
- The Amazon Resource Name (ARN) of the volume that was detached.
$sel:httpStatus:DetachVolumeResponse'
, detachVolumeResponse_httpStatus
- The response's http status code.
Response Lenses
detachVolumeResponse_volumeARN :: Lens' DetachVolumeResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the volume that was detached.
detachVolumeResponse_httpStatus :: Lens' DetachVolumeResponse Int Source #
The response's http status code.