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 tag set associated with the bucket.
To use this operation, you must have permission to perform the
s3:GetBucketTagging
action. By default, the bucket owner has this
permission and can grant this permission to others.
GetBucketTagging
has the following special error:
Error code:
NoSuchTagSetError
- Description: There is no tag set associated with the bucket.
The following operations are related to GetBucketTagging
:
Synopsis
- data GetBucketTagging = GetBucketTagging' {}
- newGetBucketTagging :: BucketName -> GetBucketTagging
- getBucketTagging_expectedBucketOwner :: Lens' GetBucketTagging (Maybe Text)
- getBucketTagging_bucket :: Lens' GetBucketTagging BucketName
- data GetBucketTaggingResponse = GetBucketTaggingResponse' {
- httpStatus :: Int
- tagSet :: [Tag]
- newGetBucketTaggingResponse :: Int -> GetBucketTaggingResponse
- getBucketTaggingResponse_httpStatus :: Lens' GetBucketTaggingResponse Int
- getBucketTaggingResponse_tagSet :: Lens' GetBucketTaggingResponse [Tag]
Creating a Request
data GetBucketTagging Source #
See: newGetBucketTagging
smart constructor.
GetBucketTagging' | |
|
Instances
Create a value of GetBucketTagging
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:GetBucketTagging'
, getBucketTagging_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:GetBucketTagging'
, getBucketTagging_bucket
- The name of the bucket for which to get the tagging information.
Request Lenses
getBucketTagging_expectedBucketOwner :: Lens' GetBucketTagging (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.
getBucketTagging_bucket :: Lens' GetBucketTagging BucketName Source #
The name of the bucket for which to get the tagging information.
Destructuring the Response
data GetBucketTaggingResponse Source #
See: newGetBucketTaggingResponse
smart constructor.
GetBucketTaggingResponse' | |
|
Instances
newGetBucketTaggingResponse Source #
Create a value of GetBucketTaggingResponse
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:httpStatus:GetBucketTaggingResponse'
, getBucketTaggingResponse_httpStatus
- The response's http status code.
$sel:tagSet:GetBucketTaggingResponse'
, getBucketTaggingResponse_tagSet
- Contains the tag set.
Response Lenses
getBucketTaggingResponse_httpStatus :: Lens' GetBucketTaggingResponse Int Source #
The response's http status code.
getBucketTaggingResponse_tagSet :: Lens' GetBucketTaggingResponse [Tag] Source #
Contains the tag set.