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 |
Returns the versioning state of a bucket.
To retrieve the versioning state of a bucket, you must be the bucket owner.
This implementation also returns the MFA Delete status of the versioning
state. If the MFA Delete status is enabled
, the bucket owner must use
an authentication device to change the versioning state of the bucket.
The following operations are related to GetBucketVersioning
:
Synopsis
- data GetBucketVersioning = GetBucketVersioning' {}
- newGetBucketVersioning :: BucketName -> GetBucketVersioning
- getBucketVersioning_expectedBucketOwner :: Lens' GetBucketVersioning (Maybe Text)
- getBucketVersioning_bucket :: Lens' GetBucketVersioning BucketName
- data GetBucketVersioningResponse = GetBucketVersioningResponse' {}
- newGetBucketVersioningResponse :: Int -> GetBucketVersioningResponse
- getBucketVersioningResponse_status :: Lens' GetBucketVersioningResponse (Maybe BucketVersioningStatus)
- getBucketVersioningResponse_mfaDelete :: Lens' GetBucketVersioningResponse (Maybe MFADeleteStatus)
- getBucketVersioningResponse_httpStatus :: Lens' GetBucketVersioningResponse Int
Creating a Request
data GetBucketVersioning Source #
See: newGetBucketVersioning
smart constructor.
GetBucketVersioning' | |
|
Instances
newGetBucketVersioning Source #
Create a value of GetBucketVersioning
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:expectedBucketOwner:GetBucketVersioning'
, getBucketVersioning_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:GetBucketVersioning'
, getBucketVersioning_bucket
- The name of the bucket for which to get the versioning information.
Request Lenses
getBucketVersioning_expectedBucketOwner :: Lens' GetBucketVersioning (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.
getBucketVersioning_bucket :: Lens' GetBucketVersioning BucketName Source #
The name of the bucket for which to get the versioning information.
Destructuring the Response
data GetBucketVersioningResponse Source #
See: newGetBucketVersioningResponse
smart constructor.
GetBucketVersioningResponse' | |
|
Instances
newGetBucketVersioningResponse Source #
Create a value of GetBucketVersioningResponse
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:status:GetBucketVersioningResponse'
, getBucketVersioningResponse_status
- The versioning state of the bucket.
$sel:mfaDelete:GetBucketVersioningResponse'
, getBucketVersioningResponse_mfaDelete
- Specifies whether MFA delete is enabled in the bucket versioning
configuration. This element is only returned if the bucket has been
configured with MFA delete. If the bucket has never been so configured,
this element is not returned.
$sel:httpStatus:GetBucketVersioningResponse'
, getBucketVersioningResponse_httpStatus
- The response's http status code.
Response Lenses
getBucketVersioningResponse_status :: Lens' GetBucketVersioningResponse (Maybe BucketVersioningStatus) Source #
The versioning state of the bucket.
getBucketVersioningResponse_mfaDelete :: Lens' GetBucketVersioningResponse (Maybe MFADeleteStatus) Source #
Specifies whether MFA delete is enabled in the bucket versioning configuration. This element is only returned if the bucket has been configured with MFA delete. If the bucket has never been so configured, this element is not returned.
getBucketVersioningResponse_httpStatus :: Lens' GetBucketVersioningResponse Int Source #
The response's http status code.