Class CfnConfigurationSet.CloudWatchLogsDestinationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.smsvoice.CfnConfigurationSet.CloudWatchLogsDestinationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConfigurationSet.CloudWatchLogsDestinationProperty>
- Enclosing interface:
CfnConfigurationSet.CloudWatchLogsDestinationProperty
@Stability(Stable)
public static final class CfnConfigurationSet.CloudWatchLogsDestinationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConfigurationSet.CloudWatchLogsDestinationProperty>
A builder for
CfnConfigurationSet.CloudWatchLogsDestinationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.iamRoleArn(String iamRoleArn) Sets the value ofCfnConfigurationSet.CloudWatchLogsDestinationProperty.getIamRoleArn()logGroupArn(String logGroupArn) Sets the value ofCfnConfigurationSet.CloudWatchLogsDestinationProperty.getLogGroupArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
iamRoleArn
@Stability(Stable) public CfnConfigurationSet.CloudWatchLogsDestinationProperty.Builder iamRoleArn(String iamRoleArn) Sets the value ofCfnConfigurationSet.CloudWatchLogsDestinationProperty.getIamRoleArn()- Parameters:
iamRoleArn- The Amazon Resource Name (ARN) of an AWS Identity and Access Management role that is able to write event data to an Amazon CloudWatch destination. This parameter is required.- Returns:
this
-
logGroupArn
@Stability(Stable) public CfnConfigurationSet.CloudWatchLogsDestinationProperty.Builder logGroupArn(String logGroupArn) Sets the value ofCfnConfigurationSet.CloudWatchLogsDestinationProperty.getLogGroupArn()- Parameters:
logGroupArn- The name of the Amazon CloudWatch log group that you want to record events in. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnConfigurationSet.CloudWatchLogsDestinationProperty>- Returns:
- a new instance of
CfnConfigurationSet.CloudWatchLogsDestinationProperty - Throws:
NullPointerException- if any required attribute was not provided
-