Class LambdaInvokeFunction.Builder
java.lang.Object
software.amazon.awscdk.integtests.alpha.LambdaInvokeFunction.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LambdaInvokeFunction>
- Enclosing class:
LambdaInvokeFunction
@Stability(Experimental)
public static final class LambdaInvokeFunction.Builder
extends Object
implements software.amazon.jsii.Builder<LambdaInvokeFunction>
(experimental) A fluent builder for
LambdaInvokeFunction
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static LambdaInvokeFunction.Builder
functionName
(String functionName) (experimental) The name of the function to invoke.invocationType
(InvocationType invocationType) (experimental) The type of invocation to use.logRetention
(RetentionDays logRetention) (experimental) How long, in days, the log contents will be retained.(experimental) Whether to return the logs as part of the response.(experimental) Payload to send as part of the invoke.
-
Method Details
-
create
@Stability(Experimental) public static LambdaInvokeFunction.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
LambdaInvokeFunction.Builder
.
-
functionName
(experimental) The name of the function to invoke.- Parameters:
functionName
- The name of the function to invoke. This parameter is required.- Returns:
this
-
invocationType
@Stability(Experimental) public LambdaInvokeFunction.Builder invocationType(InvocationType invocationType) (experimental) The type of invocation to use.Default: InvocationType.REQUEST_RESPONSE
- Parameters:
invocationType
- The type of invocation to use. This parameter is required.- Returns:
this
-
logRetention
@Stability(Experimental) public LambdaInvokeFunction.Builder logRetention(RetentionDays logRetention) (experimental) How long, in days, the log contents will be retained.Default: - no retention days specified
- Parameters:
logRetention
- How long, in days, the log contents will be retained. This parameter is required.- Returns:
this
-
logType
(experimental) Whether to return the logs as part of the response.Default: LogType.NONE
- Parameters:
logType
- Whether to return the logs as part of the response. This parameter is required.- Returns:
this
-
payload
(experimental) Payload to send as part of the invoke.Default: - no payload
- Parameters:
payload
- Payload to send as part of the invoke. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<LambdaInvokeFunction>
- Returns:
- a newly built instance of
LambdaInvokeFunction
.
-