| 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 |
Amazonka.S3.GetBucketTagging
Description
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:
NoSuchTagSet- 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.
Constructors
| GetBucketTagging' | |
Fields
| |
Instances
Arguments
| :: BucketName | |
| -> GetBucketTagging |
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 fails with the HTTP status code
403 Forbidden (access denied).
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 fails with the HTTP status code
403 Forbidden (access denied).
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.
Constructors
| GetBucketTaggingResponse' | |
Fields
| |
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.
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.