import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; import { Command as $Command } from "@smithy/smithy-client"; import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; import { ExchangeCredentialsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ExchangeCredentialsClient"; import { GetAwsAccessInput, GetAwsAccessOutput } from "../models/models_0"; /** * @public */ export { __MetadataBearer, $Command }; /** * @public * * The input for {@link GetAwsAccessCommand}. */ export interface GetAwsAccessCommandInput extends GetAwsAccessInput { } /** * @public * * The output of {@link GetAwsAccessCommand}. */ export interface GetAwsAccessCommandOutput extends GetAwsAccessOutput, __MetadataBearer { } /** * @public * Get caller's mapped AWS account ID and Web Identity token * * [IMPORTANT] Do not rely on this operation directly because it might be modified without notice. * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ExchangeCredentialsClient, GetAwsAccessCommand } from "@stedi/sdk-client-exchange-credentials"; // ES Modules import * // const { ExchangeCredentialsClient, GetAwsAccessCommand } = require("@stedi/sdk-client-exchange-credentials"); // CommonJS import * const client = new ExchangeCredentialsClient(config); * const input = {}; * const command = new GetAwsAccessCommand(input); * const response = await client.send(command); * // { // GetAwsAccessOutput * // awsAccountId: "STRING_VALUE", * // webIdentityToken: "STRING_VALUE", * // }; * * ``` * * @param GetAwsAccessCommandInput - {@link GetAwsAccessCommandInput} * @returns {@link GetAwsAccessCommandOutput} * @see {@link GetAwsAccessCommandInput} for command's `input` shape. * @see {@link GetAwsAccessCommandOutput} for command's `response` shape. * @see {@link ExchangeCredentialsClientResolvedConfig | config} for ExchangeCredentialsClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) * The server response for authorization failure. * * @throws {@link BadRequestException} (client fault) * The server cannot process the request due to an apparent client error. * * @throws {@link GatewayTimeoutException} (server fault) * The server was acting as a gateway or proxy and did not receive a timely response from the upstream server. * * @throws {@link InternalFailureException} (server fault) * The server response when an unexpected error occurred while processing request. * * @throws {@link NotAcceptableException} (client fault) * The server response when the requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request. * * @throws {@link QuotaExceededException} (client fault) * The server response for the usage plan quota exceeded error. * * @throws {@link RequestTooLargeException} (client fault) * The server response for the request too large error. * * @throws {@link ResourceConflictException} (client fault) * The server could not process the request because of conflict in the current state of the resource. * * @throws {@link ResourceNotFoundException} (client fault) * The server response when the specified resource cannot be found after an API request passes authentication and authorization. * * @throws {@link SerializationException} (client fault) * The server response when attempting to serialize the request. * * @throws {@link ServiceUnavailableException} (server fault) * The server cannot handle the request due to technical reasons. * * @throws {@link ThrottlingException} (client fault) * The server response when usage plan or account-level throttling limits exceeded. * * @throws {@link UnauthorizedException} (client fault) * The server response when the authorizer failed to authenticate the caller. * * @throws {@link UnknownOperationException} (client fault) * The server response when the operation specified could not be found. * * @throws {@link UnmappedException} (client fault) * The Stedi account has not been granted permission for this particular service. * * @throws {@link UnsupportedMediaTypeException} (client fault) * The server response when a payload is of an unsupported media type. * * @throws {@link ValidationException} (client fault) * A standard error for input validation failures. * This should be thrown by services when a member of the input structure * falls outside of the modeled or documented constraints. * * @throws {@link ExchangeCredentialsServiceException} *

Base exception class for all service exceptions from ExchangeCredentials service.

* */ export declare class GetAwsAccessCommand extends $Command { readonly input: GetAwsAccessCommandInput; static getEndpointParameterInstructions(): EndpointParameterInstructions; /** * @public */ constructor(input: GetAwsAccessCommandInput); /** * @internal */ resolveMiddleware(clientStack: MiddlewareStack, configuration: ExchangeCredentialsClientResolvedConfig, options?: __HttpHandlerOptions): Handler; /** * @internal */ private serialize; /** * @internal */ private deserialize; }