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