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 |
This action returns details for a specified legal hold. The details are the body of a legal hold in JSON format, in addition to metadata.
Synopsis
- data GetLegalHold = GetLegalHold' {
- legalHoldId :: Text
- newGetLegalHold :: Text -> GetLegalHold
- getLegalHold_legalHoldId :: Lens' GetLegalHold Text
- data GetLegalHoldResponse = GetLegalHoldResponse' {
- cancelDescription :: Maybe Text
- cancellationDate :: Maybe POSIX
- creationDate :: Maybe POSIX
- description :: Maybe Text
- legalHoldArn :: Maybe Text
- legalHoldId :: Maybe Text
- recoveryPointSelection :: Maybe RecoveryPointSelection
- retainRecordUntil :: Maybe POSIX
- status :: Maybe LegalHoldStatus
- title :: Maybe Text
- httpStatus :: Int
- newGetLegalHoldResponse :: Int -> GetLegalHoldResponse
- getLegalHoldResponse_cancelDescription :: Lens' GetLegalHoldResponse (Maybe Text)
- getLegalHoldResponse_cancellationDate :: Lens' GetLegalHoldResponse (Maybe UTCTime)
- getLegalHoldResponse_creationDate :: Lens' GetLegalHoldResponse (Maybe UTCTime)
- getLegalHoldResponse_description :: Lens' GetLegalHoldResponse (Maybe Text)
- getLegalHoldResponse_legalHoldArn :: Lens' GetLegalHoldResponse (Maybe Text)
- getLegalHoldResponse_legalHoldId :: Lens' GetLegalHoldResponse (Maybe Text)
- getLegalHoldResponse_recoveryPointSelection :: Lens' GetLegalHoldResponse (Maybe RecoveryPointSelection)
- getLegalHoldResponse_retainRecordUntil :: Lens' GetLegalHoldResponse (Maybe UTCTime)
- getLegalHoldResponse_status :: Lens' GetLegalHoldResponse (Maybe LegalHoldStatus)
- getLegalHoldResponse_title :: Lens' GetLegalHoldResponse (Maybe Text)
- getLegalHoldResponse_httpStatus :: Lens' GetLegalHoldResponse Int
Creating a Request
data GetLegalHold Source #
See: newGetLegalHold
smart constructor.
GetLegalHold' | |
|
Instances
Create a value of GetLegalHold
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:
GetLegalHold
, getLegalHold_legalHoldId
- This is the ID required to use GetLegalHold
. This unique ID is
associated with a specific legal hold.
Request Lenses
getLegalHold_legalHoldId :: Lens' GetLegalHold Text Source #
This is the ID required to use GetLegalHold
. This unique ID is
associated with a specific legal hold.
Destructuring the Response
data GetLegalHoldResponse Source #
See: newGetLegalHoldResponse
smart constructor.
GetLegalHoldResponse' | |
|
Instances
newGetLegalHoldResponse Source #
Create a value of GetLegalHoldResponse
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:cancelDescription:GetLegalHoldResponse'
, getLegalHoldResponse_cancelDescription
- String describing the reason for removing the legal hold.
GetLegalHoldResponse
, getLegalHoldResponse_cancellationDate
- Time in number when legal hold was cancelled.
GetLegalHoldResponse
, getLegalHoldResponse_creationDate
- Time in number format when legal hold was created.
GetLegalHoldResponse
, getLegalHoldResponse_description
- This is the returned string description of the legal hold.
GetLegalHoldResponse
, getLegalHoldResponse_legalHoldArn
- This is the returned framework ARN for the specified legal hold. An
Amazon Resource Name (ARN) uniquely identifies a resource. The format of
the ARN depends on the resource type.
GetLegalHold
, getLegalHoldResponse_legalHoldId
- This is the returned ID associated with a specified legal hold.
$sel:recoveryPointSelection:GetLegalHoldResponse'
, getLegalHoldResponse_recoveryPointSelection
- This specifies criteria to assign a set of resources, such as resource
types or backup vaults.
$sel:retainRecordUntil:GetLegalHoldResponse'
, getLegalHoldResponse_retainRecordUntil
- This is the date and time until which the legal hold record will be
retained.
GetLegalHoldResponse
, getLegalHoldResponse_status
- This is the status of the legal hold. Statuses can be ACTIVE
,
CREATING
, CANCELED
, and CANCELING
.
GetLegalHoldResponse
, getLegalHoldResponse_title
- This is the string title of the legal hold.
$sel:httpStatus:GetLegalHoldResponse'
, getLegalHoldResponse_httpStatus
- The response's http status code.
Response Lenses
getLegalHoldResponse_cancelDescription :: Lens' GetLegalHoldResponse (Maybe Text) Source #
String describing the reason for removing the legal hold.
getLegalHoldResponse_cancellationDate :: Lens' GetLegalHoldResponse (Maybe UTCTime) Source #
Time in number when legal hold was cancelled.
getLegalHoldResponse_creationDate :: Lens' GetLegalHoldResponse (Maybe UTCTime) Source #
Time in number format when legal hold was created.
getLegalHoldResponse_description :: Lens' GetLegalHoldResponse (Maybe Text) Source #
This is the returned string description of the legal hold.
getLegalHoldResponse_legalHoldArn :: Lens' GetLegalHoldResponse (Maybe Text) Source #
This is the returned framework ARN for the specified legal hold. An Amazon Resource Name (ARN) uniquely identifies a resource. The format of the ARN depends on the resource type.
getLegalHoldResponse_legalHoldId :: Lens' GetLegalHoldResponse (Maybe Text) Source #
This is the returned ID associated with a specified legal hold.
getLegalHoldResponse_recoveryPointSelection :: Lens' GetLegalHoldResponse (Maybe RecoveryPointSelection) Source #
This specifies criteria to assign a set of resources, such as resource types or backup vaults.
getLegalHoldResponse_retainRecordUntil :: Lens' GetLegalHoldResponse (Maybe UTCTime) Source #
This is the date and time until which the legal hold record will be retained.
getLegalHoldResponse_status :: Lens' GetLegalHoldResponse (Maybe LegalHoldStatus) Source #
This is the status of the legal hold. Statuses can be ACTIVE
,
CREATING
, CANCELED
, and CANCELING
.
getLegalHoldResponse_title :: Lens' GetLegalHoldResponse (Maybe Text) Source #
This is the string title of the legal hold.
getLegalHoldResponse_httpStatus :: Lens' GetLegalHoldResponse Int Source #
The response's http status code.