@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)",
date="2023-01-31T18:36:51.162Z")
public interface LambdaInvokeFunctionProps
Example:
IFunction lambdaFunction; App app; Stack stack = new Stack(app, "cdk-integ-lambda-bundling"); IntegTest integ = IntegTest.Builder.create(app, "IntegTest") .testCases(List.of(stack)) .build(); IAwsApiCall invoke = integ.assertions.invokeFunction(LambdaInvokeFunctionProps.builder() .functionName(lambdaFunction.getFunctionName()) .build()); invoke.expect(ExpectedResult.objectLike(Map.of( "Payload", "200")));
Modifier and Type | Interface and Description |
---|---|
static class |
LambdaInvokeFunctionProps.Builder
A builder for
LambdaInvokeFunctionProps |
static class |
LambdaInvokeFunctionProps.Jsii$Proxy
An implementation for
LambdaInvokeFunctionProps |
Modifier and Type | Method and Description |
---|---|
static LambdaInvokeFunctionProps.Builder |
builder() |
java.lang.String |
getFunctionName()
(experimental) The name of the function to invoke.
|
default InvocationType |
getInvocationType()
(experimental) The type of invocation to use.
|
default LogType |
getLogType()
(experimental) Whether to return the logs as part of the response.
|
default java.lang.String |
getPayload()
(experimental) Payload to send as part of the invoke.
|
java.lang.String getFunctionName()
default InvocationType getInvocationType()
Default: InvocationType.REQUEST_RESPONE
default LogType getLogType()
Default: LogType.NONE
default java.lang.String getPayload()
Default: - no payload
static LambdaInvokeFunctionProps.Builder builder()
LambdaInvokeFunctionProps.Builder
of LambdaInvokeFunctionProps