Class CfnWebFunctionRevision.ServiceConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnWebFunctionRevision.ServiceConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebFunctionRevision.ServiceConfigProperty>
- Enclosing interface:
CfnWebFunctionRevision.ServiceConfigProperty
@Stability(Stable)
public static final class CfnWebFunctionRevision.ServiceConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWebFunctionRevision.ServiceConfigProperty>
A builder for
CfnWebFunctionRevision.ServiceConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.environmentVariables(Map<String, String> environmentVariables) Sets the value ofCfnWebFunctionRevision.ServiceConfigProperty.getEnvironmentVariables()environmentVariables(IResolvable environmentVariables) Sets the value ofCfnWebFunctionRevision.ServiceConfigProperty.getEnvironmentVariables()executionRoleArn(String executionRoleArn) Sets the value ofCfnWebFunctionRevision.ServiceConfigProperty.getExecutionRoleArn()maxConcurrencyPerEnvironment(Number maxConcurrencyPerEnvironment) telemetryConfig(IResolvable telemetryConfig) Sets the value ofCfnWebFunctionRevision.ServiceConfigProperty.getTelemetryConfig()telemetryConfig(CfnWebFunctionRevision.TelemetryConfigProperty telemetryConfig) Sets the value ofCfnWebFunctionRevision.ServiceConfigProperty.getTelemetryConfig()timeoutSeconds(Number timeoutSeconds) Sets the value ofCfnWebFunctionRevision.ServiceConfigProperty.getTimeoutSeconds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
executionRoleArn
@Stability(Stable) public CfnWebFunctionRevision.ServiceConfigProperty.Builder executionRoleArn(String executionRoleArn) Sets the value ofCfnWebFunctionRevision.ServiceConfigProperty.getExecutionRoleArn()- Parameters:
executionRoleArn- The ARN of the execution role. This parameter is required.- Returns:
this
-
environmentVariables
@Stability(Stable) public CfnWebFunctionRevision.ServiceConfigProperty.Builder environmentVariables(IResolvable environmentVariables) Sets the value ofCfnWebFunctionRevision.ServiceConfigProperty.getEnvironmentVariables()- Parameters:
environmentVariables- Environment variables for the function.- Returns:
this
-
environmentVariables
@Stability(Stable) public CfnWebFunctionRevision.ServiceConfigProperty.Builder environmentVariables(Map<String, String> environmentVariables) Sets the value ofCfnWebFunctionRevision.ServiceConfigProperty.getEnvironmentVariables()- Parameters:
environmentVariables- Environment variables for the function.- Returns:
this
-
maxConcurrencyPerEnvironment
@Stability(Stable) public CfnWebFunctionRevision.ServiceConfigProperty.Builder maxConcurrencyPerEnvironment(Number maxConcurrencyPerEnvironment) - Parameters:
maxConcurrencyPerEnvironment- The maximum concurrency per environment.- Returns:
this
-
telemetryConfig
@Stability(Stable) public CfnWebFunctionRevision.ServiceConfigProperty.Builder telemetryConfig(IResolvable telemetryConfig) Sets the value ofCfnWebFunctionRevision.ServiceConfigProperty.getTelemetryConfig()- Parameters:
telemetryConfig- The telemetry configuration.- Returns:
this
-
telemetryConfig
@Stability(Stable) public CfnWebFunctionRevision.ServiceConfigProperty.Builder telemetryConfig(CfnWebFunctionRevision.TelemetryConfigProperty telemetryConfig) Sets the value ofCfnWebFunctionRevision.ServiceConfigProperty.getTelemetryConfig()- Parameters:
telemetryConfig- The telemetry configuration.- Returns:
this
-
timeoutSeconds
@Stability(Stable) public CfnWebFunctionRevision.ServiceConfigProperty.Builder timeoutSeconds(Number timeoutSeconds) Sets the value ofCfnWebFunctionRevision.ServiceConfigProperty.getTimeoutSeconds()- Parameters:
timeoutSeconds- The function timeout in seconds.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWebFunctionRevision.ServiceConfigProperty>- Returns:
- a new instance of
CfnWebFunctionRevision.ServiceConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-