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