Interface ILambdaInvokeFunctionProps
(experimental) Options to pass to the Lambda invokeFunction API call.
Namespace: Amazon.CDK.IntegTests.Alpha
Assembly: Amazon.CDK.IntegTests.Alpha.dll
Syntax (csharp)
public interface ILambdaInvokeFunctionProps
Syntax (vb)
Public Interface ILambdaInvokeFunctionProps
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
IFunction lambdaFunction;
App app;
var stack = new Stack(app, "cdk-integ-lambda-bundling");
var integ = new IntegTest(app, "IntegTest", new IntegTestProps {
TestCases = new [] { stack }
});
var invoke = integ.Assertions.InvokeFunction(new LambdaInvokeFunctionProps {
FunctionName = lambdaFunction.FunctionName
});
invoke.Expect(ExpectedResult.ObjectLike(new Dictionary<string, object> {
{ "Payload", "200" }
}));
Synopsis
Properties
FunctionName | (experimental) The name of the function to invoke. |
InvocationType | (experimental) The type of invocation to use. |
LogRetention | (experimental) How long, in days, the log contents will be retained. |
LogType | (experimental) Whether to return the logs as part of the response. |
Payload | (experimental) Payload to send as part of the invoke. |
Properties
FunctionName
(experimental) The name of the function to invoke.
string FunctionName { get; }
Property Value
System.String
Remarks
Stability: Experimental
InvocationType
(experimental) The type of invocation to use.
virtual Nullable<InvocationType> InvocationType { get; }
Property Value
System.Nullable<InvocationType>
Remarks
Default: InvocationType.REQUEST_RESPONSE
Stability: Experimental
LogRetention
(experimental) How long, in days, the log contents will be retained.
virtual Nullable<RetentionDays> LogRetention { get; }
Property Value
System.Nullable<RetentionDays>
Remarks
Default: - no retention days specified
Stability: Experimental
LogType
(experimental) Whether to return the logs as part of the response.
virtual Nullable<LogType> LogType { get; }
Property Value
System.Nullable<LogType>
Remarks
Default: LogType.NONE
Stability: Experimental
Payload
(experimental) Payload to send as part of the invoke.
virtual string Payload { get; }
Property Value
System.String
Remarks
Default: - no payload
Stability: Experimental