libZSservicesZSamazonka-appsyncZSamazonka-appsync
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.AppSync.Types.LogConfig

Description

 
Synopsis

Documentation

data LogConfig Source #

The CloudWatch Logs configuration.

See: newLogConfig smart constructor.

Constructors

LogConfig' 

Fields

  • excludeVerboseContent :: Maybe Bool

    Set to TRUE to exclude sections that contain information such as headers, context, and evaluated mapping templates, regardless of logging level.

  • fieldLogLevel :: FieldLogLevel

    The field logging level. Values can be NONE, ERROR, or ALL.

    • NONE: No field-level logs are captured.
    • ERROR: Logs the following information only for the fields that are in error:

      • The error section in the server response.
      • Field-level errors.
      • The generated request/response functions that got resolved for error fields.
    • ALL: The following information is logged for all fields in the query:

      • Field-level tracing information.
      • The generated request/response functions that got resolved for each field.
  • cloudWatchLogsRoleArn :: Text

    The service role that AppSync will assume to publish to Amazon CloudWatch logs in your account.

Instances

Instances details
Eq LogConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.LogConfig

Read LogConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.LogConfig

Show LogConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.LogConfig

Generic LogConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.LogConfig

Associated Types

type Rep LogConfig :: Type -> Type #

NFData LogConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.LogConfig

Methods

rnf :: LogConfig -> () #

Hashable LogConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.LogConfig

ToJSON LogConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.LogConfig

FromJSON LogConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.LogConfig

type Rep LogConfig Source # 
Instance details

Defined in Amazonka.AppSync.Types.LogConfig

type Rep LogConfig = D1 ('MetaData "LogConfig" "Amazonka.AppSync.Types.LogConfig" "libZSservicesZSamazonka-appsyncZSamazonka-appsync" 'False) (C1 ('MetaCons "LogConfig'" 'PrefixI 'True) (S1 ('MetaSel ('Just "excludeVerboseContent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "fieldLogLevel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FieldLogLevel) :*: S1 ('MetaSel ('Just "cloudWatchLogsRoleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newLogConfig Source #

Create a value of LogConfig 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:excludeVerboseContent:LogConfig', logConfig_excludeVerboseContent - Set to TRUE to exclude sections that contain information such as headers, context, and evaluated mapping templates, regardless of logging level.

$sel:fieldLogLevel:LogConfig', logConfig_fieldLogLevel - The field logging level. Values can be NONE, ERROR, or ALL.

  • NONE: No field-level logs are captured.
  • ERROR: Logs the following information only for the fields that are in error:

    • The error section in the server response.
    • Field-level errors.
    • The generated request/response functions that got resolved for error fields.
  • ALL: The following information is logged for all fields in the query:

    • Field-level tracing information.
    • The generated request/response functions that got resolved for each field.

$sel:cloudWatchLogsRoleArn:LogConfig', logConfig_cloudWatchLogsRoleArn - The service role that AppSync will assume to publish to Amazon CloudWatch logs in your account.

logConfig_excludeVerboseContent :: Lens' LogConfig (Maybe Bool) Source #

Set to TRUE to exclude sections that contain information such as headers, context, and evaluated mapping templates, regardless of logging level.

logConfig_fieldLogLevel :: Lens' LogConfig FieldLogLevel Source #

The field logging level. Values can be NONE, ERROR, or ALL.

  • NONE: No field-level logs are captured.
  • ERROR: Logs the following information only for the fields that are in error:

    • The error section in the server response.
    • Field-level errors.
    • The generated request/response functions that got resolved for error fields.
  • ALL: The following information is logged for all fields in the query:

    • Field-level tracing information.
    • The generated request/response functions that got resolved for each field.

logConfig_cloudWatchLogsRoleArn :: Lens' LogConfig Text Source #

The service role that AppSync will assume to publish to Amazon CloudWatch logs in your account.