| 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.Backup.CancelLegalHold
Description
This action removes the specified legal hold on a recovery point. This action can only be performed by a user with sufficient permissions.
Synopsis
- data CancelLegalHold = CancelLegalHold' {}
- newCancelLegalHold :: Text -> Text -> CancelLegalHold
- cancelLegalHold_retainRecordInDays :: Lens' CancelLegalHold (Maybe Integer)
- cancelLegalHold_legalHoldId :: Lens' CancelLegalHold Text
- cancelLegalHold_cancelDescription :: Lens' CancelLegalHold Text
- data CancelLegalHoldResponse = CancelLegalHoldResponse' {
- httpStatus :: Int
- newCancelLegalHoldResponse :: Int -> CancelLegalHoldResponse
- cancelLegalHoldResponse_httpStatus :: Lens' CancelLegalHoldResponse Int
Creating a Request
data CancelLegalHold Source #
See: newCancelLegalHold smart constructor.
Constructors
| CancelLegalHold' | |
Fields
| |
Instances
Create a value of CancelLegalHold 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:retainRecordInDays:CancelLegalHold', cancelLegalHold_retainRecordInDays - The integer amount in days specifying amount of days after this API
operation to remove legal hold.
CancelLegalHold, cancelLegalHold_legalHoldId - Legal hold ID required to remove the specified legal hold on a recovery
point.
$sel:cancelDescription:CancelLegalHold', cancelLegalHold_cancelDescription - String describing the reason for removing the legal hold.
Request Lenses
cancelLegalHold_retainRecordInDays :: Lens' CancelLegalHold (Maybe Integer) Source #
The integer amount in days specifying amount of days after this API operation to remove legal hold.
cancelLegalHold_legalHoldId :: Lens' CancelLegalHold Text Source #
Legal hold ID required to remove the specified legal hold on a recovery point.
cancelLegalHold_cancelDescription :: Lens' CancelLegalHold Text Source #
String describing the reason for removing the legal hold.
Destructuring the Response
data CancelLegalHoldResponse Source #
See: newCancelLegalHoldResponse smart constructor.
Constructors
| CancelLegalHoldResponse' | |
Fields
| |
Instances
newCancelLegalHoldResponse Source #
Create a value of CancelLegalHoldResponse 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:httpStatus:CancelLegalHoldResponse', cancelLegalHoldResponse_httpStatus - The response's http status code.
Response Lenses
cancelLegalHoldResponse_httpStatus :: Lens' CancelLegalHoldResponse Int Source #
The response's http status code.