Class CfnGraphQLApi.LogConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.CfnGraphQLApi.LogConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGraphQLApi.LogConfigProperty>
- Enclosing interface:
CfnGraphQLApi.LogConfigProperty
@Stability(Stable)
public static final class CfnGraphQLApi.LogConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGraphQLApi.LogConfigProperty>
A builder for
CfnGraphQLApi.LogConfigProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.cloudWatchLogsRoleArn
(String cloudWatchLogsRoleArn) Sets the value ofCfnGraphQLApi.LogConfigProperty.getCloudWatchLogsRoleArn()
excludeVerboseContent
(Boolean excludeVerboseContent) Sets the value ofCfnGraphQLApi.LogConfigProperty.getExcludeVerboseContent()
excludeVerboseContent
(IResolvable excludeVerboseContent) Sets the value ofCfnGraphQLApi.LogConfigProperty.getExcludeVerboseContent()
fieldLogLevel
(String fieldLogLevel) Sets the value ofCfnGraphQLApi.LogConfigProperty.getFieldLogLevel()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cloudWatchLogsRoleArn
@Stability(Stable) public CfnGraphQLApi.LogConfigProperty.Builder cloudWatchLogsRoleArn(String cloudWatchLogsRoleArn) Sets the value ofCfnGraphQLApi.LogConfigProperty.getCloudWatchLogsRoleArn()
- Parameters:
cloudWatchLogsRoleArn
- The service role that AWS AppSync will assume to publish to Amazon CloudWatch Logs in your account.- Returns:
this
-
excludeVerboseContent
@Stability(Stable) public CfnGraphQLApi.LogConfigProperty.Builder excludeVerboseContent(Boolean excludeVerboseContent) Sets the value ofCfnGraphQLApi.LogConfigProperty.getExcludeVerboseContent()
- Parameters:
excludeVerboseContent
- Set to TRUE to exclude sections that contain information such as headers, context, and evaluated mapping templates, regardless of logging level.- Returns:
this
-
excludeVerboseContent
@Stability(Stable) public CfnGraphQLApi.LogConfigProperty.Builder excludeVerboseContent(IResolvable excludeVerboseContent) Sets the value ofCfnGraphQLApi.LogConfigProperty.getExcludeVerboseContent()
- Parameters:
excludeVerboseContent
- Set to TRUE to exclude sections that contain information such as headers, context, and evaluated mapping templates, regardless of logging level.- Returns:
this
-
fieldLogLevel
@Stability(Stable) public CfnGraphQLApi.LogConfigProperty.Builder fieldLogLevel(String fieldLogLevel) Sets the value ofCfnGraphQLApi.LogConfigProperty.getFieldLogLevel()
- Parameters:
fieldLogLevel
- The field logging level. Values can be NONE, ERROR, INFO, DEBUG, or ALL.- NONE : No field-level logs are captured.
- ERROR : Logs the following information only for the fields that are in the error category:
- The error section in the server response.
- Field-level errors.
- The generated request/response functions that got resolved for error fields.
- INFO : Logs the following information only for the fields that are in the info and error categories:
- Info-level messages.
- The user messages sent through
$util.log.info
andconsole.log
. - Field-level tracing and mapping logs are not shown.
- DEBUG : Logs the following information only for the fields that are in the debug, info, and error categories:
- Debug-level messages.
- The user messages sent through
$util.log.info
,$util.log.debug
,console.log
, andconsole.debug
. - Field-level tracing and mapping logs are not shown.
- ALL : The following information is logged for all fields in the query:
- Field-level tracing information.
- The generated request/response functions that were resolved for each field.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGraphQLApi.LogConfigProperty>
- Returns:
- a new instance of
CfnGraphQLApi.LogConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-