| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.StorageGateway.DetachVolume
Description
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.
Constructors
| DetachVolume' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DetachVolume |
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
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.
Constructors
| DetachVolumeResponse' | |
Fields
| |
Instances
newDetachVolumeResponse Source #
Arguments
| :: Int | |
| -> DetachVolumeResponse |
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:
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.