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.Types.LoggingEnabled

Description

 
Synopsis

Documentation

data LoggingEnabled Source #

Describes where logs are stored and the prefix that Amazon S3 assigns to all log object keys for a bucket. For more information, see PUT Bucket logging in the Amazon S3 API Reference.

See: newLoggingEnabled smart constructor.

Constructors

LoggingEnabled' 

Fields

  • targetGrants :: Maybe [TargetGrant]

    Container for granting information.

  • targetBucket :: Text

    Specifies the bucket where you want Amazon S3 to store server access logs. You can have your logs delivered to any bucket that you own, including the same bucket that is being logged. You can also configure multiple buckets to deliver their logs to the same target bucket. In this case, you should choose a different TargetPrefix for each source bucket so that the delivered log files can be distinguished by key.

  • targetPrefix :: Text

    A prefix for all log object keys. If you store log files from multiple Amazon S3 buckets in a single bucket, you can use a prefix to distinguish which log files came from which bucket.

Instances

Instances details
Eq LoggingEnabled Source # 
Instance details

Defined in Amazonka.S3.Types.LoggingEnabled

Read LoggingEnabled Source # 
Instance details

Defined in Amazonka.S3.Types.LoggingEnabled

Show LoggingEnabled Source # 
Instance details

Defined in Amazonka.S3.Types.LoggingEnabled

Generic LoggingEnabled Source # 
Instance details

Defined in Amazonka.S3.Types.LoggingEnabled

Associated Types

type Rep LoggingEnabled :: Type -> Type #

NFData LoggingEnabled Source # 
Instance details

Defined in Amazonka.S3.Types.LoggingEnabled

Methods

rnf :: LoggingEnabled -> () #

Hashable LoggingEnabled Source # 
Instance details

Defined in Amazonka.S3.Types.LoggingEnabled

FromXML LoggingEnabled Source # 
Instance details

Defined in Amazonka.S3.Types.LoggingEnabled

ToXML LoggingEnabled Source # 
Instance details

Defined in Amazonka.S3.Types.LoggingEnabled

Methods

toXML :: LoggingEnabled -> XML #

type Rep LoggingEnabled Source # 
Instance details

Defined in Amazonka.S3.Types.LoggingEnabled

type Rep LoggingEnabled = D1 ('MetaData "LoggingEnabled" "Amazonka.S3.Types.LoggingEnabled" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "LoggingEnabled'" 'PrefixI 'True) (S1 ('MetaSel ('Just "targetGrants") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [TargetGrant])) :*: (S1 ('MetaSel ('Just "targetBucket") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "targetPrefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newLoggingEnabled Source #

Create a value of LoggingEnabled 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:targetGrants:LoggingEnabled', loggingEnabled_targetGrants - Container for granting information.

$sel:targetBucket:LoggingEnabled', loggingEnabled_targetBucket - Specifies the bucket where you want Amazon S3 to store server access logs. You can have your logs delivered to any bucket that you own, including the same bucket that is being logged. You can also configure multiple buckets to deliver their logs to the same target bucket. In this case, you should choose a different TargetPrefix for each source bucket so that the delivered log files can be distinguished by key.

$sel:targetPrefix:LoggingEnabled', loggingEnabled_targetPrefix - A prefix for all log object keys. If you store log files from multiple Amazon S3 buckets in a single bucket, you can use a prefix to distinguish which log files came from which bucket.

loggingEnabled_targetGrants :: Lens' LoggingEnabled (Maybe [TargetGrant]) Source #

Container for granting information.

loggingEnabled_targetBucket :: Lens' LoggingEnabled Text Source #

Specifies the bucket where you want Amazon S3 to store server access logs. You can have your logs delivered to any bucket that you own, including the same bucket that is being logged. You can also configure multiple buckets to deliver their logs to the same target bucket. In this case, you should choose a different TargetPrefix for each source bucket so that the delivered log files can be distinguished by key.

loggingEnabled_targetPrefix :: Lens' LoggingEnabled Text Source #

A prefix for all log object keys. If you store log files from multiple Amazon S3 buckets in a single bucket, you can use a prefix to distinguish which log files came from which bucket.