@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:16.048Z") @Stability(value=Experimental) public interface LambdaInvokeFunctionProps extends software.amazon.jsii.JsiiSerializable
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() |
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 String |
getPayload()
(experimental) Payload to send as part of the invoke.
|
@Stability(value=Experimental) @NotNull String getFunctionName()
@Stability(value=Experimental) @Nullable default InvocationType getInvocationType()
Default: InvocationType.REQUEST_RESPONE
@Stability(value=Experimental) @Nullable default LogType getLogType()
Default: LogType.NONE
@Stability(value=Experimental) @Nullable default String getPayload()
Default: - no payload
@Stability(value=Experimental) static LambdaInvokeFunctionProps.Builder builder()
LambdaInvokeFunctionProps.Builder of LambdaInvokeFunctionPropsCopyright © 2022. All rights reserved.