import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { SendTaskFailureInput, SendTaskFailureOutput } from "../models/models_0"; import type { ServiceInputTypes, ServiceOutputTypes, SFNClientResolvedConfig } from "../SFNClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link SendTaskFailureCommand}. */ export interface SendTaskFailureCommandInput extends SendTaskFailureInput { } /** * @public * * The output of {@link SendTaskFailureCommand}. */ export interface SendTaskFailureCommandOutput extends SendTaskFailureOutput, __MetadataBearer { } declare const SendTaskFailureCommand_base: { new (input: SendTaskFailureCommandInput): import("@smithy/core/client").CommandImpl; new (input: SendTaskFailureCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Used by activity workers, Task states using the callback * pattern, and optionally Task states using the job run pattern to report that the task identified by the taskToken failed.

*

For an execution with encryption enabled, Step Functions will encrypt the error and cause fields using the KMS key for the execution role.

*

A caller can mark a task as fail without using any KMS permissions in the execution role if the caller provides a null value for both error and cause fields because no data needs to be encrypted.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SFNClient, SendTaskFailureCommand } from "@aws-sdk/client-sfn"; // ES Modules import * // const { SFNClient, SendTaskFailureCommand } = require("@aws-sdk/client-sfn"); // CommonJS import * // import type { SFNClientConfig } from "@aws-sdk/client-sfn"; * const config = {}; // type is SFNClientConfig * const client = new SFNClient(config); * const input = { // SendTaskFailureInput * taskToken: "STRING_VALUE", // required * error: "STRING_VALUE", * cause: "STRING_VALUE", * }; * const command = new SendTaskFailureCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param SendTaskFailureCommandInput - {@link SendTaskFailureCommandInput} * @returns {@link SendTaskFailureCommandOutput} * @see {@link SendTaskFailureCommandInput} for command's `input` shape. * @see {@link SendTaskFailureCommandOutput} for command's `response` shape. * @see {@link SFNClientResolvedConfig | config} for SFNClient's `config` shape. * * @throws {@link InvalidToken} (client fault) *

The provided token is not valid.

* * @throws {@link KmsAccessDeniedException} (client fault) *

Either your KMS key policy or API caller does not have the required permissions.

* * @throws {@link KmsInvalidStateException} (client fault) *

The KMS key is not in valid state, for example: Disabled or Deleted.

* * @throws {@link KmsThrottlingException} (client fault) *

Received when KMS returns ThrottlingException for a KMS call that Step Functions makes on behalf of the caller.

* * @throws {@link TaskDoesNotExist} (client fault) *

The activity does not exist.

* * @throws {@link TaskTimedOut} (client fault) *

The task token has either expired or the task associated with the token has already been closed.

* * @throws {@link SFNServiceException} *

Base exception class for all service exceptions from SFN service.

* * * @public */ export declare class SendTaskFailureCommand extends SendTaskFailureCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: SendTaskFailureInput; output: {}; }; sdk: { input: SendTaskFailureCommandInput; output: SendTaskFailureCommandOutput; }; }; }