amazonka-backup-2.0: Amazon Backup SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Creating a Request

data CancelLegalHold Source #

See: newCancelLegalHold smart constructor.

Constructors

CancelLegalHold' 

Fields

Instances

Instances details
ToHeaders CancelLegalHold Source # 
Instance details

Defined in Amazonka.Backup.CancelLegalHold

ToPath CancelLegalHold Source # 
Instance details

Defined in Amazonka.Backup.CancelLegalHold

ToQuery CancelLegalHold Source # 
Instance details

Defined in Amazonka.Backup.CancelLegalHold

AWSRequest CancelLegalHold Source # 
Instance details

Defined in Amazonka.Backup.CancelLegalHold

Associated Types

type AWSResponse CancelLegalHold #

Generic CancelLegalHold Source # 
Instance details

Defined in Amazonka.Backup.CancelLegalHold

Associated Types

type Rep CancelLegalHold :: Type -> Type #

Read CancelLegalHold Source # 
Instance details

Defined in Amazonka.Backup.CancelLegalHold

Show CancelLegalHold Source # 
Instance details

Defined in Amazonka.Backup.CancelLegalHold

NFData CancelLegalHold Source # 
Instance details

Defined in Amazonka.Backup.CancelLegalHold

Methods

rnf :: CancelLegalHold -> () #

Eq CancelLegalHold Source # 
Instance details

Defined in Amazonka.Backup.CancelLegalHold

Hashable CancelLegalHold Source # 
Instance details

Defined in Amazonka.Backup.CancelLegalHold

type AWSResponse CancelLegalHold Source # 
Instance details

Defined in Amazonka.Backup.CancelLegalHold

type Rep CancelLegalHold Source # 
Instance details

Defined in Amazonka.Backup.CancelLegalHold

type Rep CancelLegalHold = D1 ('MetaData "CancelLegalHold" "Amazonka.Backup.CancelLegalHold" "amazonka-backup-2.0-LovIt41tphM6jvgQJhTyRf" 'False) (C1 ('MetaCons "CancelLegalHold'" 'PrefixI 'True) (S1 ('MetaSel ('Just "retainRecordInDays") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: (S1 ('MetaSel ('Just "legalHoldId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "cancelDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCancelLegalHold Source #

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

Instances details
Generic CancelLegalHoldResponse Source # 
Instance details

Defined in Amazonka.Backup.CancelLegalHold

Associated Types

type Rep CancelLegalHoldResponse :: Type -> Type #

Read CancelLegalHoldResponse Source # 
Instance details

Defined in Amazonka.Backup.CancelLegalHold

Show CancelLegalHoldResponse Source # 
Instance details

Defined in Amazonka.Backup.CancelLegalHold

NFData CancelLegalHoldResponse Source # 
Instance details

Defined in Amazonka.Backup.CancelLegalHold

Methods

rnf :: CancelLegalHoldResponse -> () #

Eq CancelLegalHoldResponse Source # 
Instance details

Defined in Amazonka.Backup.CancelLegalHold

type Rep CancelLegalHoldResponse Source # 
Instance details

Defined in Amazonka.Backup.CancelLegalHold

type Rep CancelLegalHoldResponse = D1 ('MetaData "CancelLegalHoldResponse" "Amazonka.Backup.CancelLegalHold" "amazonka-backup-2.0-LovIt41tphM6jvgQJhTyRf" 'False) (C1 ('MetaCons "CancelLegalHoldResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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