Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stedi/sdk-client-exchange-credentials

Package Overview
Dependencies
Maintainers
1
Versions
190
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stedi/sdk-client-exchange-credentials - npm Package Compare versions

Comparing version 0.2.27 to 0.2.28

17

dist-cjs/commands/GetAwsAccessCommand.js

@@ -9,9 +9,4 @@ "use strict";

const HttpBearerAuth_1 = require("../middleware/HttpBearerAuth");
const models_0_1 = require("../models/models_0");
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
class GetAwsAccessCommand extends smithy_client_1.Command {
constructor(input) {
super();
this.input = input;
}
static getEndpointParameterInstructions() {

@@ -24,2 +19,6 @@ return {

}
constructor(input) {
super();
this.input = input;
}
resolveMiddleware(clientStack, configuration, options) {

@@ -38,4 +37,4 @@ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));

commandName,
inputFilterSensitiveLog: models_0_1.GetAwsAccessInputFilterSensitiveLog,
outputFilterSensitiveLog: models_0_1.GetAwsAccessOutputFilterSensitiveLog,
inputFilterSensitiveLog: (_) => _,
outputFilterSensitiveLog: (_) => _,
};

@@ -46,8 +45,8 @@ const { requestHandler } = configuration;

serialize(input, context) {
return (0, Aws_restJson1_1.serializeAws_restJson1GetAwsAccessCommand)(input, context);
return (0, Aws_restJson1_1.se_GetAwsAccessCommand)(input, context);
}
deserialize(output, context) {
return (0, Aws_restJson1_1.deserializeAws_restJson1GetAwsAccessCommand)(output, context);
return (0, Aws_restJson1_1.de_GetAwsAccessCommand)(output, context);
}
}
exports.GetAwsAccessCommand = GetAwsAccessCommand;

@@ -7,3 +7,3 @@ import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@aws-sdk/types";

}
export declare type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
defaultSigningName: string;

@@ -10,0 +10,0 @@ };

import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
import { GetAwsAccessCommandInput, GetAwsAccessCommandOutput } from "./commands/GetAwsAccessCommand";
import { ExchangeCredentialsClient } from "./ExchangeCredentialsClient";
export declare class ExchangeCredentials extends ExchangeCredentialsClient {
export interface ExchangeCredentials {
getAwsAccess(args: GetAwsAccessCommandInput, options?: __HttpHandlerOptions): Promise<GetAwsAccessCommandOutput>;

@@ -9,1 +9,3 @@ getAwsAccess(args: GetAwsAccessCommandInput, cb: (err: any, data?: GetAwsAccessCommandOutput) => void): void;

}
export declare class ExchangeCredentials extends ExchangeCredentialsClient implements ExchangeCredentials {
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExchangeCredentials = void 0;
const smithy_client_1 = require("@aws-sdk/smithy-client");
const GetAwsAccessCommand_1 = require("./commands/GetAwsAccessCommand");
const ExchangeCredentialsClient_1 = require("./ExchangeCredentialsClient");
const commands = {
GetAwsAccessCommand: GetAwsAccessCommand_1.GetAwsAccessCommand,
};
class ExchangeCredentials extends ExchangeCredentialsClient_1.ExchangeCredentialsClient {
getAwsAccess(args, optionsOrCb, cb) {
const command = new GetAwsAccessCommand_1.GetAwsAccessCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
}
}
exports.ExchangeCredentials = ExchangeCredentials;
(0, smithy_client_1.createAggregatedClient)(commands, ExchangeCredentials);

@@ -13,4 +13,4 @@ import { RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";

import { HttpBearerAuthInputConfig, HttpBearerAuthResolvedConfig } from "./middleware/HttpBearerAuth";
export declare type ServiceInputTypes = GetAwsAccessCommandInput;
export declare type ServiceOutputTypes = GetAwsAccessCommandOutput;
export type ServiceInputTypes = GetAwsAccessCommandInput;
export type ServiceOutputTypes = GetAwsAccessCommandOutput;
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {

@@ -35,6 +35,6 @@ requestHandler?: __HttpHandler;

}
declare type ExchangeCredentialsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & HttpBearerAuthInputConfig & UserAgentInputConfig & HttpApiKeyAuthInputConfig & ClientInputEndpointParameters;
type ExchangeCredentialsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & HttpBearerAuthInputConfig & UserAgentInputConfig & HttpApiKeyAuthInputConfig & ClientInputEndpointParameters;
export interface ExchangeCredentialsClientConfig extends ExchangeCredentialsClientConfigType {
}
declare type ExchangeCredentialsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & HttpBearerAuthResolvedConfig & UserAgentResolvedConfig & HttpApiKeyAuthResolvedConfig & ClientResolvedEndpointParameters;
type ExchangeCredentialsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & HttpBearerAuthResolvedConfig & UserAgentResolvedConfig & HttpApiKeyAuthResolvedConfig & ClientResolvedEndpointParameters;
export interface ExchangeCredentialsClientResolvedConfig extends ExchangeCredentialsClientResolvedConfigType {

@@ -41,0 +41,0 @@ }

@@ -5,3 +5,2 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";

}
export declare const GetAwsAccessInputFilterSensitiveLog: (obj: GetAwsAccessInput) => any;
export interface GetAwsAccessOutput {

@@ -11,3 +10,2 @@ awsAccountId?: string;

}
export declare const GetAwsAccessOutputFilterSensitiveLog: (obj: GetAwsAccessOutput) => any;
export declare class AccessDeniedException extends __BaseException {

@@ -121,3 +119,2 @@ readonly name: "AccessDeniedException";

}
export declare const ValidationExceptionFieldFilterSensitiveLog: (obj: ValidationExceptionField) => any;
export declare class ValidationException extends __BaseException {

@@ -124,0 +121,0 @@ readonly name: "ValidationException";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ValidationException = exports.ValidationExceptionFieldFilterSensitiveLog = exports.UnsupportedMediaTypeException = exports.UnmappedException = exports.UnknownOperationException = exports.UnauthorizedException = exports.ThrottlingException = exports.ServiceUnavailableException = exports.SerializationException = exports.ResourceNotFoundException = exports.ResourceConflictException = exports.RequestTooLargeException = exports.QuotaExceededException = exports.NotAcceptableException = exports.InternalFailureException = exports.GatewayTimeoutException = exports.BadRequestException = exports.AccessDeniedException = exports.GetAwsAccessOutputFilterSensitiveLog = exports.GetAwsAccessInputFilterSensitiveLog = void 0;
exports.ValidationException = exports.UnsupportedMediaTypeException = exports.UnmappedException = exports.UnknownOperationException = exports.UnauthorizedException = exports.ThrottlingException = exports.ServiceUnavailableException = exports.SerializationException = exports.ResourceNotFoundException = exports.ResourceConflictException = exports.RequestTooLargeException = exports.QuotaExceededException = exports.NotAcceptableException = exports.InternalFailureException = exports.GatewayTimeoutException = exports.BadRequestException = exports.AccessDeniedException = void 0;
const ExchangeCredentialsServiceException_1 = require("./ExchangeCredentialsServiceException");
const GetAwsAccessInputFilterSensitiveLog = (obj) => ({
...obj,
});
exports.GetAwsAccessInputFilterSensitiveLog = GetAwsAccessInputFilterSensitiveLog;
const GetAwsAccessOutputFilterSensitiveLog = (obj) => ({
...obj,
});
exports.GetAwsAccessOutputFilterSensitiveLog = GetAwsAccessOutputFilterSensitiveLog;
class AccessDeniedException extends ExchangeCredentialsServiceException_1.ExchangeCredentialsServiceException {

@@ -245,6 +237,2 @@ constructor(opts) {

exports.UnsupportedMediaTypeException = UnsupportedMediaTypeException;
const ValidationExceptionFieldFilterSensitiveLog = (obj) => ({
...obj,
});
exports.ValidationExceptionFieldFilterSensitiveLog = ValidationExceptionFieldFilterSensitiveLog;
class ValidationException extends ExchangeCredentialsServiceException_1.ExchangeCredentialsServiceException {

@@ -251,0 +239,0 @@ constructor(opts) {

import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
import { GetAwsAccessCommandInput, GetAwsAccessCommandOutput } from "../commands/GetAwsAccessCommand";
export declare const serializeAws_restJson1GetAwsAccessCommand: (input: GetAwsAccessCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
export declare const deserializeAws_restJson1GetAwsAccessCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetAwsAccessCommandOutput>;
export declare const se_GetAwsAccessCommand: (input: GetAwsAccessCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
export declare const de_GetAwsAccessCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetAwsAccessCommandOutput>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.deserializeAws_restJson1GetAwsAccessCommand = exports.serializeAws_restJson1GetAwsAccessCommand = void 0;
exports.de_GetAwsAccessCommand = exports.se_GetAwsAccessCommand = void 0;
const protocol_http_1 = require("@aws-sdk/protocol-http");

@@ -8,3 +8,3 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");

const models_0_1 = require("../models/models_0");
const serializeAws_restJson1GetAwsAccessCommand = async (input, context) => {
const se_GetAwsAccessCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();

@@ -27,21 +27,20 @@ const headers = {

};
exports.serializeAws_restJson1GetAwsAccessCommand = serializeAws_restJson1GetAwsAccessCommand;
const deserializeAws_restJson1GetAwsAccessCommand = async (output, context) => {
exports.se_GetAwsAccessCommand = se_GetAwsAccessCommand;
const de_GetAwsAccessCommand = async (output, context) => {
if (output.statusCode !== 200 && output.statusCode >= 300) {
return deserializeAws_restJson1GetAwsAccessCommandError(output, context);
return de_GetAwsAccessCommandError(output, context);
}
const contents = map({
const contents = (0, smithy_client_1.map)({
$metadata: deserializeMetadata(output),
});
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
if (data.awsAccountId != null) {
contents.awsAccountId = (0, smithy_client_1.expectString)(data.awsAccountId);
}
if (data.webIdentityToken != null) {
contents.webIdentityToken = (0, smithy_client_1.expectString)(data.webIdentityToken);
}
const doc = (0, smithy_client_1.take)(data, {
awsAccountId: smithy_client_1.expectString,
webIdentityToken: smithy_client_1.expectString,
});
Object.assign(contents, doc);
return contents;
};
exports.deserializeAws_restJson1GetAwsAccessCommand = deserializeAws_restJson1GetAwsAccessCommand;
const deserializeAws_restJson1GetAwsAccessCommandError = async (output, context) => {
exports.de_GetAwsAccessCommand = de_GetAwsAccessCommand;
const de_GetAwsAccessCommandError = async (output, context) => {
const parsedOutput = {

@@ -55,57 +54,56 @@ ...output,

case "com.stedi.smithy.model.common#AccessDeniedException":
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
case "BadRequestException":
case "com.stedi.smithy.model.common#BadRequestException":
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
throw await de_BadRequestExceptionRes(parsedOutput, context);
case "GatewayTimeoutException":
case "com.stedi.smithy.model.common#GatewayTimeoutException":
throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
case "InternalFailureException":
case "com.stedi.smithy.model.common#InternalFailureException":
throw await deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context);
throw await de_InternalFailureExceptionRes(parsedOutput, context);
case "NotAcceptableException":
case "com.stedi.smithy.model.common#NotAcceptableException":
throw await deserializeAws_restJson1NotAcceptableExceptionResponse(parsedOutput, context);
throw await de_NotAcceptableExceptionRes(parsedOutput, context);
case "QuotaExceededException":
case "com.stedi.smithy.model.common#QuotaExceededException":
throw await deserializeAws_restJson1QuotaExceededExceptionResponse(parsedOutput, context);
throw await de_QuotaExceededExceptionRes(parsedOutput, context);
case "RequestTooLargeException":
case "com.stedi.smithy.model.common#RequestTooLargeException":
throw await deserializeAws_restJson1RequestTooLargeExceptionResponse(parsedOutput, context);
throw await de_RequestTooLargeExceptionRes(parsedOutput, context);
case "ResourceConflictException":
case "com.stedi.smithy.model.common#ResourceConflictException":
throw await deserializeAws_restJson1ResourceConflictExceptionResponse(parsedOutput, context);
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
case "ResourceNotFoundException":
case "com.stedi.smithy.model.common#ResourceNotFoundException":
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
case "SerializationException":
case "com.stedi.smithy.model.common#SerializationException":
throw await deserializeAws_restJson1SerializationExceptionResponse(parsedOutput, context);
throw await de_SerializationExceptionRes(parsedOutput, context);
case "ServiceUnavailableException":
case "com.stedi.smithy.model.common#ServiceUnavailableException":
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
case "ThrottlingException":
case "com.stedi.smithy.model.common#ThrottlingException":
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
throw await de_ThrottlingExceptionRes(parsedOutput, context);
case "UnauthorizedException":
case "com.stedi.smithy.model.common#UnauthorizedException":
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
case "UnknownOperationException":
case "com.stedi.smithy.model.common#UnknownOperationException":
throw await deserializeAws_restJson1UnknownOperationExceptionResponse(parsedOutput, context);
throw await de_UnknownOperationExceptionRes(parsedOutput, context);
case "UnmappedException":
case "com.stedi.smithy.model.common#UnmappedException":
throw await deserializeAws_restJson1UnmappedExceptionResponse(parsedOutput, context);
throw await de_UnmappedExceptionRes(parsedOutput, context);
case "UnsupportedMediaTypeException":
case "com.stedi.smithy.model.common#UnsupportedMediaTypeException":
throw await deserializeAws_restJson1UnsupportedMediaTypeExceptionResponse(parsedOutput, context);
throw await de_UnsupportedMediaTypeExceptionRes(parsedOutput, context);
case "ValidationException":
case "smithy.framework#ValidationException":
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
throw await de_ValidationExceptionRes(parsedOutput, context);
default:
const parsedBody = parsedOutput.body;
(0, smithy_client_1.throwDefaultError)({
return throwDefaultError({
output,
parsedBody,
exceptionCtor: ExchangeCredentialsServiceException_1.ExchangeCredentialsServiceException,
errorCode,

@@ -115,12 +113,11 @@ });

};
const map = smithy_client_1.map;
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
const contents = map({});
const throwDefaultError = (0, smithy_client_1.withBaseException)(ExchangeCredentialsServiceException_1.ExchangeCredentialsServiceException);
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
const contents = (0, smithy_client_1.map)({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = (0, smithy_client_1.expectString)(data.code);
}
if (data.message != null) {
contents.message = (0, smithy_client_1.expectString)(data.message);
}
const doc = (0, smithy_client_1.take)(data, {
code: smithy_client_1.expectString,
message: smithy_client_1.expectString,
});
Object.assign(contents, doc);
const exception = new models_0_1.AccessDeniedException({

@@ -132,11 +129,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
const contents = map({});
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
const contents = (0, smithy_client_1.map)({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = (0, smithy_client_1.expectString)(data.code);
}
if (data.message != null) {
contents.message = (0, smithy_client_1.expectString)(data.message);
}
const doc = (0, smithy_client_1.take)(data, {
code: smithy_client_1.expectString,
message: smithy_client_1.expectString,
});
Object.assign(contents, doc);
const exception = new models_0_1.BadRequestException({

@@ -148,11 +144,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1GatewayTimeoutExceptionResponse = async (parsedOutput, context) => {
const contents = map({});
const de_GatewayTimeoutExceptionRes = async (parsedOutput, context) => {
const contents = (0, smithy_client_1.map)({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = (0, smithy_client_1.expectString)(data.code);
}
if (data.message != null) {
contents.message = (0, smithy_client_1.expectString)(data.message);
}
const doc = (0, smithy_client_1.take)(data, {
code: smithy_client_1.expectString,
message: smithy_client_1.expectString,
});
Object.assign(contents, doc);
const exception = new models_0_1.GatewayTimeoutException({

@@ -164,11 +159,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1InternalFailureExceptionResponse = async (parsedOutput, context) => {
const contents = map({});
const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
const contents = (0, smithy_client_1.map)({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = (0, smithy_client_1.expectString)(data.code);
}
if (data.message != null) {
contents.message = (0, smithy_client_1.expectString)(data.message);
}
const doc = (0, smithy_client_1.take)(data, {
code: smithy_client_1.expectString,
message: smithy_client_1.expectString,
});
Object.assign(contents, doc);
const exception = new models_0_1.InternalFailureException({

@@ -180,11 +174,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1NotAcceptableExceptionResponse = async (parsedOutput, context) => {
const contents = map({});
const de_NotAcceptableExceptionRes = async (parsedOutput, context) => {
const contents = (0, smithy_client_1.map)({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = (0, smithy_client_1.expectString)(data.code);
}
if (data.message != null) {
contents.message = (0, smithy_client_1.expectString)(data.message);
}
const doc = (0, smithy_client_1.take)(data, {
code: smithy_client_1.expectString,
message: smithy_client_1.expectString,
});
Object.assign(contents, doc);
const exception = new models_0_1.NotAcceptableException({

@@ -196,11 +189,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1QuotaExceededExceptionResponse = async (parsedOutput, context) => {
const contents = map({});
const de_QuotaExceededExceptionRes = async (parsedOutput, context) => {
const contents = (0, smithy_client_1.map)({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = (0, smithy_client_1.expectString)(data.code);
}
if (data.message != null) {
contents.message = (0, smithy_client_1.expectString)(data.message);
}
const doc = (0, smithy_client_1.take)(data, {
code: smithy_client_1.expectString,
message: smithy_client_1.expectString,
});
Object.assign(contents, doc);
const exception = new models_0_1.QuotaExceededException({

@@ -212,11 +204,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1RequestTooLargeExceptionResponse = async (parsedOutput, context) => {
const contents = map({});
const de_RequestTooLargeExceptionRes = async (parsedOutput, context) => {
const contents = (0, smithy_client_1.map)({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = (0, smithy_client_1.expectString)(data.code);
}
if (data.message != null) {
contents.message = (0, smithy_client_1.expectString)(data.message);
}
const doc = (0, smithy_client_1.take)(data, {
code: smithy_client_1.expectString,
message: smithy_client_1.expectString,
});
Object.assign(contents, doc);
const exception = new models_0_1.RequestTooLargeException({

@@ -228,11 +219,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1ResourceConflictExceptionResponse = async (parsedOutput, context) => {
const contents = map({});
const de_ResourceConflictExceptionRes = async (parsedOutput, context) => {
const contents = (0, smithy_client_1.map)({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = (0, smithy_client_1.expectString)(data.code);
}
if (data.message != null) {
contents.message = (0, smithy_client_1.expectString)(data.message);
}
const doc = (0, smithy_client_1.take)(data, {
code: smithy_client_1.expectString,
message: smithy_client_1.expectString,
});
Object.assign(contents, doc);
const exception = new models_0_1.ResourceConflictException({

@@ -244,11 +234,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
const contents = map({});
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
const contents = (0, smithy_client_1.map)({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = (0, smithy_client_1.expectString)(data.code);
}
if (data.message != null) {
contents.message = (0, smithy_client_1.expectString)(data.message);
}
const doc = (0, smithy_client_1.take)(data, {
code: smithy_client_1.expectString,
message: smithy_client_1.expectString,
});
Object.assign(contents, doc);
const exception = new models_0_1.ResourceNotFoundException({

@@ -260,11 +249,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1SerializationExceptionResponse = async (parsedOutput, context) => {
const contents = map({});
const de_SerializationExceptionRes = async (parsedOutput, context) => {
const contents = (0, smithy_client_1.map)({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = (0, smithy_client_1.expectString)(data.code);
}
if (data.message != null) {
contents.message = (0, smithy_client_1.expectString)(data.message);
}
const doc = (0, smithy_client_1.take)(data, {
code: smithy_client_1.expectString,
message: smithy_client_1.expectString,
});
Object.assign(contents, doc);
const exception = new models_0_1.SerializationException({

@@ -276,11 +264,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
const contents = map({});
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
const contents = (0, smithy_client_1.map)({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = (0, smithy_client_1.expectString)(data.code);
}
if (data.message != null) {
contents.message = (0, smithy_client_1.expectString)(data.message);
}
const doc = (0, smithy_client_1.take)(data, {
code: smithy_client_1.expectString,
message: smithy_client_1.expectString,
});
Object.assign(contents, doc);
const exception = new models_0_1.ServiceUnavailableException({

@@ -292,11 +279,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
const contents = map({});
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
const contents = (0, smithy_client_1.map)({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = (0, smithy_client_1.expectString)(data.code);
}
if (data.message != null) {
contents.message = (0, smithy_client_1.expectString)(data.message);
}
const doc = (0, smithy_client_1.take)(data, {
code: smithy_client_1.expectString,
message: smithy_client_1.expectString,
});
Object.assign(contents, doc);
const exception = new models_0_1.ThrottlingException({

@@ -308,11 +294,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutput, context) => {
const contents = map({});
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
const contents = (0, smithy_client_1.map)({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = (0, smithy_client_1.expectString)(data.code);
}
if (data.message != null) {
contents.message = (0, smithy_client_1.expectString)(data.message);
}
const doc = (0, smithy_client_1.take)(data, {
code: smithy_client_1.expectString,
message: smithy_client_1.expectString,
});
Object.assign(contents, doc);
const exception = new models_0_1.UnauthorizedException({

@@ -324,11 +309,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1UnknownOperationExceptionResponse = async (parsedOutput, context) => {
const contents = map({});
const de_UnknownOperationExceptionRes = async (parsedOutput, context) => {
const contents = (0, smithy_client_1.map)({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = (0, smithy_client_1.expectString)(data.code);
}
if (data.message != null) {
contents.message = (0, smithy_client_1.expectString)(data.message);
}
const doc = (0, smithy_client_1.take)(data, {
code: smithy_client_1.expectString,
message: smithy_client_1.expectString,
});
Object.assign(contents, doc);
const exception = new models_0_1.UnknownOperationException({

@@ -340,11 +324,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1UnmappedExceptionResponse = async (parsedOutput, context) => {
const contents = map({});
const de_UnmappedExceptionRes = async (parsedOutput, context) => {
const contents = (0, smithy_client_1.map)({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = (0, smithy_client_1.expectString)(data.code);
}
if (data.message != null) {
contents.message = (0, smithy_client_1.expectString)(data.message);
}
const doc = (0, smithy_client_1.take)(data, {
code: smithy_client_1.expectString,
message: smithy_client_1.expectString,
});
Object.assign(contents, doc);
const exception = new models_0_1.UnmappedException({

@@ -356,11 +339,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1UnsupportedMediaTypeExceptionResponse = async (parsedOutput, context) => {
const contents = map({});
const de_UnsupportedMediaTypeExceptionRes = async (parsedOutput, context) => {
const contents = (0, smithy_client_1.map)({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = (0, smithy_client_1.expectString)(data.code);
}
if (data.message != null) {
contents.message = (0, smithy_client_1.expectString)(data.message);
}
const doc = (0, smithy_client_1.take)(data, {
code: smithy_client_1.expectString,
message: smithy_client_1.expectString,
});
Object.assign(contents, doc);
const exception = new models_0_1.UnsupportedMediaTypeException({

@@ -372,11 +354,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
const contents = map({});
const de_ValidationExceptionRes = async (parsedOutput, context) => {
const contents = (0, smithy_client_1.map)({});
const data = parsedOutput.body;
if (data.fieldList != null) {
contents.fieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
}
if (data.message != null) {
contents.message = (0, smithy_client_1.expectString)(data.message);
}
const doc = (0, smithy_client_1.take)(data, {
fieldList: smithy_client_1._json,
message: smithy_client_1.expectString,
});
Object.assign(contents, doc);
const exception = new models_0_1.ValidationException({

@@ -388,19 +369,2 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
return {
message: (0, smithy_client_1.expectString)(output.message),
path: (0, smithy_client_1.expectString)(output.path),
};
};
const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) => {
const retVal = (output || [])
.filter((e) => e != null)
.map((entry) => {
if (entry === null) {
return null;
}
return deserializeAws_restJson1ValidationExceptionField(entry, context);
});
return retVal;
};
const deserializeMetadata = (output) => ({

@@ -407,0 +371,0 @@ httpStatusCode: output.statusCode,

@@ -6,9 +6,4 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";

import { getHttpBearerAuthPlugin } from "../middleware/HttpBearerAuth";
import { GetAwsAccessInputFilterSensitiveLog, GetAwsAccessOutputFilterSensitiveLog, } from "../models/models_0";
import { deserializeAws_restJson1GetAwsAccessCommand, serializeAws_restJson1GetAwsAccessCommand, } from "../protocols/Aws_restJson1";
import { de_GetAwsAccessCommand, se_GetAwsAccessCommand } from "../protocols/Aws_restJson1";
export class GetAwsAccessCommand extends $Command {
constructor(input) {
super();
this.input = input;
}
static getEndpointParameterInstructions() {

@@ -21,2 +16,6 @@ return {

}
constructor(input) {
super();
this.input = input;
}
resolveMiddleware(clientStack, configuration, options) {

@@ -35,4 +34,4 @@ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));

commandName,
inputFilterSensitiveLog: GetAwsAccessInputFilterSensitiveLog,
outputFilterSensitiveLog: GetAwsAccessOutputFilterSensitiveLog,
inputFilterSensitiveLog: (_) => _,
outputFilterSensitiveLog: (_) => _,
};

@@ -43,7 +42,7 @@ const { requestHandler } = configuration;

serialize(input, context) {
return serializeAws_restJson1GetAwsAccessCommand(input, context);
return se_GetAwsAccessCommand(input, context);
}
deserialize(output, context) {
return deserializeAws_restJson1GetAwsAccessCommand(output, context);
return de_GetAwsAccessCommand(output, context);
}
}

@@ -7,3 +7,3 @@ import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@aws-sdk/types";

}
export declare type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
defaultSigningName: string;

@@ -10,0 +10,0 @@ };

import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
import { GetAwsAccessCommandInput, GetAwsAccessCommandOutput } from "./commands/GetAwsAccessCommand";
import { ExchangeCredentialsClient } from "./ExchangeCredentialsClient";
export declare class ExchangeCredentials extends ExchangeCredentialsClient {
export interface ExchangeCredentials {
getAwsAccess(args: GetAwsAccessCommandInput, options?: __HttpHandlerOptions): Promise<GetAwsAccessCommandOutput>;

@@ -9,1 +9,3 @@ getAwsAccess(args: GetAwsAccessCommandInput, cb: (err: any, data?: GetAwsAccessCommandOutput) => void): void;

}
export declare class ExchangeCredentials extends ExchangeCredentialsClient implements ExchangeCredentials {
}

@@ -0,18 +1,9 @@

import { createAggregatedClient } from "@aws-sdk/smithy-client";
import { GetAwsAccessCommand, } from "./commands/GetAwsAccessCommand";
import { ExchangeCredentialsClient } from "./ExchangeCredentialsClient";
const commands = {
GetAwsAccessCommand,
};
export class ExchangeCredentials extends ExchangeCredentialsClient {
getAwsAccess(args, optionsOrCb, cb) {
const command = new GetAwsAccessCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
}
else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object")
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
}
else {
return this.send(command, optionsOrCb);
}
}
}
createAggregatedClient(commands, ExchangeCredentials);

@@ -13,4 +13,4 @@ import { RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";

import { HttpBearerAuthInputConfig, HttpBearerAuthResolvedConfig } from "./middleware/HttpBearerAuth";
export declare type ServiceInputTypes = GetAwsAccessCommandInput;
export declare type ServiceOutputTypes = GetAwsAccessCommandOutput;
export type ServiceInputTypes = GetAwsAccessCommandInput;
export type ServiceOutputTypes = GetAwsAccessCommandOutput;
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {

@@ -35,6 +35,6 @@ requestHandler?: __HttpHandler;

}
declare type ExchangeCredentialsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & HttpBearerAuthInputConfig & UserAgentInputConfig & HttpApiKeyAuthInputConfig & ClientInputEndpointParameters;
type ExchangeCredentialsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & HttpBearerAuthInputConfig & UserAgentInputConfig & HttpApiKeyAuthInputConfig & ClientInputEndpointParameters;
export interface ExchangeCredentialsClientConfig extends ExchangeCredentialsClientConfigType {
}
declare type ExchangeCredentialsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & HttpBearerAuthResolvedConfig & UserAgentResolvedConfig & HttpApiKeyAuthResolvedConfig & ClientResolvedEndpointParameters;
type ExchangeCredentialsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & HttpBearerAuthResolvedConfig & UserAgentResolvedConfig & HttpApiKeyAuthResolvedConfig & ClientResolvedEndpointParameters;
export interface ExchangeCredentialsClientResolvedConfig extends ExchangeCredentialsClientResolvedConfigType {

@@ -41,0 +41,0 @@ }

@@ -5,3 +5,2 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";

}
export declare const GetAwsAccessInputFilterSensitiveLog: (obj: GetAwsAccessInput) => any;
export interface GetAwsAccessOutput {

@@ -11,3 +10,2 @@ awsAccountId?: string;

}
export declare const GetAwsAccessOutputFilterSensitiveLog: (obj: GetAwsAccessOutput) => any;
export declare class AccessDeniedException extends __BaseException {

@@ -121,3 +119,2 @@ readonly name: "AccessDeniedException";

}
export declare const ValidationExceptionFieldFilterSensitiveLog: (obj: ValidationExceptionField) => any;
export declare class ValidationException extends __BaseException {

@@ -124,0 +121,0 @@ readonly name: "ValidationException";

import { ExchangeCredentialsServiceException as __BaseException } from "./ExchangeCredentialsServiceException";
export const GetAwsAccessInputFilterSensitiveLog = (obj) => ({
...obj,
});
export const GetAwsAccessOutputFilterSensitiveLog = (obj) => ({
...obj,
});
export class AccessDeniedException extends __BaseException {

@@ -224,5 +218,2 @@ constructor(opts) {

}
export const ValidationExceptionFieldFilterSensitiveLog = (obj) => ({
...obj,
});
export class ValidationException extends __BaseException {

@@ -229,0 +220,0 @@ constructor(opts) {

import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
import { GetAwsAccessCommandInput, GetAwsAccessCommandOutput } from "../commands/GetAwsAccessCommand";
export declare const serializeAws_restJson1GetAwsAccessCommand: (input: GetAwsAccessCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
export declare const deserializeAws_restJson1GetAwsAccessCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetAwsAccessCommandOutput>;
export declare const se_GetAwsAccessCommand: (input: GetAwsAccessCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
export declare const de_GetAwsAccessCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetAwsAccessCommandOutput>;
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, throwDefaultError, } from "@aws-sdk/smithy-client";
import { _json, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@aws-sdk/smithy-client";
import { ExchangeCredentialsServiceException as __BaseException } from "../models/ExchangeCredentialsServiceException";
import { AccessDeniedException, BadRequestException, GatewayTimeoutException, InternalFailureException, NotAcceptableException, QuotaExceededException, RequestTooLargeException, ResourceConflictException, ResourceNotFoundException, SerializationException, ServiceUnavailableException, ThrottlingException, UnauthorizedException, UnknownOperationException, UnmappedException, UnsupportedMediaTypeException, ValidationException, } from "../models/models_0";
export const serializeAws_restJson1GetAwsAccessCommand = async (input, context) => {
export const se_GetAwsAccessCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();

@@ -23,5 +23,5 @@ const headers = {

};
export const deserializeAws_restJson1GetAwsAccessCommand = async (output, context) => {
export const de_GetAwsAccessCommand = async (output, context) => {
if (output.statusCode !== 200 && output.statusCode >= 300) {
return deserializeAws_restJson1GetAwsAccessCommandError(output, context);
return de_GetAwsAccessCommandError(output, context);
}

@@ -32,11 +32,10 @@ const contents = map({

const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
if (data.awsAccountId != null) {
contents.awsAccountId = __expectString(data.awsAccountId);
}
if (data.webIdentityToken != null) {
contents.webIdentityToken = __expectString(data.webIdentityToken);
}
const doc = take(data, {
awsAccountId: __expectString,
webIdentityToken: __expectString,
});
Object.assign(contents, doc);
return contents;
};
const deserializeAws_restJson1GetAwsAccessCommandError = async (output, context) => {
const de_GetAwsAccessCommandError = async (output, context) => {
const parsedOutput = {

@@ -50,57 +49,56 @@ ...output,

case "com.stedi.smithy.model.common#AccessDeniedException":
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
case "BadRequestException":
case "com.stedi.smithy.model.common#BadRequestException":
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
throw await de_BadRequestExceptionRes(parsedOutput, context);
case "GatewayTimeoutException":
case "com.stedi.smithy.model.common#GatewayTimeoutException":
throw await deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context);
throw await de_GatewayTimeoutExceptionRes(parsedOutput, context);
case "InternalFailureException":
case "com.stedi.smithy.model.common#InternalFailureException":
throw await deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context);
throw await de_InternalFailureExceptionRes(parsedOutput, context);
case "NotAcceptableException":
case "com.stedi.smithy.model.common#NotAcceptableException":
throw await deserializeAws_restJson1NotAcceptableExceptionResponse(parsedOutput, context);
throw await de_NotAcceptableExceptionRes(parsedOutput, context);
case "QuotaExceededException":
case "com.stedi.smithy.model.common#QuotaExceededException":
throw await deserializeAws_restJson1QuotaExceededExceptionResponse(parsedOutput, context);
throw await de_QuotaExceededExceptionRes(parsedOutput, context);
case "RequestTooLargeException":
case "com.stedi.smithy.model.common#RequestTooLargeException":
throw await deserializeAws_restJson1RequestTooLargeExceptionResponse(parsedOutput, context);
throw await de_RequestTooLargeExceptionRes(parsedOutput, context);
case "ResourceConflictException":
case "com.stedi.smithy.model.common#ResourceConflictException":
throw await deserializeAws_restJson1ResourceConflictExceptionResponse(parsedOutput, context);
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
case "ResourceNotFoundException":
case "com.stedi.smithy.model.common#ResourceNotFoundException":
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
case "SerializationException":
case "com.stedi.smithy.model.common#SerializationException":
throw await deserializeAws_restJson1SerializationExceptionResponse(parsedOutput, context);
throw await de_SerializationExceptionRes(parsedOutput, context);
case "ServiceUnavailableException":
case "com.stedi.smithy.model.common#ServiceUnavailableException":
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
case "ThrottlingException":
case "com.stedi.smithy.model.common#ThrottlingException":
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
throw await de_ThrottlingExceptionRes(parsedOutput, context);
case "UnauthorizedException":
case "com.stedi.smithy.model.common#UnauthorizedException":
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
case "UnknownOperationException":
case "com.stedi.smithy.model.common#UnknownOperationException":
throw await deserializeAws_restJson1UnknownOperationExceptionResponse(parsedOutput, context);
throw await de_UnknownOperationExceptionRes(parsedOutput, context);
case "UnmappedException":
case "com.stedi.smithy.model.common#UnmappedException":
throw await deserializeAws_restJson1UnmappedExceptionResponse(parsedOutput, context);
throw await de_UnmappedExceptionRes(parsedOutput, context);
case "UnsupportedMediaTypeException":
case "com.stedi.smithy.model.common#UnsupportedMediaTypeException":
throw await deserializeAws_restJson1UnsupportedMediaTypeExceptionResponse(parsedOutput, context);
throw await de_UnsupportedMediaTypeExceptionRes(parsedOutput, context);
case "ValidationException":
case "smithy.framework#ValidationException":
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
throw await de_ValidationExceptionRes(parsedOutput, context);
default:
const parsedBody = parsedOutput.body;
throwDefaultError({
return throwDefaultError({
output,
parsedBody,
exceptionCtor: __BaseException,
errorCode,

@@ -110,12 +108,11 @@ });

};
const map = __map;
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
const throwDefaultError = withBaseException(__BaseException);
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
const contents = map({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = __expectString(data.code);
}
if (data.message != null) {
contents.message = __expectString(data.message);
}
const doc = take(data, {
code: __expectString,
message: __expectString,
});
Object.assign(contents, doc);
const exception = new AccessDeniedException({

@@ -127,11 +124,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
const contents = map({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = __expectString(data.code);
}
if (data.message != null) {
contents.message = __expectString(data.message);
}
const doc = take(data, {
code: __expectString,
message: __expectString,
});
Object.assign(contents, doc);
const exception = new BadRequestException({

@@ -143,11 +139,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1GatewayTimeoutExceptionResponse = async (parsedOutput, context) => {
const de_GatewayTimeoutExceptionRes = async (parsedOutput, context) => {
const contents = map({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = __expectString(data.code);
}
if (data.message != null) {
contents.message = __expectString(data.message);
}
const doc = take(data, {
code: __expectString,
message: __expectString,
});
Object.assign(contents, doc);
const exception = new GatewayTimeoutException({

@@ -159,11 +154,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1InternalFailureExceptionResponse = async (parsedOutput, context) => {
const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
const contents = map({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = __expectString(data.code);
}
if (data.message != null) {
contents.message = __expectString(data.message);
}
const doc = take(data, {
code: __expectString,
message: __expectString,
});
Object.assign(contents, doc);
const exception = new InternalFailureException({

@@ -175,11 +169,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1NotAcceptableExceptionResponse = async (parsedOutput, context) => {
const de_NotAcceptableExceptionRes = async (parsedOutput, context) => {
const contents = map({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = __expectString(data.code);
}
if (data.message != null) {
contents.message = __expectString(data.message);
}
const doc = take(data, {
code: __expectString,
message: __expectString,
});
Object.assign(contents, doc);
const exception = new NotAcceptableException({

@@ -191,11 +184,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1QuotaExceededExceptionResponse = async (parsedOutput, context) => {
const de_QuotaExceededExceptionRes = async (parsedOutput, context) => {
const contents = map({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = __expectString(data.code);
}
if (data.message != null) {
contents.message = __expectString(data.message);
}
const doc = take(data, {
code: __expectString,
message: __expectString,
});
Object.assign(contents, doc);
const exception = new QuotaExceededException({

@@ -207,11 +199,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1RequestTooLargeExceptionResponse = async (parsedOutput, context) => {
const de_RequestTooLargeExceptionRes = async (parsedOutput, context) => {
const contents = map({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = __expectString(data.code);
}
if (data.message != null) {
contents.message = __expectString(data.message);
}
const doc = take(data, {
code: __expectString,
message: __expectString,
});
Object.assign(contents, doc);
const exception = new RequestTooLargeException({

@@ -223,11 +214,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1ResourceConflictExceptionResponse = async (parsedOutput, context) => {
const de_ResourceConflictExceptionRes = async (parsedOutput, context) => {
const contents = map({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = __expectString(data.code);
}
if (data.message != null) {
contents.message = __expectString(data.message);
}
const doc = take(data, {
code: __expectString,
message: __expectString,
});
Object.assign(contents, doc);
const exception = new ResourceConflictException({

@@ -239,11 +229,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
const contents = map({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = __expectString(data.code);
}
if (data.message != null) {
contents.message = __expectString(data.message);
}
const doc = take(data, {
code: __expectString,
message: __expectString,
});
Object.assign(contents, doc);
const exception = new ResourceNotFoundException({

@@ -255,11 +244,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1SerializationExceptionResponse = async (parsedOutput, context) => {
const de_SerializationExceptionRes = async (parsedOutput, context) => {
const contents = map({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = __expectString(data.code);
}
if (data.message != null) {
contents.message = __expectString(data.message);
}
const doc = take(data, {
code: __expectString,
message: __expectString,
});
Object.assign(contents, doc);
const exception = new SerializationException({

@@ -271,11 +259,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
const contents = map({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = __expectString(data.code);
}
if (data.message != null) {
contents.message = __expectString(data.message);
}
const doc = take(data, {
code: __expectString,
message: __expectString,
});
Object.assign(contents, doc);
const exception = new ServiceUnavailableException({

@@ -287,11 +274,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
const contents = map({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = __expectString(data.code);
}
if (data.message != null) {
contents.message = __expectString(data.message);
}
const doc = take(data, {
code: __expectString,
message: __expectString,
});
Object.assign(contents, doc);
const exception = new ThrottlingException({

@@ -303,11 +289,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutput, context) => {
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
const contents = map({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = __expectString(data.code);
}
if (data.message != null) {
contents.message = __expectString(data.message);
}
const doc = take(data, {
code: __expectString,
message: __expectString,
});
Object.assign(contents, doc);
const exception = new UnauthorizedException({

@@ -319,11 +304,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1UnknownOperationExceptionResponse = async (parsedOutput, context) => {
const de_UnknownOperationExceptionRes = async (parsedOutput, context) => {
const contents = map({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = __expectString(data.code);
}
if (data.message != null) {
contents.message = __expectString(data.message);
}
const doc = take(data, {
code: __expectString,
message: __expectString,
});
Object.assign(contents, doc);
const exception = new UnknownOperationException({

@@ -335,11 +319,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1UnmappedExceptionResponse = async (parsedOutput, context) => {
const de_UnmappedExceptionRes = async (parsedOutput, context) => {
const contents = map({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = __expectString(data.code);
}
if (data.message != null) {
contents.message = __expectString(data.message);
}
const doc = take(data, {
code: __expectString,
message: __expectString,
});
Object.assign(contents, doc);
const exception = new UnmappedException({

@@ -351,11 +334,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1UnsupportedMediaTypeExceptionResponse = async (parsedOutput, context) => {
const de_UnsupportedMediaTypeExceptionRes = async (parsedOutput, context) => {
const contents = map({});
const data = parsedOutput.body;
if (data.code != null) {
contents.code = __expectString(data.code);
}
if (data.message != null) {
contents.message = __expectString(data.message);
}
const doc = take(data, {
code: __expectString,
message: __expectString,
});
Object.assign(contents, doc);
const exception = new UnsupportedMediaTypeException({

@@ -367,11 +349,10 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
const de_ValidationExceptionRes = async (parsedOutput, context) => {
const contents = map({});
const data = parsedOutput.body;
if (data.fieldList != null) {
contents.fieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
}
if (data.message != null) {
contents.message = __expectString(data.message);
}
const doc = take(data, {
fieldList: _json,
message: __expectString,
});
Object.assign(contents, doc);
const exception = new ValidationException({

@@ -383,19 +364,2 @@ $metadata: deserializeMetadata(parsedOutput),

};
const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
return {
message: __expectString(output.message),
path: __expectString(output.path),
};
};
const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) => {
const retVal = (output || [])
.filter((e) => e != null)
.map((entry) => {
if (entry === null) {
return null;
}
return deserializeAws_restJson1ValidationExceptionField(entry, context);
});
return retVal;
};
const deserializeMetadata = (output) => ({

@@ -402,0 +366,0 @@ httpStatusCode: output.statusCode,

@@ -6,7 +6,18 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";

import { GetAwsAccessInput, GetAwsAccessOutput } from "../models/models_0";
/**
* @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

@@ -21,6 +32,14 @@ *

* 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.

@@ -30,2 +49,58 @@ * @see {@link GetAwsAccessCommandOutput} for command's `response` 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}
* <p>Base exception class for all service exceptions from ExchangeCredentials service.</p>
*
*/

@@ -35,2 +110,5 @@ export declare class GetAwsAccessCommand extends $Command<GetAwsAccessCommandInput, GetAwsAccessCommandOutput, ExchangeCredentialsClientResolvedConfig> {

static getEndpointParameterInstructions(): EndpointParameterInstructions;
/**
* @public
*/
constructor(input: GetAwsAccessCommandInput);

@@ -41,4 +119,10 @@ /**

resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ExchangeCredentialsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetAwsAccessCommandInput, GetAwsAccessCommandOutput>;
/**
* @internal
*/
private serialize;
/**
* @internal
*/
private deserialize;
}

@@ -7,3 +7,3 @@ import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@aws-sdk/types";

}
export declare type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
defaultSigningName: string;

@@ -10,0 +10,0 @@ };

import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
import { GetAwsAccessCommandInput, GetAwsAccessCommandOutput } from "./commands/GetAwsAccessCommand";
import { ExchangeCredentialsClient } from "./ExchangeCredentialsClient";
/**
* Service to exchange Stedi credentials for Web Identity to access AWS account.
*/
export declare class ExchangeCredentials extends ExchangeCredentialsClient {
export interface ExchangeCredentials {
/**
* 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.
* @see {@link GetAwsAccessCommand}
*/

@@ -17,1 +12,7 @@ getAwsAccess(args: GetAwsAccessCommandInput, options?: __HttpHandlerOptions): Promise<GetAwsAccessCommandOutput>;

}
/**
* @public
* Service to exchange Stedi credentials for Web Identity to access AWS account.
*/
export declare class ExchangeCredentials extends ExchangeCredentialsClient implements ExchangeCredentials {
}

@@ -13,4 +13,13 @@ import { RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";

import { HttpBearerAuthInputConfig, HttpBearerAuthResolvedConfig } from "./middleware/HttpBearerAuth";
export declare type ServiceInputTypes = GetAwsAccessCommandInput;
export declare type ServiceOutputTypes = GetAwsAccessCommandOutput;
/**
* @public
*/
export type ServiceInputTypes = GetAwsAccessCommandInput;
/**
* @public
*/
export type ServiceOutputTypes = GetAwsAccessCommandOutput;
/**
* @public
*/
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {

@@ -22,3 +31,3 @@ /**

/**
* A constructor for a class implementing the {@link __Checksum} interface
* A constructor for a class implementing the {@link @aws-sdk/types#ChecksumConstructor} interface
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.

@@ -97,19 +106,30 @@ * @internal

/**
* The {@link __DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
* The {@link @aws-sdk/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
*/
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
}
declare type ExchangeCredentialsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & HttpBearerAuthInputConfig & UserAgentInputConfig & HttpApiKeyAuthInputConfig & ClientInputEndpointParameters;
/**
* The configuration interface of ExchangeCredentialsClient class constructor that set the region, credentials and other options.
* @public
*/
type ExchangeCredentialsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & HttpBearerAuthInputConfig & UserAgentInputConfig & HttpApiKeyAuthInputConfig & ClientInputEndpointParameters;
/**
* @public
*
* The configuration interface of ExchangeCredentialsClient class constructor that set the region, credentials and other options.
*/
export interface ExchangeCredentialsClientConfig extends ExchangeCredentialsClientConfigType {
}
declare type ExchangeCredentialsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & HttpBearerAuthResolvedConfig & UserAgentResolvedConfig & HttpApiKeyAuthResolvedConfig & ClientResolvedEndpointParameters;
/**
* The resolved configuration interface of ExchangeCredentialsClient class. This is resolved and normalized from the {@link ExchangeCredentialsClientConfig | constructor configuration interface}.
* @public
*/
type ExchangeCredentialsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & HttpBearerAuthResolvedConfig & UserAgentResolvedConfig & HttpApiKeyAuthResolvedConfig & ClientResolvedEndpointParameters;
/**
* @public
*
* The resolved configuration interface of ExchangeCredentialsClient class. This is resolved and normalized from the {@link ExchangeCredentialsClientConfig | constructor configuration interface}.
*/
export interface ExchangeCredentialsClientResolvedConfig extends ExchangeCredentialsClientResolvedConfigType {
}
/**
* @public
* Service to exchange Stedi credentials for Web Identity to access AWS account.

@@ -116,0 +136,0 @@ */

import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
/**
* @public
*
* Base exception class for all service exceptions from ExchangeCredentials service.

@@ -4,0 +6,0 @@ */

import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
import { ExchangeCredentialsServiceException as __BaseException } from "./ExchangeCredentialsServiceException";
/**
* @public
*/
export interface GetAwsAccessInput {
}
/**
* @internal
* @public
*/
export declare const GetAwsAccessInputFilterSensitiveLog: (obj: GetAwsAccessInput) => any;
export interface GetAwsAccessOutput {

@@ -14,6 +16,3 @@ awsAccountId?: string;

/**
* @internal
*/
export declare const GetAwsAccessOutputFilterSensitiveLog: (obj: GetAwsAccessOutput) => any;
/**
* @public
* The server response for authorization failure.

@@ -34,2 +33,3 @@ */

/**
* @public
* The server cannot process the request due to an apparent client error.

@@ -50,2 +50,3 @@ */

/**
* @public
* The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.

@@ -66,2 +67,3 @@ */

/**
* @public
* The server response when an unexpected error occurred while processing request.

@@ -82,2 +84,3 @@ */

/**
* @public
* The server response when the requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.

@@ -98,2 +101,3 @@ */

/**
* @public
* The server response for the usage plan quota exceeded error.

@@ -117,2 +121,3 @@ */

/**
* @public
* The server response for the request too large error.

@@ -133,2 +138,3 @@ */

/**
* @public
* The server could not process the request because of conflict in the current state of the resource.

@@ -150,2 +156,3 @@ */

/**
* @public
* The server response when the specified resource cannot be found after an API request passes authentication and authorization.

@@ -166,2 +173,3 @@ */

/**
* @public
* The server response when attempting to serialize the request.

@@ -182,2 +190,3 @@ */

/**
* @public
* The server cannot handle the request due to technical reasons.

@@ -199,2 +208,3 @@ */

/**
* @public
* The server response when usage plan or account-level throttling limits exceeded.

@@ -218,2 +228,3 @@ */

/**
* @public
* The server response when the authorizer failed to authenticate the caller.

@@ -234,2 +245,3 @@ */

/**
* @public
* The server response when the operation specified could not be found.

@@ -250,2 +262,3 @@ */

/**
* @public
* The Stedi account has not been granted permission for this particular service.

@@ -266,2 +279,3 @@ */

/**
* @public
* The server response when a payload is of an unsupported media type.

@@ -282,2 +296,3 @@ */

/**
* @public
* Describes one specific validation failure for an input member.

@@ -296,6 +311,3 @@ */

/**
* @internal
*/
export declare const ValidationExceptionFieldFilterSensitiveLog: (obj: ValidationExceptionField) => any;
/**
* @public
* A standard error for input validation failures.

@@ -302,0 +314,0 @@ * This should be thrown by services when a member of the input structure

import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
import { GetAwsAccessCommandInput, GetAwsAccessCommandOutput } from "../commands/GetAwsAccessCommand";
export declare const serializeAws_restJson1GetAwsAccessCommand: (input: GetAwsAccessCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
export declare const deserializeAws_restJson1GetAwsAccessCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetAwsAccessCommandOutput>;
/**
* serializeAws_restJson1GetAwsAccessCommand
*/
export declare const se_GetAwsAccessCommand: (input: GetAwsAccessCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
/**
* deserializeAws_restJson1GetAwsAccessCommand
*/
export declare const de_GetAwsAccessCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetAwsAccessCommandOutput>;

@@ -6,7 +6,18 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";

import { GetAwsAccessInput, GetAwsAccessOutput } from "../models/models_0";
/**
* @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

@@ -21,6 +32,14 @@ *

* 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.

@@ -30,2 +49,58 @@ * @see {@link GetAwsAccessCommandOutput} for command's `response` 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}
* <p>Base exception class for all service exceptions from ExchangeCredentials service.</p>
*
*/

@@ -35,2 +110,5 @@ export declare class GetAwsAccessCommand extends $Command<GetAwsAccessCommandInput, GetAwsAccessCommandOutput, ExchangeCredentialsClientResolvedConfig> {

static getEndpointParameterInstructions(): EndpointParameterInstructions;
/**
* @public
*/
constructor(input: GetAwsAccessCommandInput);

@@ -41,4 +119,10 @@ /**

resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ExchangeCredentialsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetAwsAccessCommandInput, GetAwsAccessCommandOutput>;
/**
* @internal
*/
private serialize;
/**
* @internal
*/
private deserialize;
}

@@ -7,3 +7,3 @@ import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@aws-sdk/types";

}
export declare type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
defaultSigningName: string;

@@ -10,0 +10,0 @@ };

import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
import { GetAwsAccessCommandInput, GetAwsAccessCommandOutput } from "./commands/GetAwsAccessCommand";
import { ExchangeCredentialsClient } from "./ExchangeCredentialsClient";
/**
* Service to exchange Stedi credentials for Web Identity to access AWS account.
*/
export declare class ExchangeCredentials extends ExchangeCredentialsClient {
export interface ExchangeCredentials {
/**
* 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.
* @see {@link GetAwsAccessCommand}
*/

@@ -17,1 +12,7 @@ getAwsAccess(args: GetAwsAccessCommandInput, options?: __HttpHandlerOptions): Promise<GetAwsAccessCommandOutput>;

}
/**
* @public
* Service to exchange Stedi credentials for Web Identity to access AWS account.
*/
export declare class ExchangeCredentials extends ExchangeCredentialsClient implements ExchangeCredentials {
}

@@ -13,4 +13,13 @@ import { RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";

import { HttpBearerAuthInputConfig, HttpBearerAuthResolvedConfig } from "./middleware/HttpBearerAuth";
export declare type ServiceInputTypes = GetAwsAccessCommandInput;
export declare type ServiceOutputTypes = GetAwsAccessCommandOutput;
/**
* @public
*/
export type ServiceInputTypes = GetAwsAccessCommandInput;
/**
* @public
*/
export type ServiceOutputTypes = GetAwsAccessCommandOutput;
/**
* @public
*/
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {

@@ -22,3 +31,3 @@ /**

/**
* A constructor for a class implementing the {@link __Checksum} interface
* A constructor for a class implementing the {@link @aws-sdk/types#ChecksumConstructor} interface
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.

@@ -97,19 +106,30 @@ * @internal

/**
* The {@link __DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
* The {@link @aws-sdk/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
*/
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
}
declare type ExchangeCredentialsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & HttpBearerAuthInputConfig & UserAgentInputConfig & HttpApiKeyAuthInputConfig & ClientInputEndpointParameters;
/**
* The configuration interface of ExchangeCredentialsClient class constructor that set the region, credentials and other options.
* @public
*/
type ExchangeCredentialsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & HttpBearerAuthInputConfig & UserAgentInputConfig & HttpApiKeyAuthInputConfig & ClientInputEndpointParameters;
/**
* @public
*
* The configuration interface of ExchangeCredentialsClient class constructor that set the region, credentials and other options.
*/
export interface ExchangeCredentialsClientConfig extends ExchangeCredentialsClientConfigType {
}
declare type ExchangeCredentialsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & HttpBearerAuthResolvedConfig & UserAgentResolvedConfig & HttpApiKeyAuthResolvedConfig & ClientResolvedEndpointParameters;
/**
* The resolved configuration interface of ExchangeCredentialsClient class. This is resolved and normalized from the {@link ExchangeCredentialsClientConfig | constructor configuration interface}.
* @public
*/
type ExchangeCredentialsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & HttpBearerAuthResolvedConfig & UserAgentResolvedConfig & HttpApiKeyAuthResolvedConfig & ClientResolvedEndpointParameters;
/**
* @public
*
* The resolved configuration interface of ExchangeCredentialsClient class. This is resolved and normalized from the {@link ExchangeCredentialsClientConfig | constructor configuration interface}.
*/
export interface ExchangeCredentialsClientResolvedConfig extends ExchangeCredentialsClientResolvedConfigType {
}
/**
* @public
* Service to exchange Stedi credentials for Web Identity to access AWS account.

@@ -116,0 +136,0 @@ */

import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
/**
* @public
*
* Base exception class for all service exceptions from ExchangeCredentials service.

@@ -4,0 +6,0 @@ */

import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
import { ExchangeCredentialsServiceException as __BaseException } from "./ExchangeCredentialsServiceException";
/**
* @public
*/
export interface GetAwsAccessInput {
}
/**
* @internal
* @public
*/
export declare const GetAwsAccessInputFilterSensitiveLog: (obj: GetAwsAccessInput) => any;
export interface GetAwsAccessOutput {

@@ -14,6 +16,3 @@ awsAccountId?: string;

/**
* @internal
*/
export declare const GetAwsAccessOutputFilterSensitiveLog: (obj: GetAwsAccessOutput) => any;
/**
* @public
* The server response for authorization failure.

@@ -34,2 +33,3 @@ */

/**
* @public
* The server cannot process the request due to an apparent client error.

@@ -50,2 +50,3 @@ */

/**
* @public
* The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.

@@ -66,2 +67,3 @@ */

/**
* @public
* The server response when an unexpected error occurred while processing request.

@@ -82,2 +84,3 @@ */

/**
* @public
* The server response when the requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.

@@ -98,2 +101,3 @@ */

/**
* @public
* The server response for the usage plan quota exceeded error.

@@ -117,2 +121,3 @@ */

/**
* @public
* The server response for the request too large error.

@@ -133,2 +138,3 @@ */

/**
* @public
* The server could not process the request because of conflict in the current state of the resource.

@@ -150,2 +156,3 @@ */

/**
* @public
* The server response when the specified resource cannot be found after an API request passes authentication and authorization.

@@ -166,2 +173,3 @@ */

/**
* @public
* The server response when attempting to serialize the request.

@@ -182,2 +190,3 @@ */

/**
* @public
* The server cannot handle the request due to technical reasons.

@@ -199,2 +208,3 @@ */

/**
* @public
* The server response when usage plan or account-level throttling limits exceeded.

@@ -218,2 +228,3 @@ */

/**
* @public
* The server response when the authorizer failed to authenticate the caller.

@@ -234,2 +245,3 @@ */

/**
* @public
* The server response when the operation specified could not be found.

@@ -250,2 +262,3 @@ */

/**
* @public
* The Stedi account has not been granted permission for this particular service.

@@ -266,2 +279,3 @@ */

/**
* @public
* The server response when a payload is of an unsupported media type.

@@ -282,2 +296,3 @@ */

/**
* @public
* Describes one specific validation failure for an input member.

@@ -296,6 +311,3 @@ */

/**
* @internal
*/
export declare const ValidationExceptionFieldFilterSensitiveLog: (obj: ValidationExceptionField) => any;
/**
* @public
* A standard error for input validation failures.

@@ -302,0 +314,0 @@ * This should be thrown by services when a member of the input structure

import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
import { GetAwsAccessCommandInput, GetAwsAccessCommandOutput } from "../commands/GetAwsAccessCommand";
export declare const serializeAws_restJson1GetAwsAccessCommand: (input: GetAwsAccessCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
export declare const deserializeAws_restJson1GetAwsAccessCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetAwsAccessCommandOutput>;
/**
* serializeAws_restJson1GetAwsAccessCommand
*/
export declare const se_GetAwsAccessCommand: (input: GetAwsAccessCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
/**
* deserializeAws_restJson1GetAwsAccessCommand
*/
export declare const de_GetAwsAccessCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetAwsAccessCommandOutput>;

@@ -13,32 +13,32 @@ {

"@aws-crypto/sha256-js": "3.0.0",
"@aws-sdk/config-resolver": "3.272.0",
"@aws-sdk/fetch-http-handler": "3.272.0",
"@aws-sdk/hash-node": "3.272.0",
"@aws-sdk/invalid-dependency": "3.272.0",
"@aws-sdk/middleware-content-length": "3.272.0",
"@aws-sdk/middleware-endpoint": "3.272.0",
"@aws-sdk/middleware-host-header": "3.272.0",
"@aws-sdk/middleware-logger": "3.272.0",
"@aws-sdk/middleware-retry": "3.272.0",
"@aws-sdk/middleware-serde": "3.272.0",
"@aws-sdk/middleware-stack": "3.272.0",
"@aws-sdk/middleware-user-agent": "3.272.0",
"@aws-sdk/node-config-provider": "3.272.0",
"@aws-sdk/node-http-handler": "3.272.0",
"@aws-sdk/protocol-http": "3.272.0",
"@aws-sdk/smithy-client": "3.272.0",
"@aws-sdk/types": "3.272.0",
"@aws-sdk/url-parser": "3.272.0",
"@aws-sdk/util-base64": "3.208.0",
"@aws-sdk/util-body-length-browser": "3.188.0",
"@aws-sdk/util-body-length-node": "3.208.0",
"@aws-sdk/util-defaults-mode-browser": "3.272.0",
"@aws-sdk/util-defaults-mode-node": "3.272.0",
"@aws-sdk/util-endpoints": "3.272.0",
"@aws-sdk/util-middleware": "3.272.0",
"@aws-sdk/util-retry": "3.272.0",
"@aws-sdk/util-user-agent-browser": "3.272.0",
"@aws-sdk/util-user-agent-node": "3.272.0",
"@aws-sdk/util-utf8": "3.254.0",
"tslib": "^2.3.1"
"@aws-sdk/config-resolver": "3.329.0",
"@aws-sdk/fetch-http-handler": "3.329.0",
"@aws-sdk/hash-node": "3.329.0",
"@aws-sdk/invalid-dependency": "3.329.0",
"@aws-sdk/middleware-content-length": "3.329.0",
"@aws-sdk/middleware-endpoint": "3.329.0",
"@aws-sdk/middleware-host-header": "3.329.0",
"@aws-sdk/middleware-logger": "3.329.0",
"@aws-sdk/middleware-retry": "3.329.0",
"@aws-sdk/middleware-serde": "3.329.0",
"@aws-sdk/middleware-stack": "3.329.0",
"@aws-sdk/middleware-user-agent": "3.329.0",
"@aws-sdk/node-config-provider": "3.329.0",
"@aws-sdk/node-http-handler": "3.329.0",
"@aws-sdk/protocol-http": "3.329.0",
"@aws-sdk/smithy-client": "3.329.0",
"@aws-sdk/types": "3.329.0",
"@aws-sdk/url-parser": "3.329.0",
"@aws-sdk/util-base64": "3.310.0",
"@aws-sdk/util-body-length-browser": "3.310.0",
"@aws-sdk/util-body-length-node": "3.310.0",
"@aws-sdk/util-defaults-mode-browser": "3.329.0",
"@aws-sdk/util-defaults-mode-node": "3.329.0",
"@aws-sdk/util-endpoints": "3.329.0",
"@aws-sdk/util-middleware": "3.329.0",
"@aws-sdk/util-retry": "3.329.0",
"@aws-sdk/util-user-agent-browser": "3.329.0",
"@aws-sdk/util-user-agent-node": "3.329.0",
"@aws-sdk/util-utf8": "3.310.0",
"tslib": "^2.5.0"
},

@@ -52,4 +52,4 @@ "description": "Stedi SDK for JavaScript that includes Exchange Credentials client for Node.js, Browser and React Native",

"downlevel-dts": "0.11.0",
"rimraf": "5.0.0",
"typescript": "^4.7.2"
"rimraf": "5.0.1",
"typescript": "^4.9.5"
},

@@ -95,3 +95,3 @@ "engines": {

},
"version": "0.2.27"
"version": "0.2.28"
}

@@ -153,1 +153,12 @@ <!-- generated file, do not edit directly -->

see LICENSE for more information.
## Client Commands (Operations List)
<details>
<summary>
GetAwsAccess
</summary>
[Command API Reference](https://stedi.github.io/stedi-sdk-javascript/clients/exchange-credentials/docs/classes/GetAwsAccessCommand.html) / [Input](https://stedi.github.io/stedi-sdk-javascript/clients/exchange-credentials/docs/interfaces/GetAwsAccessCommandInput.html) / [Output](https://stedi.github.io/stedi-sdk-javascript/clients/exchange-credentials/docs/interfaces/GetAwsAccessCommandOutput.html)
</details>
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc