UNPKG

@aws-sdk/client-ssm

Version:

AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native

77 lines (76 loc) 3.29 kB
import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GetConnectionStatusRequest, GetConnectionStatusResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link GetConnectionStatusCommand}. */ export interface GetConnectionStatusCommandInput extends GetConnectionStatusRequest { } /** * @public * * The output of {@link GetConnectionStatusCommand}. */ export interface GetConnectionStatusCommandOutput extends GetConnectionStatusResponse, __MetadataBearer { } declare const GetConnectionStatusCommand_base: { new (input: GetConnectionStatusCommandInput): import("@smithy/core/client").CommandImpl<GetConnectionStatusCommandInput, GetConnectionStatusCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>; new (input: GetConnectionStatusCommandInput): import("@smithy/core/client").CommandImpl<GetConnectionStatusCommandInput, GetConnectionStatusCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** * <p>Retrieves the Session Manager connection status for a managed node to determine whether it is running * and ready to receive Session Manager connections.</p> * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SSMClient, GetConnectionStatusCommand } from "@aws-sdk/client-ssm"; // ES Modules import * // const { SSMClient, GetConnectionStatusCommand } = require("@aws-sdk/client-ssm"); // CommonJS import * // import type { SSMClientConfig } from "@aws-sdk/client-ssm"; * const config = {}; // type is SSMClientConfig * const client = new SSMClient(config); * const input = { // GetConnectionStatusRequest * Target: "STRING_VALUE", // required * }; * const command = new GetConnectionStatusCommand(input); * const response = await client.send(command); * // { // GetConnectionStatusResponse * // Target: "STRING_VALUE", * // Status: "connected" || "notconnected", * // }; * * ``` * * @param GetConnectionStatusCommandInput - {@link GetConnectionStatusCommandInput} * @returns {@link GetConnectionStatusCommandOutput} * @see {@link GetConnectionStatusCommandInput} for command's `input` shape. * @see {@link GetConnectionStatusCommandOutput} for command's `response` shape. * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. * * @throws {@link InternalServerError} (server fault) * <p>An error occurred on the server side.</p> * * @throws {@link SSMServiceException} * <p>Base exception class for all service exceptions from SSM service.</p> * * * @public */ export declare class GetConnectionStatusCommand extends GetConnectionStatusCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetConnectionStatusRequest; output: GetConnectionStatusResponse; }; sdk: { input: GetConnectionStatusCommandInput; output: GetConnectionStatusCommandOutput; }; }; }