/** * By default, the <code>Invoke</code> API assumes "RequestResponse" invocation type. You can * optionally request asynchronous execution by specifying "Event" as the <code>InvocationType * </code>. You can also use this parameter to request AWS Lambda to not execute the function but * do some verification, such as if the caller is authorized to invoke the function and if the * inputs are valid. You request this by specifying "DryRun" as the <code>InvocationType</code>. * This is useful in a cross-account scenario when you want to verify access to a function without * running it. * * <p>Returns a reference to this object so that method calls can be chained together. * * <p><b>Constraints:</b><br> * <b>Allowed Values: </b>Event, RequestResponse, DryRun * * @param invocationType By default, the <code>Invoke</code> API assumes "RequestResponse" * invocation type. You can optionally request asynchronous execution by specifying "Event" as * the <code>InvocationType</code>. You can also use this parameter to request AWS Lambda to * not execute the function but do some verification, such as if the caller is authorized to * invoke the function and if the inputs are valid. You request this by specifying "DryRun" as * the <code>InvocationType</code>. This is useful in a cross-account scenario when you want * to verify access to a function without running it. * @return A reference to this updated object so that method calls can be chained together. * @see InvocationType */ public InvokeRequest withInvocationType(InvocationType invocationType) { this.invocationType = invocationType.toString(); return this; }
/** * By default, the <code>Invoke</code> API assumes "RequestResponse" invocation type. You can * optionally request asynchronous execution by specifying "Event" as the <code>InvocationType * </code>. You can also use this parameter to request AWS Lambda to not execute the function but * do some verification, such as if the caller is authorized to invoke the function and if the * inputs are valid. You request this by specifying "DryRun" as the <code>InvocationType</code>. * This is useful in a cross-account scenario when you want to verify access to a function without * running it. * * <p><b>Constraints:</b><br> * <b>Allowed Values: </b>Event, RequestResponse, DryRun * * @param invocationType By default, the <code>Invoke</code> API assumes "RequestResponse" * invocation type. You can optionally request asynchronous execution by specifying "Event" as * the <code>InvocationType</code>. You can also use this parameter to request AWS Lambda to * not execute the function but do some verification, such as if the caller is authorized to * invoke the function and if the inputs are valid. You request this by specifying "DryRun" as * the <code>InvocationType</code>. This is useful in a cross-account scenario when you want * to verify access to a function without running it. * @see InvocationType */ public void setInvocationType(InvocationType invocationType) { this.invocationType = invocationType.toString(); }