import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { GetCommandInvocationRequest, GetCommandInvocationResult } from "../models/models_1"; import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetCommandInvocationCommand}. */ export interface GetCommandInvocationCommandInput extends GetCommandInvocationRequest { } /** * @public * * The output of {@link GetCommandInvocationCommand}. */ export interface GetCommandInvocationCommandOutput extends GetCommandInvocationResult, __MetadataBearer { } declare const GetCommandInvocationCommand_base: { new (input: GetCommandInvocationCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: GetCommandInvocationCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Returns detailed information about command execution for an invocation or plugin. The Run * Command API follows an eventual consistency model, due to the distributed nature of the system * supporting the API. This means that the result of an API command you run that affects your * resources might not be immediately visible to all subsequent commands you run. You should keep * this in mind when you carry out an API command that immediately follows a previous API * command.

*

* GetCommandInvocation only gives the execution status of a plugin in a document. * To get the command execution status on a specific managed node, use ListCommandInvocations. To get the command execution status across managed nodes, * use ListCommands.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SSMClient, GetCommandInvocationCommand } from "@aws-sdk/client-ssm"; // ES Modules import * // const { SSMClient, GetCommandInvocationCommand } = require("@aws-sdk/client-ssm"); // CommonJS import * const client = new SSMClient(config); * const input = { // GetCommandInvocationRequest * CommandId: "STRING_VALUE", // required * InstanceId: "STRING_VALUE", // required * PluginName: "STRING_VALUE", * }; * const command = new GetCommandInvocationCommand(input); * const response = await client.send(command); * // { // GetCommandInvocationResult * // CommandId: "STRING_VALUE", * // InstanceId: "STRING_VALUE", * // Comment: "STRING_VALUE", * // DocumentName: "STRING_VALUE", * // DocumentVersion: "STRING_VALUE", * // PluginName: "STRING_VALUE", * // ResponseCode: Number("int"), * // ExecutionStartDateTime: "STRING_VALUE", * // ExecutionElapsedTime: "STRING_VALUE", * // ExecutionEndDateTime: "STRING_VALUE", * // Status: "Pending" || "InProgress" || "Delayed" || "Success" || "Cancelled" || "TimedOut" || "Failed" || "Cancelling", * // StatusDetails: "STRING_VALUE", * // StandardOutputContent: "STRING_VALUE", * // StandardOutputUrl: "STRING_VALUE", * // StandardErrorContent: "STRING_VALUE", * // StandardErrorUrl: "STRING_VALUE", * // CloudWatchOutputConfig: { // CloudWatchOutputConfig * // CloudWatchLogGroupName: "STRING_VALUE", * // CloudWatchOutputEnabled: true || false, * // }, * // }; * * ``` * * @param GetCommandInvocationCommandInput - {@link GetCommandInvocationCommandInput} * @returns {@link GetCommandInvocationCommandOutput} * @see {@link GetCommandInvocationCommandInput} for command's `input` shape. * @see {@link GetCommandInvocationCommandOutput} for command's `response` shape. * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. * * @throws {@link InternalServerError} (server fault) *

An error occurred on the server side.

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

The specified command ID isn't valid. Verify the ID and try again.

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

The following problems can cause this exception:

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

The plugin name isn't valid.

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

The command ID and managed node ID you specified didn't match any invocations. Verify the * command ID and the managed node ID and try again.

* * @throws {@link SSMServiceException} *

Base exception class for all service exceptions from SSM service.

* * * @public */ export declare class GetCommandInvocationCommand extends GetCommandInvocationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetCommandInvocationRequest; output: GetCommandInvocationResult; }; sdk: { input: GetCommandInvocationCommandInput; output: GetCommandInvocationCommandOutput; }; }; }