AWS::AppSync::GraphQLApi LogConfig - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::AppSync::GraphQLApi LogConfig

The LogConfig property type specifies the logging configuration when writing GraphQL operations and tracing to Amazon CloudWatch for an Amazon AppSync GraphQL API.

LogConfig is a property of the AWS::AppSync::GraphQLApi property type.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "CloudWatchLogsRoleArn" : String, "ExcludeVerboseContent" : Boolean, "FieldLogLevel" : String }

Properties

CloudWatchLogsRoleArn

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

Required: No

Type: String

Update requires: No interruption

ExcludeVerboseContent

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

Required: No

Type: Boolean

Update requires: No interruption

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.

Required: No

Type: String

Update requires: No interruption