@aws-cdk_integ-tests-alpha.LambdaInvokeFunctionProps

interface LambdaInvokeFunctionProps ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.IntegTests.Alpha.LambdaInvokeFunctionProps
Gogithub.com/aws/aws-cdk-go/awscdkintegtestsalpha/v2#LambdaInvokeFunctionProps
Javasoftware.amazon.awscdk.integtests.alpha.LambdaInvokeFunctionProps
Pythonaws_cdk.integ_tests_alpha.LambdaInvokeFunctionProps
TypeScript (source)@aws-cdk/integ-tests-alpha ยป LambdaInvokeFunctionProps

Options to pass to the Lambda invokeFunction API call.

Example

declare const lambdaFunction: lambda.IFunction;
declare const app: App;

const stack = new Stack(app, 'cdk-integ-lambda-bundling');

const integ = new IntegTest(app, 'IntegTest', {
  testCases: [stack],
});

const invoke = integ.assertions.invokeFunction({
  functionName: lambdaFunction.functionName,
});
invoke.expect(ExpectedResult.objectLike({
  Payload: '200',
}));

Properties

NameTypeDescription
functionName๐Ÿ”นstringThe name of the function to invoke.
invocationType?๐Ÿ”นInvocationTypeThe type of invocation to use.
logType?๐Ÿ”นLogTypeWhether to return the logs as part of the response.
payload?๐Ÿ”นstringPayload to send as part of the invoke.

functionName๐Ÿ”น

Type: string

The name of the function to invoke.


invocationType?๐Ÿ”น

Type: InvocationType (optional, default: InvocationType.REQUEST_RESPONE)

The type of invocation to use.


logType?๐Ÿ”น

Type: LogType (optional, default: LogType.NONE)

Whether to return the logs as part of the response.


payload?๐Ÿ”น

Type: string (optional, default: no payload)

Payload to send as part of the invoke.