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 |
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_mfaDelete :: Lens' GetBucketVersioningResponse (Maybe MFADeleteStatus)
- getBucketVersioningResponse_status :: Lens' GetBucketVersioningResponse (Maybe BucketVersioningStatus)
- 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 fails with the HTTP status code
403 Forbidden
(access denied).
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 fails with the HTTP status code
403 Forbidden
(access denied).
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:
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.
GetBucketVersioningResponse
, getBucketVersioningResponse_status
- The versioning state of the bucket.
$sel:httpStatus:GetBucketVersioningResponse'
, getBucketVersioningResponse_httpStatus
- The response's http status code.
Response Lenses
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_status :: Lens' GetBucketVersioningResponse (Maybe BucketVersioningStatus) Source #
The versioning state of the bucket.
getBucketVersioningResponse_httpStatus :: Lens' GetBucketVersioningResponse Int Source #
The response's http status code.