Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Returns the versioning state of a bucket.
Synopsis
- getBucketVersioning :: BucketName -> GetBucketVersioning
- data GetBucketVersioning
- gbvBucket :: Lens' GetBucketVersioning BucketName
- getBucketVersioningResponse :: Int -> GetBucketVersioningResponse
- data GetBucketVersioningResponse
- gbvrsStatus :: Lens' GetBucketVersioningResponse (Maybe BucketVersioningStatus)
- gbvrsMFADelete :: Lens' GetBucketVersioningResponse (Maybe MFADeleteStatus)
- gbvrsResponseStatus :: Lens' GetBucketVersioningResponse Int
Creating a Request
Creates a value of GetBucketVersioning
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gbvBucket
- Undocumented member.
data GetBucketVersioning Source #
See: getBucketVersioning
smart constructor.
Instances
Request Lenses
gbvBucket :: Lens' GetBucketVersioning BucketName Source #
Undocumented member.
Destructuring the Response
getBucketVersioningResponse Source #
Creates a value of GetBucketVersioningResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gbvrsStatus
- The versioning state of the bucket.gbvrsMFADelete
- 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.gbvrsResponseStatus
- -- | The response status code.
data GetBucketVersioningResponse Source #
See: getBucketVersioningResponse
smart constructor.
Instances
Response Lenses
gbvrsStatus :: Lens' GetBucketVersioningResponse (Maybe BucketVersioningStatus) Source #
The versioning state of the bucket.
gbvrsMFADelete :: 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.
gbvrsResponseStatus :: Lens' GetBucketVersioningResponse Int Source #
- - | The response status code.