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