🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@aws-sdk/nested-clients

Package Overview
Dependencies
Maintainers
2
Versions
185
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/nested-clients - npm Package Compare versions

Comparing version
3.997.31
to
3.997.32
+4
dist-es/submodules...ands/CreateOAuth2TokenWithIAMCommand.js
import { _ep1, _mw0, command } from "../commandBuilder";
import { CreateOAuth2TokenWithIAM$ } from "../schemas/schemas_0";
export class CreateOAuth2TokenWithIAMCommand extends command(_ep1, _mw0, "CreateOAuth2TokenWithIAM", CreateOAuth2TokenWithIAM$) {
}
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
import type { CreateOAuth2TokenWithIAMRequest, CreateOAuth2TokenWithIAMResponse } from "../models/models_0";
/**
* @public
*/
export type { __MetadataBearer };
/**
* @public
*
* The input for {@link CreateOAuth2TokenWithIAMCommand}.
*/
export interface CreateOAuth2TokenWithIAMCommandInput extends CreateOAuth2TokenWithIAMRequest {
}
/**
* @public
*
* The output of {@link CreateOAuth2TokenWithIAMCommand}.
*/
export interface CreateOAuth2TokenWithIAMCommandOutput extends CreateOAuth2TokenWithIAMResponse, __MetadataBearer {
}
declare const CreateOAuth2TokenWithIAMCommand_base: {
new (input: CreateOAuth2TokenWithIAMCommandInput): import("@smithy/core/client").CommandImpl<CreateOAuth2TokenWithIAMCommandInput, CreateOAuth2TokenWithIAMCommandOutput, import("..").SigninClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
new (input: CreateOAuth2TokenWithIAMCommandInput): import("@smithy/core/client").CommandImpl<CreateOAuth2TokenWithIAMCommandInput, CreateOAuth2TokenWithIAMCommandOutput, import("..").SigninClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
};
/**
* Grants permission to exchange client credentials for an OAuth 2.0 access token
* scoped to a resource that can be used to access AWS services from applications
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { SigninClient, CreateOAuth2TokenWithIAMCommand } from "@aws-sdk/client-signin"; // ES Modules import
* // const { SigninClient, CreateOAuth2TokenWithIAMCommand } = require("@aws-sdk/client-signin"); // CommonJS import
* // import type { SigninClientConfig } from "@aws-sdk/client-signin";
* const config = {}; // type is SigninClientConfig
* const client = new SigninClient(config);
* const input = { // CreateOAuth2TokenWithIAMRequest
* grantType: "STRING_VALUE", // required
* resource: "STRING_VALUE", // required
* };
* const command = new CreateOAuth2TokenWithIAMCommand(input);
* const response = await client.send(command);
* // { // CreateOAuth2TokenWithIAMResponse
* // accessToken: "STRING_VALUE", // required
* // tokenType: "STRING_VALUE", // required
* // expiresIn: Number("int"), // required
* // };
*
* ```
*
* @param CreateOAuth2TokenWithIAMCommandInput - {@link CreateOAuth2TokenWithIAMCommandInput}
* @returns {@link CreateOAuth2TokenWithIAMCommandOutput}
* @see {@link CreateOAuth2TokenWithIAMCommandInput} for command's `input` shape.
* @see {@link CreateOAuth2TokenWithIAMCommandOutput} for command's `response` shape.
* @see {@link SigninClientResolvedConfig | config} for SigninClient's `config` shape.
*
* @throws {@link AccessDeniedException} (client fault)
* Error thrown for access denied scenarios with flexible HTTP status mapping
*
* Runtime HTTP Status Code Mapping:
* - HTTP 401 (Unauthorized): TOKEN_EXPIRED, AUTHCODE_EXPIRED
* - HTTP 403 (Forbidden): USER_CREDENTIALS_CHANGED, INSUFFICIENT_PERMISSIONS
*
* The specific HTTP status code is determined at runtime based on the error enum value.
* Consumers should use the error field to determine the specific access denial reason.
*
* @throws {@link InternalServerException} (server fault)
* Error thrown when an internal server error occurs
*
* HTTP Status Code: 500 Internal Server Error
*
* Used for unexpected server-side errors that prevent request processing.
*
* @throws {@link TooManyRequestsError} (client fault)
* Error thrown when rate limit is exceeded
*
* HTTP Status Code: 429 Too Many Requests
*
* Possible OAuth2ErrorCode values:
* - INVALID_REQUEST: Rate limiting, too many requests, abuse prevention
*
* Possible causes:
* - Too many token requests from the same client
* - Rate limiting based on client_id or IP address
* - Abuse prevention mechanisms triggered
* - Service protection against excessive token generation
*
* @throws {@link ValidationException} (client fault)
* Error thrown when request validation fails
*
* HTTP Status Code: 400 Bad Request
*
* Used for request validation errors such as malformed parameters,
* missing required fields, or invalid parameter values.
*
* @throws {@link SigninServiceException}
* <p>Base exception class for all service exceptions from Signin service.</p>
*
*
* @public
*/
export declare class CreateOAuth2TokenWithIAMCommand extends CreateOAuth2TokenWithIAMCommand_base {
/** @internal type navigation helper, not in runtime. */
protected static __types: {
api: {
input: CreateOAuth2TokenWithIAMRequest;
output: CreateOAuth2TokenWithIAMResponse;
};
sdk: {
input: CreateOAuth2TokenWithIAMCommandInput;
output: CreateOAuth2TokenWithIAMCommandOutput;
};
};
}
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
import {
CreateOAuth2TokenWithIAMRequest,
CreateOAuth2TokenWithIAMResponse,
} from "../models/models_0";
export { __MetadataBearer };
export interface CreateOAuth2TokenWithIAMCommandInput
extends CreateOAuth2TokenWithIAMRequest {}
export interface CreateOAuth2TokenWithIAMCommandOutput
extends CreateOAuth2TokenWithIAMResponse,
__MetadataBearer {}
declare const CreateOAuth2TokenWithIAMCommand_base: {
new (
input: CreateOAuth2TokenWithIAMCommandInput
): import("@smithy/core/client").CommandImpl<
CreateOAuth2TokenWithIAMCommandInput,
CreateOAuth2TokenWithIAMCommandOutput,
import("..").SigninClientResolvedConfig,
import("..").ServiceInputTypes,
import("..").ServiceOutputTypes
>;
new (
input: CreateOAuth2TokenWithIAMCommandInput
): import("@smithy/core/client").CommandImpl<
CreateOAuth2TokenWithIAMCommandInput,
CreateOAuth2TokenWithIAMCommandOutput,
import("..").SigninClientResolvedConfig,
import("..").ServiceInputTypes,
import("..").ServiceOutputTypes
>;
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
};
export declare class CreateOAuth2TokenWithIAMCommand extends CreateOAuth2TokenWithIAMCommand_base {
protected static __types: {
api: {
input: CreateOAuth2TokenWithIAMRequest;
output: CreateOAuth2TokenWithIAMResponse;
};
sdk: {
input: CreateOAuth2TokenWithIAMCommandInput;
output: CreateOAuth2TokenWithIAMCommandOutput;
};
};
}
+1
-1

@@ -84,3 +84,3 @@ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");

var version = "3.997.30";
var version = "3.997.31";
var packageInfo = {

@@ -87,0 +87,0 @@ version: version};

@@ -80,54 +80,57 @@ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");

var version = "3.997.30";
var version = "3.997.31";
var packageInfo = {
version: version};
const p = "ref";
const a = -1, b = true, c = "isSet", d = "booleanEquals", e = "PartitionResult", f = "stringEquals", g = "getAttr", h = "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", i = { [p]: "Endpoint" }, j = { "fn": g, "argv": [{ [p]: e }, "name"] }, k = { [p]: e }, l = { [p]: "Region" }, m = { "authSchemes": [{ "name": "sigv4", "signingName": "signin", "signingRegion": "{Region}" }] }, n = {}, o = [l];
const s = "ref";
const a = -1, b = false, c = true, d = "isSet", e = "booleanEquals", f = "coalesce", g = "PartitionResult", h = "stringEquals", i = "getAttr", j = "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", k = { [s]: "Endpoint" }, l = { "fn": i, "argv": [{ [s]: g }, "name"] }, m = { [s]: "Region" }, n = { [s]: g }, o = { "authSchemes": [{ "name": "sigv4", "signingName": "signin", "signingRegion": "{Region}" }] }, p = {}, q = [m];
const _data = {
conditions: [
[c, o],
[d, [{ fn: "coalesce", argv: [{ [p]: "IsControlPlane" }, false] }, b]],
[c, [i]],
["aws.partition", o, e],
[d, [{ [p]: "UseFIPS" }, b]],
[d, [{ [p]: "UseDualStack" }, b]],
[f, [j, "aws"]],
[f, [j, "aws-cn"]],
[d, [{ fn: g, argv: [k, "supportsDualStack"] }, b]],
[f, [l, "us-gov-west-1"]],
[f, [j, "aws-us-gov"]],
[d, [{ fn: g, argv: [k, "supportsFIPS"] }, b]],
[f, [j, "aws-iso"]],
[f, [j, "aws-iso-b"]],
[f, [j, "aws-iso-f"]],
[f, [j, "aws-iso-e"]],
[f, [j, "aws-eusc"]]
[d, q],
[e, [{ fn: f, argv: [{ [s]: "IsControlPlane" }, b] }, c]],
[d, [k]],
["aws.partition", q, g],
[e, [{ [s]: "UseFIPS" }, c]],
[h, [l, "aws"]],
[e, [{ fn: f, argv: [{ [s]: "IsOAuthEndpoint" }, b] }, c]],
[e, [{ [s]: "UseDualStack" }, c]],
[h, [l, "aws-cn"]],
[h, [m, "us-gov-west-1"]],
[h, [l, "aws-us-gov"]],
[e, [{ fn: i, argv: [n, "supportsFIPS"] }, c]],
[h, [l, "aws-iso"]],
[h, [l, "aws-iso-b"]],
[h, [l, "aws-iso-f"]],
[h, [l, "aws-iso-e"]],
[h, [l, "aws-eusc"]],
[e, [{ fn: i, argv: [n, "supportsDualStack"] }, c]]
],
results: [
[a],
["https://signin.{Region}.api.aws", m],
["https://signin.{Region}.api.amazonwebservices.com.cn", m],
[h, m],
["https://{Region}.signin.aws.amazon.com", n],
["https://{Region}.signin.amazonaws.cn", n],
["https://{Region}.signin.amazonaws-us-gov.com", n],
["https://{Region}.signin.c2shome.ic.gov", n],
["https://{Region}.signin.sc2shome.sgov.gov", n],
["https://{Region}.signin.csphome.hci.ic.gov", n],
["https://{Region}.signin.csphome.adc-e.uk", n],
["https://{Region}.signin.amazonaws-eusc.eu", n],
["https://signin-fips.amazonaws-us-gov.com", n],
["https://{Region}.signin-fips.amazonaws-us-gov.com", n],
["https://{Region}.signin.{PartitionResult#dnsSuffix}", n],
["https://signin.{Region}.api.aws", o],
["https://signin.{Region}.api.amazonwebservices.com.cn", o],
[j, o],
[a, "FIPS endpoints are not supported for OAuth operations. Disable FIPS or use a non-OAuth operation."],
["https://{Region}.oauth.signin.aws", o],
["https://{Region}.signin.aws.amazon.com", p],
["https://{Region}.signin.amazonaws.cn", p],
["https://{Region}.signin.amazonaws-us-gov.com", p],
["https://{Region}.signin.c2shome.ic.gov", p],
["https://{Region}.signin.sc2shome.sgov.gov", p],
["https://{Region}.signin.csphome.hci.ic.gov", p],
["https://{Region}.signin.csphome.adc-e.uk", p],
["https://{Region}.signin.amazonaws-eusc.eu", p],
["https://signin-fips.amazonaws-us-gov.com", p],
["https://{Region}.signin-fips.amazonaws-us-gov.com", p],
["https://{Region}.signin.{PartitionResult#dnsSuffix}", p],
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
[i, n],
["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", n],
[k, p],
["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", p],
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", n],
["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", p],
[a, "FIPS is enabled but this partition does not support FIPS"],
[h, n],
[j, p],
[a, "DualStack is enabled but this partition does not support DualStack"],
["https://signin.{Region}.{PartitionResult#dnsSuffix}", n],
["https://signin.{Region}.{PartitionResult#dnsSuffix}", p],
[a, "Invalid Configuration: Missing Region"]

@@ -140,34 +143,41 @@ ]

-1, 1, -1,
0, 4, 3,
2, 30, r + 25,
1, 24, 5,
2, 30, 6,
3, 7, 26,
4, 18, 8,
5, 17, 9,
6, r + 4, 10,
7, r + 5, 11,
10, r + 6, 12,
12, r + 7, 13,
13, r + 8, 14,
14, r + 9, 15,
15, r + 10, 16,
16, r + 11, r + 14,
8, r + 22, r + 23,
5, 22, 19,
9, r + 12, 20,
10, r + 13, 21,
11, r + 20, r + 21,
8, 23, r + 19,
11, r + 18, r + 19,
2, 29, 25,
3, 32, 26,
4, 27, r + 25,
5, r + 25, 28,
9, r + 12, r + 25,
3, 32, 30,
4, r + 15, 31,
5, r + 16, r + 17,
6, r + 1, 33,
7, r + 2, r + 3,
0, 6, 3,
2, 36, 4,
4, 5, r + 27,
6, r + 4, r + 27,
1, 29, 7,
2, 36, 8,
3, 9, 31,
4, 22, 10,
5, 19, 11,
7, 21, 12,
8, r + 7, 13,
10, r + 8, 14,
12, r + 9, 15,
13, r + 10, 16,
14, r + 11, 17,
15, r + 12, 18,
16, r + 13, r + 16,
6, r + 5, 20,
7, 21, r + 6,
17, r + 24, r + 25,
6, r + 4, 23,
7, 27, 24,
9, r + 14, 25,
10, r + 15, 26,
11, r + 22, r + 23,
11, 28, r + 21,
17, r + 20, r + 21,
2, 35, 30,
3, 39, 31,
4, 32, r + 27,
6, r + 4, 33,
7, r + 27, 34,
9, r + 14, r + 27,
3, 39, 36,
4, 38, 37,
7, r + 18, r + 19,
6, r + 4, r + 17,
5, r + 1, 40,
8, r + 2, r + 3,
]);

@@ -178,3 +188,3 @@ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);

size: 50,
params: ["Endpoint", "IsControlPlane", "Region", "UseDualStack", "UseFIPS"],
params: ["Endpoint", "IsControlPlane", "IsOAuthEndpoint", "Region", "UseDualStack", "UseFIPS"],
});

@@ -260,3 +270,7 @@ const defaultEndpointResolver = (endpointParams, context = {}) => {

const _COATRr = "CreateOAuth2TokenResponse";
const _COATWIAM = "CreateOAuth2TokenWithIAM";
const _COATWIAMR = "CreateOAuth2TokenWithIAMRequest";
const _COATWIAMRr = "CreateOAuth2TokenWithIAMResponse";
const _ISE = "InternalServerException";
const _OAAT = "OAuthAccessToken";
const _RT = "RefreshToken";

@@ -267,2 +281,3 @@ const _TMRE = "TooManyRequestsError";

const _aT = "accessToken";
const _at = "access_token";
const _c = "client";

@@ -274,3 +289,5 @@ const _cI = "clientId";

const _eI = "expiresIn";
const _ei = "expires_in";
const _gT = "grantType";
const _gt = "grant_type";
const _h = "http";

@@ -281,2 +298,3 @@ const _hE = "httpError";

const _m = "message";
const _r = "resource";
const _rT = "refreshToken";

@@ -291,2 +309,3 @@ const _rU = "redirectUri";

const _tT = "tokenType";
const _tt = "token_type";
const n0 = "com.amazonaws.signin";

@@ -325,2 +344,3 @@ const _s_registry = TypeRegistry.for(_s);

];
var OAuthAccessToken = [0, n0, _OAAT, 8, 0];
var RefreshToken = [0, n0, _RT, 8, 0];

@@ -352,5 +372,18 @@ var AccessToken$ = [3, n0, _AT,

];
var CreateOAuth2TokenWithIAMRequest$ = [3, n0, _COATWIAMR,
0,
[_gT, _r],
[[0, { [_jN]: _gt }], 0], 2
];
var CreateOAuth2TokenWithIAMResponse$ = [3, n0, _COATWIAMRr,
0,
[_aT, _tT, _eI],
[[() => OAuthAccessToken, { [_jN]: _at }], [0, { [_jN]: _tt }], [1, { [_jN]: _ei }]], 3
];
var CreateOAuth2Token$ = [9, n0, _COAT,
{ [_h]: ["POST", "/v1/token", 200] }, () => CreateOAuth2TokenRequest$, () => CreateOAuth2TokenResponse$
];
var CreateOAuth2TokenWithIAM$ = [9, n0, _COATWIAM,
{ [_h]: ["POST", "/v1/token?x-amz-client-auth-method=iam", 200] }, () => CreateOAuth2TokenWithIAMRequest$, () => CreateOAuth2TokenWithIAMResponse$
];

@@ -511,2 +544,5 @@ const getRuntimeConfig$1 = (config) => {

};
const _ep1 = {
IsOAuthEndpoint: { type: "staticContextParams", value: true },
};
const _mw0 = (Command, cs, config, o) => [];

@@ -517,4 +553,8 @@

class CreateOAuth2TokenWithIAMCommand extends command(_ep1, _mw0, "CreateOAuth2TokenWithIAM", CreateOAuth2TokenWithIAM$) {
}
const commands = {
CreateOAuth2TokenCommand,
CreateOAuth2TokenWithIAMCommand,
};

@@ -546,2 +586,6 @@ class Signin extends SigninClient {

exports.CreateOAuth2TokenResponseBody$ = CreateOAuth2TokenResponseBody$;
exports.CreateOAuth2TokenWithIAM$ = CreateOAuth2TokenWithIAM$;
exports.CreateOAuth2TokenWithIAMCommand = CreateOAuth2TokenWithIAMCommand;
exports.CreateOAuth2TokenWithIAMRequest$ = CreateOAuth2TokenWithIAMRequest$;
exports.CreateOAuth2TokenWithIAMResponse$ = CreateOAuth2TokenWithIAMResponse$;
exports.InternalServerException = InternalServerException;

@@ -548,0 +592,0 @@ exports.InternalServerException$ = InternalServerException$;

@@ -80,3 +80,3 @@ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");

var version = "3.997.30";
var version = "3.997.31";
var packageInfo = {

@@ -83,0 +83,0 @@ version: version};

@@ -80,3 +80,3 @@ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");

var version = "3.997.30";
var version = "3.997.31";
var packageInfo = {

@@ -83,0 +83,0 @@ version: version};

@@ -261,3 +261,3 @@ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, setCredentialFeature, stsRegionDefaultResolver } = require("@aws-sdk/core/client");

var version = "3.997.30";
var version = "3.997.31";
var packageInfo = {

@@ -264,0 +264,0 @@ version: version};

@@ -8,2 +8,5 @@ import { makeBuilder } from "@smithy/core/client";

};
export const _ep1 = {
IsOAuthEndpoint: { type: "staticContextParams", value: true },
};
export const _mw0 = (Command, cs, config, o) => [];
export * from "./CreateOAuth2TokenCommand";
export * from "./CreateOAuth2TokenWithIAMCommand";
import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
const p = "ref";
const a = -1, b = true, c = "isSet", d = "booleanEquals", e = "PartitionResult", f = "stringEquals", g = "getAttr", h = "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", i = { [p]: "Endpoint" }, j = { "fn": g, "argv": [{ [p]: e }, "name"] }, k = { [p]: e }, l = { [p]: "Region" }, m = { "authSchemes": [{ "name": "sigv4", "signingName": "signin", "signingRegion": "{Region}" }] }, n = {}, o = [l];
const s = "ref";
const a = -1, b = false, c = true, d = "isSet", e = "booleanEquals", f = "coalesce", g = "PartitionResult", h = "stringEquals", i = "getAttr", j = "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", k = { [s]: "Endpoint" }, l = { "fn": i, "argv": [{ [s]: g }, "name"] }, m = { [s]: "Region" }, n = { [s]: g }, o = { "authSchemes": [{ "name": "sigv4", "signingName": "signin", "signingRegion": "{Region}" }] }, p = {}, q = [m];
const _data = {
conditions: [
[c, o],
[d, [{ fn: "coalesce", argv: [{ [p]: "IsControlPlane" }, false] }, b]],
[c, [i]],
["aws.partition", o, e],
[d, [{ [p]: "UseFIPS" }, b]],
[d, [{ [p]: "UseDualStack" }, b]],
[f, [j, "aws"]],
[f, [j, "aws-cn"]],
[d, [{ fn: g, argv: [k, "supportsDualStack"] }, b]],
[f, [l, "us-gov-west-1"]],
[f, [j, "aws-us-gov"]],
[d, [{ fn: g, argv: [k, "supportsFIPS"] }, b]],
[f, [j, "aws-iso"]],
[f, [j, "aws-iso-b"]],
[f, [j, "aws-iso-f"]],
[f, [j, "aws-iso-e"]],
[f, [j, "aws-eusc"]]
[d, q],
[e, [{ fn: f, argv: [{ [s]: "IsControlPlane" }, b] }, c]],
[d, [k]],
["aws.partition", q, g],
[e, [{ [s]: "UseFIPS" }, c]],
[h, [l, "aws"]],
[e, [{ fn: f, argv: [{ [s]: "IsOAuthEndpoint" }, b] }, c]],
[e, [{ [s]: "UseDualStack" }, c]],
[h, [l, "aws-cn"]],
[h, [m, "us-gov-west-1"]],
[h, [l, "aws-us-gov"]],
[e, [{ fn: i, argv: [n, "supportsFIPS"] }, c]],
[h, [l, "aws-iso"]],
[h, [l, "aws-iso-b"]],
[h, [l, "aws-iso-f"]],
[h, [l, "aws-iso-e"]],
[h, [l, "aws-eusc"]],
[e, [{ fn: i, argv: [n, "supportsDualStack"] }, c]]
],
results: [
[a],
["https://signin.{Region}.api.aws", m],
["https://signin.{Region}.api.amazonwebservices.com.cn", m],
[h, m],
["https://{Region}.signin.aws.amazon.com", n],
["https://{Region}.signin.amazonaws.cn", n],
["https://{Region}.signin.amazonaws-us-gov.com", n],
["https://{Region}.signin.c2shome.ic.gov", n],
["https://{Region}.signin.sc2shome.sgov.gov", n],
["https://{Region}.signin.csphome.hci.ic.gov", n],
["https://{Region}.signin.csphome.adc-e.uk", n],
["https://{Region}.signin.amazonaws-eusc.eu", n],
["https://signin-fips.amazonaws-us-gov.com", n],
["https://{Region}.signin-fips.amazonaws-us-gov.com", n],
["https://{Region}.signin.{PartitionResult#dnsSuffix}", n],
["https://signin.{Region}.api.aws", o],
["https://signin.{Region}.api.amazonwebservices.com.cn", o],
[j, o],
[a, "FIPS endpoints are not supported for OAuth operations. Disable FIPS or use a non-OAuth operation."],
["https://{Region}.oauth.signin.aws", o],
["https://{Region}.signin.aws.amazon.com", p],
["https://{Region}.signin.amazonaws.cn", p],
["https://{Region}.signin.amazonaws-us-gov.com", p],
["https://{Region}.signin.c2shome.ic.gov", p],
["https://{Region}.signin.sc2shome.sgov.gov", p],
["https://{Region}.signin.csphome.hci.ic.gov", p],
["https://{Region}.signin.csphome.adc-e.uk", p],
["https://{Region}.signin.amazonaws-eusc.eu", p],
["https://signin-fips.amazonaws-us-gov.com", p],
["https://{Region}.signin-fips.amazonaws-us-gov.com", p],
["https://{Region}.signin.{PartitionResult#dnsSuffix}", p],
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
[i, n],
["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", n],
[k, p],
["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", p],
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", n],
["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", p],
[a, "FIPS is enabled but this partition does not support FIPS"],
[h, n],
[j, p],
[a, "DualStack is enabled but this partition does not support DualStack"],
["https://signin.{Region}.{PartitionResult#dnsSuffix}", n],
["https://signin.{Region}.{PartitionResult#dnsSuffix}", p],
[a, "Invalid Configuration: Missing Region"]

@@ -57,35 +60,42 @@ ]

-1, 1, -1,
0, 4, 3,
2, 30, r + 25,
1, 24, 5,
2, 30, 6,
3, 7, 26,
4, 18, 8,
5, 17, 9,
6, r + 4, 10,
7, r + 5, 11,
10, r + 6, 12,
12, r + 7, 13,
13, r + 8, 14,
14, r + 9, 15,
15, r + 10, 16,
16, r + 11, r + 14,
8, r + 22, r + 23,
5, 22, 19,
9, r + 12, 20,
10, r + 13, 21,
11, r + 20, r + 21,
8, 23, r + 19,
11, r + 18, r + 19,
2, 29, 25,
3, 32, 26,
4, 27, r + 25,
5, r + 25, 28,
9, r + 12, r + 25,
3, 32, 30,
4, r + 15, 31,
5, r + 16, r + 17,
6, r + 1, 33,
7, r + 2, r + 3,
0, 6, 3,
2, 36, 4,
4, 5, r + 27,
6, r + 4, r + 27,
1, 29, 7,
2, 36, 8,
3, 9, 31,
4, 22, 10,
5, 19, 11,
7, 21, 12,
8, r + 7, 13,
10, r + 8, 14,
12, r + 9, 15,
13, r + 10, 16,
14, r + 11, 17,
15, r + 12, 18,
16, r + 13, r + 16,
6, r + 5, 20,
7, 21, r + 6,
17, r + 24, r + 25,
6, r + 4, 23,
7, 27, 24,
9, r + 14, 25,
10, r + 15, 26,
11, r + 22, r + 23,
11, 28, r + 21,
17, r + 20, r + 21,
2, 35, 30,
3, 39, 31,
4, 32, r + 27,
6, r + 4, 33,
7, r + 27, 34,
9, r + 14, r + 27,
3, 39, 36,
4, 38, 37,
7, r + 18, r + 19,
6, r + 4, r + 17,
5, r + 1, 40,
8, r + 2, r + 3,
]);
export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);

@@ -6,3 +6,3 @@ import { awsEndpointFunctions } from "@aws-sdk/core/client";

size: 50,
params: ["Endpoint", "IsControlPlane", "Region", "UseDualStack", "UseFIPS"],
params: ["Endpoint", "IsControlPlane", "IsOAuthEndpoint", "Region", "UseDualStack", "UseFIPS"],
});

@@ -9,0 +9,0 @@ export const defaultEndpointResolver = (endpointParams, context = {}) => {

@@ -8,3 +8,7 @@ const _ADE = "AccessDeniedException";

const _COATRr = "CreateOAuth2TokenResponse";
const _COATWIAM = "CreateOAuth2TokenWithIAM";
const _COATWIAMR = "CreateOAuth2TokenWithIAMRequest";
const _COATWIAMRr = "CreateOAuth2TokenWithIAMResponse";
const _ISE = "InternalServerException";
const _OAAT = "OAuthAccessToken";
const _RT = "RefreshToken";

@@ -15,2 +19,3 @@ const _TMRE = "TooManyRequestsError";

const _aT = "accessToken";
const _at = "access_token";
const _c = "client";

@@ -22,3 +27,5 @@ const _cI = "clientId";

const _eI = "expiresIn";
const _ei = "expires_in";
const _gT = "grantType";
const _gt = "grant_type";
const _h = "http";

@@ -29,2 +36,3 @@ const _hE = "httpError";

const _m = "message";
const _r = "resource";
const _rT = "refreshToken";

@@ -39,2 +47,3 @@ const _rU = "redirectUri";

const _tT = "tokenType";
const _tt = "token_type";
const n0 = "com.amazonaws.signin";

@@ -76,2 +85,3 @@ import { TypeRegistry } from "@smithy/core/schema";

];
var OAuthAccessToken = [0, n0, _OAAT, 8, 0];
var RefreshToken = [0, n0, _RT, 8, 0];

@@ -103,4 +113,17 @@ export var AccessToken$ = [3, n0, _AT,

];
export var CreateOAuth2TokenWithIAMRequest$ = [3, n0, _COATWIAMR,
0,
[_gT, _r],
[[0, { [_jN]: _gt }], 0], 2
];
export var CreateOAuth2TokenWithIAMResponse$ = [3, n0, _COATWIAMRr,
0,
[_aT, _tT, _eI],
[[() => OAuthAccessToken, { [_jN]: _at }], [0, { [_jN]: _tt }], [1, { [_jN]: _ei }]], 3
];
export var CreateOAuth2Token$ = [9, n0, _COAT,
{ [_h]: ["POST", "/v1/token", 200] }, () => CreateOAuth2TokenRequest$, () => CreateOAuth2TokenResponse$
];
export var CreateOAuth2TokenWithIAM$ = [9, n0, _COATWIAM,
{ [_h]: ["POST", "/v1/token?x-amz-client-auth-method=iam", 200] }, () => CreateOAuth2TokenWithIAMRequest$, () => CreateOAuth2TokenWithIAMResponse$
];
import { createAggregatedClient } from "@smithy/core/client";
import { CreateOAuth2TokenCommand, } from "./commands/CreateOAuth2TokenCommand";
import { CreateOAuth2TokenWithIAMCommand, } from "./commands/CreateOAuth2TokenWithIAMCommand";
import { SigninClient } from "./SigninClient";
const commands = {
CreateOAuth2TokenCommand,
CreateOAuth2TokenWithIAMCommand,
};

@@ -7,0 +9,0 @@ export class Signin extends SigninClient {

import type { EndpointParameterInstructions } from "@smithy/types";
import type { SigninClientResolvedConfig } from "./SigninClient";
import type { ServiceInputTypes, ServiceOutputTypes, SigninClientResolvedConfig } from "./SigninClient";
/**
* @internal
*/
export declare const command: <I extends import("./commands").CreateOAuth2TokenCommandInput, O extends import("./commands").CreateOAuth2TokenCommandOutput>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
new (input: I): import("@smithy/core/client").CommandImpl<I, O, SigninClientResolvedConfig, import("./commands").CreateOAuth2TokenCommandInput, import("./commands").CreateOAuth2TokenCommandOutput>;
new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, SigninClientResolvedConfig, import("./commands").CreateOAuth2TokenCommandInput, import("./commands").CreateOAuth2TokenCommandOutput>;
export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
new (input: I): import("@smithy/core/client").CommandImpl<I, O, SigninClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, SigninClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
getEndpointParameterInstructions(): EndpointParameterInstructions;

@@ -18,2 +18,6 @@ };

*/
export declare const _ep1: EndpointParameterInstructions;
/**
* @internal
*/
export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];

@@ -22,4 +22,4 @@ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";

declare const CreateOAuth2TokenCommand_base: {
new (input: CreateOAuth2TokenCommandInput): import("@smithy/core/client").CommandImpl<CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput, import("..").SigninClientResolvedConfig, CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput>;
new (input: CreateOAuth2TokenCommandInput): import("@smithy/core/client").CommandImpl<CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput, import("..").SigninClientResolvedConfig, CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput>;
new (input: CreateOAuth2TokenCommandInput): import("@smithy/core/client").CommandImpl<CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput, import("..").SigninClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
new (input: CreateOAuth2TokenCommandInput): import("@smithy/core/client").CommandImpl<CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput, import("..").SigninClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;

@@ -26,0 +26,0 @@ };

export * from "./CreateOAuth2TokenCommand";
export * from "./CreateOAuth2TokenWithIAMCommand";

@@ -51,2 +51,3 @@ import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";

IsControlPlane?: boolean | undefined;
IsOAuthEndpoint?: boolean | undefined;
}
/**
* AWS credentials structure containing temporary access credentials
*
* The scoped-down, 15 minute duration AWS credentials.
* Scoping down will be based on CLI policy (CLI team needs to create it).
* Similar to cloud shell implementation.
* Scoped, temporary AWS credentials with a 15-minute duration.
* @public

@@ -143,1 +141,41 @@ */

}
/**
* Input structure for CreateOAuth2TokenWithIAM operation
* @public
*/
export interface CreateOAuth2TokenWithIAMRequest {
/**
* OAuth 2.0 grant type. Must be "client_credentials".
* @public
*/
grantType: string | undefined;
/**
* The OAuth resource for which the access token is requested.
* Example: "aws-mcp.amazonaws.com".
* @public
*/
resource: string | undefined;
}
/**
* Output structure for CreateOAuth2TokenWithIAM operation
*
* Contains the JWT access token, token type, and expiration per RFC 6749 §5.1.
* @public
*/
export interface CreateOAuth2TokenWithIAMResponse {
/**
* JWT access token containing principal identity, resource scope, and session metadata
* @public
*/
accessToken: string | undefined;
/**
* Always "Bearer" per OAuth 2.1 specification
* @public
*/
tokenType: string | undefined;
/**
* Token lifetime in seconds. Value is the minimum of session validity and 1 hour.
* @public
*/
expiresIn: number | undefined;
}

@@ -19,2 +19,5 @@ import { TypeRegistry } from "@smithy/core/schema";

export declare var CreateOAuth2TokenResponseBody$: StaticStructureSchema;
export declare var CreateOAuth2TokenWithIAMRequest$: StaticStructureSchema;
export declare var CreateOAuth2TokenWithIAMResponse$: StaticStructureSchema;
export declare var CreateOAuth2Token$: StaticOperationSchema;
export declare var CreateOAuth2TokenWithIAM$: StaticOperationSchema;
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
import { type CreateOAuth2TokenCommandInput, type CreateOAuth2TokenCommandOutput } from "./commands/CreateOAuth2TokenCommand";
import { type CreateOAuth2TokenWithIAMCommandInput, type CreateOAuth2TokenWithIAMCommandOutput } from "./commands/CreateOAuth2TokenWithIAMCommand";
import { SigninClient } from "./SigninClient";

@@ -11,2 +12,8 @@ export interface Signin {

createOAuth2Token(args: CreateOAuth2TokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateOAuth2TokenCommandOutput) => void): void;
/**
* @see {@link CreateOAuth2TokenWithIAMCommand}
*/
createOAuth2TokenWithIAM(args: CreateOAuth2TokenWithIAMCommandInput, options?: __HttpHandlerOptions): Promise<CreateOAuth2TokenWithIAMCommandOutput>;
createOAuth2TokenWithIAM(args: CreateOAuth2TokenWithIAMCommandInput, cb: (err: any, data?: CreateOAuth2TokenWithIAMCommandOutput) => void): void;
createOAuth2TokenWithIAM(args: CreateOAuth2TokenWithIAMCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateOAuth2TokenWithIAMCommandOutput) => void): void;
}

@@ -13,0 +20,0 @@ /**

@@ -10,2 +10,3 @@ import { type HostHeaderInputConfig, type HostHeaderResolvedConfig, type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/core/client";

import type { CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput } from "./commands/CreateOAuth2TokenCommand";
import type { CreateOAuth2TokenWithIAMCommandInput, CreateOAuth2TokenWithIAMCommandOutput } from "./commands/CreateOAuth2TokenWithIAMCommand";
import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";

@@ -17,7 +18,7 @@ import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";

*/
export type ServiceInputTypes = CreateOAuth2TokenCommandInput;
export type ServiceInputTypes = CreateOAuth2TokenCommandInput | CreateOAuth2TokenWithIAMCommandInput;
/**
* @public
*/
export type ServiceOutputTypes = CreateOAuth2TokenCommandOutput;
export type ServiceOutputTypes = CreateOAuth2TokenCommandOutput | CreateOAuth2TokenWithIAMCommandOutput;
/**

@@ -24,0 +25,0 @@ * @public

import { EndpointParameterInstructions } from "@smithy/types";
import { SigninClientResolvedConfig } from "./SigninClient";
import {
ServiceInputTypes,
ServiceOutputTypes,
SigninClientResolvedConfig,
} from "./SigninClient";
export declare const command: <
I extends import("./commands").CreateOAuth2TokenCommandInput,
O extends import("./commands").CreateOAuth2TokenCommandOutput
I extends ServiceInputTypes,
O extends ServiceOutputTypes
>(

@@ -22,4 +26,4 @@ added: EndpointParameterInstructions,

SigninClientResolvedConfig,
import("./commands").CreateOAuth2TokenCommandInput,
import("./commands").CreateOAuth2TokenCommandOutput
ServiceInputTypes,
ServiceOutputTypes
>;

@@ -32,4 +36,4 @@ new (

SigninClientResolvedConfig,
import("./commands").CreateOAuth2TokenCommandInput,
import("./commands").CreateOAuth2TokenCommandOutput
ServiceInputTypes,
ServiceOutputTypes
>;

@@ -39,2 +43,3 @@ getEndpointParameterInstructions(): EndpointParameterInstructions;

export declare const _ep0: EndpointParameterInstructions;
export declare const _ep1: EndpointParameterInstructions;
export declare const _mw0: (

@@ -41,0 +46,0 @@ Command: any,

@@ -19,4 +19,4 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import("..").SigninClientResolvedConfig,
CreateOAuth2TokenCommandInput,
CreateOAuth2TokenCommandOutput
import("..").ServiceInputTypes,
import("..").ServiceOutputTypes
>;

@@ -29,4 +29,4 @@ new (

import("..").SigninClientResolvedConfig,
CreateOAuth2TokenCommandInput,
CreateOAuth2TokenCommandOutput
import("..").ServiceInputTypes,
import("..").ServiceOutputTypes
>;

@@ -33,0 +33,0 @@ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;

export * from "./CreateOAuth2TokenCommand";
export * from "./CreateOAuth2TokenWithIAMCommand";

@@ -52,2 +52,3 @@ import {

IsControlPlane?: boolean | undefined;
IsOAuthEndpoint?: boolean | undefined;
}

@@ -27,1 +27,10 @@ export interface AccessToken {

}
export interface CreateOAuth2TokenWithIAMRequest {
grantType: string | undefined;
resource: string | undefined;
}
export interface CreateOAuth2TokenWithIAMResponse {
accessToken: string | undefined;
tokenType: string | undefined;
expiresIn: number | undefined;
}

@@ -18,2 +18,5 @@ import { TypeRegistry } from "@smithy/core/schema";

export declare var CreateOAuth2TokenResponseBody$: StaticStructureSchema;
export declare var CreateOAuth2TokenWithIAMRequest$: StaticStructureSchema;
export declare var CreateOAuth2TokenWithIAMResponse$: StaticStructureSchema;
export declare var CreateOAuth2Token$: StaticOperationSchema;
export declare var CreateOAuth2TokenWithIAM$: StaticOperationSchema;

@@ -6,2 +6,6 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";

} from "./commands/CreateOAuth2TokenCommand";
import {
CreateOAuth2TokenWithIAMCommandInput,
CreateOAuth2TokenWithIAMCommandOutput,
} from "./commands/CreateOAuth2TokenWithIAMCommand";
import { SigninClient } from "./SigninClient";

@@ -22,3 +26,16 @@ export interface Signin {

): void;
createOAuth2TokenWithIAM(
args: CreateOAuth2TokenWithIAMCommandInput,
options?: __HttpHandlerOptions
): Promise<CreateOAuth2TokenWithIAMCommandOutput>;
createOAuth2TokenWithIAM(
args: CreateOAuth2TokenWithIAMCommandInput,
cb: (err: any, data?: CreateOAuth2TokenWithIAMCommandOutput) => void
): void;
createOAuth2TokenWithIAM(
args: CreateOAuth2TokenWithIAMCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateOAuth2TokenWithIAMCommandOutput) => void
): void;
}
export declare class Signin extends SigninClient implements Signin {}

@@ -44,2 +44,6 @@ import {

import {
CreateOAuth2TokenWithIAMCommandInput,
CreateOAuth2TokenWithIAMCommandOutput,
} from "./commands/CreateOAuth2TokenWithIAMCommand";
import {
ClientInputEndpointParameters,

@@ -51,4 +55,8 @@ ClientResolvedEndpointParameters,

export { __Client };
export type ServiceInputTypes = CreateOAuth2TokenCommandInput;
export type ServiceOutputTypes = CreateOAuth2TokenCommandOutput;
export type ServiceInputTypes =
| CreateOAuth2TokenCommandInput
| CreateOAuth2TokenWithIAMCommandInput;
export type ServiceOutputTypes =
| CreateOAuth2TokenCommandOutput
| CreateOAuth2TokenWithIAMCommandOutput;
export interface ClientDefaults

@@ -55,0 +63,0 @@ extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {

{
"name": "@aws-sdk/nested-clients",
"version": "3.997.31",
"version": "3.997.32",
"description": "Nested clients for AWS SDK packages.",

@@ -31,9 +31,9 @@ "main": "./dist-cjs/index.js",

"dependencies": {
"@aws-sdk/core": "^3.975.1",
"@aws-sdk/signature-v4-multi-region": "^3.996.39",
"@aws-sdk/types": "^3.974.0",
"@smithy/core": "^3.29.2",
"@smithy/fetch-http-handler": "^5.6.4",
"@smithy/node-http-handler": "^4.9.4",
"@smithy/types": "^4.16.0",
"@aws-sdk/core": "^3.975.2",
"@aws-sdk/signature-v4-multi-region": "^3.996.40",
"@aws-sdk/types": "^3.974.1",
"@smithy/core": "^3.29.3",
"@smithy/fetch-http-handler": "^5.6.5",
"@smithy/node-http-handler": "^4.9.5",
"@smithy/types": "^4.16.1",
"tslib": "^2.6.2"

@@ -51,2 +51,5 @@ },

"dist-types/ts3.4/*"
],
"*": [
"dist-types/ts3.4/submodules/*/index.d.ts"
]

@@ -53,0 +56,0 @@ }