import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetOperationRequest, GetOperationResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link GetOperationCommand}. */ export interface GetOperationCommandInput extends GetOperationRequest { } /** * @public * * The output of {@link GetOperationCommand}. */ export interface GetOperationCommandOutput extends GetOperationResponse, __MetadataBearer { } declare const GetOperationCommand_base: { new (input: GetOperationCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetOperationCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Gets information about any operation that returns an operation ID in the response, such as a * CreateHttpNamespace request.

* *

To get a list of operations that match specified criteria, see ListOperations.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ServiceDiscoveryClient, GetOperationCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import * // const { ServiceDiscoveryClient, GetOperationCommand } = require("@aws-sdk/client-servicediscovery"); // CommonJS import * // import type { ServiceDiscoveryClientConfig } from "@aws-sdk/client-servicediscovery"; * const config = {}; // type is ServiceDiscoveryClientConfig * const client = new ServiceDiscoveryClient(config); * const input = { // GetOperationRequest * OperationId: "STRING_VALUE", // required * OwnerAccount: "STRING_VALUE", * }; * const command = new GetOperationCommand(input); * const response = await client.send(command); * // { // GetOperationResponse * // Operation: { // Operation * // Id: "STRING_VALUE", * // OwnerAccount: "STRING_VALUE", * // Type: "CREATE_NAMESPACE" || "DELETE_NAMESPACE" || "UPDATE_NAMESPACE" || "UPDATE_SERVICE" || "REGISTER_INSTANCE" || "DEREGISTER_INSTANCE", * // Status: "SUBMITTED" || "PENDING" || "SUCCESS" || "FAIL", * // ErrorMessage: "STRING_VALUE", * // ErrorCode: "STRING_VALUE", * // CreateDate: new Date("TIMESTAMP"), * // UpdateDate: new Date("TIMESTAMP"), * // Targets: { // OperationTargetsMap * // "": "STRING_VALUE", * // }, * // }, * // }; * * ``` * * @param GetOperationCommandInput - {@link GetOperationCommandInput} * @returns {@link GetOperationCommandOutput} * @see {@link GetOperationCommandInput} for command's `input` shape. * @see {@link GetOperationCommandOutput} for command's `response` shape. * @see {@link ServiceDiscoveryClientResolvedConfig | config} for ServiceDiscoveryClient's `config` shape. * * @throws {@link InvalidInput} (client fault) *

One or more specified values aren't valid. For example, a required value might be missing, a * numeric value might be outside the allowed range, or a string value might exceed length * constraints.

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

No operation exists with the specified ID.

* * @throws {@link ServiceDiscoveryServiceException} *

Base exception class for all service exceptions from ServiceDiscovery service.

* * * @example Example: Get operation result * ```javascript * // Example: Get operation result * const input = { * OperationId: "gv4g5meo7ndmeh4fqskygvk23d2fijwa-k9302yzd" * }; * const command = new GetOperationCommand(input); * const response = await client.send(command); * /* response is * { * Operation: { * CreateDate: 1.587055860121E9, * Id: "gv4g5meo7ndmeh4fqskygvk23d2fijwa-k9302yzd", * Status: "SUCCESS", * Targets: { * NAMESPACE: "ns-ylexjili4cdxy3xm" * }, * Type: "CREATE_NAMESPACE", * UpdateDate: 1.587055900469E9 * } * } * *\/ * ``` * * @public */ export declare class GetOperationCommand extends GetOperationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetOperationRequest; output: GetOperationResponse; }; sdk: { input: GetOperationCommandInput; output: GetOperationCommandOutput; }; }; }