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 information about one or more Amazon Lightsail buckets.
For more information about buckets, see Buckets in Amazon Lightsail in the Amazon Lightsail Developer Guide..
Synopsis
- data GetBuckets = GetBuckets' {}
- newGetBuckets :: GetBuckets
- getBuckets_bucketName :: Lens' GetBuckets (Maybe Text)
- getBuckets_includeConnectedResources :: Lens' GetBuckets (Maybe Bool)
- getBuckets_pageToken :: Lens' GetBuckets (Maybe Text)
- data GetBucketsResponse = GetBucketsResponse' {
- nextPageToken :: Maybe Text
- buckets :: Maybe [Bucket]
- httpStatus :: Int
- newGetBucketsResponse :: Int -> GetBucketsResponse
- getBucketsResponse_nextPageToken :: Lens' GetBucketsResponse (Maybe Text)
- getBucketsResponse_buckets :: Lens' GetBucketsResponse (Maybe [Bucket])
- getBucketsResponse_httpStatus :: Lens' GetBucketsResponse Int
Creating a Request
data GetBuckets Source #
See: newGetBuckets
smart constructor.
GetBuckets' | |
|
Instances
newGetBuckets :: GetBuckets Source #
Create a value of GetBuckets
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:bucketName:GetBuckets'
, getBuckets_bucketName
- The name of the bucket for which to return information.
When omitted, the response includes all of your buckets in the AWS Region where the request is made.
$sel:includeConnectedResources:GetBuckets'
, getBuckets_includeConnectedResources
- A Boolean value that indicates whether to include Lightsail instances
that were given access to the bucket using the
SetResourceAccessForBucket action.
$sel:pageToken:GetBuckets'
, getBuckets_pageToken
- The token to advance to the next page of results from your request.
To get a page token, perform an initial GetBuckets
request. If your
results are paginated, the response will return a next page token that
you can specify as the page token in a subsequent request.
Request Lenses
getBuckets_bucketName :: Lens' GetBuckets (Maybe Text) Source #
The name of the bucket for which to return information.
When omitted, the response includes all of your buckets in the AWS Region where the request is made.
getBuckets_includeConnectedResources :: Lens' GetBuckets (Maybe Bool) Source #
A Boolean value that indicates whether to include Lightsail instances that were given access to the bucket using the SetResourceAccessForBucket action.
getBuckets_pageToken :: Lens' GetBuckets (Maybe Text) Source #
The token to advance to the next page of results from your request.
To get a page token, perform an initial GetBuckets
request. If your
results are paginated, the response will return a next page token that
you can specify as the page token in a subsequent request.
Destructuring the Response
data GetBucketsResponse Source #
See: newGetBucketsResponse
smart constructor.
GetBucketsResponse' | |
|
Instances
newGetBucketsResponse Source #
Create a value of GetBucketsResponse
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:nextPageToken:GetBucketsResponse'
, getBucketsResponse_nextPageToken
- The token to advance to the next page of results from your request.
A next page token is not returned if there are no more results to display.
To get the next page of results, perform another GetBuckets
request
and specify the next page token using the pageToken
parameter.
$sel:buckets:GetBucketsResponse'
, getBucketsResponse_buckets
- An array of objects that describe buckets.
$sel:httpStatus:GetBucketsResponse'
, getBucketsResponse_httpStatus
- The response's http status code.
Response Lenses
getBucketsResponse_nextPageToken :: Lens' GetBucketsResponse (Maybe Text) Source #
The token to advance to the next page of results from your request.
A next page token is not returned if there are no more results to display.
To get the next page of results, perform another GetBuckets
request
and specify the next page token using the pageToken
parameter.
getBucketsResponse_buckets :: Lens' GetBucketsResponse (Maybe [Bucket]) Source #
An array of objects that describe buckets.
getBucketsResponse_httpStatus :: Lens' GetBucketsResponse Int Source #
The response's http status code.