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 |
Gets an object's current Legal Hold status. For more information, see Locking Objects.
This action is not supported by Amazon S3 on Outposts.
Synopsis
- data GetObjectLegalHold = GetObjectLegalHold' {}
- newGetObjectLegalHold :: BucketName -> ObjectKey -> GetObjectLegalHold
- getObjectLegalHold_versionId :: Lens' GetObjectLegalHold (Maybe ObjectVersionId)
- getObjectLegalHold_requestPayer :: Lens' GetObjectLegalHold (Maybe RequestPayer)
- getObjectLegalHold_expectedBucketOwner :: Lens' GetObjectLegalHold (Maybe Text)
- getObjectLegalHold_bucket :: Lens' GetObjectLegalHold BucketName
- getObjectLegalHold_key :: Lens' GetObjectLegalHold ObjectKey
- data GetObjectLegalHoldResponse = GetObjectLegalHoldResponse' {}
- newGetObjectLegalHoldResponse :: Int -> GetObjectLegalHoldResponse
- getObjectLegalHoldResponse_legalHold :: Lens' GetObjectLegalHoldResponse (Maybe ObjectLockLegalHold)
- getObjectLegalHoldResponse_httpStatus :: Lens' GetObjectLegalHoldResponse Int
Creating a Request
data GetObjectLegalHold Source #
See: newGetObjectLegalHold
smart constructor.
GetObjectLegalHold' | |
|
Instances
newGetObjectLegalHold Source #
Create a value of GetObjectLegalHold
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:versionId:GetObjectLegalHold'
, getObjectLegalHold_versionId
- The version ID of the object whose Legal Hold status you want to
retrieve.
$sel:requestPayer:GetObjectLegalHold'
, getObjectLegalHold_requestPayer
- Undocumented member.
$sel:expectedBucketOwner:GetObjectLegalHold'
, getObjectLegalHold_expectedBucketOwner
- The account ID of the expected bucket owner. If the bucket is owned by a
different account, the request will fail with an HTTP
403 (Access Denied)
error.
$sel:bucket:GetObjectLegalHold'
, getObjectLegalHold_bucket
- The bucket name containing the object whose Legal Hold status you want
to retrieve.
When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.
$sel:key:GetObjectLegalHold'
, getObjectLegalHold_key
- The key name for the object whose Legal Hold status you want to
retrieve.
Request Lenses
getObjectLegalHold_versionId :: Lens' GetObjectLegalHold (Maybe ObjectVersionId) Source #
The version ID of the object whose Legal Hold status you want to retrieve.
getObjectLegalHold_requestPayer :: Lens' GetObjectLegalHold (Maybe RequestPayer) Source #
Undocumented member.
getObjectLegalHold_expectedBucketOwner :: Lens' GetObjectLegalHold (Maybe Text) Source #
The account ID of the expected bucket owner. If the bucket is owned by a
different account, the request will fail with an HTTP
403 (Access Denied)
error.
getObjectLegalHold_bucket :: Lens' GetObjectLegalHold BucketName Source #
The bucket name containing the object whose Legal Hold status you want to retrieve.
When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points in the Amazon S3 User Guide.
getObjectLegalHold_key :: Lens' GetObjectLegalHold ObjectKey Source #
The key name for the object whose Legal Hold status you want to retrieve.
Destructuring the Response
data GetObjectLegalHoldResponse Source #
See: newGetObjectLegalHoldResponse
smart constructor.
GetObjectLegalHoldResponse' | |
|
Instances
newGetObjectLegalHoldResponse Source #
Create a value of GetObjectLegalHoldResponse
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:legalHold:GetObjectLegalHoldResponse'
, getObjectLegalHoldResponse_legalHold
- The current Legal Hold status for the specified object.
$sel:httpStatus:GetObjectLegalHoldResponse'
, getObjectLegalHoldResponse_httpStatus
- The response's http status code.
Response Lenses
getObjectLegalHoldResponse_legalHold :: Lens' GetObjectLegalHoldResponse (Maybe ObjectLockLegalHold) Source #
The current Legal Hold status for the specified object.
getObjectLegalHoldResponse_httpStatus :: Lens' GetObjectLegalHoldResponse Int Source #
The response's http status code.