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 |
Synopsis
- data LoggingEnabled = LoggingEnabled' {
- targetGrants :: Maybe [TargetGrant]
- targetBucket :: Text
- targetPrefix :: Text
- newLoggingEnabled :: Text -> Text -> LoggingEnabled
- loggingEnabled_targetGrants :: Lens' LoggingEnabled (Maybe [TargetGrant])
- loggingEnabled_targetBucket :: Lens' LoggingEnabled Text
- loggingEnabled_targetPrefix :: Lens' LoggingEnabled Text
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.
LoggingEnabled' | |
|
Instances
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.