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 |
Deletes the specified virtual tape. This operation is only supported in the tape gateway type.
Synopsis
- data DeleteTape = DeleteTape' {}
- newDeleteTape :: Text -> Text -> DeleteTape
- deleteTape_bypassGovernanceRetention :: Lens' DeleteTape (Maybe Bool)
- deleteTape_gatewayARN :: Lens' DeleteTape Text
- deleteTape_tapeARN :: Lens' DeleteTape Text
- data DeleteTapeResponse = DeleteTapeResponse' {
- tapeARN :: Maybe Text
- httpStatus :: Int
- newDeleteTapeResponse :: Int -> DeleteTapeResponse
- deleteTapeResponse_tapeARN :: Lens' DeleteTapeResponse (Maybe Text)
- deleteTapeResponse_httpStatus :: Lens' DeleteTapeResponse Int
Creating a Request
data DeleteTape Source #
DeleteTapeInput
See: newDeleteTape
smart constructor.
DeleteTape' | |
|
Instances
Create a value of DeleteTape
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:bypassGovernanceRetention:DeleteTape'
, deleteTape_bypassGovernanceRetention
- Set to TRUE
to delete an archived tape that belongs to a custom pool
with tape retention lock. Only archived tapes with tape retention lock
set to governance
can be deleted. Archived tapes with tape retention
lock set to compliance
can't be deleted.
$sel:gatewayARN:DeleteTape'
, deleteTape_gatewayARN
- The unique Amazon Resource Name (ARN) of the gateway that the virtual
tape to delete is associated with. Use the ListGateways operation to
return a list of gateways for your account and Amazon Web Services
Region.
$sel:tapeARN:DeleteTape'
, deleteTape_tapeARN
- The Amazon Resource Name (ARN) of the virtual tape to delete.
Request Lenses
deleteTape_bypassGovernanceRetention :: Lens' DeleteTape (Maybe Bool) Source #
Set to TRUE
to delete an archived tape that belongs to a custom pool
with tape retention lock. Only archived tapes with tape retention lock
set to governance
can be deleted. Archived tapes with tape retention
lock set to compliance
can't be deleted.
deleteTape_gatewayARN :: Lens' DeleteTape Text Source #
The unique Amazon Resource Name (ARN) of the gateway that the virtual tape to delete is associated with. Use the ListGateways operation to return a list of gateways for your account and Amazon Web Services Region.
deleteTape_tapeARN :: Lens' DeleteTape Text Source #
The Amazon Resource Name (ARN) of the virtual tape to delete.
Destructuring the Response
data DeleteTapeResponse Source #
DeleteTapeOutput
See: newDeleteTapeResponse
smart constructor.
DeleteTapeResponse' | |
|
Instances
newDeleteTapeResponse Source #
Create a value of DeleteTapeResponse
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:tapeARN:DeleteTape'
, deleteTapeResponse_tapeARN
- The Amazon Resource Name (ARN) of the deleted virtual tape.
$sel:httpStatus:DeleteTapeResponse'
, deleteTapeResponse_httpStatus
- The response's http status code.
Response Lenses
deleteTapeResponse_tapeARN :: Lens' DeleteTapeResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the deleted virtual tape.
deleteTapeResponse_httpStatus :: Lens' DeleteTapeResponse Int Source #
The response's http status code.