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

Returns a credentials set to be used with just-in-time node access.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SSMClient, GetAccessTokenCommand } from "@aws-sdk/client-ssm"; // ES Modules import * // const { SSMClient, GetAccessTokenCommand } = require("@aws-sdk/client-ssm"); // CommonJS import * const client = new SSMClient(config); * const input = { // GetAccessTokenRequest * AccessRequestId: "STRING_VALUE", // required * }; * const command = new GetAccessTokenCommand(input); * const response = await client.send(command); * // { // GetAccessTokenResponse * // Credentials: { // Credentials * // AccessKeyId: "STRING_VALUE", // required * // SecretAccessKey: "STRING_VALUE", // required * // SessionToken: "STRING_VALUE", // required * // ExpirationTime: new Date("TIMESTAMP"), // required * // }, * // AccessRequestStatus: "Approved" || "Rejected" || "Revoked" || "Expired" || "Pending", * // }; * * ``` * * @param GetAccessTokenCommandInput - {@link GetAccessTokenCommandInput} * @returns {@link GetAccessTokenCommandOutput} * @see {@link GetAccessTokenCommandInput} for command's `input` shape. * @see {@link GetAccessTokenCommandOutput} for command's `response` shape. * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

The requester doesn't have permissions to perform the requested operation.

* * @throws {@link InternalServerError} (server fault) *

An error occurred on the server side.

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

The specified parameter to be shared could not be found.

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

The request or operation couldn't be performed because the service is throttling * requests.

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

The request isn't valid. Verify that you entered valid contents for the command and try * again.

* * @throws {@link SSMServiceException} *

Base exception class for all service exceptions from SSM service.

* * * @public */ export declare class GetAccessTokenCommand extends GetAccessTokenCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetAccessTokenRequest; output: GetAccessTokenResponse; }; sdk: { input: GetAccessTokenCommandInput; output: GetAccessTokenCommandOutput; }; }; }