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 a list of all buckets owned by the authenticated sender of the request.
Synopsis
- data ListBuckets = ListBuckets' {
- newListBuckets :: ListBuckets
- data ListBucketsResponse = ListBucketsResponse' {}
- newListBucketsResponse :: Int -> ListBucketsResponse
- listBucketsResponse_buckets :: Lens' ListBucketsResponse (Maybe [Bucket])
- listBucketsResponse_owner :: Lens' ListBucketsResponse (Maybe Owner)
- listBucketsResponse_httpStatus :: Lens' ListBucketsResponse Int
Creating a Request
data ListBuckets Source #
See: newListBuckets
smart constructor.
Instances
newListBuckets :: ListBuckets Source #
Create a value of ListBuckets
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
Destructuring the Response
data ListBucketsResponse Source #
See: newListBucketsResponse
smart constructor.
Instances
newListBucketsResponse Source #
Create a value of ListBucketsResponse
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:buckets:ListBucketsResponse'
, listBucketsResponse_buckets
- The list of buckets owned by the requestor.
$sel:owner:ListBucketsResponse'
, listBucketsResponse_owner
- The owner of the buckets listed.
$sel:httpStatus:ListBucketsResponse'
, listBucketsResponse_httpStatus
- The response's http status code.
Response Lenses
listBucketsResponse_buckets :: Lens' ListBucketsResponse (Maybe [Bucket]) Source #
The list of buckets owned by the requestor.
listBucketsResponse_owner :: Lens' ListBucketsResponse (Maybe Owner) Source #
The owner of the buckets listed.
listBucketsResponse_httpStatus :: Lens' ListBucketsResponse Int Source #
The response's http status code.