Class InvokeRequest
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a shallow clone of this request.booleanUsing theClientContextyou can pass client-specific information to the Lambda function you are invoking.The Lambda function name.By default, theInvokeAPI assumesRequestResponseinvocation type.You can set this optional parameter toTailin the request only if you specify theInvocationTypeparameter with valueRequestResponse.JSON that you want to provide to your Lambda function as input.You can use this optional parameter to specify a Lambda function version or alias name.inthashCode()voidsetClientContext(String clientContext) Using theClientContextyou can pass client-specific information to the Lambda function you are invoking.voidsetFunctionName(String functionName) The Lambda function name.voidsetInvocationType(InvocationType invocationType) By default, theInvokeAPI assumesRequestResponseinvocation type.voidsetInvocationType(String invocationType) By default, theInvokeAPI assumesRequestResponseinvocation type.voidsetLogType(LogType logType) You can set this optional parameter toTailin the request only if you specify theInvocationTypeparameter with valueRequestResponse.voidsetLogType(String logType) You can set this optional parameter toTailin the request only if you specify theInvocationTypeparameter with valueRequestResponse.voidsetPayload(String payload) JSON that you want to provide to your Lambda function as input.voidsetPayload(ByteBuffer payload) JSON that you want to provide to your Lambda function as input.voidsetQualifier(String qualifier) You can use this optional parameter to specify a Lambda function version or alias name.toString()Returns a string representation of this object; useful for testing and debugging.withClientContext(String clientContext) Using theClientContextyou can pass client-specific information to the Lambda function you are invoking.withFunctionName(String functionName) The Lambda function name.withInvocationType(InvocationType invocationType) By default, theInvokeAPI assumesRequestResponseinvocation type.withInvocationType(String invocationType) By default, theInvokeAPI assumesRequestResponseinvocation type.withLogType(LogType logType) You can set this optional parameter toTailin the request only if you specify theInvocationTypeparameter with valueRequestResponse.withLogType(String logType) You can set this optional parameter toTailin the request only if you specify theInvocationTypeparameter with valueRequestResponse.withPayload(String payload) JSON that you want to provide to your Lambda function as input.withPayload(ByteBuffer payload) JSON that you want to provide to your Lambda function as input.withQualifier(String qualifier) You can use this optional parameter to specify a Lambda function version or alias name.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
Constructor Details
-
InvokeRequest
public InvokeRequest()
-
-
Method Details
-
setFunctionName
The Lambda function name.
You can specify a function name (for example,
Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example,arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS Lambda also allows you to specify a partial ARN (for example,account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.- Parameters:
functionName- The Lambda function name.You can specify a function name (for example,
Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example,arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS Lambda also allows you to specify a partial ARN (for example,account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.
-
getFunctionName
The Lambda function name.
You can specify a function name (for example,
Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example,arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS Lambda also allows you to specify a partial ARN (for example,account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.- Returns:
- The Lambda function name.
You can specify a function name (for example,
Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example,arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS Lambda also allows you to specify a partial ARN (for example,account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.
-
withFunctionName
The Lambda function name.
You can specify a function name (for example,
Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example,arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS Lambda also allows you to specify a partial ARN (for example,account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.- Parameters:
functionName- The Lambda function name.You can specify a function name (for example,
Thumbnail) or you can specify Amazon Resource Name (ARN) of the function (for example,arn:aws:lambda:us-west-2:account-id:function:ThumbNail). AWS Lambda also allows you to specify a partial ARN (for example,account-id:Thumbnail). Note that the length constraint applies only to the ARN. If you specify only the function name, it is limited to 64 character in length.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInvocationType
By default, the
InvokeAPI assumesRequestResponseinvocation type. You can optionally request asynchronous execution by specifyingEventas theInvocationType. 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 specifyingDryRunas theInvocationType. This is useful in a cross-account scenario when you want to verify access to a function without running it.- Parameters:
invocationType- By default, theInvokeAPI assumesRequestResponseinvocation type. You can optionally request asynchronous execution by specifyingEventas theInvocationType. 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 specifyingDryRunas theInvocationType. This is useful in a cross-account scenario when you want to verify access to a function without running it.- See Also:
-
getInvocationType
By default, the
InvokeAPI assumesRequestResponseinvocation type. You can optionally request asynchronous execution by specifyingEventas theInvocationType. 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 specifyingDryRunas theInvocationType. This is useful in a cross-account scenario when you want to verify access to a function without running it.- Returns:
- By default, the
InvokeAPI assumesRequestResponseinvocation type. You can optionally request asynchronous execution by specifyingEventas theInvocationType. 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 specifyingDryRunas theInvocationType. This is useful in a cross-account scenario when you want to verify access to a function without running it. - See Also:
-
withInvocationType
By default, the
InvokeAPI assumesRequestResponseinvocation type. You can optionally request asynchronous execution by specifyingEventas theInvocationType. 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 specifyingDryRunas theInvocationType. This is useful in a cross-account scenario when you want to verify access to a function without running it.- Parameters:
invocationType- By default, theInvokeAPI assumesRequestResponseinvocation type. You can optionally request asynchronous execution by specifyingEventas theInvocationType. 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 specifyingDryRunas theInvocationType. This is useful in a cross-account scenario when you want to verify access to a function without running it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setInvocationType
By default, the
InvokeAPI assumesRequestResponseinvocation type. You can optionally request asynchronous execution by specifyingEventas theInvocationType. 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 specifyingDryRunas theInvocationType. This is useful in a cross-account scenario when you want to verify access to a function without running it.- Parameters:
invocationType- By default, theInvokeAPI assumesRequestResponseinvocation type. You can optionally request asynchronous execution by specifyingEventas theInvocationType. 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 specifyingDryRunas theInvocationType. This is useful in a cross-account scenario when you want to verify access to a function without running it.- See Also:
-
withInvocationType
By default, the
InvokeAPI assumesRequestResponseinvocation type. You can optionally request asynchronous execution by specifyingEventas theInvocationType. 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 specifyingDryRunas theInvocationType. This is useful in a cross-account scenario when you want to verify access to a function without running it.- Parameters:
invocationType- By default, theInvokeAPI assumesRequestResponseinvocation type. You can optionally request asynchronous execution by specifyingEventas theInvocationType. 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 specifyingDryRunas theInvocationType. This is useful in a cross-account scenario when you want to verify access to a function without running it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setLogType
You can set this optional parameter to
Tailin the request only if you specify theInvocationTypeparameter with valueRequestResponse. In this case, AWS Lambda returns the base64-encoded last 4 KB of log data produced by your Lambda function in thex-amz-log-resultsheader.- Parameters:
logType- You can set this optional parameter toTailin the request only if you specify theInvocationTypeparameter with valueRequestResponse. In this case, AWS Lambda returns the base64-encoded last 4 KB of log data produced by your Lambda function in thex-amz-log-resultsheader.- See Also:
-
getLogType
You can set this optional parameter to
Tailin the request only if you specify theInvocationTypeparameter with valueRequestResponse. In this case, AWS Lambda returns the base64-encoded last 4 KB of log data produced by your Lambda function in thex-amz-log-resultsheader.- Returns:
- You can set this optional parameter to
Tailin the request only if you specify theInvocationTypeparameter with valueRequestResponse. In this case, AWS Lambda returns the base64-encoded last 4 KB of log data produced by your Lambda function in thex-amz-log-resultsheader. - See Also:
-
withLogType
You can set this optional parameter to
Tailin the request only if you specify theInvocationTypeparameter with valueRequestResponse. In this case, AWS Lambda returns the base64-encoded last 4 KB of log data produced by your Lambda function in thex-amz-log-resultsheader.- Parameters:
logType- You can set this optional parameter toTailin the request only if you specify theInvocationTypeparameter with valueRequestResponse. In this case, AWS Lambda returns the base64-encoded last 4 KB of log data produced by your Lambda function in thex-amz-log-resultsheader.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setLogType
You can set this optional parameter to
Tailin the request only if you specify theInvocationTypeparameter with valueRequestResponse. In this case, AWS Lambda returns the base64-encoded last 4 KB of log data produced by your Lambda function in thex-amz-log-resultsheader.- Parameters:
logType- You can set this optional parameter toTailin the request only if you specify theInvocationTypeparameter with valueRequestResponse. In this case, AWS Lambda returns the base64-encoded last 4 KB of log data produced by your Lambda function in thex-amz-log-resultsheader.- See Also:
-
withLogType
You can set this optional parameter to
Tailin the request only if you specify theInvocationTypeparameter with valueRequestResponse. In this case, AWS Lambda returns the base64-encoded last 4 KB of log data produced by your Lambda function in thex-amz-log-resultsheader.- Parameters:
logType- You can set this optional parameter toTailin the request only if you specify theInvocationTypeparameter with valueRequestResponse. In this case, AWS Lambda returns the base64-encoded last 4 KB of log data produced by your Lambda function in thex-amz-log-resultsheader.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setClientContext
Using the
ClientContextyou 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 aClientContextJSON, see PutEvents in the Amazon Mobile Analytics API Reference and User Guide.The ClientContext JSON must be base64-encoded.
- Parameters:
clientContext- Using theClientContextyou 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 aClientContextJSON, see PutEvents in the Amazon Mobile Analytics API Reference and User Guide.The ClientContext JSON must be base64-encoded.
-
getClientContext
Using the
ClientContextyou 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 aClientContextJSON, see PutEvents in the Amazon Mobile Analytics API Reference and User Guide.The ClientContext JSON must be base64-encoded.
- Returns:
- Using the
ClientContextyou 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 aClientContextJSON, see PutEvents in the Amazon Mobile Analytics API Reference and User Guide.The ClientContext JSON must be base64-encoded.
-
withClientContext
Using the
ClientContextyou 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 aClientContextJSON, see PutEvents in the Amazon Mobile Analytics API Reference and User Guide.The ClientContext JSON must be base64-encoded.
- Parameters:
clientContext- Using theClientContextyou 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 aClientContextJSON, see PutEvents in the Amazon Mobile Analytics API Reference and User Guide.The ClientContext JSON must be base64-encoded.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPayload
JSON that you want to provide to your Lambda function as input.
AWS SDK for Java performs a Base64 encoding on this field before sending this request to AWS service by default. 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.
- Parameters:
payload- JSON that you want to provide to your Lambda function as input.
-
getPayload
JSON that you want to provide to your Lambda function as input.
ByteBuffers are stateful. Calling theirgetmethods changes theirposition. We recommend usingByteBuffer.asReadOnlyBuffer()to create a read-only view of the buffer with an independentposition, and callinggetmethods on this rather than directly on the returnedByteBuffer. Doing so will ensure that anyone else using theByteBufferwill not be affected by changes to theposition.- Returns:
- JSON that you want to provide to your Lambda function as input.
-
withPayload
JSON that you want to provide to your Lambda function as input.
- Parameters:
payload- JSON that you want to provide to your Lambda function as input.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPayload
JSON that you want to provide to your Lambda function as input.
AWS SDK for Java performs a Base64 encoding on this field before sending this request to AWS service by default. 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.
- Parameters:
payload- JSON that you want to provide to your Lambda function as input.
-
withPayload
JSON that you want to provide to your Lambda function as input.
- Parameters:
payload- JSON that you want to provide to your Lambda function as input.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setQualifier
You can use this optional parameter to specify a Lambda function version or alias name. If you specify a function version, the API uses the qualified function ARN to invoke a specific Lambda function. If you specify an alias name, the API uses the alias ARN to invoke the Lambda function version to which the alias points.
If you don't provide this parameter, then the API uses unqualified function ARN which results in invocation of the
$LATESTversion.- Parameters:
qualifier- You can use this optional parameter to specify a Lambda function version or alias name. If you specify a function version, the API uses the qualified function ARN to invoke a specific Lambda function. If you specify an alias name, the API uses the alias ARN to invoke the Lambda function version to which the alias points.If you don't provide this parameter, then the API uses unqualified function ARN which results in invocation of the
$LATESTversion.
-
getQualifier
You can use this optional parameter to specify a Lambda function version or alias name. If you specify a function version, the API uses the qualified function ARN to invoke a specific Lambda function. If you specify an alias name, the API uses the alias ARN to invoke the Lambda function version to which the alias points.
If you don't provide this parameter, then the API uses unqualified function ARN which results in invocation of the
$LATESTversion.- Returns:
- You can use this optional parameter to specify a Lambda function
version or alias name. If you specify a function version, the API
uses the qualified function ARN to invoke a specific Lambda
function. If you specify an alias name, the API uses the alias
ARN to invoke the Lambda function version to which the alias
points.
If you don't provide this parameter, then the API uses unqualified function ARN which results in invocation of the
$LATESTversion.
-
withQualifier
You can use this optional parameter to specify a Lambda function version or alias name. If you specify a function version, the API uses the qualified function ARN to invoke a specific Lambda function. If you specify an alias name, the API uses the alias ARN to invoke the Lambda function version to which the alias points.
If you don't provide this parameter, then the API uses unqualified function ARN which results in invocation of the
$LATESTversion.- Parameters:
qualifier- You can use this optional parameter to specify a Lambda function version or alias name. If you specify a function version, the API uses the qualified function ARN to invoke a specific Lambda function. If you specify an alias name, the API uses the alias ARN to invoke the Lambda function version to which the alias points.If you don't provide this parameter, then the API uses unqualified function ARN which results in invocation of the
$LATESTversion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
-