Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data BucketAccessLogConfig = BucketAccessLogConfig' {}
- newBucketAccessLogConfig :: Bool -> BucketAccessLogConfig
- bucketAccessLogConfig_destination :: Lens' BucketAccessLogConfig (Maybe Text)
- bucketAccessLogConfig_prefix :: Lens' BucketAccessLogConfig (Maybe Text)
- bucketAccessLogConfig_enabled :: Lens' BucketAccessLogConfig Bool
Documentation
data BucketAccessLogConfig Source #
Describes the access log configuration for a bucket in the Amazon Lightsail object storage service.
For more information about bucket access logs, see Logging bucket requests using access logging in Amazon Lightsail in the Amazon Lightsail Developer Guide.
See: newBucketAccessLogConfig
smart constructor.
BucketAccessLogConfig' | |
|
Instances
newBucketAccessLogConfig Source #
Create a value of BucketAccessLogConfig
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:destination:BucketAccessLogConfig'
, bucketAccessLogConfig_destination
- The name of the bucket where the access logs are saved. The destination
can be a Lightsail bucket in the same account, and in the same Amazon
Web Services Region as the source bucket.
This parameter is required when enabling the access log for a bucket, and should be omitted when disabling the access log.
$sel:prefix:BucketAccessLogConfig'
, bucketAccessLogConfig_prefix
- The optional object prefix for the bucket access log.
The prefix is an optional addition to the object key that organizes your
access log files in the destination bucket. For example, if you specify
a logs/
prefix, then each log object will begin with the logs/
prefix in its key (for example,
logs/2021-11-01-21-32-16-E568B2907131C0C0
).
This parameter can be optionally specified when enabling the access log for a bucket, and should be omitted when disabling the access log.
$sel:enabled:BucketAccessLogConfig'
, bucketAccessLogConfig_enabled
- A Boolean value that indicates whether bucket access logging is enabled
for the bucket.
bucketAccessLogConfig_destination :: Lens' BucketAccessLogConfig (Maybe Text) Source #
The name of the bucket where the access logs are saved. The destination can be a Lightsail bucket in the same account, and in the same Amazon Web Services Region as the source bucket.
This parameter is required when enabling the access log for a bucket, and should be omitted when disabling the access log.
bucketAccessLogConfig_prefix :: Lens' BucketAccessLogConfig (Maybe Text) Source #
The optional object prefix for the bucket access log.
The prefix is an optional addition to the object key that organizes your
access log files in the destination bucket. For example, if you specify
a logs/
prefix, then each log object will begin with the logs/
prefix in its key (for example,
logs/2021-11-01-21-32-16-E568B2907131C0C0
).
This parameter can be optionally specified when enabling the access log for a bucket, and should be omitted when disabling the access log.
bucketAccessLogConfig_enabled :: Lens' BucketAccessLogConfig Bool Source #
A Boolean value that indicates whether bucket access logging is enabled for the bucket.