@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InvokeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
InvokeRequest() |
| Modifier and Type | Method and Description |
|---|---|
InvokeRequest |
clone() |
boolean |
equals(Object obj) |
String |
getClientContext()
Using the
ClientContext you can pass client-specific information to the Lambda function you are
invoking. |
String |
getFunctionName()
The name of the lambda function.
|
String |
getInvocationType()
Choose from the following options.
|
String |
getLogType()
You can set this optional parameter to
Tail in the request only if you specify the
InvocationType parameter with value RequestResponse. |
ByteBuffer |
getPayload()
JSON that you want to provide to your Lambda function as input.
|
String |
getQualifier()
Specify a version or alias to invoke a published version of the function.
|
int |
hashCode() |
void |
setClientContext(String clientContext)
Using the
ClientContext you can pass client-specific information to the Lambda function you are
invoking. |
void |
setFunctionName(String functionName)
The name of the lambda function.
|
void |
setInvocationType(InvocationType invocationType)
Choose from the following options.
|
void |
setInvocationType(String invocationType)
Choose from the following options.
|
void |
setLogType(LogType logType)
You can set this optional parameter to
Tail in the request only if you specify the
InvocationType parameter with value RequestResponse. |
void |
setLogType(String logType)
You can set this optional parameter to
Tail in the request only if you specify the
InvocationType parameter with value RequestResponse. |
void |
setPayload(ByteBuffer payload)
JSON that you want to provide to your Lambda function as input.
|
void |
setPayload(String payload)
JSON that you want to provide to your Lambda function as input.
|
void |
setQualifier(String qualifier)
Specify a version or alias to invoke a published version of the function.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
InvokeRequest |
withClientContext(String clientContext)
Using the
ClientContext you can pass client-specific information to the Lambda function you are
invoking. |
InvokeRequest |
withFunctionName(String functionName)
The name of the lambda function.
|
InvokeRequest |
withInvocationType(InvocationType invocationType)
Choose from the following options.
|
InvokeRequest |
withInvocationType(String invocationType)
Choose from the following options.
|
InvokeRequest |
withLogType(LogType logType)
You can set this optional parameter to
Tail in the request only if you specify the
InvocationType parameter with value RequestResponse. |
InvokeRequest |
withLogType(String logType)
You can set this optional parameter to
Tail in the request only if you specify the
InvocationType parameter with value RequestResponse. |
InvokeRequest |
withPayload(ByteBuffer payload)
JSON that you want to provide to your Lambda function as input.
|
InvokeRequest |
withPayload(String payload)
JSON that you want to provide to your Lambda function as input.
|
InvokeRequest |
withQualifier(String qualifier)
Specify a version or alias to invoke a published version of the function.
|
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setFunctionName(String functionName)
The name of the lambda function.
Name formats
Function name - MyFunction.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
Partial ARN - 123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
functionName - The name of the lambda function.
Name formats
Function name - MyFunction.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
Partial ARN - 123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
public String getFunctionName()
The name of the lambda function.
Name formats
Function name - MyFunction.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
Partial ARN - 123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
Name formats
Function name - MyFunction.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
Partial ARN - 123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
public InvokeRequest withFunctionName(String functionName)
The name of the lambda function.
Name formats
Function name - MyFunction.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
Partial ARN - 123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
functionName - The name of the lambda function.
Name formats
Function name - MyFunction.
Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
Partial ARN - 123456789012:function:MyFunction.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
public void setInvocationType(String invocationType)
Choose from the following options.
RequestResponse (default) - Invoke the function synchronously. Keep the connection open until the
function returns a response or times out.
Event - Invoke the function asynchronously. Send events that fail multiple times to the function's
dead-letter queue (if configured).
DryRun - Validate parameter values and verify that the user or role has permission to invoke the
function.
invocationType - Choose from the following options.
RequestResponse (default) - Invoke the function synchronously. Keep the connection open until
the function returns a response or times out.
Event - Invoke the function asynchronously. Send events that fail multiple times to the
function's dead-letter queue (if configured).
DryRun - Validate parameter values and verify that the user or role has permission to invoke
the function.
InvocationTypepublic String getInvocationType()
Choose from the following options.
RequestResponse (default) - Invoke the function synchronously. Keep the connection open until the
function returns a response or times out.
Event - Invoke the function asynchronously. Send events that fail multiple times to the function's
dead-letter queue (if configured).
DryRun - Validate parameter values and verify that the user or role has permission to invoke the
function.
RequestResponse (default) - Invoke the function synchronously. Keep the connection open
until the function returns a response or times out.
Event - Invoke the function asynchronously. Send events that fail multiple times to the
function's dead-letter queue (if configured).
DryRun - Validate parameter values and verify that the user or role has permission to invoke
the function.
InvocationTypepublic InvokeRequest withInvocationType(String invocationType)
Choose from the following options.
RequestResponse (default) - Invoke the function synchronously. Keep the connection open until the
function returns a response or times out.
Event - Invoke the function asynchronously. Send events that fail multiple times to the function's
dead-letter queue (if configured).
DryRun - Validate parameter values and verify that the user or role has permission to invoke the
function.
invocationType - Choose from the following options.
RequestResponse (default) - Invoke the function synchronously. Keep the connection open until
the function returns a response or times out.
Event - Invoke the function asynchronously. Send events that fail multiple times to the
function's dead-letter queue (if configured).
DryRun - Validate parameter values and verify that the user or role has permission to invoke
the function.
InvocationTypepublic void setInvocationType(InvocationType invocationType)
Choose from the following options.
RequestResponse (default) - Invoke the function synchronously. Keep the connection open until the
function returns a response or times out.
Event - Invoke the function asynchronously. Send events that fail multiple times to the function's
dead-letter queue (if configured).
DryRun - Validate parameter values and verify that the user or role has permission to invoke the
function.
invocationType - Choose from the following options.
RequestResponse (default) - Invoke the function synchronously. Keep the connection open until
the function returns a response or times out.
Event - Invoke the function asynchronously. Send events that fail multiple times to the
function's dead-letter queue (if configured).
DryRun - Validate parameter values and verify that the user or role has permission to invoke
the function.
InvocationTypepublic InvokeRequest withInvocationType(InvocationType invocationType)
Choose from the following options.
RequestResponse (default) - Invoke the function synchronously. Keep the connection open until the
function returns a response or times out.
Event - Invoke the function asynchronously. Send events that fail multiple times to the function's
dead-letter queue (if configured).
DryRun - Validate parameter values and verify that the user or role has permission to invoke the
function.
invocationType - Choose from the following options.
RequestResponse (default) - Invoke the function synchronously. Keep the connection open until
the function returns a response or times out.
Event - Invoke the function asynchronously. Send events that fail multiple times to the
function's dead-letter queue (if configured).
DryRun - Validate parameter values and verify that the user or role has permission to invoke
the function.
InvocationTypepublic void setLogType(String logType)
You can set this optional parameter to Tail in the request only if you specify the
InvocationType parameter with value RequestResponse. In this case, AWS Lambda returns
the base64-encoded last 4 KB of log data produced by your Lambda function in the x-amz-log-result
header.
logType - You can set this optional parameter to Tail in the request only if you specify the
InvocationType parameter with value RequestResponse. In this case, AWS Lambda
returns the base64-encoded last 4 KB of log data produced by your Lambda function in the
x-amz-log-result header.LogTypepublic String getLogType()
You can set this optional parameter to Tail in the request only if you specify the
InvocationType parameter with value RequestResponse. In this case, AWS Lambda returns
the base64-encoded last 4 KB of log data produced by your Lambda function in the x-amz-log-result
header.
Tail in the request only if you specify the
InvocationType parameter with value RequestResponse. In this case, AWS Lambda
returns the base64-encoded last 4 KB of log data produced by your Lambda function in the
x-amz-log-result header.LogTypepublic InvokeRequest withLogType(String logType)
You can set this optional parameter to Tail in the request only if you specify the
InvocationType parameter with value RequestResponse. In this case, AWS Lambda returns
the base64-encoded last 4 KB of log data produced by your Lambda function in the x-amz-log-result
header.
logType - You can set this optional parameter to Tail in the request only if you specify the
InvocationType parameter with value RequestResponse. In this case, AWS Lambda
returns the base64-encoded last 4 KB of log data produced by your Lambda function in the
x-amz-log-result header.LogTypepublic void setLogType(LogType logType)
You can set this optional parameter to Tail in the request only if you specify the
InvocationType parameter with value RequestResponse. In this case, AWS Lambda returns
the base64-encoded last 4 KB of log data produced by your Lambda function in the x-amz-log-result
header.
logType - You can set this optional parameter to Tail in the request only if you specify the
InvocationType parameter with value RequestResponse. In this case, AWS Lambda
returns the base64-encoded last 4 KB of log data produced by your Lambda function in the
x-amz-log-result header.LogTypepublic InvokeRequest withLogType(LogType logType)
You can set this optional parameter to Tail in the request only if you specify the
InvocationType parameter with value RequestResponse. In this case, AWS Lambda returns
the base64-encoded last 4 KB of log data produced by your Lambda function in the x-amz-log-result
header.
logType - You can set this optional parameter to Tail in the request only if you specify the
InvocationType parameter with value RequestResponse. In this case, AWS Lambda
returns the base64-encoded last 4 KB of log data produced by your Lambda function in the
x-amz-log-result header.LogTypepublic void setClientContext(String clientContext)
Using the ClientContext you can pass client-specific information to the Lambda function you are
invoking. You can then process the client information in your Lambda function as you choose through the context
variable. For an example of a ClientContext JSON, see PutEvents in the Amazon Mobile
Analytics API Reference and User Guide.
The ClientContext JSON must be base64-encoded and has a maximum size of 3583 bytes.
ClientContext information is returned only if you use the synchronous (RequestResponse)
invocation type.
clientContext - Using the ClientContext you can pass client-specific information to the Lambda function you
are invoking. You can then process the client information in your Lambda function as you choose through
the context variable. For an example of a ClientContext JSON, see PutEvents in the Amazon
Mobile Analytics API Reference and User Guide.
The ClientContext JSON must be base64-encoded and has a maximum size of 3583 bytes.
ClientContext information is returned only if you use the synchronous (
RequestResponse) invocation type.
public String getClientContext()
Using the ClientContext you can pass client-specific information to the Lambda function you are
invoking. You can then process the client information in your Lambda function as you choose through the context
variable. For an example of a ClientContext JSON, see PutEvents in the Amazon Mobile
Analytics API Reference and User Guide.
The ClientContext JSON must be base64-encoded and has a maximum size of 3583 bytes.
ClientContext information is returned only if you use the synchronous (RequestResponse)
invocation type.
ClientContext you can pass client-specific information to the Lambda function you
are invoking. You can then process the client information in your Lambda function as you choose through
the context variable. For an example of a ClientContext JSON, see PutEvents in the Amazon
Mobile Analytics API Reference and User Guide.
The ClientContext JSON must be base64-encoded and has a maximum size of 3583 bytes.
ClientContext information is returned only if you use the synchronous (
RequestResponse) invocation type.
public InvokeRequest withClientContext(String clientContext)
Using the ClientContext you can pass client-specific information to the Lambda function you are
invoking. You can then process the client information in your Lambda function as you choose through the context
variable. For an example of a ClientContext JSON, see PutEvents in the Amazon Mobile
Analytics API Reference and User Guide.
The ClientContext JSON must be base64-encoded and has a maximum size of 3583 bytes.
ClientContext information is returned only if you use the synchronous (RequestResponse)
invocation type.
clientContext - Using the ClientContext you can pass client-specific information to the Lambda function you
are invoking. You can then process the client information in your Lambda function as you choose through
the context variable. For an example of a ClientContext JSON, see PutEvents in the Amazon
Mobile Analytics API Reference and User Guide.
The ClientContext JSON must be base64-encoded and has a maximum size of 3583 bytes.
ClientContext information is returned only if you use the synchronous (
RequestResponse) invocation type.
public void setPayload(ByteBuffer payload)
JSON that you want to provide to your Lambda function as input.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
payload - JSON that you want to provide to your Lambda function as input.public ByteBuffer getPayload()
JSON that you want to provide to your Lambda function as input.
ByteBuffers are stateful. Calling their get methods changes their position. We recommend
using ByteBuffer.asReadOnlyBuffer() to create a read-only view of the buffer with an independent
position, and calling get methods on this rather than directly on the returned ByteBuffer.
Doing so will ensure that anyone else using the ByteBuffer will not be affected by changes to the
position.
public InvokeRequest withPayload(ByteBuffer payload)
JSON that you want to provide to your Lambda function as input.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
payload - JSON that you want to provide to your Lambda function as input.public void setPayload(String payload)
JSON that you want to provide to your Lambda function as input.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
payload - JSON that you want to provide to your Lambda function as input.public InvokeRequest withPayload(String payload)
JSON that you want to provide to your Lambda function as input.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
payload - JSON that you want to provide to your Lambda function as input.public void setQualifier(String qualifier)
Specify a version or alias to invoke a published version of the function.
qualifier - Specify a version or alias to invoke a published version of the function.public String getQualifier()
Specify a version or alias to invoke a published version of the function.
public InvokeRequest withQualifier(String qualifier)
Specify a version or alias to invoke a published version of the function.
qualifier - Specify a version or alias to invoke a published version of the function.public String toString()
toString in class ObjectObject.toString()public InvokeRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2018. All rights reserved.