Class AdotInstrumentationConfig.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.AdotInstrumentationConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AdotInstrumentationConfig>
- Enclosing interface:
AdotInstrumentationConfig
@Stability(Stable)
public static final class AdotInstrumentationConfig.Builder
extends Object
implements software.amazon.jsii.Builder<AdotInstrumentationConfig>
A builder for
AdotInstrumentationConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.execWrapper(AdotLambdaExecWrapper execWrapper) Sets the value ofAdotInstrumentationConfig.getExecWrapper()layerVersion(AdotLayerVersion layerVersion) Sets the value ofAdotInstrumentationConfig.getLayerVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
execWrapper
@Stability(Stable) public AdotInstrumentationConfig.Builder execWrapper(AdotLambdaExecWrapper execWrapper) Sets the value ofAdotInstrumentationConfig.getExecWrapper()- Parameters:
execWrapper- The startup script to run, see ADOT documentation to pick the right script for your use case: https://aws-otel.github.io/docs/getting-started/lambda. This parameter is required.- Returns:
this
-
layerVersion
@Stability(Stable) public AdotInstrumentationConfig.Builder layerVersion(AdotLayerVersion layerVersion) Sets the value ofAdotInstrumentationConfig.getLayerVersion()- Parameters:
layerVersion- The ADOT Lambda layer. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AdotInstrumentationConfig>- Returns:
- a new instance of
AdotInstrumentationConfig - Throws:
NullPointerException- if any required attribute was not provided
-