amazonka-lightsail-2.0: Amazon Lightsail SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Lightsail.GetBuckets

Description

Returns information about one or more Amazon Lightsail buckets. The information returned includes the synchronization status of the Amazon Simple Storage Service (Amazon S3) account-level block public access feature for your Lightsail buckets.

For more information about buckets, see Buckets in Amazon Lightsail in the Amazon Lightsail Developer Guide.

Synopsis

Creating a Request

data GetBuckets Source #

See: newGetBuckets smart constructor.

Constructors

GetBuckets' 

Fields

  • bucketName :: Maybe Text

    The name of the bucket for which to return information.

    When omitted, the response includes all of your buckets in the Amazon Web Services Region where the request is made.

  • includeConnectedResources :: Maybe Bool

    A Boolean value that indicates whether to include Lightsail instances that were given access to the bucket using the SetResourceAccessForBucket action.

  • pageToken :: Maybe Text

    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.

Instances

Instances details
ToJSON GetBuckets Source # 
Instance details

Defined in Amazonka.Lightsail.GetBuckets

ToHeaders GetBuckets Source # 
Instance details

Defined in Amazonka.Lightsail.GetBuckets

Methods

toHeaders :: GetBuckets -> [Header] #

ToPath GetBuckets Source # 
Instance details

Defined in Amazonka.Lightsail.GetBuckets

ToQuery GetBuckets Source # 
Instance details

Defined in Amazonka.Lightsail.GetBuckets

AWSRequest GetBuckets Source # 
Instance details

Defined in Amazonka.Lightsail.GetBuckets

Associated Types

type AWSResponse GetBuckets #

Generic GetBuckets Source # 
Instance details

Defined in Amazonka.Lightsail.GetBuckets

Associated Types

type Rep GetBuckets :: Type -> Type #

Read GetBuckets Source # 
Instance details

Defined in Amazonka.Lightsail.GetBuckets

Show GetBuckets Source # 
Instance details

Defined in Amazonka.Lightsail.GetBuckets

NFData GetBuckets Source # 
Instance details

Defined in Amazonka.Lightsail.GetBuckets

Methods

rnf :: GetBuckets -> () #

Eq GetBuckets Source # 
Instance details

Defined in Amazonka.Lightsail.GetBuckets

Hashable GetBuckets Source # 
Instance details

Defined in Amazonka.Lightsail.GetBuckets

type AWSResponse GetBuckets Source # 
Instance details

Defined in Amazonka.Lightsail.GetBuckets

type Rep GetBuckets Source # 
Instance details

Defined in Amazonka.Lightsail.GetBuckets

type Rep GetBuckets = D1 ('MetaData "GetBuckets" "Amazonka.Lightsail.GetBuckets" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "GetBuckets'" 'PrefixI 'True) (S1 ('MetaSel ('Just "bucketName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "includeConnectedResources") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "pageToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

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 Amazon Web Services 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 Amazon Web Services 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.

Constructors

GetBucketsResponse' 

Fields

Instances

Instances details
Generic GetBucketsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetBuckets

Associated Types

type Rep GetBucketsResponse :: Type -> Type #

Read GetBucketsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetBuckets

Show GetBucketsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetBuckets

NFData GetBucketsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetBuckets

Methods

rnf :: GetBucketsResponse -> () #

Eq GetBucketsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetBuckets

type Rep GetBucketsResponse Source # 
Instance details

Defined in Amazonka.Lightsail.GetBuckets

type Rep GetBucketsResponse = D1 ('MetaData "GetBucketsResponse" "Amazonka.Lightsail.GetBuckets" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "GetBucketsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "accountLevelBpaSync") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AccountLevelBpaSync)) :*: S1 ('MetaSel ('Just "buckets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Bucket]))) :*: (S1 ('MetaSel ('Just "nextPageToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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:accountLevelBpaSync:GetBucketsResponse', getBucketsResponse_accountLevelBpaSync - An object that describes the synchronization status of the Amazon S3 account-level block public access feature for your Lightsail buckets.

For more information about this feature and how it affects Lightsail buckets, see Block public access for buckets in Amazon Lightsail.

$sel:buckets:GetBucketsResponse', getBucketsResponse_buckets - An array of objects that describe buckets.

$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:httpStatus:GetBucketsResponse', getBucketsResponse_httpStatus - The response's http status code.

Response Lenses

getBucketsResponse_accountLevelBpaSync :: Lens' GetBucketsResponse (Maybe AccountLevelBpaSync) Source #

An object that describes the synchronization status of the Amazon S3 account-level block public access feature for your Lightsail buckets.

For more information about this feature and how it affects Lightsail buckets, see Block public access for buckets in Amazon Lightsail.

getBucketsResponse_buckets :: Lens' GetBucketsResponse (Maybe [Bucket]) Source #

An array of objects that describe buckets.

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.