Class CfnApi.EventLogConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.CfnApi.EventLogConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApi.EventLogConfigProperty>
- Enclosing interface:
CfnApi.EventLogConfigProperty
@Stability(Stable)
public static final class CfnApi.EventLogConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApi.EventLogConfigProperty>
A builder for
CfnApi.EventLogConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cloudWatchLogsRoleArn(String cloudWatchLogsRoleArn) Sets the value ofCfnApi.EventLogConfigProperty.getCloudWatchLogsRoleArn()Sets the value ofCfnApi.EventLogConfigProperty.getLogLevel()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cloudWatchLogsRoleArn
@Stability(Stable) public CfnApi.EventLogConfigProperty.Builder cloudWatchLogsRoleArn(String cloudWatchLogsRoleArn) Sets the value ofCfnApi.EventLogConfigProperty.getCloudWatchLogsRoleArn()- Parameters:
cloudWatchLogsRoleArn- The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account. This parameter is required.- Returns:
this
-
logLevel
Sets the value ofCfnApi.EventLogConfigProperty.getLogLevel()- Parameters:
logLevel- The type of information to log for the Event API. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApi.EventLogConfigProperty>- Returns:
- a new instance of
CfnApi.EventLogConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-