JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.lambda.model

Class InvokeRequest

    • Constructor Detail

      • InvokeRequest

        public InvokeRequest()
    • Method Detail

      • setFunctionName

        public void setFunctionName(String functionName)

        The name or ARN of the Lambda function, version, or alias.

        Name formats

        • Function namemy-function (name-only), my-function:v1 (with alias).

        • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.

        • Partial ARN123456789012:function:my-function.

        You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

        Parameters:
        functionName - The name or ARN of the Lambda function, version, or alias.

        Name formats

        • Function namemy-function (name-only), my-function:v1 (with alias).

        • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.

        • Partial ARN123456789012:function:my-function.

        You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

      • getFunctionName

        public String getFunctionName()

        The name or ARN of the Lambda function, version, or alias.

        Name formats

        • Function namemy-function (name-only), my-function:v1 (with alias).

        • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.

        • Partial ARN123456789012:function:my-function.

        You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

        Returns:
        The name or ARN of the Lambda function, version, or alias.

        Name formats

        • Function namemy-function (name-only), my-function:v1 (with alias).

        • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.

        • Partial ARN123456789012:function:my-function.

        You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

      • withFunctionName

        public InvokeRequest withFunctionName(String functionName)

        The name or ARN of the Lambda function, version, or alias.

        Name formats

        • Function namemy-function (name-only), my-function:v1 (with alias).

        • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.

        • Partial ARN123456789012:function:my-function.

        You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

        Parameters:
        functionName - The name or ARN of the Lambda function, version, or alias.

        Name formats

        • Function namemy-function (name-only), my-function:v1 (with alias).

        • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.

        • Partial ARN123456789012:function:my-function.

        You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setInvocationType

        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. The API response includes the function response and additional data.

        • Event – Invoke the function asynchronously. Send events that fail multiple times to the function's dead-letter queue (if one is configured). The API response only includes a status code.

        • DryRun – Validate parameter values and verify that the user or role has permission to invoke the function.

        Parameters:
        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. The API response includes the function response and additional data.

        • Event – Invoke the function asynchronously. Send events that fail multiple times to the function's dead-letter queue (if one is configured). The API response only includes a status code.

        • DryRun – Validate parameter values and verify that the user or role has permission to invoke the function.

        See Also:
        InvocationType
      • getInvocationType

        public 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. The API response includes the function response and additional data.

        • Event – Invoke the function asynchronously. Send events that fail multiple times to the function's dead-letter queue (if one is configured). The API response only includes a status code.

        • DryRun – Validate parameter values and verify that the user or role has permission to invoke the function.

        Returns:
        Choose from the following options.

        • RequestResponse (default) – Invoke the function synchronously. Keep the connection open until the function returns a response or times out. The API response includes the function response and additional data.

        • Event – Invoke the function asynchronously. Send events that fail multiple times to the function's dead-letter queue (if one is configured). The API response only includes a status code.

        • DryRun – Validate parameter values and verify that the user or role has permission to invoke the function.

        See Also:
        InvocationType
      • withInvocationType

        public 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. The API response includes the function response and additional data.

        • Event – Invoke the function asynchronously. Send events that fail multiple times to the function's dead-letter queue (if one is configured). The API response only includes a status code.

        • DryRun – Validate parameter values and verify that the user or role has permission to invoke the function.

        Parameters:
        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. The API response includes the function response and additional data.

        • Event – Invoke the function asynchronously. Send events that fail multiple times to the function's dead-letter queue (if one is configured). The API response only includes a status code.

        • DryRun – Validate parameter values and verify that the user or role has permission to invoke the function.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InvocationType
      • setInvocationType

        public 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. The API response includes the function response and additional data.

        • Event – Invoke the function asynchronously. Send events that fail multiple times to the function's dead-letter queue (if one is configured). The API response only includes a status code.

        • DryRun – Validate parameter values and verify that the user or role has permission to invoke the function.

        Parameters:
        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. The API response includes the function response and additional data.

        • Event – Invoke the function asynchronously. Send events that fail multiple times to the function's dead-letter queue (if one is configured). The API response only includes a status code.

        • DryRun – Validate parameter values and verify that the user or role has permission to invoke the function.

        See Also:
        InvocationType
      • withInvocationType

        public 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. The API response includes the function response and additional data.

        • Event – Invoke the function asynchronously. Send events that fail multiple times to the function's dead-letter queue (if one is configured). The API response only includes a status code.

        • DryRun – Validate parameter values and verify that the user or role has permission to invoke the function.

        Parameters:
        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. The API response includes the function response and additional data.

        • Event – Invoke the function asynchronously. Send events that fail multiple times to the function's dead-letter queue (if one is configured). The API response only includes a status code.

        • DryRun – Validate parameter values and verify that the user or role has permission to invoke the function.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        InvocationType
      • setLogType

        public void setLogType(String logType)

        Set to Tail to include the execution log in the response. Applies to synchronously invoked functions only.

        Parameters:
        logType - Set to Tail to include the execution log in the response. Applies to synchronously invoked functions only.
        See Also:
        LogType
      • getLogType

        public String getLogType()

        Set to Tail to include the execution log in the response. Applies to synchronously invoked functions only.

        Returns:
        Set to Tail to include the execution log in the response. Applies to synchronously invoked functions only.
        See Also:
        LogType
      • withLogType

        public InvokeRequest withLogType(String logType)

        Set to Tail to include the execution log in the response. Applies to synchronously invoked functions only.

        Parameters:
        logType - Set to Tail to include the execution log in the response. Applies to synchronously invoked functions only.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        LogType
      • setLogType

        public void setLogType(LogType logType)

        Set to Tail to include the execution log in the response. Applies to synchronously invoked functions only.

        Parameters:
        logType - Set to Tail to include the execution log in the response. Applies to synchronously invoked functions only.
        See Also:
        LogType
      • withLogType

        public InvokeRequest withLogType(LogType logType)

        Set to Tail to include the execution log in the response. Applies to synchronously invoked functions only.

        Parameters:
        logType - Set to Tail to include the execution log in the response. Applies to synchronously invoked functions only.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        LogType
      • setClientContext

        public void setClientContext(String clientContext)

        Up to 3,583 bytes of base64-encoded data about the invoking client to pass to the function in the context object. Lambda passes the ClientContext object to your function for synchronous invocations only.

        Parameters:
        clientContext - Up to 3,583 bytes of base64-encoded data about the invoking client to pass to the function in the context object. Lambda passes the ClientContext object to your function for synchronous invocations only.
      • getClientContext

        public String getClientContext()

        Up to 3,583 bytes of base64-encoded data about the invoking client to pass to the function in the context object. Lambda passes the ClientContext object to your function for synchronous invocations only.

        Returns:
        Up to 3,583 bytes of base64-encoded data about the invoking client to pass to the function in the context object. Lambda passes the ClientContext object to your function for synchronous invocations only.
      • withClientContext

        public InvokeRequest withClientContext(String clientContext)

        Up to 3,583 bytes of base64-encoded data about the invoking client to pass to the function in the context object. Lambda passes the ClientContext object to your function for synchronous invocations only.

        Parameters:
        clientContext - Up to 3,583 bytes of base64-encoded data about the invoking client to pass to the function in the context object. Lambda passes the ClientContext object to your function for synchronous invocations only.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setPayload

        public void setPayload(ByteBuffer payload)

        The JSON that you want to provide to your Lambda function as input.

        You can enter the JSON directly. For example, --payload '{ "key": "value" }'. You can also specify a file path. For example, --payload file://payload.json.

        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.

        Parameters:
        payload - The JSON that you want to provide to your Lambda function as input.

        You can enter the JSON directly. For example, --payload '{ "key": "value" }'. You can also specify a file path. For example, --payload file://payload.json.

      • getPayload

        public ByteBuffer getPayload()

        The JSON that you want to provide to your Lambda function as input.

        You can enter the JSON directly. For example, --payload '{ "key": "value" }'. You can also specify a file path. For example, --payload file://payload.json.

        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.

        Returns:
        The JSON that you want to provide to your Lambda function as input.

        You can enter the JSON directly. For example, --payload '{ "key": "value" }'. You can also specify a file path. For example, --payload file://payload.json.

      • withPayload

        public InvokeRequest withPayload(ByteBuffer payload)

        The JSON that you want to provide to your Lambda function as input.

        You can enter the JSON directly. For example, --payload '{ "key": "value" }'. You can also specify a file path. For example, --payload file://payload.json.

        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.

        Parameters:
        payload - The JSON that you want to provide to your Lambda function as input.

        You can enter the JSON directly. For example, --payload '{ "key": "value" }'. You can also specify a file path. For example, --payload file://payload.json.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setPayload

        public void setPayload(String payload)

        The JSON that you want to provide to your Lambda function as input.

        You can enter the JSON directly. For example, --payload '{ "key": "value" }'. You can also specify a file path. For example, --payload file://payload.json.

        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.

        Parameters:
        payload - The JSON that you want to provide to your Lambda function as input.

        You can enter the JSON directly. For example, --payload '{ "key": "value" }'. You can also specify a file path. For example, --payload file://payload.json.

      • withPayload

        public InvokeRequest withPayload(String payload)

        The JSON that you want to provide to your Lambda function as input.

        You can enter the JSON directly. For example, --payload '{ "key": "value" }'. You can also specify a file path. For example, --payload file://payload.json.

        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.

        Parameters:
        payload - The JSON that you want to provide to your Lambda function as input.

        You can enter the JSON directly. For example, --payload '{ "key": "value" }'. You can also specify a file path. For example, --payload file://payload.json.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setQualifier

        public void setQualifier(String qualifier)

        Specify a version or alias to invoke a published version of the function.

        Parameters:
        qualifier - Specify a version or alias to invoke a published version of the function.
      • getQualifier

        public String getQualifier()

        Specify a version or alias to invoke a published version of the function.

        Returns:
        Specify a version or alias to invoke a published version of the function.
      • withQualifier

        public InvokeRequest withQualifier(String qualifier)

        Specify a version or alias to invoke a published version of the function.

        Parameters:
        qualifier - Specify a version or alias to invoke a published version of the function.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /