amazonka-s3-2.0: Amazon Simple Storage Service 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.S3.GetBucketLogging

Description

Returns the logging status of a bucket and the permissions users have to view and modify that status. To use GET, you must be the bucket owner.

The following operations are related to GetBucketLogging:

Synopsis

Creating a Request

data GetBucketLogging Source #

See: newGetBucketLogging smart constructor.

Constructors

GetBucketLogging' 

Fields

  • expectedBucketOwner :: Maybe Text

    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).

  • bucket :: BucketName

    The bucket name for which to get the logging information.

Instances

Instances details
ToHeaders GetBucketLogging Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

ToPath GetBucketLogging Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

ToQuery GetBucketLogging Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

AWSRequest GetBucketLogging Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

Associated Types

type AWSResponse GetBucketLogging #

Generic GetBucketLogging Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

Associated Types

type Rep GetBucketLogging :: Type -> Type #

Read GetBucketLogging Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

Show GetBucketLogging Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

NFData GetBucketLogging Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

Methods

rnf :: GetBucketLogging -> () #

Eq GetBucketLogging Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

Hashable GetBucketLogging Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

type AWSResponse GetBucketLogging Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

type Rep GetBucketLogging Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

type Rep GetBucketLogging = D1 ('MetaData "GetBucketLogging" "Amazonka.S3.GetBucketLogging" "amazonka-s3-2.0-CNZtv1UmVzj28JXsFvwNoj" 'False) (C1 ('MetaCons "GetBucketLogging'" 'PrefixI 'True) (S1 ('MetaSel ('Just "expectedBucketOwner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "bucket") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 BucketName)))

newGetBucketLogging Source #

Create a value of GetBucketLogging 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:GetBucketLogging', getBucketLogging_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).

GetBucketLogging, getBucketLogging_bucket - The bucket name for which to get the logging information.

Request Lenses

getBucketLogging_expectedBucketOwner :: Lens' GetBucketLogging (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).

getBucketLogging_bucket :: Lens' GetBucketLogging BucketName Source #

The bucket name for which to get the logging information.

Destructuring the Response

data GetBucketLoggingResponse Source #

See: newGetBucketLoggingResponse smart constructor.

Constructors

GetBucketLoggingResponse' 

Fields

Instances

Instances details
Generic GetBucketLoggingResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

Associated Types

type Rep GetBucketLoggingResponse :: Type -> Type #

Read GetBucketLoggingResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

Show GetBucketLoggingResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

NFData GetBucketLoggingResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

Eq GetBucketLoggingResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

type Rep GetBucketLoggingResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

type Rep GetBucketLoggingResponse = D1 ('MetaData "GetBucketLoggingResponse" "Amazonka.S3.GetBucketLogging" "amazonka-s3-2.0-CNZtv1UmVzj28JXsFvwNoj" 'False) (C1 ('MetaCons "GetBucketLoggingResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "loggingEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LoggingEnabled)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetBucketLoggingResponse Source #

Create a value of GetBucketLoggingResponse 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:

GetBucketLoggingResponse, getBucketLoggingResponse_loggingEnabled - Undocumented member.

$sel:httpStatus:GetBucketLoggingResponse', getBucketLoggingResponse_httpStatus - The response's http status code.

Response Lenses