Class CfnAlertPropsMixin.LambdaConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lookoutmetrics.CfnAlertPropsMixin.LambdaConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAlertPropsMixin.LambdaConfigurationProperty>
- Enclosing interface:
CfnAlertPropsMixin.LambdaConfigurationProperty
@Stability(Stable)
public static final class CfnAlertPropsMixin.LambdaConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAlertPropsMixin.LambdaConfigurationProperty>
A builder for
CfnAlertPropsMixin.LambdaConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnAlertPropsMixin.LambdaConfigurationProperty.getLambdaArn()Sets the value ofCfnAlertPropsMixin.LambdaConfigurationProperty.getRoleArn()Sets the value ofCfnAlertPropsMixin.LambdaConfigurationProperty.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
lambdaArn
@Stability(Stable) public CfnAlertPropsMixin.LambdaConfigurationProperty.Builder lambdaArn(String lambdaArn) Sets the value ofCfnAlertPropsMixin.LambdaConfigurationProperty.getLambdaArn()- Parameters:
lambdaArn- The ARN of the Lambda function.- Returns:
this
-
roleArn
@Stability(Stable) public CfnAlertPropsMixin.LambdaConfigurationProperty.Builder roleArn(String roleArn) Sets the value ofCfnAlertPropsMixin.LambdaConfigurationProperty.getRoleArn()- Parameters:
roleArn- The ARN of an IAM role that has permission to invoke the Lambda function.- Returns:
this
-
roleArn
@Stability(Stable) public CfnAlertPropsMixin.LambdaConfigurationProperty.Builder roleArn(IRoleRef roleArn) Sets the value ofCfnAlertPropsMixin.LambdaConfigurationProperty.getRoleArn()- Parameters:
roleArn- The ARN of an IAM role that has permission to invoke the Lambda function.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAlertPropsMixin.LambdaConfigurationProperty>- Returns:
- a new instance of
CfnAlertPropsMixin.LambdaConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-