amazonka-lightsail-2.0: Amazon Lightsail 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.Lightsail.Types.BucketAccessLogConfig

Description

 
Synopsis

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.

Constructors

BucketAccessLogConfig' 

Fields

  • destination :: Maybe Text

    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.

  • prefix :: Maybe Text

    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.

  • enabled :: Bool

    A Boolean value that indicates whether bucket access logging is enabled for the bucket.

Instances

Instances details
FromJSON BucketAccessLogConfig Source # 
Instance details

Defined in Amazonka.Lightsail.Types.BucketAccessLogConfig

ToJSON BucketAccessLogConfig Source # 
Instance details

Defined in Amazonka.Lightsail.Types.BucketAccessLogConfig

Generic BucketAccessLogConfig Source # 
Instance details

Defined in Amazonka.Lightsail.Types.BucketAccessLogConfig

Associated Types

type Rep BucketAccessLogConfig :: Type -> Type #

Read BucketAccessLogConfig Source # 
Instance details

Defined in Amazonka.Lightsail.Types.BucketAccessLogConfig

Show BucketAccessLogConfig Source # 
Instance details

Defined in Amazonka.Lightsail.Types.BucketAccessLogConfig

NFData BucketAccessLogConfig Source # 
Instance details

Defined in Amazonka.Lightsail.Types.BucketAccessLogConfig

Methods

rnf :: BucketAccessLogConfig -> () #

Eq BucketAccessLogConfig Source # 
Instance details

Defined in Amazonka.Lightsail.Types.BucketAccessLogConfig

Hashable BucketAccessLogConfig Source # 
Instance details

Defined in Amazonka.Lightsail.Types.BucketAccessLogConfig

type Rep BucketAccessLogConfig Source # 
Instance details

Defined in Amazonka.Lightsail.Types.BucketAccessLogConfig

type Rep BucketAccessLogConfig = D1 ('MetaData "BucketAccessLogConfig" "Amazonka.Lightsail.Types.BucketAccessLogConfig" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" 'False) (C1 ('MetaCons "BucketAccessLogConfig'" 'PrefixI 'True) (S1 ('MetaSel ('Just "destination") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "prefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "enabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))))

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.