Interface ServiceConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ServiceConfig.Builder,,ServiceConfig> SdkBuilder<ServiceConfig.Builder,,ServiceConfig> SdkPojo
- Enclosing class:
ServiceConfig
-
Method Summary
Modifier and TypeMethodDescriptionenvironmentVariables(Map<String, String> environmentVariables) A map of environment variable key-value pairs available to the web function at runtime.executionRoleArn(String executionRoleArn) The ARN of the IAM role that the web function assumes when it runs.maxConcurrencyPerEnvironment(Integer maxConcurrencyPerEnvironment) The maximum number of concurrent requests handled per execution environment.default ServiceConfig.BuildertelemetryConfig(Consumer<TelemetryConfig.Builder> telemetryConfig) The telemetry configuration for the web function, including logging settings.telemetryConfig(TelemetryConfig telemetryConfig) The telemetry configuration for the web function, including logging settings.timeoutSeconds(Integer timeoutSeconds) The amount of time (in seconds) that Lambda allows the web function to run before stopping it.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
executionRoleArn
The ARN of the IAM role that the web function assumes when it runs. This role provides permissions to access AWS services and resources.
- Parameters:
executionRoleArn- The ARN of the IAM role that the web function assumes when it runs. This role provides permissions to access AWS services and resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timeoutSeconds
The amount of time (in seconds) that Lambda allows the web function to run before stopping it. Minimum value of 3, maximum value of 900. If you don't specify a value, the default is 30, and this default is returned in the response.
- Parameters:
timeoutSeconds- The amount of time (in seconds) that Lambda allows the web function to run before stopping it. Minimum value of 3, maximum value of 900. If you don't specify a value, the default is 30, and this default is returned in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxConcurrencyPerEnvironment
The maximum number of concurrent requests handled per execution environment. Minimum value of 1, maximum value of 128. If you don't specify a value, the default is 64, and this default is returned in the response.
- Parameters:
maxConcurrencyPerEnvironment- The maximum number of concurrent requests handled per execution environment. Minimum value of 1, maximum value of 128. If you don't specify a value, the default is 64, and this default is returned in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environmentVariables
A map of environment variable key-value pairs available to the web function at runtime. Environment variable values are sensitive.
- Parameters:
environmentVariables- A map of environment variable key-value pairs available to the web function at runtime. Environment variable values are sensitive.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
telemetryConfig
The telemetry configuration for the web function, including logging settings.
- Parameters:
telemetryConfig- The telemetry configuration for the web function, including logging settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
telemetryConfig
The telemetry configuration for the web function, including logging settings.
This is a convenience method that creates an instance of theTelemetryConfig.Builderavoiding the need to create one manually viaTelemetryConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totelemetryConfig(TelemetryConfig).- Parameters:
telemetryConfig- a consumer that will call methods onTelemetryConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-