Class CfnPlan.CustomActionLambdaConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.arcregionswitch.CfnPlan.CustomActionLambdaConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPlan.CustomActionLambdaConfigurationProperty>
- Enclosing interface:
CfnPlan.CustomActionLambdaConfigurationProperty
@Stability(Stable)
public static final class CfnPlan.CustomActionLambdaConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPlan.CustomActionLambdaConfigurationProperty>
A builder for
CfnPlan.CustomActionLambdaConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnPlan.CustomActionLambdaConfigurationProperty.getLambdas()lambdas(IResolvable lambdas) Sets the value ofCfnPlan.CustomActionLambdaConfigurationProperty.getLambdas()regionToRun(String regionToRun) Sets the value ofCfnPlan.CustomActionLambdaConfigurationProperty.getRegionToRun()retryIntervalMinutes(Number retryIntervalMinutes) timeoutMinutes(Number timeoutMinutes) Sets the value ofCfnPlan.CustomActionLambdaConfigurationProperty.getTimeoutMinutes()ungraceful(IResolvable ungraceful) Sets the value ofCfnPlan.CustomActionLambdaConfigurationProperty.getUngraceful()ungraceful(CfnPlan.LambdaUngracefulProperty ungraceful) Sets the value ofCfnPlan.CustomActionLambdaConfigurationProperty.getUngraceful()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
lambdas
@Stability(Stable) public CfnPlan.CustomActionLambdaConfigurationProperty.Builder lambdas(IResolvable lambdas) Sets the value ofCfnPlan.CustomActionLambdaConfigurationProperty.getLambdas()- Parameters:
lambdas- The AWS Lambda functions for the execution block. This parameter is required.- Returns:
this
-
lambdas
@Stability(Stable) public CfnPlan.CustomActionLambdaConfigurationProperty.Builder lambdas(List<? extends Object> lambdas) Sets the value ofCfnPlan.CustomActionLambdaConfigurationProperty.getLambdas()- Parameters:
lambdas- The AWS Lambda functions for the execution block. This parameter is required.- Returns:
this
-
regionToRun
@Stability(Stable) public CfnPlan.CustomActionLambdaConfigurationProperty.Builder regionToRun(String regionToRun) Sets the value ofCfnPlan.CustomActionLambdaConfigurationProperty.getRegionToRun()- Parameters:
regionToRun- The AWS Region for the function to run in. This parameter is required.- Returns:
this
-
retryIntervalMinutes
@Stability(Stable) public CfnPlan.CustomActionLambdaConfigurationProperty.Builder retryIntervalMinutes(Number retryIntervalMinutes) - Parameters:
retryIntervalMinutes- The retry interval specified. This parameter is required.- Returns:
this
-
timeoutMinutes
@Stability(Stable) public CfnPlan.CustomActionLambdaConfigurationProperty.Builder timeoutMinutes(Number timeoutMinutes) Sets the value ofCfnPlan.CustomActionLambdaConfigurationProperty.getTimeoutMinutes()- Parameters:
timeoutMinutes- The timeout value specified for the configuration.- Returns:
this
-
ungraceful
@Stability(Stable) public CfnPlan.CustomActionLambdaConfigurationProperty.Builder ungraceful(IResolvable ungraceful) Sets the value ofCfnPlan.CustomActionLambdaConfigurationProperty.getUngraceful()- Parameters:
ungraceful- The settings for ungraceful execution.- Returns:
this
-
ungraceful
@Stability(Stable) public CfnPlan.CustomActionLambdaConfigurationProperty.Builder ungraceful(CfnPlan.LambdaUngracefulProperty ungraceful) Sets the value ofCfnPlan.CustomActionLambdaConfigurationProperty.getUngraceful()- Parameters:
ungraceful- The settings for ungraceful execution.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPlan.CustomActionLambdaConfigurationProperty>- Returns:
- a new instance of
CfnPlan.CustomActionLambdaConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-