libZSservicesZSamazonka-s3ZSamazonka-s3
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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 will fail with an HTTP 403 (Access Denied) error.

  • bucket :: BucketName

    The bucket name for which to get the logging information.

Instances

Instances details
Eq GetBucketLogging Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

Read GetBucketLogging Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

Show GetBucketLogging Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

Generic GetBucketLogging Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

Associated Types

type Rep GetBucketLogging :: Type -> Type #

NFData GetBucketLogging Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

Methods

rnf :: GetBucketLogging -> () #

Hashable GetBucketLogging Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

AWSRequest GetBucketLogging Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

Associated Types

type AWSResponse GetBucketLogging #

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

type Rep GetBucketLogging Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

type Rep GetBucketLogging = D1 ('MetaData "GetBucketLogging" "Amazonka.S3.GetBucketLogging" "libZSservicesZSamazonka-s3ZSamazonka-s3" '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)))
type AWSResponse GetBucketLogging Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

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 will fail with an HTTP 403 (Access Denied) error.

$sel:bucket: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 will fail with an HTTP 403 (Access Denied) error.

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
Eq GetBucketLoggingResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

Read GetBucketLoggingResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

Show GetBucketLoggingResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

Generic GetBucketLoggingResponse Source # 
Instance details

Defined in Amazonka.S3.GetBucketLogging

Associated Types

type Rep GetBucketLoggingResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-s3ZSamazonka-s3" '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:

$sel:loggingEnabled:GetBucketLoggingResponse', getBucketLoggingResponse_loggingEnabled - Undocumented member.

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

Response Lenses