@aws-sdk/client-lambda
Version:
AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native
87 lines (86 loc) • 3.73 kB
TypeScript
import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer, StreamingBlobPayloadInputTypes } from "@smithy/types";
import { LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../LambdaClient";
import { InvokeAsyncRequest, InvokeAsyncResponse } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
export { $Command };
/**
* @public
*
* The input for {@link InvokeAsyncCommand}.
*/
export interface InvokeAsyncCommandInput extends Omit<InvokeAsyncRequest, "InvokeArgs"> {
InvokeArgs: StreamingBlobPayloadInputTypes;
}
/**
* @public
*
* The output of {@link InvokeAsyncCommand}.
*/
export interface InvokeAsyncCommandOutput extends InvokeAsyncResponse, __MetadataBearer {
}
declare const InvokeAsyncCommand_base: {
new (input: InvokeAsyncCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeAsyncCommandInput, InvokeAsyncCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (__0_0: InvokeAsyncCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeAsyncCommandInput, InvokeAsyncCommandOutput, LambdaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
};
/**
* <important>
* <p>For asynchronous function invocation, use <a>Invoke</a>.</p>
* </important>
* <p>Invokes a function asynchronously.</p>
* <note>
* <p>If you do use the InvokeAsync action, note that it doesn't support the use of X-Ray active tracing. Trace ID is not
* propagated to the function, even if X-Ray active tracing is turned on.</p>
* </note>
*
* @deprecated
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { LambdaClient, InvokeAsyncCommand } from "@aws-sdk/client-lambda"; // ES Modules import
* // const { LambdaClient, InvokeAsyncCommand } = require("@aws-sdk/client-lambda"); // CommonJS import
* const client = new LambdaClient(config);
* const input = { // InvokeAsyncRequest
* FunctionName: "STRING_VALUE", // required
* InvokeArgs: "MULTIPLE_TYPES_ACCEPTED", // see \@smithy/types -> StreamingBlobPayloadInputTypes // required
* };
* const command = new InvokeAsyncCommand(input);
* const response = await client.send(command);
* // { // InvokeAsyncResponse
* // Status: Number("int"),
* // };
*
* ```
*
* @param InvokeAsyncCommandInput - {@link InvokeAsyncCommandInput}
* @returns {@link InvokeAsyncCommandOutput}
* @see {@link InvokeAsyncCommandInput} for command's `input` shape.
* @see {@link InvokeAsyncCommandOutput} for command's `response` shape.
* @see {@link LambdaClientResolvedConfig | config} for LambdaClient's `config` shape.
*
* @throws {@link InvalidRequestContentException} (client fault)
* <p>The request body could not be parsed as JSON.</p>
*
* @throws {@link InvalidRuntimeException} (server fault)
* <p>The runtime or runtime version specified is not supported.</p>
*
* @throws {@link ResourceConflictException} (client fault)
* <p>The resource already exists, or another operation is in progress.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The resource specified in the request does not exist.</p>
*
* @throws {@link ServiceException} (server fault)
* <p>The Lambda service encountered an internal error.</p>
*
* @throws {@link LambdaServiceException}
* <p>Base exception class for all service exceptions from Lambda service.</p>
*
* @public
*/
export declare class InvokeAsyncCommand extends InvokeAsyncCommand_base {
}