Class CfnTopicRulePropsMixin.CloudwatchLogsActionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.iot.CfnTopicRulePropsMixin.CloudwatchLogsActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicRulePropsMixin.CloudwatchLogsActionProperty>
- Enclosing interface:
CfnTopicRulePropsMixin.CloudwatchLogsActionProperty
@Stability(Stable)
public static final class CfnTopicRulePropsMixin.CloudwatchLogsActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicRulePropsMixin.CloudwatchLogsActionProperty>
A builder for
CfnTopicRulePropsMixin.CloudwatchLogsActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnTopicRulePropsMixin.CloudwatchLogsActionProperty.getBatchMode()batchMode(IResolvable batchMode) Sets the value ofCfnTopicRulePropsMixin.CloudwatchLogsActionProperty.getBatchMode()build()Builds the configured instance.logGroupName(String logGroupName) Sets the value ofCfnTopicRulePropsMixin.CloudwatchLogsActionProperty.getLogGroupName()Sets the value ofCfnTopicRulePropsMixin.CloudwatchLogsActionProperty.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
batchMode
@Stability(Stable) public CfnTopicRulePropsMixin.CloudwatchLogsActionProperty.Builder batchMode(Boolean batchMode) Sets the value ofCfnTopicRulePropsMixin.CloudwatchLogsActionProperty.getBatchMode()- Parameters:
batchMode- Indicates whether batches of log records will be extracted and uploaded into CloudWatch.- Returns:
this
-
batchMode
@Stability(Stable) public CfnTopicRulePropsMixin.CloudwatchLogsActionProperty.Builder batchMode(IResolvable batchMode) Sets the value ofCfnTopicRulePropsMixin.CloudwatchLogsActionProperty.getBatchMode()- Parameters:
batchMode- Indicates whether batches of log records will be extracted and uploaded into CloudWatch.- Returns:
this
-
logGroupName
@Stability(Stable) public CfnTopicRulePropsMixin.CloudwatchLogsActionProperty.Builder logGroupName(String logGroupName) Sets the value ofCfnTopicRulePropsMixin.CloudwatchLogsActionProperty.getLogGroupName()- Parameters:
logGroupName- The CloudWatch log name.- Returns:
this
-
roleArn
@Stability(Stable) public CfnTopicRulePropsMixin.CloudwatchLogsActionProperty.Builder roleArn(String roleArn) Sets the value ofCfnTopicRulePropsMixin.CloudwatchLogsActionProperty.getRoleArn()- Parameters:
roleArn- The IAM role that allows access to the CloudWatch log.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTopicRulePropsMixin.CloudwatchLogsActionProperty>- Returns:
- a new instance of
CfnTopicRulePropsMixin.CloudwatchLogsActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-