@cdk8s/awscdk-resolver 0.0.627 → 0.0.629
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +3 -3
- package/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +8 -8
- package/node_modules/@aws-sdk/core/package.json +8 -5
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/index.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-node/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +116 -72
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/Signin.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commandBuilder.js +3 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.js +4 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/commands/index.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +80 -70
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +23 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/Signin.d.ts +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/SigninClient.d.ts +3 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commandBuilder.d.ts +8 -4
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.d.ts +114 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commands/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/models_0.d.ts +41 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/schemas/schemas_0.d.ts +3 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/Signin.d.ts +17 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/SigninClient.d.ts +10 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commandBuilder.d.ts +12 -7
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenCommand.d.ts +4 -4
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/CreateOAuth2TokenWithIAMCommand.d.ts +44 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commands/index.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/EndpointParameters.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/models_0.d.ts +9 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/schemas/schemas_0.d.ts +3 -0
- package/node_modules/@aws-sdk/nested-clients/package.json +11 -8
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +3 -3
- package/node_modules/@aws-sdk/token-providers/package.json +6 -6
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +3 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +3 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +1 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +20 -20
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +20 -20
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +3 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +3 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +4 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +5 -5
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -4
- package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionInfo/getRegionInfo.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/resolveDefaultsModeConfig.browser.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/getSelectorName.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseIni.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/service-customizations/s3.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/parseURL.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +20 -20
- package/node_modules/@smithy/core/dist-es/submodules/protocols/middleware-content-length/contentLengthMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/retry/util-retry/StandardRetryStrategy.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/ErrorSchema.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/copyDocumentWithTransform.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/date-utils.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/middleware-serde/deserializerMiddleware.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/serde/util-stream/sdk-stream-mixin.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/transport/isValidHostname.js +1 -1
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/submodules/serde/copyDocumentWithTransform.d.ts +1 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts +2 -2
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/serde/copyDocumentWithTransform.d.ts +1 -1
- package/node_modules/@smithy/core/package.json +5 -3
- package/node_modules/@smithy/credential-provider-imds/package.json +3 -5
- package/node_modules/@smithy/fetch-http-handler/package.json +3 -5
- package/node_modules/@smithy/node-http-handler/package.json +3 -5
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +11 -11
- package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +10 -10
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +1 -1
- package/node_modules/@smithy/signature-v4/package.json +3 -5
- package/package.json +5 -5
|
@@ -7,17 +7,18 @@ import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/re
|
|
|
7
7
|
import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
8
8
|
import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
9
9
|
import type { CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput } from "./commands/CreateOAuth2TokenCommand";
|
|
10
|
+
import type { CreateOAuth2TokenWithIAMCommandInput, CreateOAuth2TokenWithIAMCommandOutput } from "./commands/CreateOAuth2TokenWithIAMCommand";
|
|
10
11
|
import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
|
|
11
12
|
import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
12
13
|
export { __Client };
|
|
13
14
|
/**
|
|
14
15
|
* @public
|
|
15
16
|
*/
|
|
16
|
-
export type ServiceInputTypes = CreateOAuth2TokenCommandInput;
|
|
17
|
+
export type ServiceInputTypes = CreateOAuth2TokenCommandInput | CreateOAuth2TokenWithIAMCommandInput;
|
|
17
18
|
/**
|
|
18
19
|
* @public
|
|
19
20
|
*/
|
|
20
|
-
export type ServiceOutputTypes = CreateOAuth2TokenCommandOutput;
|
|
21
|
+
export type ServiceOutputTypes = CreateOAuth2TokenCommandOutput | CreateOAuth2TokenWithIAMCommandOutput;
|
|
21
22
|
/**
|
|
22
23
|
* @public
|
|
23
24
|
*/
|
package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/commandBuilder.d.ts
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import type { EndpointParameterInstructions } from "@smithy/types";
|
|
2
|
-
import type { SigninClientResolvedConfig } from "./SigninClient";
|
|
2
|
+
import type { ServiceInputTypes, ServiceOutputTypes, SigninClientResolvedConfig } from "./SigninClient";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
|
-
export declare const command: <I extends
|
|
7
|
-
new (input: I): import("@smithy/core/client").CommandImpl<I, O, SigninClientResolvedConfig,
|
|
8
|
-
new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, SigninClientResolvedConfig,
|
|
6
|
+
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>) => {
|
|
7
|
+
new (input: I): import("@smithy/core/client").CommandImpl<I, O, SigninClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
8
|
+
new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, SigninClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
9
9
|
getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
12
|
* @internal
|
|
13
13
|
*/
|
|
14
14
|
export declare const _ep0: EndpointParameterInstructions;
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const _ep1: EndpointParameterInstructions;
|
|
15
19
|
/**
|
|
16
20
|
* @internal
|
|
17
21
|
*/
|
|
@@ -19,8 +19,8 @@ export interface CreateOAuth2TokenCommandInput extends CreateOAuth2TokenRequest
|
|
|
19
19
|
export interface CreateOAuth2TokenCommandOutput extends CreateOAuth2TokenResponse, __MetadataBearer {
|
|
20
20
|
}
|
|
21
21
|
declare const CreateOAuth2TokenCommand_base: {
|
|
22
|
-
new (input: CreateOAuth2TokenCommandInput): import("@smithy/core/client").CommandImpl<CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput, import("..").SigninClientResolvedConfig,
|
|
23
|
-
new (input: CreateOAuth2TokenCommandInput): import("@smithy/core/client").CommandImpl<CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput, import("..").SigninClientResolvedConfig,
|
|
22
|
+
new (input: CreateOAuth2TokenCommandInput): import("@smithy/core/client").CommandImpl<CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput, import("..").SigninClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: CreateOAuth2TokenCommandInput): import("@smithy/core/client").CommandImpl<CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput, import("..").SigninClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
24
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { CreateOAuth2TokenWithIAMRequest, CreateOAuth2TokenWithIAMResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link CreateOAuth2TokenWithIAMCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface CreateOAuth2TokenWithIAMCommandInput extends CreateOAuth2TokenWithIAMRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link CreateOAuth2TokenWithIAMCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateOAuth2TokenWithIAMCommandOutput extends CreateOAuth2TokenWithIAMResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const CreateOAuth2TokenWithIAMCommand_base: {
|
|
22
|
+
new (input: CreateOAuth2TokenWithIAMCommandInput): import("@smithy/core/client").CommandImpl<CreateOAuth2TokenWithIAMCommandInput, CreateOAuth2TokenWithIAMCommandOutput, import("..").SigninClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: CreateOAuth2TokenWithIAMCommandInput): import("@smithy/core/client").CommandImpl<CreateOAuth2TokenWithIAMCommandInput, CreateOAuth2TokenWithIAMCommandOutput, import("..").SigninClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Grants permission to exchange client credentials for an OAuth 2.0 access token
|
|
28
|
+
* scoped to a resource that can be used to access AWS services from applications
|
|
29
|
+
* @example
|
|
30
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
+
* ```javascript
|
|
32
|
+
* import { SigninClient, CreateOAuth2TokenWithIAMCommand } from "@aws-sdk/client-signin"; // ES Modules import
|
|
33
|
+
* // const { SigninClient, CreateOAuth2TokenWithIAMCommand } = require("@aws-sdk/client-signin"); // CommonJS import
|
|
34
|
+
* // import type { SigninClientConfig } from "@aws-sdk/client-signin";
|
|
35
|
+
* const config = {}; // type is SigninClientConfig
|
|
36
|
+
* const client = new SigninClient(config);
|
|
37
|
+
* const input = { // CreateOAuth2TokenWithIAMRequest
|
|
38
|
+
* grantType: "STRING_VALUE", // required
|
|
39
|
+
* resource: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new CreateOAuth2TokenWithIAMCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // CreateOAuth2TokenWithIAMResponse
|
|
44
|
+
* // accessToken: "STRING_VALUE", // required
|
|
45
|
+
* // tokenType: "STRING_VALUE", // required
|
|
46
|
+
* // expiresIn: Number("int"), // required
|
|
47
|
+
* // };
|
|
48
|
+
*
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param CreateOAuth2TokenWithIAMCommandInput - {@link CreateOAuth2TokenWithIAMCommandInput}
|
|
52
|
+
* @returns {@link CreateOAuth2TokenWithIAMCommandOutput}
|
|
53
|
+
* @see {@link CreateOAuth2TokenWithIAMCommandInput} for command's `input` shape.
|
|
54
|
+
* @see {@link CreateOAuth2TokenWithIAMCommandOutput} for command's `response` shape.
|
|
55
|
+
* @see {@link SigninClientResolvedConfig | config} for SigninClient's `config` shape.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
58
|
+
* Error thrown for access denied scenarios with flexible HTTP status mapping
|
|
59
|
+
*
|
|
60
|
+
* Runtime HTTP Status Code Mapping:
|
|
61
|
+
* - HTTP 401 (Unauthorized): TOKEN_EXPIRED, AUTHCODE_EXPIRED
|
|
62
|
+
* - HTTP 403 (Forbidden): USER_CREDENTIALS_CHANGED, INSUFFICIENT_PERMISSIONS
|
|
63
|
+
*
|
|
64
|
+
* The specific HTTP status code is determined at runtime based on the error enum value.
|
|
65
|
+
* Consumers should use the error field to determine the specific access denial reason.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link InternalServerException} (server fault)
|
|
68
|
+
* Error thrown when an internal server error occurs
|
|
69
|
+
*
|
|
70
|
+
* HTTP Status Code: 500 Internal Server Error
|
|
71
|
+
*
|
|
72
|
+
* Used for unexpected server-side errors that prevent request processing.
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link TooManyRequestsError} (client fault)
|
|
75
|
+
* Error thrown when rate limit is exceeded
|
|
76
|
+
*
|
|
77
|
+
* HTTP Status Code: 429 Too Many Requests
|
|
78
|
+
*
|
|
79
|
+
* Possible OAuth2ErrorCode values:
|
|
80
|
+
* - INVALID_REQUEST: Rate limiting, too many requests, abuse prevention
|
|
81
|
+
*
|
|
82
|
+
* Possible causes:
|
|
83
|
+
* - Too many token requests from the same client
|
|
84
|
+
* - Rate limiting based on client_id or IP address
|
|
85
|
+
* - Abuse prevention mechanisms triggered
|
|
86
|
+
* - Service protection against excessive token generation
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ValidationException} (client fault)
|
|
89
|
+
* Error thrown when request validation fails
|
|
90
|
+
*
|
|
91
|
+
* HTTP Status Code: 400 Bad Request
|
|
92
|
+
*
|
|
93
|
+
* Used for request validation errors such as malformed parameters,
|
|
94
|
+
* missing required fields, or invalid parameter values.
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link SigninServiceException}
|
|
97
|
+
* <p>Base exception class for all service exceptions from Signin service.</p>
|
|
98
|
+
*
|
|
99
|
+
*
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
102
|
+
export declare class CreateOAuth2TokenWithIAMCommand extends CreateOAuth2TokenWithIAMCommand_base {
|
|
103
|
+
/** @internal type navigation helper, not in runtime. */
|
|
104
|
+
protected static __types: {
|
|
105
|
+
api: {
|
|
106
|
+
input: CreateOAuth2TokenWithIAMRequest;
|
|
107
|
+
output: CreateOAuth2TokenWithIAMResponse;
|
|
108
|
+
};
|
|
109
|
+
sdk: {
|
|
110
|
+
input: CreateOAuth2TokenWithIAMCommandInput;
|
|
111
|
+
output: CreateOAuth2TokenWithIAMCommandOutput;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
}
|
package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/models_0.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* AWS credentials structure containing temporary access credentials
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* Scoping down will be based on CLI policy (CLI team needs to create it).
|
|
6
|
-
* Similar to cloud shell implementation.
|
|
4
|
+
* Scoped, temporary AWS credentials with a 15-minute duration.
|
|
7
5
|
* @public
|
|
8
6
|
*/
|
|
9
7
|
export interface AccessToken {
|
|
@@ -140,3 +138,43 @@ export interface CreateOAuth2TokenResponse {
|
|
|
140
138
|
*/
|
|
141
139
|
tokenOutput: CreateOAuth2TokenResponseBody | undefined;
|
|
142
140
|
}
|
|
141
|
+
/**
|
|
142
|
+
* Input structure for CreateOAuth2TokenWithIAM operation
|
|
143
|
+
* @public
|
|
144
|
+
*/
|
|
145
|
+
export interface CreateOAuth2TokenWithIAMRequest {
|
|
146
|
+
/**
|
|
147
|
+
* OAuth 2.0 grant type. Must be "client_credentials".
|
|
148
|
+
* @public
|
|
149
|
+
*/
|
|
150
|
+
grantType: string | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* The OAuth resource for which the access token is requested.
|
|
153
|
+
* Example: "aws-mcp.amazonaws.com".
|
|
154
|
+
* @public
|
|
155
|
+
*/
|
|
156
|
+
resource: string | undefined;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Output structure for CreateOAuth2TokenWithIAM operation
|
|
160
|
+
*
|
|
161
|
+
* Contains the JWT access token, token type, and expiration per RFC 6749 §5.1.
|
|
162
|
+
* @public
|
|
163
|
+
*/
|
|
164
|
+
export interface CreateOAuth2TokenWithIAMResponse {
|
|
165
|
+
/**
|
|
166
|
+
* JWT access token containing principal identity, resource scope, and session metadata
|
|
167
|
+
* @public
|
|
168
|
+
*/
|
|
169
|
+
accessToken: string | undefined;
|
|
170
|
+
/**
|
|
171
|
+
* Always "Bearer" per OAuth 2.1 specification
|
|
172
|
+
* @public
|
|
173
|
+
*/
|
|
174
|
+
tokenType: string | undefined;
|
|
175
|
+
/**
|
|
176
|
+
* Token lifetime in seconds. Value is the minimum of session validity and 1 hour.
|
|
177
|
+
* @public
|
|
178
|
+
*/
|
|
179
|
+
expiresIn: number | undefined;
|
|
180
|
+
}
|
package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/schemas/schemas_0.d.ts
CHANGED
|
@@ -16,4 +16,7 @@ export declare var CreateOAuth2TokenRequest$: StaticStructureSchema;
|
|
|
16
16
|
export declare var CreateOAuth2TokenRequestBody$: StaticStructureSchema;
|
|
17
17
|
export declare var CreateOAuth2TokenResponse$: StaticStructureSchema;
|
|
18
18
|
export declare var CreateOAuth2TokenResponseBody$: StaticStructureSchema;
|
|
19
|
+
export declare var CreateOAuth2TokenWithIAMRequest$: StaticStructureSchema;
|
|
20
|
+
export declare var CreateOAuth2TokenWithIAMResponse$: StaticStructureSchema;
|
|
19
21
|
export declare var CreateOAuth2Token$: StaticOperationSchema;
|
|
22
|
+
export declare var CreateOAuth2TokenWithIAM$: StaticOperationSchema;
|
|
@@ -3,6 +3,10 @@ import {
|
|
|
3
3
|
CreateOAuth2TokenCommandInput,
|
|
4
4
|
CreateOAuth2TokenCommandOutput,
|
|
5
5
|
} from "./commands/CreateOAuth2TokenCommand";
|
|
6
|
+
import {
|
|
7
|
+
CreateOAuth2TokenWithIAMCommandInput,
|
|
8
|
+
CreateOAuth2TokenWithIAMCommandOutput,
|
|
9
|
+
} from "./commands/CreateOAuth2TokenWithIAMCommand";
|
|
6
10
|
import { SigninClient } from "./SigninClient";
|
|
7
11
|
export interface Signin {
|
|
8
12
|
createOAuth2Token(
|
|
@@ -18,5 +22,18 @@ export interface Signin {
|
|
|
18
22
|
options: __HttpHandlerOptions,
|
|
19
23
|
cb: (err: any, data?: CreateOAuth2TokenCommandOutput) => void
|
|
20
24
|
): void;
|
|
25
|
+
createOAuth2TokenWithIAM(
|
|
26
|
+
args: CreateOAuth2TokenWithIAMCommandInput,
|
|
27
|
+
options?: __HttpHandlerOptions
|
|
28
|
+
): Promise<CreateOAuth2TokenWithIAMCommandOutput>;
|
|
29
|
+
createOAuth2TokenWithIAM(
|
|
30
|
+
args: CreateOAuth2TokenWithIAMCommandInput,
|
|
31
|
+
cb: (err: any, data?: CreateOAuth2TokenWithIAMCommandOutput) => void
|
|
32
|
+
): void;
|
|
33
|
+
createOAuth2TokenWithIAM(
|
|
34
|
+
args: CreateOAuth2TokenWithIAMCommandInput,
|
|
35
|
+
options: __HttpHandlerOptions,
|
|
36
|
+
cb: (err: any, data?: CreateOAuth2TokenWithIAMCommandOutput) => void
|
|
37
|
+
): void;
|
|
21
38
|
}
|
|
22
39
|
export declare class Signin extends SigninClient implements Signin {}
|
package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/SigninClient.d.ts
CHANGED
|
@@ -40,6 +40,10 @@ import {
|
|
|
40
40
|
CreateOAuth2TokenCommandInput,
|
|
41
41
|
CreateOAuth2TokenCommandOutput,
|
|
42
42
|
} from "./commands/CreateOAuth2TokenCommand";
|
|
43
|
+
import {
|
|
44
|
+
CreateOAuth2TokenWithIAMCommandInput,
|
|
45
|
+
CreateOAuth2TokenWithIAMCommandOutput,
|
|
46
|
+
} from "./commands/CreateOAuth2TokenWithIAMCommand";
|
|
43
47
|
import {
|
|
44
48
|
ClientInputEndpointParameters,
|
|
45
49
|
ClientResolvedEndpointParameters,
|
|
@@ -47,8 +51,12 @@ import {
|
|
|
47
51
|
} from "./endpoint/EndpointParameters";
|
|
48
52
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
49
53
|
export { __Client };
|
|
50
|
-
export type ServiceInputTypes =
|
|
51
|
-
|
|
54
|
+
export type ServiceInputTypes =
|
|
55
|
+
| CreateOAuth2TokenCommandInput
|
|
56
|
+
| CreateOAuth2TokenWithIAMCommandInput;
|
|
57
|
+
export type ServiceOutputTypes =
|
|
58
|
+
| CreateOAuth2TokenCommandOutput
|
|
59
|
+
| CreateOAuth2TokenWithIAMCommandOutput;
|
|
52
60
|
export interface ClientDefaults
|
|
53
61
|
extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
54
62
|
requestHandler?: __HttpHandlerUserInput;
|
package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/commandBuilder.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { EndpointParameterInstructions } from "@smithy/types";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
ServiceInputTypes,
|
|
4
|
+
ServiceOutputTypes,
|
|
5
|
+
SigninClientResolvedConfig,
|
|
6
|
+
} from "./SigninClient";
|
|
3
7
|
export declare const command: <
|
|
4
|
-
I extends
|
|
5
|
-
O extends
|
|
8
|
+
I extends ServiceInputTypes,
|
|
9
|
+
O extends ServiceOutputTypes
|
|
6
10
|
>(
|
|
7
11
|
added: EndpointParameterInstructions,
|
|
8
12
|
plugins: (
|
|
@@ -19,8 +23,8 @@ export declare const command: <
|
|
|
19
23
|
I,
|
|
20
24
|
O,
|
|
21
25
|
SigninClientResolvedConfig,
|
|
22
|
-
|
|
23
|
-
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
24
28
|
>;
|
|
25
29
|
new (
|
|
26
30
|
...[input]: import("@smithy/types").OptionalParameter<I>
|
|
@@ -28,12 +32,13 @@ export declare const command: <
|
|
|
28
32
|
I,
|
|
29
33
|
O,
|
|
30
34
|
SigninClientResolvedConfig,
|
|
31
|
-
|
|
32
|
-
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
33
37
|
>;
|
|
34
38
|
getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
35
39
|
};
|
|
36
40
|
export declare const _ep0: EndpointParameterInstructions;
|
|
41
|
+
export declare const _ep1: EndpointParameterInstructions;
|
|
37
42
|
export declare const _mw0: (
|
|
38
43
|
Command: any,
|
|
39
44
|
cs: any,
|
|
@@ -16,8 +16,8 @@ declare const CreateOAuth2TokenCommand_base: {
|
|
|
16
16
|
CreateOAuth2TokenCommandInput,
|
|
17
17
|
CreateOAuth2TokenCommandOutput,
|
|
18
18
|
import("..").SigninClientResolvedConfig,
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
import("..").ServiceInputTypes,
|
|
20
|
+
import("..").ServiceOutputTypes
|
|
21
21
|
>;
|
|
22
22
|
new (
|
|
23
23
|
input: CreateOAuth2TokenCommandInput
|
|
@@ -25,8 +25,8 @@ declare const CreateOAuth2TokenCommand_base: {
|
|
|
25
25
|
CreateOAuth2TokenCommandInput,
|
|
26
26
|
CreateOAuth2TokenCommandOutput,
|
|
27
27
|
import("..").SigninClientResolvedConfig,
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
import("..").ServiceInputTypes,
|
|
29
|
+
import("..").ServiceOutputTypes
|
|
30
30
|
>;
|
|
31
31
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
32
32
|
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
CreateOAuth2TokenWithIAMRequest,
|
|
4
|
+
CreateOAuth2TokenWithIAMResponse,
|
|
5
|
+
} from "../models/models_0";
|
|
6
|
+
export { __MetadataBearer };
|
|
7
|
+
export interface CreateOAuth2TokenWithIAMCommandInput
|
|
8
|
+
extends CreateOAuth2TokenWithIAMRequest {}
|
|
9
|
+
export interface CreateOAuth2TokenWithIAMCommandOutput
|
|
10
|
+
extends CreateOAuth2TokenWithIAMResponse,
|
|
11
|
+
__MetadataBearer {}
|
|
12
|
+
declare const CreateOAuth2TokenWithIAMCommand_base: {
|
|
13
|
+
new (
|
|
14
|
+
input: CreateOAuth2TokenWithIAMCommandInput
|
|
15
|
+
): import("@smithy/core/client").CommandImpl<
|
|
16
|
+
CreateOAuth2TokenWithIAMCommandInput,
|
|
17
|
+
CreateOAuth2TokenWithIAMCommandOutput,
|
|
18
|
+
import("..").SigninClientResolvedConfig,
|
|
19
|
+
import("..").ServiceInputTypes,
|
|
20
|
+
import("..").ServiceOutputTypes
|
|
21
|
+
>;
|
|
22
|
+
new (
|
|
23
|
+
input: CreateOAuth2TokenWithIAMCommandInput
|
|
24
|
+
): import("@smithy/core/client").CommandImpl<
|
|
25
|
+
CreateOAuth2TokenWithIAMCommandInput,
|
|
26
|
+
CreateOAuth2TokenWithIAMCommandOutput,
|
|
27
|
+
import("..").SigninClientResolvedConfig,
|
|
28
|
+
import("..").ServiceInputTypes,
|
|
29
|
+
import("..").ServiceOutputTypes
|
|
30
|
+
>;
|
|
31
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
32
|
+
};
|
|
33
|
+
export declare class CreateOAuth2TokenWithIAMCommand extends CreateOAuth2TokenWithIAMCommand_base {
|
|
34
|
+
protected static __types: {
|
|
35
|
+
api: {
|
|
36
|
+
input: CreateOAuth2TokenWithIAMRequest;
|
|
37
|
+
output: CreateOAuth2TokenWithIAMResponse;
|
|
38
|
+
};
|
|
39
|
+
sdk: {
|
|
40
|
+
input: CreateOAuth2TokenWithIAMCommandInput;
|
|
41
|
+
output: CreateOAuth2TokenWithIAMCommandOutput;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
}
|
package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/models/models_0.d.ts
CHANGED
|
@@ -24,3 +24,12 @@ export interface CreateOAuth2TokenResponseBody {
|
|
|
24
24
|
export interface CreateOAuth2TokenResponse {
|
|
25
25
|
tokenOutput: CreateOAuth2TokenResponseBody | undefined;
|
|
26
26
|
}
|
|
27
|
+
export interface CreateOAuth2TokenWithIAMRequest {
|
|
28
|
+
grantType: string | undefined;
|
|
29
|
+
resource: string | undefined;
|
|
30
|
+
}
|
|
31
|
+
export interface CreateOAuth2TokenWithIAMResponse {
|
|
32
|
+
accessToken: string | undefined;
|
|
33
|
+
tokenType: string | undefined;
|
|
34
|
+
expiresIn: number | undefined;
|
|
35
|
+
}
|
|
@@ -15,4 +15,7 @@ export declare var CreateOAuth2TokenRequest$: StaticStructureSchema;
|
|
|
15
15
|
export declare var CreateOAuth2TokenRequestBody$: StaticStructureSchema;
|
|
16
16
|
export declare var CreateOAuth2TokenResponse$: StaticStructureSchema;
|
|
17
17
|
export declare var CreateOAuth2TokenResponseBody$: StaticStructureSchema;
|
|
18
|
+
export declare var CreateOAuth2TokenWithIAMRequest$: StaticStructureSchema;
|
|
19
|
+
export declare var CreateOAuth2TokenWithIAMResponse$: StaticStructureSchema;
|
|
18
20
|
export declare var CreateOAuth2Token$: StaticOperationSchema;
|
|
21
|
+
export declare var CreateOAuth2TokenWithIAM$: StaticOperationSchema;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/nested-clients",
|
|
3
|
-
"version": "3.997.
|
|
3
|
+
"version": "3.997.32",
|
|
4
4
|
"description": "Nested clients for AWS SDK packages.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
},
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@aws-sdk/core": "^3.975.
|
|
32
|
-
"@aws-sdk/signature-v4-multi-region": "^3.996.
|
|
33
|
-
"@aws-sdk/types": "^3.974.
|
|
34
|
-
"@smithy/core": "^3.29.
|
|
35
|
-
"@smithy/fetch-http-handler": "^5.6.
|
|
36
|
-
"@smithy/node-http-handler": "^4.9.
|
|
37
|
-
"@smithy/types": "^4.16.
|
|
31
|
+
"@aws-sdk/core": "^3.975.2",
|
|
32
|
+
"@aws-sdk/signature-v4-multi-region": "^3.996.40",
|
|
33
|
+
"@aws-sdk/types": "^3.974.1",
|
|
34
|
+
"@smithy/core": "^3.29.3",
|
|
35
|
+
"@smithy/fetch-http-handler": "^5.6.5",
|
|
36
|
+
"@smithy/node-http-handler": "^4.9.5",
|
|
37
|
+
"@smithy/types": "^4.16.1",
|
|
38
38
|
"tslib": "^2.6.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
@@ -47,6 +47,9 @@
|
|
|
47
47
|
"<4.5": {
|
|
48
48
|
"dist-types/*": [
|
|
49
49
|
"dist-types/ts3.4/*"
|
|
50
|
+
],
|
|
51
|
+
"*": [
|
|
52
|
+
"dist-types/ts3.4/submodules/*/index.d.ts"
|
|
50
53
|
]
|
|
51
54
|
}
|
|
52
55
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/signature-v4-multi-region",
|
|
3
|
-
"version": "3.996.
|
|
3
|
+
"version": "3.996.40",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
6
6
|
"build:browser": "node ./test-browser/browser-build/esbuild",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@aws-sdk/types": "^3.974.
|
|
29
|
+
"@aws-sdk/types": "^3.974.1",
|
|
30
30
|
"@smithy/signature-v4": "^5.6.3",
|
|
31
|
-
"@smithy/types": "^4.16.
|
|
31
|
+
"@smithy/types": "^4.16.1",
|
|
32
32
|
"tslib": "^2.6.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/token-providers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1087.0",
|
|
4
4
|
"description": "A collection of token providers",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
},
|
|
30
30
|
"license": "Apache-2.0",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@aws-sdk/core": "^3.975.
|
|
33
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
34
|
-
"@aws-sdk/types": "^3.974.
|
|
35
|
-
"@smithy/core": "^3.29.
|
|
36
|
-
"@smithy/types": "^4.16.
|
|
32
|
+
"@aws-sdk/core": "^3.975.2",
|
|
33
|
+
"@aws-sdk/nested-clients": "^3.997.32",
|
|
34
|
+
"@aws-sdk/types": "^3.974.1",
|
|
35
|
+
"@smithy/core": "^3.29.3",
|
|
36
|
+
"@smithy/types": "^4.16.1",
|
|
37
37
|
"tslib": "^2.6.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/types",
|
|
3
|
-
"version": "3.974.
|
|
3
|
+
"version": "3.974.1",
|
|
4
4
|
"main": "./dist-cjs/index.js",
|
|
5
5
|
"module": "./dist-es/index.js",
|
|
6
6
|
"types": "./dist-types/index.d.ts",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"directory": "packages-internal/types"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@smithy/types": "^4.16.
|
|
45
|
+
"@smithy/types": "^4.16.1",
|
|
46
46
|
"tslib": "^2.6.2"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
@@ -928,7 +928,7 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
928
928
|
try {
|
|
929
929
|
contents.headers["content-length"] = String(calculateBodyLength(body));
|
|
930
930
|
}
|
|
931
|
-
catch (
|
|
931
|
+
catch (ignored) { }
|
|
932
932
|
}
|
|
933
933
|
return new HttpRequest(contents);
|
|
934
934
|
};
|
|
@@ -1177,7 +1177,7 @@ class SmithyRpcV2CborProtocol extends RpcProtocol {
|
|
|
1177
1177
|
try {
|
|
1178
1178
|
request.headers["content-length"] = String(request.body.byteLength);
|
|
1179
1179
|
}
|
|
1180
|
-
catch (
|
|
1180
|
+
catch (ignored) { }
|
|
1181
1181
|
}
|
|
1182
1182
|
const { service, operation } = getSmithyContext(context);
|
|
1183
1183
|
const path = `/service/${service}/operation/${operation}`;
|
|
@@ -1209,7 +1209,7 @@ class SmithyRpcV2CborProtocol extends RpcProtocol {
|
|
|
1209
1209
|
try {
|
|
1210
1210
|
errorSchema = registry.getSchema(errorName);
|
|
1211
1211
|
}
|
|
1212
|
-
catch (
|
|
1212
|
+
catch (ignored) {
|
|
1213
1213
|
if (dataObject.Message) {
|
|
1214
1214
|
dataObject.message = dataObject.Message;
|
|
1215
1215
|
}
|
|
@@ -245,7 +245,7 @@ const getResolvedSigningRegion = (hostname, { signingRegion, regionRegex, useFip
|
|
|
245
245
|
|
|
246
246
|
const getRegionInfo = (region, { useFipsEndpoint = false, useDualstackEndpoint = false, signingService, regionHash, partitionHash, }) => {
|
|
247
247
|
const partition = getResolvedPartition(region, { partitionHash });
|
|
248
|
-
const resolvedRegion = region in regionHash ? region : partitionHash[partition]?.endpoint ?? region;
|
|
248
|
+
const resolvedRegion = region in regionHash ? region : (partitionHash[partition]?.endpoint ?? region);
|
|
249
249
|
const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint };
|
|
250
250
|
const regionHostname = getHostnameFromVariants(regionHash[resolvedRegion]?.variants, hostnameOptions);
|
|
251
251
|
const partitionHostname = getHostnameFromVariants(partitionHash[partition]?.variants, hostnameOptions);
|
|
@@ -291,7 +291,7 @@ const resolveDefaultsModeConfig = ({ defaultsMode, } = {}) => memoize(async () =
|
|
|
291
291
|
const useMobileConfiguration = () => {
|
|
292
292
|
const navigator = window?.navigator;
|
|
293
293
|
if (navigator?.connection) {
|
|
294
|
-
const { effectiveType, rtt, downlink } = navigator
|
|
294
|
+
const { effectiveType, rtt, downlink } = navigator.connection;
|
|
295
295
|
const slow = (typeof effectiveType === "string" && effectiveType !== "4g") || Number(rtt) > 100 || Number(downlink) < 10;
|
|
296
296
|
if (slow) {
|
|
297
297
|
return true;
|
|
@@ -207,7 +207,7 @@ const getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || join(getHomeDir(
|
|
|
207
207
|
const ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
|
|
208
208
|
const getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || join(getHomeDir(), ".aws", "credentials");
|
|
209
209
|
|
|
210
|
-
const prefixKeyRegex = /^([\w-]+)\s(["'])?([\w
|
|
210
|
+
const prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/;
|
|
211
211
|
const profileNameBlockList = ["__proto__", "profile __proto__"];
|
|
212
212
|
const parseIni = (iniData) => {
|
|
213
213
|
const map = {};
|
|
@@ -355,7 +355,7 @@ function getSelectorName(functionString) {
|
|
|
355
355
|
constants.delete("ENV");
|
|
356
356
|
return [...constants].join(", ");
|
|
357
357
|
}
|
|
358
|
-
catch (
|
|
358
|
+
catch (ignored) {
|
|
359
359
|
return functionString;
|
|
360
360
|
}
|
|
361
361
|
}
|
|
@@ -659,7 +659,7 @@ const getResolvedSigningRegion = (hostname, { signingRegion, regionRegex, useFip
|
|
|
659
659
|
|
|
660
660
|
const getRegionInfo = (region, { useFipsEndpoint = false, useDualstackEndpoint = false, signingService, regionHash, partitionHash, }) => {
|
|
661
661
|
const partition = getResolvedPartition(region, { partitionHash });
|
|
662
|
-
const resolvedRegion = region in regionHash ? region : partitionHash[partition]?.endpoint ?? region;
|
|
662
|
+
const resolvedRegion = region in regionHash ? region : (partitionHash[partition]?.endpoint ?? region);
|
|
663
663
|
const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint };
|
|
664
664
|
const regionHostname = getHostnameFromVariants(regionHash[resolvedRegion]?.variants, hostnameOptions);
|
|
665
665
|
const partitionHostname = getHostnameFromVariants(partitionHash[partition]?.variants, hostnameOptions);
|