> **Experimental**
>
> `@aws-cdk/integ-tests-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# LambdaInvokeFunctionProps

Options to pass to the Lambda invokeFunction API call.

Extends: LambdaInvokeFunctionProps
Used as props by: LambdaInvokeFunction

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/assertions/sdk.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/integ-tests-alpha/lib/assertions/sdk.ts#L205)

## Example

```ts
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

- `functionName`: string (required) — The name of the function to invoke.

- `invocationType`: [InvocationType](/cdk/api/v2/docs/@aws-cdk_integ-tests-alpha.InvocationType.html) = InvocationType.REQUEST_RESPONSE — The type of invocation to use.

- `logRetention`: [RetentionDays](/cdk/api/v2/docs/aws-cdk-lib.aws_logs.RetentionDays.html) — How long, in days, the log contents will be retained.

  **Default:** no retention days specified

- `logType`: [LogType](/cdk/api/v2/docs/@aws-cdk_integ-tests-alpha.LogType.html) = LogType.NONE — Whether to return the logs as part of the response.

- `payload`: string — Payload to send as part of the invoke.

  **Default:** no payload
