amazonka-opensearch-2.0: Amazon OpenSearch Service 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.OpenSearch.Types.LogPublishingOption

Description

 
Synopsis

Documentation

data LogPublishingOption Source #

Specifies whether the Amazon OpenSearch Service domain publishes the OpenSearch application and slow logs to Amazon CloudWatch. For more information, see Monitoring OpenSearch logs with Amazon CloudWatch Logs.

After you enable log publishing, you still have to enable the collection of slow logs using the OpenSearch REST API.

See: newLogPublishingOption smart constructor.

Constructors

LogPublishingOption' 

Fields

Instances

Instances details
FromJSON LogPublishingOption Source # 
Instance details

Defined in Amazonka.OpenSearch.Types.LogPublishingOption

ToJSON LogPublishingOption Source # 
Instance details

Defined in Amazonka.OpenSearch.Types.LogPublishingOption

Generic LogPublishingOption Source # 
Instance details

Defined in Amazonka.OpenSearch.Types.LogPublishingOption

Associated Types

type Rep LogPublishingOption :: Type -> Type #

Read LogPublishingOption Source # 
Instance details

Defined in Amazonka.OpenSearch.Types.LogPublishingOption

Show LogPublishingOption Source # 
Instance details

Defined in Amazonka.OpenSearch.Types.LogPublishingOption

NFData LogPublishingOption Source # 
Instance details

Defined in Amazonka.OpenSearch.Types.LogPublishingOption

Methods

rnf :: LogPublishingOption -> () #

Eq LogPublishingOption Source # 
Instance details

Defined in Amazonka.OpenSearch.Types.LogPublishingOption

Hashable LogPublishingOption Source # 
Instance details

Defined in Amazonka.OpenSearch.Types.LogPublishingOption

type Rep LogPublishingOption Source # 
Instance details

Defined in Amazonka.OpenSearch.Types.LogPublishingOption

type Rep LogPublishingOption = D1 ('MetaData "LogPublishingOption" "Amazonka.OpenSearch.Types.LogPublishingOption" "amazonka-opensearch-2.0-GNoaWlqGXH04P8GBIHM78L" 'False) (C1 ('MetaCons "LogPublishingOption'" 'PrefixI 'True) (S1 ('MetaSel ('Just "cloudWatchLogsLogGroupArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "enabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))

newLogPublishingOption :: LogPublishingOption Source #

Create a value of LogPublishingOption 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:cloudWatchLogsLogGroupArn:LogPublishingOption', logPublishingOption_cloudWatchLogsLogGroupArn - The Amazon Resource Name (ARN) of the CloudWatch Logs group to publish logs to.

$sel:enabled:LogPublishingOption', logPublishingOption_enabled - Whether the log should be published.

logPublishingOption_cloudWatchLogsLogGroupArn :: Lens' LogPublishingOption (Maybe Text) Source #

The Amazon Resource Name (ARN) of the CloudWatch Logs group to publish logs to.

logPublishingOption_enabled :: Lens' LogPublishingOption (Maybe Bool) Source #

Whether the log should be published.