mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-09-02 05:55:10 +09:00
Compare commits
29 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 010d0da01d | |||
| b48e2ee5c6 | |||
| 183b94a269 | |||
| 1d4ae371e5 | |||
| 6a430ce1a4 | |||
| 8402193770 | |||
| f31c158843 | |||
| 164817a8f8 | |||
| e2c335e163 | |||
| a1a09b7ff2 | |||
| 53bf02c02f | |||
| 6960539309 | |||
| 83ceb16ee1 | |||
| 5cb52d02e4 | |||
| fbaaea8490 | |||
| 0d9b446851 | |||
| 51e898662e | |||
| dc894b4148 | |||
| 4f8ea089cf | |||
| ff5c452440 | |||
| 96cd64d434 | |||
| 3d11655d76 | |||
| e50f96d7c7 | |||
| 8025ae060f | |||
| bc2200e43c | |||
| 155b315cee | |||
| 59d2ad0a59 | |||
| 1067f72d75 | |||
| 393929845e |
+9
-27
@@ -2,15 +2,9 @@ queue_rules:
|
|||||||
- name: default
|
- name: default
|
||||||
conditions:
|
conditions:
|
||||||
# Conditions to merge a queued PR
|
# Conditions to merge a queued PR
|
||||||
- check-success=Run unit tests (windows-latest, 14)
|
- check-success=Run unit tests (windows-latest)
|
||||||
- check-success=Run unit tests (windows-latest, 16)
|
- check-success=Run unit tests (ubuntu-latest)
|
||||||
- check-success=Run unit tests (windows-latest, 18)
|
- check-success=Run unit tests (macos-latest)
|
||||||
- check-success=Run unit tests (ubuntu-latest, 14)
|
|
||||||
- check-success=Run unit tests (ubuntu-latest, 16)
|
|
||||||
- check-success=Run unit tests (ubuntu-latest, 18)
|
|
||||||
- check-success=Run unit tests (macos-latest, 14)
|
|
||||||
- check-success=Run unit tests (macos-latest, 16)
|
|
||||||
- check-success=Run unit tests (macos-latest, 18)
|
|
||||||
- "#approved-reviews-by>=1"
|
- "#approved-reviews-by>=1"
|
||||||
- -approved-reviews-by~=author
|
- -approved-reviews-by~=author
|
||||||
|
|
||||||
@@ -20,15 +14,9 @@ pull_request_rules:
|
|||||||
- base~=main|integ-tests
|
- base~=main|integ-tests
|
||||||
- "#approved-reviews-by>=1"
|
- "#approved-reviews-by>=1"
|
||||||
- -approved-reviews-by~=author
|
- -approved-reviews-by~=author
|
||||||
- check-success=Run unit tests (windows-latest, 14)
|
- check-success=Run unit tests (windows-latest)
|
||||||
- check-success=Run unit tests (windows-latest, 16)
|
- check-success=Run unit tests (ubuntu-latest)
|
||||||
- check-success=Run unit tests (windows-latest, 18)
|
- check-success=Run unit tests (macos-latest)
|
||||||
- check-success=Run unit tests (ubuntu-latest, 14)
|
|
||||||
- check-success=Run unit tests (ubuntu-latest, 16)
|
|
||||||
- check-success=Run unit tests (ubuntu-latest, 18)
|
|
||||||
- check-success=Run unit tests (macos-latest, 14)
|
|
||||||
- check-success=Run unit tests (macos-latest, 16)
|
|
||||||
- check-success=Run unit tests (macos-latest, 18)
|
|
||||||
- label!=work-in-progress
|
- label!=work-in-progress
|
||||||
- -title~=(WIP|wip)
|
- -title~=(WIP|wip)
|
||||||
- -merged
|
- -merged
|
||||||
@@ -43,15 +31,9 @@ pull_request_rules:
|
|||||||
conditions:
|
conditions:
|
||||||
- base~=main
|
- base~=main
|
||||||
- author=dependabot[bot]
|
- author=dependabot[bot]
|
||||||
- check-success=Run unit tests (windows-latest, 14)
|
- check-success=Run unit tests (windows-latest)
|
||||||
- check-success=Run unit tests (windows-latest, 16)
|
- check-success=Run unit tests (ubuntu-latest)
|
||||||
- check-success=Run unit tests (windows-latest, 18)
|
- check-success=Run unit tests (macos-latest)
|
||||||
- check-success=Run unit tests (ubuntu-latest, 14)
|
|
||||||
- check-success=Run unit tests (ubuntu-latest, 16)
|
|
||||||
- check-success=Run unit tests (ubuntu-latest, 18)
|
|
||||||
- check-success=Run unit tests (macos-latest, 14)
|
|
||||||
- check-success=Run unit tests (macos-latest, 16)
|
|
||||||
- check-success=Run unit tests (macos-latest, 18)
|
|
||||||
- -title~=(WIP|wip)
|
- -title~=(WIP|wip)
|
||||||
- -label~=(blocked|do-not-merge)
|
- -label~=(blocked|do-not-merge)
|
||||||
- -merged
|
- -merged
|
||||||
|
|||||||
@@ -2,6 +2,11 @@
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||||
|
|
||||||
|
## [4.0.1](https://github.com/aws-actions/configure-aws-credentials/compare/v4.0.0...v4.0.1) (2023-10-03)
|
||||||
|
|
||||||
|
### Documentation
|
||||||
|
* Throw a warning when customers use long-term credentials.
|
||||||
|
|
||||||
## [4.0.0](https://github.com/aws-actions/configure-aws-credentials/compare/v3.0.2...v4.0.0) (2023-09-11)
|
## [4.0.0](https://github.com/aws-actions/configure-aws-credentials/compare/v3.0.2...v4.0.0) (2023-09-11)
|
||||||
|
|
||||||
* Upgraded runtime to `node20` from `node16`
|
* Upgraded runtime to `node20` from `node16`
|
||||||
|
|||||||
@@ -9,6 +9,14 @@ calls.
|
|||||||
|
|
||||||
### Recent News
|
### Recent News
|
||||||
|
|
||||||
|
#### Long-term credentials warning (10/3/23)
|
||||||
|
|
||||||
|
We have added a warning when using long-term credentials to access AWS
|
||||||
|
(IAM access keys and secret keys). Using long-term credentials requires you
|
||||||
|
to create IAM users and properly secure the access keys to prevent their disclosure.
|
||||||
|
A better approach is to use [GitHub's support for OpenID Connect](#OIDC) to authenticate
|
||||||
|
using an IAM role to generate temporary security credentials.
|
||||||
|
|
||||||
#### v4 Announcement (9/11/23)
|
#### v4 Announcement (9/11/23)
|
||||||
|
|
||||||
We have just released `v4` of Configure AWS Credentials. The only thing that
|
We have just released `v4` of Configure AWS Credentials. The only thing that
|
||||||
|
|||||||
+204
@@ -3307,6 +3307,210 @@ Apache-2.0
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
|
|
||||||
|
|
||||||
|
@aws-sdk/region-config-resolver
|
||||||
|
Apache-2.0
|
||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
other entities that control, are controlled by, or are under common
|
||||||
|
control with that entity. For the purposes of this definition,
|
||||||
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
|
direction or management of such entity, whether by contract or
|
||||||
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
|
including but not limited to software source code, documentation
|
||||||
|
source, and configuration files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical
|
||||||
|
transformation or translation of a Source form, including but
|
||||||
|
not limited to compiled object code, generated documentation,
|
||||||
|
and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
|
Object form, made available under the License, as indicated by a
|
||||||
|
copyright notice that is included in or attached to the work
|
||||||
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
|
form, that is based on (or derived from) the Work and for which the
|
||||||
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
|
of this License, Derivative Works shall not include works that remain
|
||||||
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including
|
||||||
|
the original version of the Work and any modifications or additions
|
||||||
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
|
means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
|
communication on electronic mailing lists, source code control systems,
|
||||||
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
|
excluding communication that is conspicuously marked or otherwise
|
||||||
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
(except as stated in this section) patent license to make, have made,
|
||||||
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
|
where such license applies only to those patent claims licensable
|
||||||
|
by such Contributor that are necessarily infringed by their
|
||||||
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
|
institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
|
or contributory patent infringement, then any patent licenses
|
||||||
|
granted to You under this License for that Work shall terminate
|
||||||
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
|
modifications, and in Source or Object form, provided that You
|
||||||
|
meet the following conditions:
|
||||||
|
|
||||||
|
(a) You must give any other recipients of the Work or
|
||||||
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
|
(b) You must cause any modified files to carry prominent notices
|
||||||
|
stating that You changed the files; and
|
||||||
|
|
||||||
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
|
that You distribute, all copyright, patent, trademark, and
|
||||||
|
attribution notices from the Source form of the Work,
|
||||||
|
excluding those notices that do not pertain to any part of
|
||||||
|
the Derivative Works; and
|
||||||
|
|
||||||
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
|
distribution, then any Derivative Works that You distribute must
|
||||||
|
include a readable copy of the attribution notices contained
|
||||||
|
within such NOTICE file, excluding those notices that do not
|
||||||
|
pertain to any part of the Derivative Works, in at least one
|
||||||
|
of the following places: within a NOTICE text file distributed
|
||||||
|
as part of the Derivative Works; within the Source form or
|
||||||
|
documentation, if provided along with the Derivative Works; or,
|
||||||
|
within a display generated by the Derivative Works, if and
|
||||||
|
wherever such third-party notices normally appear. The contents
|
||||||
|
of the NOTICE file are for informational purposes only and
|
||||||
|
do not modify the License. You may add Your own attribution
|
||||||
|
notices within Derivative Works that You distribute, alongside
|
||||||
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
|
that such additional attribution notices cannot be construed
|
||||||
|
as modifying the License.
|
||||||
|
|
||||||
|
You may add Your own copyright statement to Your modifications and
|
||||||
|
may provide additional or different license terms and conditions
|
||||||
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
|
the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
|
this License, without any additional terms or conditions.
|
||||||
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
|
the terms of any separate license agreement you may have executed
|
||||||
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
|
except as required for reasonable and customary use in describing the
|
||||||
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
implied, including, without limitation, any warranties or conditions
|
||||||
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
|
appropriateness of using or redistributing the Work and assume any
|
||||||
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
|
unless required by applicable law (such as deliberate and grossly
|
||||||
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
|
liable to You for damages, including any direct, indirect, special,
|
||||||
|
incidental, or consequential damages of any character arising as a
|
||||||
|
result of this License or out of the use or inability to use the
|
||||||
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
|
other commercial damages or losses), even if such Contributor
|
||||||
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
|
or other liability obligations and/or rights consistent with this
|
||||||
|
License. However, in accepting such obligations, You may act only
|
||||||
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
|
defend, and hold each Contributor harmless for any liability
|
||||||
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following
|
||||||
|
boilerplate notice, with the fields enclosed by brackets "{}"
|
||||||
|
replaced with your own identifying information. (Don't include
|
||||||
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
|
comment syntax for the file format. We also recommend that a
|
||||||
|
file or class name and description of purpose be included on the
|
||||||
|
same "printed page" as the copyright notice for easier
|
||||||
|
identification within third-party archives.
|
||||||
|
|
||||||
|
Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
|
||||||
@aws-sdk/token-providers
|
@aws-sdk/token-providers
|
||||||
Apache-2.0
|
Apache-2.0
|
||||||
Apache License
|
Apache License
|
||||||
|
|||||||
+476
-55
@@ -558,7 +558,7 @@ class OidcClient {
|
|||||||
.catch(error => {
|
.catch(error => {
|
||||||
throw new Error(`Failed to get ID Token. \n
|
throw new Error(`Failed to get ID Token. \n
|
||||||
Error Code : ${error.statusCode}\n
|
Error Code : ${error.statusCode}\n
|
||||||
Error Message: ${error.result.message}`);
|
Error Message: ${error.message}`);
|
||||||
});
|
});
|
||||||
const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
|
const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
|
||||||
if (!id_token) {
|
if (!id_token) {
|
||||||
@@ -2447,6 +2447,7 @@ const middleware_endpoint_1 = __nccwpck_require__(82918);
|
|||||||
const middleware_serde_1 = __nccwpck_require__(81238);
|
const middleware_serde_1 = __nccwpck_require__(81238);
|
||||||
const smithy_client_1 = __nccwpck_require__(63570);
|
const smithy_client_1 = __nccwpck_require__(63570);
|
||||||
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
||||||
|
const types_1 = __nccwpck_require__(55756);
|
||||||
const models_0_1 = __nccwpck_require__(66390);
|
const models_0_1 = __nccwpck_require__(66390);
|
||||||
const Aws_restJson1_1 = __nccwpck_require__(98507);
|
const Aws_restJson1_1 = __nccwpck_require__(98507);
|
||||||
class GetRoleCredentialsCommand extends smithy_client_1.Command {
|
class GetRoleCredentialsCommand extends smithy_client_1.Command {
|
||||||
@@ -2475,6 +2476,10 @@ class GetRoleCredentialsCommand extends smithy_client_1.Command {
|
|||||||
commandName,
|
commandName,
|
||||||
inputFilterSensitiveLog: models_0_1.GetRoleCredentialsRequestFilterSensitiveLog,
|
inputFilterSensitiveLog: models_0_1.GetRoleCredentialsRequestFilterSensitiveLog,
|
||||||
outputFilterSensitiveLog: models_0_1.GetRoleCredentialsResponseFilterSensitiveLog,
|
outputFilterSensitiveLog: models_0_1.GetRoleCredentialsResponseFilterSensitiveLog,
|
||||||
|
[types_1.SMITHY_CONTEXT_KEY]: {
|
||||||
|
service: "SWBPortalService",
|
||||||
|
operation: "GetRoleCredentials",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const { requestHandler } = configuration;
|
const { requestHandler } = configuration;
|
||||||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
||||||
@@ -2502,6 +2507,7 @@ const middleware_endpoint_1 = __nccwpck_require__(82918);
|
|||||||
const middleware_serde_1 = __nccwpck_require__(81238);
|
const middleware_serde_1 = __nccwpck_require__(81238);
|
||||||
const smithy_client_1 = __nccwpck_require__(63570);
|
const smithy_client_1 = __nccwpck_require__(63570);
|
||||||
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
||||||
|
const types_1 = __nccwpck_require__(55756);
|
||||||
const models_0_1 = __nccwpck_require__(66390);
|
const models_0_1 = __nccwpck_require__(66390);
|
||||||
const Aws_restJson1_1 = __nccwpck_require__(98507);
|
const Aws_restJson1_1 = __nccwpck_require__(98507);
|
||||||
class ListAccountRolesCommand extends smithy_client_1.Command {
|
class ListAccountRolesCommand extends smithy_client_1.Command {
|
||||||
@@ -2530,6 +2536,10 @@ class ListAccountRolesCommand extends smithy_client_1.Command {
|
|||||||
commandName,
|
commandName,
|
||||||
inputFilterSensitiveLog: models_0_1.ListAccountRolesRequestFilterSensitiveLog,
|
inputFilterSensitiveLog: models_0_1.ListAccountRolesRequestFilterSensitiveLog,
|
||||||
outputFilterSensitiveLog: (_) => _,
|
outputFilterSensitiveLog: (_) => _,
|
||||||
|
[types_1.SMITHY_CONTEXT_KEY]: {
|
||||||
|
service: "SWBPortalService",
|
||||||
|
operation: "ListAccountRoles",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const { requestHandler } = configuration;
|
const { requestHandler } = configuration;
|
||||||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
||||||
@@ -2557,6 +2567,7 @@ const middleware_endpoint_1 = __nccwpck_require__(82918);
|
|||||||
const middleware_serde_1 = __nccwpck_require__(81238);
|
const middleware_serde_1 = __nccwpck_require__(81238);
|
||||||
const smithy_client_1 = __nccwpck_require__(63570);
|
const smithy_client_1 = __nccwpck_require__(63570);
|
||||||
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
||||||
|
const types_1 = __nccwpck_require__(55756);
|
||||||
const models_0_1 = __nccwpck_require__(66390);
|
const models_0_1 = __nccwpck_require__(66390);
|
||||||
const Aws_restJson1_1 = __nccwpck_require__(98507);
|
const Aws_restJson1_1 = __nccwpck_require__(98507);
|
||||||
class ListAccountsCommand extends smithy_client_1.Command {
|
class ListAccountsCommand extends smithy_client_1.Command {
|
||||||
@@ -2585,6 +2596,10 @@ class ListAccountsCommand extends smithy_client_1.Command {
|
|||||||
commandName,
|
commandName,
|
||||||
inputFilterSensitiveLog: models_0_1.ListAccountsRequestFilterSensitiveLog,
|
inputFilterSensitiveLog: models_0_1.ListAccountsRequestFilterSensitiveLog,
|
||||||
outputFilterSensitiveLog: (_) => _,
|
outputFilterSensitiveLog: (_) => _,
|
||||||
|
[types_1.SMITHY_CONTEXT_KEY]: {
|
||||||
|
service: "SWBPortalService",
|
||||||
|
operation: "ListAccounts",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const { requestHandler } = configuration;
|
const { requestHandler } = configuration;
|
||||||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
||||||
@@ -2612,6 +2627,7 @@ const middleware_endpoint_1 = __nccwpck_require__(82918);
|
|||||||
const middleware_serde_1 = __nccwpck_require__(81238);
|
const middleware_serde_1 = __nccwpck_require__(81238);
|
||||||
const smithy_client_1 = __nccwpck_require__(63570);
|
const smithy_client_1 = __nccwpck_require__(63570);
|
||||||
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
||||||
|
const types_1 = __nccwpck_require__(55756);
|
||||||
const models_0_1 = __nccwpck_require__(66390);
|
const models_0_1 = __nccwpck_require__(66390);
|
||||||
const Aws_restJson1_1 = __nccwpck_require__(98507);
|
const Aws_restJson1_1 = __nccwpck_require__(98507);
|
||||||
class LogoutCommand extends smithy_client_1.Command {
|
class LogoutCommand extends smithy_client_1.Command {
|
||||||
@@ -2640,6 +2656,10 @@ class LogoutCommand extends smithy_client_1.Command {
|
|||||||
commandName,
|
commandName,
|
||||||
inputFilterSensitiveLog: models_0_1.LogoutRequestFilterSensitiveLog,
|
inputFilterSensitiveLog: models_0_1.LogoutRequestFilterSensitiveLog,
|
||||||
outputFilterSensitiveLog: (_) => _,
|
outputFilterSensitiveLog: (_) => _,
|
||||||
|
[types_1.SMITHY_CONTEXT_KEY]: {
|
||||||
|
service: "SWBPortalService",
|
||||||
|
operation: "Logout",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const { requestHandler } = configuration;
|
const { requestHandler } = configuration;
|
||||||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
||||||
@@ -2718,9 +2738,9 @@ exports.defaultEndpointResolver = defaultEndpointResolver;
|
|||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.ruleSet = void 0;
|
exports.ruleSet = void 0;
|
||||||
const p = "required", q = "fn", r = "argv", s = "ref";
|
const s = "required", t = "fn", u = "argv", v = "ref";
|
||||||
const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [p]: false, "type": "String" }, f = { [p]: true, "default": false, "type": "Boolean" }, g = { [s]: "Endpoint" }, h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, j = {}, k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }, l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }, m = [g], n = [h], o = [i];
|
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "getAttr", g = { [s]: false, "type": "String" }, h = { [s]: true, "default": false, "type": "Boolean" }, i = { [v]: "Endpoint" }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, l = {}, m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }, n = { [v]: e }, o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }, p = [j], q = [k], r = [{ [v]: "Region" }];
|
||||||
const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
|
const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }, { conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, o], type: b, rules: [{ endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], endpoint: { url: "https://portal.sso.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
|
||||||
exports.ruleSet = _data;
|
exports.ruleSet = _data;
|
||||||
|
|
||||||
|
|
||||||
@@ -3436,16 +3456,22 @@ exports.getRuntimeConfig = getRuntimeConfig;
|
|||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.resolveRuntimeExtensions = void 0;
|
exports.resolveRuntimeExtensions = void 0;
|
||||||
|
const region_config_resolver_1 = __nccwpck_require__(18156);
|
||||||
|
const protocol_http_1 = __nccwpck_require__(64418);
|
||||||
const smithy_client_1 = __nccwpck_require__(63570);
|
const smithy_client_1 = __nccwpck_require__(63570);
|
||||||
const asPartial = (t) => t;
|
const asPartial = (t) => t;
|
||||||
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
||||||
const extensionConfiguration = {
|
const extensionConfiguration = {
|
||||||
|
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
||||||
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
||||||
|
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
||||||
};
|
};
|
||||||
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
||||||
return {
|
return {
|
||||||
...runtimeConfig,
|
...runtimeConfig,
|
||||||
|
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
||||||
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
||||||
|
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
||||||
@@ -3550,6 +3576,7 @@ const middleware_endpoint_1 = __nccwpck_require__(82918);
|
|||||||
const middleware_serde_1 = __nccwpck_require__(81238);
|
const middleware_serde_1 = __nccwpck_require__(81238);
|
||||||
const smithy_client_1 = __nccwpck_require__(63570);
|
const smithy_client_1 = __nccwpck_require__(63570);
|
||||||
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
||||||
|
const types_1 = __nccwpck_require__(55756);
|
||||||
const models_0_1 = __nccwpck_require__(21780);
|
const models_0_1 = __nccwpck_require__(21780);
|
||||||
const Aws_query_1 = __nccwpck_require__(10740);
|
const Aws_query_1 = __nccwpck_require__(10740);
|
||||||
class AssumeRoleCommand extends smithy_client_1.Command {
|
class AssumeRoleCommand extends smithy_client_1.Command {
|
||||||
@@ -3580,6 +3607,10 @@ class AssumeRoleCommand extends smithy_client_1.Command {
|
|||||||
commandName,
|
commandName,
|
||||||
inputFilterSensitiveLog: (_) => _,
|
inputFilterSensitiveLog: (_) => _,
|
||||||
outputFilterSensitiveLog: models_0_1.AssumeRoleResponseFilterSensitiveLog,
|
outputFilterSensitiveLog: models_0_1.AssumeRoleResponseFilterSensitiveLog,
|
||||||
|
[types_1.SMITHY_CONTEXT_KEY]: {
|
||||||
|
service: "AWSSecurityTokenServiceV20110615",
|
||||||
|
operation: "AssumeRole",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const { requestHandler } = configuration;
|
const { requestHandler } = configuration;
|
||||||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
||||||
@@ -3607,6 +3638,7 @@ const middleware_endpoint_1 = __nccwpck_require__(82918);
|
|||||||
const middleware_serde_1 = __nccwpck_require__(81238);
|
const middleware_serde_1 = __nccwpck_require__(81238);
|
||||||
const smithy_client_1 = __nccwpck_require__(63570);
|
const smithy_client_1 = __nccwpck_require__(63570);
|
||||||
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
||||||
|
const types_1 = __nccwpck_require__(55756);
|
||||||
const models_0_1 = __nccwpck_require__(21780);
|
const models_0_1 = __nccwpck_require__(21780);
|
||||||
const Aws_query_1 = __nccwpck_require__(10740);
|
const Aws_query_1 = __nccwpck_require__(10740);
|
||||||
class AssumeRoleWithSAMLCommand extends smithy_client_1.Command {
|
class AssumeRoleWithSAMLCommand extends smithy_client_1.Command {
|
||||||
@@ -3636,6 +3668,10 @@ class AssumeRoleWithSAMLCommand extends smithy_client_1.Command {
|
|||||||
commandName,
|
commandName,
|
||||||
inputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLRequestFilterSensitiveLog,
|
inputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLRequestFilterSensitiveLog,
|
||||||
outputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLResponseFilterSensitiveLog,
|
outputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLResponseFilterSensitiveLog,
|
||||||
|
[types_1.SMITHY_CONTEXT_KEY]: {
|
||||||
|
service: "AWSSecurityTokenServiceV20110615",
|
||||||
|
operation: "AssumeRoleWithSAML",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const { requestHandler } = configuration;
|
const { requestHandler } = configuration;
|
||||||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
||||||
@@ -3663,6 +3699,7 @@ const middleware_endpoint_1 = __nccwpck_require__(82918);
|
|||||||
const middleware_serde_1 = __nccwpck_require__(81238);
|
const middleware_serde_1 = __nccwpck_require__(81238);
|
||||||
const smithy_client_1 = __nccwpck_require__(63570);
|
const smithy_client_1 = __nccwpck_require__(63570);
|
||||||
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
||||||
|
const types_1 = __nccwpck_require__(55756);
|
||||||
const models_0_1 = __nccwpck_require__(21780);
|
const models_0_1 = __nccwpck_require__(21780);
|
||||||
const Aws_query_1 = __nccwpck_require__(10740);
|
const Aws_query_1 = __nccwpck_require__(10740);
|
||||||
class AssumeRoleWithWebIdentityCommand extends smithy_client_1.Command {
|
class AssumeRoleWithWebIdentityCommand extends smithy_client_1.Command {
|
||||||
@@ -3692,6 +3729,10 @@ class AssumeRoleWithWebIdentityCommand extends smithy_client_1.Command {
|
|||||||
commandName,
|
commandName,
|
||||||
inputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityRequestFilterSensitiveLog,
|
inputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityRequestFilterSensitiveLog,
|
||||||
outputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityResponseFilterSensitiveLog,
|
outputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityResponseFilterSensitiveLog,
|
||||||
|
[types_1.SMITHY_CONTEXT_KEY]: {
|
||||||
|
service: "AWSSecurityTokenServiceV20110615",
|
||||||
|
operation: "AssumeRoleWithWebIdentity",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const { requestHandler } = configuration;
|
const { requestHandler } = configuration;
|
||||||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
||||||
@@ -3720,6 +3761,7 @@ const middleware_endpoint_1 = __nccwpck_require__(82918);
|
|||||||
const middleware_serde_1 = __nccwpck_require__(81238);
|
const middleware_serde_1 = __nccwpck_require__(81238);
|
||||||
const smithy_client_1 = __nccwpck_require__(63570);
|
const smithy_client_1 = __nccwpck_require__(63570);
|
||||||
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
||||||
|
const types_1 = __nccwpck_require__(55756);
|
||||||
const Aws_query_1 = __nccwpck_require__(10740);
|
const Aws_query_1 = __nccwpck_require__(10740);
|
||||||
class DecodeAuthorizationMessageCommand extends smithy_client_1.Command {
|
class DecodeAuthorizationMessageCommand extends smithy_client_1.Command {
|
||||||
static getEndpointParameterInstructions() {
|
static getEndpointParameterInstructions() {
|
||||||
@@ -3749,6 +3791,10 @@ class DecodeAuthorizationMessageCommand extends smithy_client_1.Command {
|
|||||||
commandName,
|
commandName,
|
||||||
inputFilterSensitiveLog: (_) => _,
|
inputFilterSensitiveLog: (_) => _,
|
||||||
outputFilterSensitiveLog: (_) => _,
|
outputFilterSensitiveLog: (_) => _,
|
||||||
|
[types_1.SMITHY_CONTEXT_KEY]: {
|
||||||
|
service: "AWSSecurityTokenServiceV20110615",
|
||||||
|
operation: "DecodeAuthorizationMessage",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const { requestHandler } = configuration;
|
const { requestHandler } = configuration;
|
||||||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
||||||
@@ -3777,6 +3823,7 @@ const middleware_endpoint_1 = __nccwpck_require__(82918);
|
|||||||
const middleware_serde_1 = __nccwpck_require__(81238);
|
const middleware_serde_1 = __nccwpck_require__(81238);
|
||||||
const smithy_client_1 = __nccwpck_require__(63570);
|
const smithy_client_1 = __nccwpck_require__(63570);
|
||||||
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
||||||
|
const types_1 = __nccwpck_require__(55756);
|
||||||
const Aws_query_1 = __nccwpck_require__(10740);
|
const Aws_query_1 = __nccwpck_require__(10740);
|
||||||
class GetAccessKeyInfoCommand extends smithy_client_1.Command {
|
class GetAccessKeyInfoCommand extends smithy_client_1.Command {
|
||||||
static getEndpointParameterInstructions() {
|
static getEndpointParameterInstructions() {
|
||||||
@@ -3806,6 +3853,10 @@ class GetAccessKeyInfoCommand extends smithy_client_1.Command {
|
|||||||
commandName,
|
commandName,
|
||||||
inputFilterSensitiveLog: (_) => _,
|
inputFilterSensitiveLog: (_) => _,
|
||||||
outputFilterSensitiveLog: (_) => _,
|
outputFilterSensitiveLog: (_) => _,
|
||||||
|
[types_1.SMITHY_CONTEXT_KEY]: {
|
||||||
|
service: "AWSSecurityTokenServiceV20110615",
|
||||||
|
operation: "GetAccessKeyInfo",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const { requestHandler } = configuration;
|
const { requestHandler } = configuration;
|
||||||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
||||||
@@ -3834,6 +3885,7 @@ const middleware_endpoint_1 = __nccwpck_require__(82918);
|
|||||||
const middleware_serde_1 = __nccwpck_require__(81238);
|
const middleware_serde_1 = __nccwpck_require__(81238);
|
||||||
const smithy_client_1 = __nccwpck_require__(63570);
|
const smithy_client_1 = __nccwpck_require__(63570);
|
||||||
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
||||||
|
const types_1 = __nccwpck_require__(55756);
|
||||||
const Aws_query_1 = __nccwpck_require__(10740);
|
const Aws_query_1 = __nccwpck_require__(10740);
|
||||||
class GetCallerIdentityCommand extends smithy_client_1.Command {
|
class GetCallerIdentityCommand extends smithy_client_1.Command {
|
||||||
static getEndpointParameterInstructions() {
|
static getEndpointParameterInstructions() {
|
||||||
@@ -3863,6 +3915,10 @@ class GetCallerIdentityCommand extends smithy_client_1.Command {
|
|||||||
commandName,
|
commandName,
|
||||||
inputFilterSensitiveLog: (_) => _,
|
inputFilterSensitiveLog: (_) => _,
|
||||||
outputFilterSensitiveLog: (_) => _,
|
outputFilterSensitiveLog: (_) => _,
|
||||||
|
[types_1.SMITHY_CONTEXT_KEY]: {
|
||||||
|
service: "AWSSecurityTokenServiceV20110615",
|
||||||
|
operation: "GetCallerIdentity",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const { requestHandler } = configuration;
|
const { requestHandler } = configuration;
|
||||||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
||||||
@@ -3891,6 +3947,7 @@ const middleware_endpoint_1 = __nccwpck_require__(82918);
|
|||||||
const middleware_serde_1 = __nccwpck_require__(81238);
|
const middleware_serde_1 = __nccwpck_require__(81238);
|
||||||
const smithy_client_1 = __nccwpck_require__(63570);
|
const smithy_client_1 = __nccwpck_require__(63570);
|
||||||
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
||||||
|
const types_1 = __nccwpck_require__(55756);
|
||||||
const models_0_1 = __nccwpck_require__(21780);
|
const models_0_1 = __nccwpck_require__(21780);
|
||||||
const Aws_query_1 = __nccwpck_require__(10740);
|
const Aws_query_1 = __nccwpck_require__(10740);
|
||||||
class GetFederationTokenCommand extends smithy_client_1.Command {
|
class GetFederationTokenCommand extends smithy_client_1.Command {
|
||||||
@@ -3921,6 +3978,10 @@ class GetFederationTokenCommand extends smithy_client_1.Command {
|
|||||||
commandName,
|
commandName,
|
||||||
inputFilterSensitiveLog: (_) => _,
|
inputFilterSensitiveLog: (_) => _,
|
||||||
outputFilterSensitiveLog: models_0_1.GetFederationTokenResponseFilterSensitiveLog,
|
outputFilterSensitiveLog: models_0_1.GetFederationTokenResponseFilterSensitiveLog,
|
||||||
|
[types_1.SMITHY_CONTEXT_KEY]: {
|
||||||
|
service: "AWSSecurityTokenServiceV20110615",
|
||||||
|
operation: "GetFederationToken",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const { requestHandler } = configuration;
|
const { requestHandler } = configuration;
|
||||||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
||||||
@@ -3949,6 +4010,7 @@ const middleware_endpoint_1 = __nccwpck_require__(82918);
|
|||||||
const middleware_serde_1 = __nccwpck_require__(81238);
|
const middleware_serde_1 = __nccwpck_require__(81238);
|
||||||
const smithy_client_1 = __nccwpck_require__(63570);
|
const smithy_client_1 = __nccwpck_require__(63570);
|
||||||
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
||||||
|
const types_1 = __nccwpck_require__(55756);
|
||||||
const models_0_1 = __nccwpck_require__(21780);
|
const models_0_1 = __nccwpck_require__(21780);
|
||||||
const Aws_query_1 = __nccwpck_require__(10740);
|
const Aws_query_1 = __nccwpck_require__(10740);
|
||||||
class GetSessionTokenCommand extends smithy_client_1.Command {
|
class GetSessionTokenCommand extends smithy_client_1.Command {
|
||||||
@@ -3979,6 +4041,10 @@ class GetSessionTokenCommand extends smithy_client_1.Command {
|
|||||||
commandName,
|
commandName,
|
||||||
inputFilterSensitiveLog: (_) => _,
|
inputFilterSensitiveLog: (_) => _,
|
||||||
outputFilterSensitiveLog: models_0_1.GetSessionTokenResponseFilterSensitiveLog,
|
outputFilterSensitiveLog: models_0_1.GetSessionTokenResponseFilterSensitiveLog,
|
||||||
|
[types_1.SMITHY_CONTEXT_KEY]: {
|
||||||
|
service: "AWSSecurityTokenServiceV20110615",
|
||||||
|
operation: "GetSessionToken",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const { requestHandler } = configuration;
|
const { requestHandler } = configuration;
|
||||||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
||||||
@@ -4184,7 +4250,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|||||||
exports.ruleSet = void 0;
|
exports.ruleSet = void 0;
|
||||||
const F = "required", G = "type", H = "fn", I = "argv", J = "ref";
|
const F = "required", G = "type", H = "fn", I = "argv", J = "ref";
|
||||||
const a = false, b = true, c = "booleanEquals", d = "tree", e = "stringEquals", f = "sigv4", g = "sts", h = "us-east-1", i = "endpoint", j = "https://sts.{Region}.{PartitionResult#dnsSuffix}", k = "error", l = "getAttr", m = { [F]: false, [G]: "String" }, n = { [F]: true, "default": false, [G]: "Boolean" }, o = { [J]: "Endpoint" }, p = { [H]: "isSet", [I]: [{ [J]: "Region" }] }, q = { [J]: "Region" }, r = { [H]: "aws.partition", [I]: [q], "assign": "PartitionResult" }, s = { [J]: "UseFIPS" }, t = { [J]: "UseDualStack" }, u = { "url": "https://sts.amazonaws.com", "properties": { "authSchemes": [{ "name": f, "signingName": g, "signingRegion": h }] }, "headers": {} }, v = {}, w = { "conditions": [{ [H]: e, [I]: [q, "aws-global"] }], [i]: u, [G]: i }, x = { [H]: c, [I]: [s, true] }, y = { [H]: c, [I]: [t, true] }, z = { [H]: c, [I]: [true, { [H]: l, [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"] }] }, A = { [J]: "PartitionResult" }, B = { [H]: c, [I]: [true, { [H]: l, [I]: [A, "supportsDualStack"] }] }, C = [{ [H]: "isSet", [I]: [o] }], D = [x], E = [y];
|
const a = false, b = true, c = "booleanEquals", d = "tree", e = "stringEquals", f = "sigv4", g = "sts", h = "us-east-1", i = "endpoint", j = "https://sts.{Region}.{PartitionResult#dnsSuffix}", k = "error", l = "getAttr", m = { [F]: false, [G]: "String" }, n = { [F]: true, "default": false, [G]: "Boolean" }, o = { [J]: "Endpoint" }, p = { [H]: "isSet", [I]: [{ [J]: "Region" }] }, q = { [J]: "Region" }, r = { [H]: "aws.partition", [I]: [q], "assign": "PartitionResult" }, s = { [J]: "UseFIPS" }, t = { [J]: "UseDualStack" }, u = { "url": "https://sts.amazonaws.com", "properties": { "authSchemes": [{ "name": f, "signingName": g, "signingRegion": h }] }, "headers": {} }, v = {}, w = { "conditions": [{ [H]: e, [I]: [q, "aws-global"] }], [i]: u, [G]: i }, x = { [H]: c, [I]: [s, true] }, y = { [H]: c, [I]: [t, true] }, z = { [H]: c, [I]: [true, { [H]: l, [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"] }] }, A = { [J]: "PartitionResult" }, B = { [H]: c, [I]: [true, { [H]: l, [I]: [A, "supportsDualStack"] }] }, C = [{ [H]: "isSet", [I]: [o] }], D = [x], E = [y];
|
||||||
const _data = { version: "1.0", parameters: { Region: m, UseDualStack: n, UseFIPS: n, Endpoint: m, UseGlobalEndpoint: n }, rules: [{ conditions: [{ [H]: c, [I]: [{ [J]: "UseGlobalEndpoint" }, b] }, { [H]: "not", [I]: C }, p, r, { [H]: c, [I]: [s, a] }, { [H]: c, [I]: [t, a] }], [G]: d, rules: [{ conditions: [{ [H]: e, [I]: [q, "ap-northeast-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "ap-south-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "ap-southeast-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "ap-southeast-2"] }], endpoint: u, [G]: i }, w, { conditions: [{ [H]: e, [I]: [q, "ca-central-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-central-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-north-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-west-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-west-2"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-west-3"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "sa-east-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, h] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "us-east-2"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "us-west-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "us-west-2"] }], endpoint: u, [G]: i }, { endpoint: { url: j, properties: { authSchemes: [{ name: f, signingName: g, signingRegion: "{Region}" }] }, headers: v }, [G]: i }] }, { conditions: C, [G]: d, rules: [{ conditions: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G]: k }, { [G]: d, rules: [{ conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G]: k }, { endpoint: { url: o, properties: v, headers: v }, [G]: i }] }] }, { [G]: d, rules: [{ conditions: [p], [G]: d, rules: [{ conditions: [r], [G]: d, rules: [{ conditions: [x, y], [G]: d, rules: [{ conditions: [z, B], [G]: d, rules: [{ [G]: d, rules: [{ endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: i }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k }] }, { conditions: D, [G]: d, rules: [{ conditions: [z], [G]: d, rules: [{ [G]: d, rules: [{ conditions: [{ [H]: e, [I]: ["aws-us-gov", { [H]: l, [I]: [A, "name"] }] }], endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v }, [G]: i }, { endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", properties: v, headers: v }, [G]: i }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", [G]: k }] }, { conditions: E, [G]: d, rules: [{ conditions: [B], [G]: d, rules: [{ [G]: d, rules: [{ endpoint: { url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: i }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", [G]: k }] }, { [G]: d, rules: [w, { endpoint: { url: j, properties: v, headers: v }, [G]: i }] }] }] }, { error: "Invalid Configuration: Missing Region", [G]: k }] }] };
|
const _data = { version: "1.0", parameters: { Region: m, UseDualStack: n, UseFIPS: n, Endpoint: m, UseGlobalEndpoint: n }, rules: [{ conditions: [{ [H]: c, [I]: [{ [J]: "UseGlobalEndpoint" }, b] }, { [H]: "not", [I]: C }, p, r, { [H]: c, [I]: [s, a] }, { [H]: c, [I]: [t, a] }], [G]: d, rules: [{ conditions: [{ [H]: e, [I]: [q, "ap-northeast-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "ap-south-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "ap-southeast-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "ap-southeast-2"] }], endpoint: u, [G]: i }, w, { conditions: [{ [H]: e, [I]: [q, "ca-central-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-central-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-north-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-west-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-west-2"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-west-3"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "sa-east-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, h] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "us-east-2"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "us-west-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "us-west-2"] }], endpoint: u, [G]: i }, { endpoint: { url: j, properties: { authSchemes: [{ name: f, signingName: g, signingRegion: "{Region}" }] }, headers: v }, [G]: i }] }, { conditions: C, [G]: d, rules: [{ conditions: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G]: k }, { conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G]: k }, { endpoint: { url: o, properties: v, headers: v }, [G]: i }] }, { conditions: [p], [G]: d, rules: [{ conditions: [r], [G]: d, rules: [{ conditions: [x, y], [G]: d, rules: [{ conditions: [z, B], [G]: d, rules: [{ endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: i }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k }] }, { conditions: D, [G]: d, rules: [{ conditions: [z], [G]: d, rules: [{ conditions: [{ [H]: e, [I]: ["aws-us-gov", { [H]: l, [I]: [A, "name"] }] }], endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v }, [G]: i }, { endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", properties: v, headers: v }, [G]: i }] }, { error: "FIPS is enabled but this partition does not support FIPS", [G]: k }] }, { conditions: E, [G]: d, rules: [{ conditions: [B], [G]: d, rules: [{ endpoint: { url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: i }] }, { error: "DualStack is enabled but this partition does not support DualStack", [G]: k }] }, w, { endpoint: { url: j, properties: v, headers: v }, [G]: i }] }] }, { error: "Invalid Configuration: Missing Region", [G]: k }] };
|
||||||
exports.ruleSet = _data;
|
exports.ruleSet = _data;
|
||||||
|
|
||||||
|
|
||||||
@@ -5527,16 +5593,22 @@ exports.getRuntimeConfig = getRuntimeConfig;
|
|||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.resolveRuntimeExtensions = void 0;
|
exports.resolveRuntimeExtensions = void 0;
|
||||||
|
const region_config_resolver_1 = __nccwpck_require__(18156);
|
||||||
|
const protocol_http_1 = __nccwpck_require__(64418);
|
||||||
const smithy_client_1 = __nccwpck_require__(63570);
|
const smithy_client_1 = __nccwpck_require__(63570);
|
||||||
const asPartial = (t) => t;
|
const asPartial = (t) => t;
|
||||||
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
||||||
const extensionConfiguration = {
|
const extensionConfiguration = {
|
||||||
|
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
||||||
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
||||||
|
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
||||||
};
|
};
|
||||||
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
||||||
return {
|
return {
|
||||||
...runtimeConfig,
|
...runtimeConfig,
|
||||||
|
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
||||||
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
||||||
|
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
||||||
@@ -5660,6 +5732,7 @@ const resolveAssumeRoleCredentials = async (profileName, profiles, options, visi
|
|||||||
RoleArn: data.role_arn,
|
RoleArn: data.role_arn,
|
||||||
RoleSessionName: data.role_session_name || `aws-sdk-js-${Date.now()}`,
|
RoleSessionName: data.role_session_name || `aws-sdk-js-${Date.now()}`,
|
||||||
ExternalId: data.external_id,
|
ExternalId: data.external_id,
|
||||||
|
DurationSeconds: parseInt(data.duration_seconds || "3600", 10),
|
||||||
};
|
};
|
||||||
const { mfa_serial } = data;
|
const { mfa_serial } = data;
|
||||||
if (mfa_serial) {
|
if (mfa_serial) {
|
||||||
@@ -6824,6 +6897,161 @@ const getUserAgentPlugin = (config) => ({
|
|||||||
exports.getUserAgentPlugin = getUserAgentPlugin;
|
exports.getUserAgentPlugin = getUserAgentPlugin;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 60079:
|
||||||
|
/***/ ((__unused_webpack_module, exports) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
exports.resolveAwsRegionExtensionConfiguration = exports.getAwsRegionExtensionConfiguration = void 0;
|
||||||
|
const getAwsRegionExtensionConfiguration = (runtimeConfig) => {
|
||||||
|
let runtimeConfigRegion = async () => {
|
||||||
|
if (runtimeConfig.region === undefined) {
|
||||||
|
throw new Error("Region is missing from runtimeConfig");
|
||||||
|
}
|
||||||
|
const region = runtimeConfig.region;
|
||||||
|
if (typeof region === "string") {
|
||||||
|
return region;
|
||||||
|
}
|
||||||
|
return region();
|
||||||
|
};
|
||||||
|
return {
|
||||||
|
setRegion(region) {
|
||||||
|
runtimeConfigRegion = region;
|
||||||
|
},
|
||||||
|
region() {
|
||||||
|
return runtimeConfigRegion;
|
||||||
|
},
|
||||||
|
};
|
||||||
|
};
|
||||||
|
exports.getAwsRegionExtensionConfiguration = getAwsRegionExtensionConfiguration;
|
||||||
|
const resolveAwsRegionExtensionConfiguration = (awsRegionExtensionConfiguration) => {
|
||||||
|
return {
|
||||||
|
region: awsRegionExtensionConfiguration.region(),
|
||||||
|
};
|
||||||
|
};
|
||||||
|
exports.resolveAwsRegionExtensionConfiguration = resolveAwsRegionExtensionConfiguration;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 18156:
|
||||||
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
const tslib_1 = __nccwpck_require__(4351);
|
||||||
|
tslib_1.__exportStar(__nccwpck_require__(60079), exports);
|
||||||
|
tslib_1.__exportStar(__nccwpck_require__(17177), exports);
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 60123:
|
||||||
|
/***/ ((__unused_webpack_module, exports) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
exports.NODE_REGION_CONFIG_FILE_OPTIONS = exports.NODE_REGION_CONFIG_OPTIONS = exports.REGION_INI_NAME = exports.REGION_ENV_NAME = void 0;
|
||||||
|
exports.REGION_ENV_NAME = "AWS_REGION";
|
||||||
|
exports.REGION_INI_NAME = "region";
|
||||||
|
exports.NODE_REGION_CONFIG_OPTIONS = {
|
||||||
|
environmentVariableSelector: (env) => env[exports.REGION_ENV_NAME],
|
||||||
|
configFileSelector: (profile) => profile[exports.REGION_INI_NAME],
|
||||||
|
default: () => {
|
||||||
|
throw new Error("Region is missing");
|
||||||
|
},
|
||||||
|
};
|
||||||
|
exports.NODE_REGION_CONFIG_FILE_OPTIONS = {
|
||||||
|
preferredFile: "credentials",
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 30048:
|
||||||
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
exports.getRealRegion = void 0;
|
||||||
|
const isFipsRegion_1 = __nccwpck_require__(37257);
|
||||||
|
const getRealRegion = (region) => (0, isFipsRegion_1.isFipsRegion)(region)
|
||||||
|
? ["fips-aws-global", "aws-fips"].includes(region)
|
||||||
|
? "us-east-1"
|
||||||
|
: region.replace(/fips-(dkr-|prod-)?|-fips/, "")
|
||||||
|
: region;
|
||||||
|
exports.getRealRegion = getRealRegion;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 17177:
|
||||||
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
const tslib_1 = __nccwpck_require__(4351);
|
||||||
|
tslib_1.__exportStar(__nccwpck_require__(60123), exports);
|
||||||
|
tslib_1.__exportStar(__nccwpck_require__(46187), exports);
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 37257:
|
||||||
|
/***/ ((__unused_webpack_module, exports) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
exports.isFipsRegion = void 0;
|
||||||
|
const isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips"));
|
||||||
|
exports.isFipsRegion = isFipsRegion;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 46187:
|
||||||
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
exports.resolveRegionConfig = void 0;
|
||||||
|
const getRealRegion_1 = __nccwpck_require__(30048);
|
||||||
|
const isFipsRegion_1 = __nccwpck_require__(37257);
|
||||||
|
const resolveRegionConfig = (input) => {
|
||||||
|
const { region, useFipsEndpoint } = input;
|
||||||
|
if (!region) {
|
||||||
|
throw new Error("Region is missing");
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
...input,
|
||||||
|
region: async () => {
|
||||||
|
if (typeof region === "string") {
|
||||||
|
return (0, getRealRegion_1.getRealRegion)(region);
|
||||||
|
}
|
||||||
|
const providedRegion = await region();
|
||||||
|
return (0, getRealRegion_1.getRealRegion)(providedRegion);
|
||||||
|
},
|
||||||
|
useFipsEndpoint: async () => {
|
||||||
|
const providedRegion = typeof region === "string" ? region : await region();
|
||||||
|
if ((0, isFipsRegion_1.isFipsRegion)(providedRegion)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return typeof useFipsEndpoint !== "function" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint();
|
||||||
|
},
|
||||||
|
};
|
||||||
|
};
|
||||||
|
exports.resolveRegionConfig = resolveRegionConfig;
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 52664:
|
/***/ 52664:
|
||||||
@@ -8132,6 +8360,16 @@ Object.defineProperty(exports, "EndpointURLScheme", ({ enumerable: true, get: fu
|
|||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 76244:
|
||||||
|
/***/ ((__unused_webpack_module, exports) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 61393:
|
/***/ 61393:
|
||||||
@@ -8230,6 +8468,7 @@ tslib_1.__exportStar(__nccwpck_require__(90142), exports);
|
|||||||
tslib_1.__exportStar(__nccwpck_require__(62338), exports);
|
tslib_1.__exportStar(__nccwpck_require__(62338), exports);
|
||||||
tslib_1.__exportStar(__nccwpck_require__(99385), exports);
|
tslib_1.__exportStar(__nccwpck_require__(99385), exports);
|
||||||
tslib_1.__exportStar(__nccwpck_require__(37521), exports);
|
tslib_1.__exportStar(__nccwpck_require__(37521), exports);
|
||||||
|
tslib_1.__exportStar(__nccwpck_require__(76244), exports);
|
||||||
tslib_1.__exportStar(__nccwpck_require__(61393), exports);
|
tslib_1.__exportStar(__nccwpck_require__(61393), exports);
|
||||||
tslib_1.__exportStar(__nccwpck_require__(10640), exports);
|
tslib_1.__exportStar(__nccwpck_require__(10640), exports);
|
||||||
tslib_1.__exportStar(__nccwpck_require__(89910), exports);
|
tslib_1.__exportStar(__nccwpck_require__(89910), exports);
|
||||||
@@ -11985,18 +12224,37 @@ exports.serializerMiddleware = serializerMiddleware;
|
|||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.constructStack = void 0;
|
exports.constructStack = void 0;
|
||||||
|
const getAllAliases = (name, aliases) => {
|
||||||
|
const _aliases = [];
|
||||||
|
if (name) {
|
||||||
|
_aliases.push(name);
|
||||||
|
}
|
||||||
|
if (aliases) {
|
||||||
|
for (const alias of aliases) {
|
||||||
|
_aliases.push(alias);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return _aliases;
|
||||||
|
};
|
||||||
|
const getMiddlewareNameWithAliases = (name, aliases) => {
|
||||||
|
return `${name || "anonymous"}${aliases && aliases.length > 0 ? ` (a.k.a. ${aliases.join(",")})` : ""}`;
|
||||||
|
};
|
||||||
const constructStack = () => {
|
const constructStack = () => {
|
||||||
let absoluteEntries = [];
|
let absoluteEntries = [];
|
||||||
let relativeEntries = [];
|
let relativeEntries = [];
|
||||||
|
let identifyOnResolve = false;
|
||||||
const entriesNameSet = new Set();
|
const entriesNameSet = new Set();
|
||||||
const sort = (entries) => entries.sort((a, b) => stepWeights[b.step] - stepWeights[a.step] ||
|
const sort = (entries) => entries.sort((a, b) => stepWeights[b.step] - stepWeights[a.step] ||
|
||||||
priorityWeights[b.priority || "normal"] - priorityWeights[a.priority || "normal"]);
|
priorityWeights[b.priority || "normal"] - priorityWeights[a.priority || "normal"]);
|
||||||
const removeByName = (toRemove) => {
|
const removeByName = (toRemove) => {
|
||||||
let isRemoved = false;
|
let isRemoved = false;
|
||||||
const filterCb = (entry) => {
|
const filterCb = (entry) => {
|
||||||
if (entry.name && entry.name === toRemove) {
|
const aliases = getAllAliases(entry.name, entry.aliases);
|
||||||
|
if (aliases.includes(toRemove)) {
|
||||||
isRemoved = true;
|
isRemoved = true;
|
||||||
entriesNameSet.delete(toRemove);
|
for (const alias of aliases) {
|
||||||
|
entriesNameSet.delete(alias);
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@@ -12010,8 +12268,9 @@ const constructStack = () => {
|
|||||||
const filterCb = (entry) => {
|
const filterCb = (entry) => {
|
||||||
if (entry.middleware === toRemove) {
|
if (entry.middleware === toRemove) {
|
||||||
isRemoved = true;
|
isRemoved = true;
|
||||||
if (entry.name)
|
for (const alias of getAllAliases(entry.name, entry.aliases)) {
|
||||||
entriesNameSet.delete(entry.name);
|
entriesNameSet.delete(alias);
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@@ -12021,12 +12280,14 @@ const constructStack = () => {
|
|||||||
return isRemoved;
|
return isRemoved;
|
||||||
};
|
};
|
||||||
const cloneTo = (toStack) => {
|
const cloneTo = (toStack) => {
|
||||||
|
var _a;
|
||||||
absoluteEntries.forEach((entry) => {
|
absoluteEntries.forEach((entry) => {
|
||||||
toStack.add(entry.middleware, { ...entry });
|
toStack.add(entry.middleware, { ...entry });
|
||||||
});
|
});
|
||||||
relativeEntries.forEach((entry) => {
|
relativeEntries.forEach((entry) => {
|
||||||
toStack.addRelativeTo(entry.middleware, { ...entry });
|
toStack.addRelativeTo(entry.middleware, { ...entry });
|
||||||
});
|
});
|
||||||
|
(_a = toStack.identifyOnResolve) === null || _a === void 0 ? void 0 : _a.call(toStack, stack.identifyOnResolve());
|
||||||
return toStack;
|
return toStack;
|
||||||
};
|
};
|
||||||
const expandRelativeMiddlewareList = (from) => {
|
const expandRelativeMiddlewareList = (from) => {
|
||||||
@@ -12060,8 +12321,9 @@ const constructStack = () => {
|
|||||||
before: [],
|
before: [],
|
||||||
after: [],
|
after: [],
|
||||||
};
|
};
|
||||||
if (normalizedEntry.name)
|
for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) {
|
||||||
normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry;
|
normalizedEntriesNameMap[alias] = normalizedEntry;
|
||||||
|
}
|
||||||
normalizedAbsoluteEntries.push(normalizedEntry);
|
normalizedAbsoluteEntries.push(normalizedEntry);
|
||||||
});
|
});
|
||||||
relativeEntries.forEach((entry) => {
|
relativeEntries.forEach((entry) => {
|
||||||
@@ -12070,8 +12332,9 @@ const constructStack = () => {
|
|||||||
before: [],
|
before: [],
|
||||||
after: [],
|
after: [],
|
||||||
};
|
};
|
||||||
if (normalizedEntry.name)
|
for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) {
|
||||||
normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry;
|
normalizedEntriesNameMap[alias] = normalizedEntry;
|
||||||
|
}
|
||||||
normalizedRelativeEntries.push(normalizedEntry);
|
normalizedRelativeEntries.push(normalizedEntry);
|
||||||
});
|
});
|
||||||
normalizedRelativeEntries.forEach((entry) => {
|
normalizedRelativeEntries.forEach((entry) => {
|
||||||
@@ -12081,7 +12344,9 @@ const constructStack = () => {
|
|||||||
if (debug) {
|
if (debug) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
throw new Error(`${entry.toMiddleware} is not found when adding ${entry.name || "anonymous"} middleware ${entry.relation} ${entry.toMiddleware}`);
|
throw new Error(`${entry.toMiddleware} is not found when adding ` +
|
||||||
|
`${getMiddlewareNameWithAliases(entry.name, entry.aliases)} ` +
|
||||||
|
`middleware ${entry.relation} ${entry.toMiddleware}`);
|
||||||
}
|
}
|
||||||
if (entry.relation === "after") {
|
if (entry.relation === "after") {
|
||||||
toMiddleware.after.push(entry);
|
toMiddleware.after.push(entry);
|
||||||
@@ -12101,48 +12366,68 @@ const constructStack = () => {
|
|||||||
};
|
};
|
||||||
const stack = {
|
const stack = {
|
||||||
add: (middleware, options = {}) => {
|
add: (middleware, options = {}) => {
|
||||||
const { name, override } = options;
|
const { name, override, aliases: _aliases } = options;
|
||||||
const entry = {
|
const entry = {
|
||||||
step: "initialize",
|
step: "initialize",
|
||||||
priority: "normal",
|
priority: "normal",
|
||||||
middleware,
|
middleware,
|
||||||
...options,
|
...options,
|
||||||
};
|
};
|
||||||
if (name) {
|
const aliases = getAllAliases(name, _aliases);
|
||||||
if (entriesNameSet.has(name)) {
|
if (aliases.length > 0) {
|
||||||
|
if (aliases.some((alias) => entriesNameSet.has(alias))) {
|
||||||
if (!override)
|
if (!override)
|
||||||
throw new Error(`Duplicate middleware name '${name}'`);
|
throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
|
||||||
const toOverrideIndex = absoluteEntries.findIndex((entry) => entry.name === name);
|
for (const alias of aliases) {
|
||||||
const toOverride = absoluteEntries[toOverrideIndex];
|
const toOverrideIndex = absoluteEntries.findIndex((entry) => { var _a; return entry.name === alias || ((_a = entry.aliases) === null || _a === void 0 ? void 0 : _a.some((a) => a === alias)); });
|
||||||
if (toOverride.step !== entry.step || toOverride.priority !== entry.priority) {
|
if (toOverrideIndex === -1) {
|
||||||
throw new Error(`"${name}" middleware with ${toOverride.priority} priority in ${toOverride.step} step cannot be ` +
|
continue;
|
||||||
`overridden by same-name middleware with ${entry.priority} priority in ${entry.step} step.`);
|
}
|
||||||
|
const toOverride = absoluteEntries[toOverrideIndex];
|
||||||
|
if (toOverride.step !== entry.step || entry.priority !== toOverride.priority) {
|
||||||
|
throw new Error(`"${getMiddlewareNameWithAliases(toOverride.name, toOverride.aliases)}" middleware with ` +
|
||||||
|
`${toOverride.priority} priority in ${toOverride.step} step cannot ` +
|
||||||
|
`be overridden by "${getMiddlewareNameWithAliases(name, _aliases)}" middleware with ` +
|
||||||
|
`${entry.priority} priority in ${entry.step} step.`);
|
||||||
|
}
|
||||||
|
absoluteEntries.splice(toOverrideIndex, 1);
|
||||||
}
|
}
|
||||||
absoluteEntries.splice(toOverrideIndex, 1);
|
|
||||||
}
|
}
|
||||||
entriesNameSet.add(name);
|
for (const alias of aliases) {
|
||||||
|
entriesNameSet.add(alias);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
absoluteEntries.push(entry);
|
absoluteEntries.push(entry);
|
||||||
},
|
},
|
||||||
addRelativeTo: (middleware, options) => {
|
addRelativeTo: (middleware, options) => {
|
||||||
const { name, override } = options;
|
const { name, override, aliases: _aliases } = options;
|
||||||
const entry = {
|
const entry = {
|
||||||
middleware,
|
middleware,
|
||||||
...options,
|
...options,
|
||||||
};
|
};
|
||||||
if (name) {
|
const aliases = getAllAliases(name, _aliases);
|
||||||
if (entriesNameSet.has(name)) {
|
if (aliases.length > 0) {
|
||||||
|
if (aliases.some((alias) => entriesNameSet.has(alias))) {
|
||||||
if (!override)
|
if (!override)
|
||||||
throw new Error(`Duplicate middleware name '${name}'`);
|
throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
|
||||||
const toOverrideIndex = relativeEntries.findIndex((entry) => entry.name === name);
|
for (const alias of aliases) {
|
||||||
const toOverride = relativeEntries[toOverrideIndex];
|
const toOverrideIndex = relativeEntries.findIndex((entry) => { var _a; return entry.name === alias || ((_a = entry.aliases) === null || _a === void 0 ? void 0 : _a.some((a) => a === alias)); });
|
||||||
if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) {
|
if (toOverrideIndex === -1) {
|
||||||
throw new Error(`"${name}" middleware ${toOverride.relation} "${toOverride.toMiddleware}" middleware cannot be overridden ` +
|
continue;
|
||||||
`by same-name middleware ${entry.relation} "${entry.toMiddleware}" middleware.`);
|
}
|
||||||
|
const toOverride = relativeEntries[toOverrideIndex];
|
||||||
|
if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) {
|
||||||
|
throw new Error(`"${getMiddlewareNameWithAliases(toOverride.name, toOverride.aliases)}" middleware ` +
|
||||||
|
`${toOverride.relation} "${toOverride.toMiddleware}" middleware cannot be overridden ` +
|
||||||
|
`by "${getMiddlewareNameWithAliases(name, _aliases)}" middleware ${entry.relation} ` +
|
||||||
|
`"${entry.toMiddleware}" middleware.`);
|
||||||
|
}
|
||||||
|
relativeEntries.splice(toOverrideIndex, 1);
|
||||||
}
|
}
|
||||||
relativeEntries.splice(toOverrideIndex, 1);
|
|
||||||
}
|
}
|
||||||
entriesNameSet.add(name);
|
for (const alias of aliases) {
|
||||||
|
entriesNameSet.add(alias);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
relativeEntries.push(entry);
|
relativeEntries.push(entry);
|
||||||
},
|
},
|
||||||
@@ -12159,10 +12444,12 @@ const constructStack = () => {
|
|||||||
removeByTag: (toRemove) => {
|
removeByTag: (toRemove) => {
|
||||||
let isRemoved = false;
|
let isRemoved = false;
|
||||||
const filterCb = (entry) => {
|
const filterCb = (entry) => {
|
||||||
const { tags, name } = entry;
|
const { tags, name, aliases: _aliases } = entry;
|
||||||
if (tags && tags.includes(toRemove)) {
|
if (tags && tags.includes(toRemove)) {
|
||||||
if (name)
|
const aliases = getAllAliases(name, _aliases);
|
||||||
entriesNameSet.delete(name);
|
for (const alias of aliases) {
|
||||||
|
entriesNameSet.delete(alias);
|
||||||
|
}
|
||||||
isRemoved = true;
|
isRemoved = true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -12173,22 +12460,36 @@ const constructStack = () => {
|
|||||||
return isRemoved;
|
return isRemoved;
|
||||||
},
|
},
|
||||||
concat: (from) => {
|
concat: (from) => {
|
||||||
|
var _a, _b;
|
||||||
const cloned = cloneTo((0, exports.constructStack)());
|
const cloned = cloneTo((0, exports.constructStack)());
|
||||||
cloned.use(from);
|
cloned.use(from);
|
||||||
|
cloned.identifyOnResolve(identifyOnResolve || cloned.identifyOnResolve() || ((_b = (_a = from.identifyOnResolve) === null || _a === void 0 ? void 0 : _a.call(from)) !== null && _b !== void 0 ? _b : false));
|
||||||
return cloned;
|
return cloned;
|
||||||
},
|
},
|
||||||
applyToStack: cloneTo,
|
applyToStack: cloneTo,
|
||||||
identify: () => {
|
identify: () => {
|
||||||
return getMiddlewareList(true).map((mw) => {
|
return getMiddlewareList(true).map((mw) => {
|
||||||
return mw.name + ": " + (mw.tags || []).join(",");
|
var _a;
|
||||||
|
const step = (_a = mw.step) !== null && _a !== void 0 ? _a : mw.relation +
|
||||||
|
" " +
|
||||||
|
mw.toMiddleware;
|
||||||
|
return getMiddlewareNameWithAliases(mw.name, mw.aliases) + " - " + step;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
identifyOnResolve(toggle) {
|
||||||
|
if (typeof toggle === "boolean")
|
||||||
|
identifyOnResolve = toggle;
|
||||||
|
return identifyOnResolve;
|
||||||
|
},
|
||||||
resolve: (handler, context) => {
|
resolve: (handler, context) => {
|
||||||
for (const middleware of getMiddlewareList()
|
for (const middleware of getMiddlewareList()
|
||||||
.map((entry) => entry.middleware)
|
.map((entry) => entry.middleware)
|
||||||
.reverse()) {
|
.reverse()) {
|
||||||
handler = middleware(handler, context);
|
handler = middleware(handler, context);
|
||||||
}
|
}
|
||||||
|
if (identifyOnResolve) {
|
||||||
|
console.log(stack.identify());
|
||||||
|
}
|
||||||
return handler;
|
return handler;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -12507,6 +12808,19 @@ class NodeHttpHandler {
|
|||||||
writeRequestBodyPromise = (0, write_request_body_1.writeRequestBody)(req, request, this.config.requestTimeout).catch(_reject);
|
writeRequestBodyPromise = (0, write_request_body_1.writeRequestBody)(req, request, this.config.requestTimeout).catch(_reject);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
updateHttpClientConfig(key, value) {
|
||||||
|
this.config = undefined;
|
||||||
|
this.configProvider = this.configProvider.then((config) => {
|
||||||
|
return {
|
||||||
|
...config,
|
||||||
|
[key]: value,
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
httpHandlerConfigs() {
|
||||||
|
var _a;
|
||||||
|
return (_a = this.config) !== null && _a !== void 0 ? _a : {};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
exports.NodeHttpHandler = NodeHttpHandler;
|
exports.NodeHttpHandler = NodeHttpHandler;
|
||||||
|
|
||||||
@@ -12800,6 +13114,19 @@ class NodeHttp2Handler {
|
|||||||
writeRequestBodyPromise = (0, write_request_body_1.writeRequestBody)(req, request, requestTimeout);
|
writeRequestBodyPromise = (0, write_request_body_1.writeRequestBody)(req, request, requestTimeout);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
updateHttpClientConfig(key, value) {
|
||||||
|
this.config = undefined;
|
||||||
|
this.configProvider = this.configProvider.then((config) => {
|
||||||
|
return {
|
||||||
|
...config,
|
||||||
|
[key]: value,
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
httpHandlerConfigs() {
|
||||||
|
var _a;
|
||||||
|
return (_a = this.config) !== null && _a !== void 0 ? _a : {};
|
||||||
|
}
|
||||||
destroySession(session) {
|
destroySession(session) {
|
||||||
if (!session.destroyed) {
|
if (!session.destroyed) {
|
||||||
session.destroy();
|
session.destroy();
|
||||||
@@ -13233,6 +13560,53 @@ class Fields {
|
|||||||
exports.Fields = Fields;
|
exports.Fields = Fields;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 22474:
|
||||||
|
/***/ ((__unused_webpack_module, exports) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
exports.resolveHttpHandlerRuntimeConfig = exports.getHttpHandlerExtensionConfiguration = void 0;
|
||||||
|
const getHttpHandlerExtensionConfiguration = (runtimeConfig) => {
|
||||||
|
let httpHandler = runtimeConfig.httpHandler;
|
||||||
|
return {
|
||||||
|
setHttpHandler(handler) {
|
||||||
|
httpHandler = handler;
|
||||||
|
},
|
||||||
|
httpHandler() {
|
||||||
|
return httpHandler;
|
||||||
|
},
|
||||||
|
updateHttpClientConfig(key, value) {
|
||||||
|
httpHandler.updateHttpClientConfig(key, value);
|
||||||
|
},
|
||||||
|
httpHandlerConfigs() {
|
||||||
|
return httpHandler.httpHandlerConfigs();
|
||||||
|
},
|
||||||
|
};
|
||||||
|
};
|
||||||
|
exports.getHttpHandlerExtensionConfiguration = getHttpHandlerExtensionConfiguration;
|
||||||
|
const resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => {
|
||||||
|
return {
|
||||||
|
httpHandler: httpHandlerExtensionConfiguration.httpHandler(),
|
||||||
|
};
|
||||||
|
};
|
||||||
|
exports.resolveHttpHandlerRuntimeConfig = resolveHttpHandlerRuntimeConfig;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 91654:
|
||||||
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
const tslib_1 = __nccwpck_require__(4351);
|
||||||
|
tslib_1.__exportStar(__nccwpck_require__(22474), exports);
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 63206:
|
/***/ 63206:
|
||||||
@@ -13338,6 +13712,7 @@ exports.HttpResponse = HttpResponse;
|
|||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
const tslib_1 = __nccwpck_require__(4351);
|
const tslib_1 = __nccwpck_require__(4351);
|
||||||
|
tslib_1.__exportStar(__nccwpck_require__(91654), exports);
|
||||||
tslib_1.__exportStar(__nccwpck_require__(89179), exports);
|
tslib_1.__exportStar(__nccwpck_require__(89179), exports);
|
||||||
tslib_1.__exportStar(__nccwpck_require__(99242), exports);
|
tslib_1.__exportStar(__nccwpck_require__(99242), exports);
|
||||||
tslib_1.__exportStar(__nccwpck_require__(63206), exports);
|
tslib_1.__exportStar(__nccwpck_require__(63206), exports);
|
||||||
@@ -13564,11 +13939,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|||||||
exports.getHomeDir = void 0;
|
exports.getHomeDir = void 0;
|
||||||
const os_1 = __nccwpck_require__(22037);
|
const os_1 = __nccwpck_require__(22037);
|
||||||
const path_1 = __nccwpck_require__(71017);
|
const path_1 = __nccwpck_require__(71017);
|
||||||
const process_1 = __nccwpck_require__(77282);
|
|
||||||
const homeDirCache = {};
|
const homeDirCache = {};
|
||||||
const getHomeDirCacheKey = () => {
|
const getHomeDirCacheKey = () => {
|
||||||
if (process_1.geteuid) {
|
if (process && process.geteuid) {
|
||||||
return `${(0, process_1.geteuid)()}`;
|
return `${process.geteuid()}`;
|
||||||
}
|
}
|
||||||
return "DEFAULT";
|
return "DEFAULT";
|
||||||
};
|
};
|
||||||
@@ -14953,16 +15327,14 @@ const types_1 = __nccwpck_require__(55756);
|
|||||||
Object.defineProperty(exports, "AlgorithmId", ({ enumerable: true, get: function () { return types_1.AlgorithmId; } }));
|
Object.defineProperty(exports, "AlgorithmId", ({ enumerable: true, get: function () { return types_1.AlgorithmId; } }));
|
||||||
const getChecksumConfiguration = (runtimeConfig) => {
|
const getChecksumConfiguration = (runtimeConfig) => {
|
||||||
const checksumAlgorithms = [];
|
const checksumAlgorithms = [];
|
||||||
if (runtimeConfig.sha256 !== undefined) {
|
for (const id in types_1.AlgorithmId) {
|
||||||
|
const algorithmId = types_1.AlgorithmId[id];
|
||||||
|
if (runtimeConfig[algorithmId] === undefined) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
checksumAlgorithms.push({
|
checksumAlgorithms.push({
|
||||||
algorithmId: () => types_1.AlgorithmId.SHA256,
|
algorithmId: () => algorithmId,
|
||||||
checksumConstructor: () => runtimeConfig.sha256,
|
checksumConstructor: () => runtimeConfig[algorithmId],
|
||||||
});
|
|
||||||
}
|
|
||||||
if (runtimeConfig.md5 != undefined) {
|
|
||||||
checksumAlgorithms.push({
|
|
||||||
algorithmId: () => types_1.AlgorithmId.MD5,
|
|
||||||
checksumConstructor: () => runtimeConfig.md5,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
@@ -14996,9 +15368,11 @@ exports.resolveChecksumRuntimeConfig = resolveChecksumRuntimeConfig;
|
|||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.resolveDefaultRuntimeConfig = exports.getDefaultClientConfiguration = exports.getDefaultExtensionConfiguration = void 0;
|
exports.resolveDefaultRuntimeConfig = exports.getDefaultClientConfiguration = exports.getDefaultExtensionConfiguration = void 0;
|
||||||
const checksum_1 = __nccwpck_require__(30941);
|
const checksum_1 = __nccwpck_require__(30941);
|
||||||
|
const retry_1 = __nccwpck_require__(67367);
|
||||||
const getDefaultExtensionConfiguration = (runtimeConfig) => {
|
const getDefaultExtensionConfiguration = (runtimeConfig) => {
|
||||||
return {
|
return {
|
||||||
...(0, checksum_1.getChecksumConfiguration)(runtimeConfig),
|
...(0, checksum_1.getChecksumConfiguration)(runtimeConfig),
|
||||||
|
...(0, retry_1.getRetryConfiguration)(runtimeConfig),
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
exports.getDefaultExtensionConfiguration = getDefaultExtensionConfiguration;
|
exports.getDefaultExtensionConfiguration = getDefaultExtensionConfiguration;
|
||||||
@@ -15006,6 +15380,7 @@ exports.getDefaultClientConfiguration = exports.getDefaultExtensionConfiguration
|
|||||||
const resolveDefaultRuntimeConfig = (config) => {
|
const resolveDefaultRuntimeConfig = (config) => {
|
||||||
return {
|
return {
|
||||||
...(0, checksum_1.resolveChecksumRuntimeConfig)(config),
|
...(0, checksum_1.resolveChecksumRuntimeConfig)(config),
|
||||||
|
...(0, retry_1.resolveRetryRuntimeConfig)(config),
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
exports.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig;
|
exports.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig;
|
||||||
@@ -15023,6 +15398,35 @@ const tslib_1 = __nccwpck_require__(4351);
|
|||||||
tslib_1.__exportStar(__nccwpck_require__(78643), exports);
|
tslib_1.__exportStar(__nccwpck_require__(78643), exports);
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 67367:
|
||||||
|
/***/ ((__unused_webpack_module, exports) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
exports.resolveRetryRuntimeConfig = exports.getRetryConfiguration = void 0;
|
||||||
|
const getRetryConfiguration = (runtimeConfig) => {
|
||||||
|
let _retryStrategy = runtimeConfig.retryStrategy;
|
||||||
|
return {
|
||||||
|
setRetryStrategy(retryStrategy) {
|
||||||
|
_retryStrategy = retryStrategy;
|
||||||
|
},
|
||||||
|
retryStrategy() {
|
||||||
|
return _retryStrategy;
|
||||||
|
},
|
||||||
|
};
|
||||||
|
};
|
||||||
|
exports.getRetryConfiguration = getRetryConfiguration;
|
||||||
|
const resolveRetryRuntimeConfig = (retryStrategyConfiguration) => {
|
||||||
|
const runtimeConfig = {};
|
||||||
|
runtimeConfig.retryStrategy = retryStrategyConfiguration.retryStrategy();
|
||||||
|
return runtimeConfig;
|
||||||
|
};
|
||||||
|
exports.resolveRetryRuntimeConfig = resolveRetryRuntimeConfig;
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 42638:
|
/***/ 42638:
|
||||||
@@ -16068,6 +16472,8 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
exports.SMITHY_CONTEXT_KEY = void 0;
|
||||||
|
exports.SMITHY_CONTEXT_KEY = "__smithy_context";
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
@@ -16604,6 +17010,20 @@ function toHex(bytes) {
|
|||||||
exports.toHex = toHex;
|
exports.toHex = toHex;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 85730:
|
||||||
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
exports.getSmithyContext = void 0;
|
||||||
|
const types_1 = __nccwpck_require__(55756);
|
||||||
|
const getSmithyContext = (context) => context[types_1.SMITHY_CONTEXT_KEY] || (context[types_1.SMITHY_CONTEXT_KEY] = {});
|
||||||
|
exports.getSmithyContext = getSmithyContext;
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 2390:
|
/***/ 2390:
|
||||||
@@ -16613,6 +17033,7 @@ exports.toHex = toHex;
|
|||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
const tslib_1 = __nccwpck_require__(4351);
|
const tslib_1 = __nccwpck_require__(4351);
|
||||||
|
tslib_1.__exportStar(__nccwpck_require__(85730), exports);
|
||||||
tslib_1.__exportStar(__nccwpck_require__(80149), exports);
|
tslib_1.__exportStar(__nccwpck_require__(80149), exports);
|
||||||
|
|
||||||
|
|
||||||
@@ -21117,7 +21538,7 @@ module.exports = require("util");
|
|||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
module.exports = JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.405.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/middleware-host-header":"3.398.0","@aws-sdk/middleware-logger":"3.398.0","@aws-sdk/middleware-recursion-detection":"3.398.0","@aws-sdk/middleware-user-agent":"3.398.0","@aws-sdk/types":"3.398.0","@aws-sdk/util-endpoints":"3.398.0","@aws-sdk/util-user-agent-browser":"3.398.0","@aws-sdk/util-user-agent-node":"3.405.0","@smithy/config-resolver":"^2.0.5","@smithy/fetch-http-handler":"^2.0.5","@smithy/hash-node":"^2.0.5","@smithy/invalid-dependency":"^2.0.5","@smithy/middleware-content-length":"^2.0.5","@smithy/middleware-endpoint":"^2.0.5","@smithy/middleware-retry":"^2.0.5","@smithy/middleware-serde":"^2.0.5","@smithy/middleware-stack":"^2.0.0","@smithy/node-config-provider":"^2.0.6","@smithy/node-http-handler":"^2.0.5","@smithy/protocol-http":"^2.0.5","@smithy/smithy-client":"^2.0.5","@smithy/types":"^2.2.2","@smithy/url-parser":"^2.0.5","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.6","@smithy/util-defaults-mode-node":"^2.0.6","@smithy/util-retry":"^2.0.0","@smithy/util-utf8":"^2.0.0","tslib":"^2.5.0"},"devDependencies":{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.23.23","typescript":"~4.9.5"},"engines":{"node":">=14.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"}}');
|
module.exports = JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.423.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/middleware-host-header":"3.418.0","@aws-sdk/middleware-logger":"3.418.0","@aws-sdk/middleware-recursion-detection":"3.418.0","@aws-sdk/middleware-user-agent":"3.418.0","@aws-sdk/region-config-resolver":"3.418.0","@aws-sdk/types":"3.418.0","@aws-sdk/util-endpoints":"3.418.0","@aws-sdk/util-user-agent-browser":"3.418.0","@aws-sdk/util-user-agent-node":"3.418.0","@smithy/config-resolver":"^2.0.10","@smithy/fetch-http-handler":"^2.1.5","@smithy/hash-node":"^2.0.9","@smithy/invalid-dependency":"^2.0.9","@smithy/middleware-content-length":"^2.0.11","@smithy/middleware-endpoint":"^2.0.9","@smithy/middleware-retry":"^2.0.12","@smithy/middleware-serde":"^2.0.9","@smithy/middleware-stack":"^2.0.2","@smithy/node-config-provider":"^2.0.12","@smithy/node-http-handler":"^2.1.5","@smithy/protocol-http":"^3.0.5","@smithy/smithy-client":"^2.1.6","@smithy/types":"^2.3.3","@smithy/url-parser":"^2.0.9","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.10","@smithy/util-defaults-mode-node":"^2.0.12","@smithy/util-retry":"^2.0.2","@smithy/util-utf8":"^2.0.0","tslib":"^2.5.0"},"devDependencies":{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.23.23","typescript":"~4.9.5"},"engines":{"node":">=14.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"}}');
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
@@ -21125,7 +21546,7 @@ module.exports = JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SD
|
|||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
module.exports = JSON.parse('{"name":"@aws-sdk/client-sts","description":"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native","version":"3.405.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts","test":"yarn test:unit","test:unit":"jest"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/credential-provider-node":"3.405.0","@aws-sdk/middleware-host-header":"3.398.0","@aws-sdk/middleware-logger":"3.398.0","@aws-sdk/middleware-recursion-detection":"3.398.0","@aws-sdk/middleware-sdk-sts":"3.398.0","@aws-sdk/middleware-signing":"3.398.0","@aws-sdk/middleware-user-agent":"3.398.0","@aws-sdk/types":"3.398.0","@aws-sdk/util-endpoints":"3.398.0","@aws-sdk/util-user-agent-browser":"3.398.0","@aws-sdk/util-user-agent-node":"3.405.0","@smithy/config-resolver":"^2.0.5","@smithy/fetch-http-handler":"^2.0.5","@smithy/hash-node":"^2.0.5","@smithy/invalid-dependency":"^2.0.5","@smithy/middleware-content-length":"^2.0.5","@smithy/middleware-endpoint":"^2.0.5","@smithy/middleware-retry":"^2.0.5","@smithy/middleware-serde":"^2.0.5","@smithy/middleware-stack":"^2.0.0","@smithy/node-config-provider":"^2.0.6","@smithy/node-http-handler":"^2.0.5","@smithy/protocol-http":"^2.0.5","@smithy/smithy-client":"^2.0.5","@smithy/types":"^2.2.2","@smithy/url-parser":"^2.0.5","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.6","@smithy/util-defaults-mode-node":"^2.0.6","@smithy/util-retry":"^2.0.0","@smithy/util-utf8":"^2.0.0","fast-xml-parser":"4.2.5","tslib":"^2.5.0"},"devDependencies":{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.23.23","typescript":"~4.9.5"},"engines":{"node":">=14.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sts"}}');
|
module.exports = JSON.parse('{"name":"@aws-sdk/client-sts","description":"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native","version":"3.423.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts","test":"yarn test:unit","test:unit":"jest"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/credential-provider-node":"3.423.0","@aws-sdk/middleware-host-header":"3.418.0","@aws-sdk/middleware-logger":"3.418.0","@aws-sdk/middleware-recursion-detection":"3.418.0","@aws-sdk/middleware-sdk-sts":"3.418.0","@aws-sdk/middleware-signing":"3.418.0","@aws-sdk/middleware-user-agent":"3.418.0","@aws-sdk/region-config-resolver":"3.418.0","@aws-sdk/types":"3.418.0","@aws-sdk/util-endpoints":"3.418.0","@aws-sdk/util-user-agent-browser":"3.418.0","@aws-sdk/util-user-agent-node":"3.418.0","@smithy/config-resolver":"^2.0.10","@smithy/fetch-http-handler":"^2.1.5","@smithy/hash-node":"^2.0.9","@smithy/invalid-dependency":"^2.0.9","@smithy/middleware-content-length":"^2.0.11","@smithy/middleware-endpoint":"^2.0.9","@smithy/middleware-retry":"^2.0.12","@smithy/middleware-serde":"^2.0.9","@smithy/middleware-stack":"^2.0.2","@smithy/node-config-provider":"^2.0.12","@smithy/node-http-handler":"^2.1.5","@smithy/protocol-http":"^3.0.5","@smithy/smithy-client":"^2.1.6","@smithy/types":"^2.3.3","@smithy/url-parser":"^2.0.9","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.10","@smithy/util-defaults-mode-node":"^2.0.12","@smithy/util-retry":"^2.0.2","@smithy/util-utf8":"^2.0.0","fast-xml-parser":"4.2.5","tslib":"^2.5.0"},"devDependencies":{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.23.23","typescript":"~4.9.5"},"engines":{"node":">=14.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sts"}}');
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
@@ -21133,7 +21554,7 @@ module.exports = JSON.parse('{"name":"@aws-sdk/client-sts","description":"AWS SD
|
|||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
module.exports = JSON.parse('{"partitions":[{"id":"aws","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","name":"aws","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^(us|eu|ap|sa|ca|me|af|il)\\\\-\\\\w+\\\\-\\\\d+$","regions":{"af-south-1":{"description":"Africa (Cape Town)"},"ap-east-1":{"description":"Asia Pacific (Hong Kong)"},"ap-northeast-1":{"description":"Asia Pacific (Tokyo)"},"ap-northeast-2":{"description":"Asia Pacific (Seoul)"},"ap-northeast-3":{"description":"Asia Pacific (Osaka)"},"ap-south-1":{"description":"Asia Pacific (Mumbai)"},"ap-south-2":{"description":"Asia Pacific (Hyderabad)"},"ap-southeast-1":{"description":"Asia Pacific (Singapore)"},"ap-southeast-2":{"description":"Asia Pacific (Sydney)"},"ap-southeast-3":{"description":"Asia Pacific (Jakarta)"},"ap-southeast-4":{"description":"Asia Pacific (Melbourne)"},"aws-global":{"description":"AWS Standard global region"},"ca-central-1":{"description":"Canada (Central)"},"eu-central-1":{"description":"Europe (Frankfurt)"},"eu-central-2":{"description":"Europe (Zurich)"},"eu-north-1":{"description":"Europe (Stockholm)"},"eu-south-1":{"description":"Europe (Milan)"},"eu-south-2":{"description":"Europe (Spain)"},"eu-west-1":{"description":"Europe (Ireland)"},"eu-west-2":{"description":"Europe (London)"},"eu-west-3":{"description":"Europe (Paris)"},"il-central-1":{"description":"Israel (Tel Aviv)"},"me-central-1":{"description":"Middle East (UAE)"},"me-south-1":{"description":"Middle East (Bahrain)"},"sa-east-1":{"description":"South America (Sao Paulo)"},"us-east-1":{"description":"US East (N. Virginia)"},"us-east-2":{"description":"US East (Ohio)"},"us-west-1":{"description":"US West (N. California)"},"us-west-2":{"description":"US West (Oregon)"}}},{"id":"aws-cn","outputs":{"dnsSuffix":"amazonaws.com.cn","dualStackDnsSuffix":"api.amazonwebservices.com.cn","name":"aws-cn","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^cn\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-cn-global":{"description":"AWS China global region"},"cn-north-1":{"description":"China (Beijing)"},"cn-northwest-1":{"description":"China (Ningxia)"}}},{"id":"aws-us-gov","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","name":"aws-us-gov","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-gov\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-us-gov-global":{"description":"AWS GovCloud (US) global region"},"us-gov-east-1":{"description":"AWS GovCloud (US-East)"},"us-gov-west-1":{"description":"AWS GovCloud (US-West)"}}},{"id":"aws-iso","outputs":{"dnsSuffix":"c2s.ic.gov","dualStackDnsSuffix":"c2s.ic.gov","name":"aws-iso","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-iso\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-global":{"description":"AWS ISO (US) global region"},"us-iso-east-1":{"description":"US ISO East"},"us-iso-west-1":{"description":"US ISO WEST"}}},{"id":"aws-iso-b","outputs":{"dnsSuffix":"sc2s.sgov.gov","dualStackDnsSuffix":"sc2s.sgov.gov","name":"aws-iso-b","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isob\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-b-global":{"description":"AWS ISOB (US) global region"},"us-isob-east-1":{"description":"US ISOB East (Ohio)"}}},{"id":"aws-iso-e","outputs":{"dnsSuffix":"cloud.adc-e.uk","dualStackDnsSuffix":"cloud.adc-e.uk","name":"aws-iso-e","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^eu\\\\-isoe\\\\-\\\\w+\\\\-\\\\d+$","regions":{}},{"id":"aws-iso-f","outputs":{"dnsSuffix":"csp.hci.ic.gov","dualStackDnsSuffix":"csp.hci.ic.gov","name":"aws-iso-f","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isof\\\\-\\\\w+\\\\-\\\\d+$","regions":{}}],"version":"1.1"}');
|
module.exports = JSON.parse('{"partitions":[{"id":"aws","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-east-1","name":"aws","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^(us|eu|ap|sa|ca|me|af|il)\\\\-\\\\w+\\\\-\\\\d+$","regions":{"af-south-1":{"description":"Africa (Cape Town)"},"ap-east-1":{"description":"Asia Pacific (Hong Kong)"},"ap-northeast-1":{"description":"Asia Pacific (Tokyo)"},"ap-northeast-2":{"description":"Asia Pacific (Seoul)"},"ap-northeast-3":{"description":"Asia Pacific (Osaka)"},"ap-south-1":{"description":"Asia Pacific (Mumbai)"},"ap-south-2":{"description":"Asia Pacific (Hyderabad)"},"ap-southeast-1":{"description":"Asia Pacific (Singapore)"},"ap-southeast-2":{"description":"Asia Pacific (Sydney)"},"ap-southeast-3":{"description":"Asia Pacific (Jakarta)"},"ap-southeast-4":{"description":"Asia Pacific (Melbourne)"},"aws-global":{"description":"AWS Standard global region"},"ca-central-1":{"description":"Canada (Central)"},"eu-central-1":{"description":"Europe (Frankfurt)"},"eu-central-2":{"description":"Europe (Zurich)"},"eu-north-1":{"description":"Europe (Stockholm)"},"eu-south-1":{"description":"Europe (Milan)"},"eu-south-2":{"description":"Europe (Spain)"},"eu-west-1":{"description":"Europe (Ireland)"},"eu-west-2":{"description":"Europe (London)"},"eu-west-3":{"description":"Europe (Paris)"},"il-central-1":{"description":"Israel (Tel Aviv)"},"me-central-1":{"description":"Middle East (UAE)"},"me-south-1":{"description":"Middle East (Bahrain)"},"sa-east-1":{"description":"South America (Sao Paulo)"},"us-east-1":{"description":"US East (N. Virginia)"},"us-east-2":{"description":"US East (Ohio)"},"us-west-1":{"description":"US West (N. California)"},"us-west-2":{"description":"US West (Oregon)"}}},{"id":"aws-cn","outputs":{"dnsSuffix":"amazonaws.com.cn","dualStackDnsSuffix":"api.amazonwebservices.com.cn","implicitGlobalRegion":"cn-northwest-1","name":"aws-cn","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^cn\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-cn-global":{"description":"AWS China global region"},"cn-north-1":{"description":"China (Beijing)"},"cn-northwest-1":{"description":"China (Ningxia)"}}},{"id":"aws-us-gov","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-gov-west-1","name":"aws-us-gov","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-gov\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-us-gov-global":{"description":"AWS GovCloud (US) global region"},"us-gov-east-1":{"description":"AWS GovCloud (US-East)"},"us-gov-west-1":{"description":"AWS GovCloud (US-West)"}}},{"id":"aws-iso","outputs":{"dnsSuffix":"c2s.ic.gov","dualStackDnsSuffix":"c2s.ic.gov","implicitGlobalRegion":"us-iso-east-1","name":"aws-iso","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-iso\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-global":{"description":"AWS ISO (US) global region"},"us-iso-east-1":{"description":"US ISO East"},"us-iso-west-1":{"description":"US ISO WEST"}}},{"id":"aws-iso-b","outputs":{"dnsSuffix":"sc2s.sgov.gov","dualStackDnsSuffix":"sc2s.sgov.gov","implicitGlobalRegion":"us-isob-east-1","name":"aws-iso-b","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isob\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-b-global":{"description":"AWS ISOB (US) global region"},"us-isob-east-1":{"description":"US ISOB East (Ohio)"}}},{"id":"aws-iso-e","outputs":{"dnsSuffix":"cloud.adc-e.uk","dualStackDnsSuffix":"cloud.adc-e.uk","implicitGlobalRegion":"eu-isoe-west-1","name":"aws-iso-e","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^eu\\\\-isoe\\\\-\\\\w+\\\\-\\\\d+$","regions":{}},{"id":"aws-iso-f","outputs":{"dnsSuffix":"csp.hci.ic.gov","dualStackDnsSuffix":"csp.hci.ic.gov","implicitGlobalRegion":"us-isof-south-1","name":"aws-iso-f","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isof\\\\-\\\\w+\\\\-\\\\d+$","regions":{}}],"version":"1.1"}');
|
||||||
|
|
||||||
/***/ })
|
/***/ })
|
||||||
|
|
||||||
|
|||||||
+480
-55
@@ -143,6 +143,10 @@ async function assumeRoleWithWebIdentityTokenFile(params, client, webIdentityTok
|
|||||||
}
|
}
|
||||||
async function assumeRoleWithCredentials(params, client) {
|
async function assumeRoleWithCredentials(params, client) {
|
||||||
core.info('Assuming role with user credentials');
|
core.info('Assuming role with user credentials');
|
||||||
|
if (!process.env['AWS_SESSION_TOKEN']) {
|
||||||
|
core.warning('To avoid using long-term AWS credentials, please update your workflows to authenticate using OpenID Connect.' +
|
||||||
|
' See https://s12d.com/gha-oidc-aws for more information.');
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
const creds = await client.send(new client_sts_1.AssumeRoleCommand({ ...params }));
|
const creds = await client.send(new client_sts_1.AssumeRoleCommand({ ...params }));
|
||||||
return creds;
|
return creds;
|
||||||
@@ -1148,7 +1152,7 @@ class OidcClient {
|
|||||||
.catch(error => {
|
.catch(error => {
|
||||||
throw new Error(`Failed to get ID Token. \n
|
throw new Error(`Failed to get ID Token. \n
|
||||||
Error Code : ${error.statusCode}\n
|
Error Code : ${error.statusCode}\n
|
||||||
Error Message: ${error.result.message}`);
|
Error Message: ${error.message}`);
|
||||||
});
|
});
|
||||||
const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
|
const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
|
||||||
if (!id_token) {
|
if (!id_token) {
|
||||||
@@ -3037,6 +3041,7 @@ const middleware_endpoint_1 = __nccwpck_require__(82918);
|
|||||||
const middleware_serde_1 = __nccwpck_require__(81238);
|
const middleware_serde_1 = __nccwpck_require__(81238);
|
||||||
const smithy_client_1 = __nccwpck_require__(63570);
|
const smithy_client_1 = __nccwpck_require__(63570);
|
||||||
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
||||||
|
const types_1 = __nccwpck_require__(55756);
|
||||||
const models_0_1 = __nccwpck_require__(66390);
|
const models_0_1 = __nccwpck_require__(66390);
|
||||||
const Aws_restJson1_1 = __nccwpck_require__(98507);
|
const Aws_restJson1_1 = __nccwpck_require__(98507);
|
||||||
class GetRoleCredentialsCommand extends smithy_client_1.Command {
|
class GetRoleCredentialsCommand extends smithy_client_1.Command {
|
||||||
@@ -3065,6 +3070,10 @@ class GetRoleCredentialsCommand extends smithy_client_1.Command {
|
|||||||
commandName,
|
commandName,
|
||||||
inputFilterSensitiveLog: models_0_1.GetRoleCredentialsRequestFilterSensitiveLog,
|
inputFilterSensitiveLog: models_0_1.GetRoleCredentialsRequestFilterSensitiveLog,
|
||||||
outputFilterSensitiveLog: models_0_1.GetRoleCredentialsResponseFilterSensitiveLog,
|
outputFilterSensitiveLog: models_0_1.GetRoleCredentialsResponseFilterSensitiveLog,
|
||||||
|
[types_1.SMITHY_CONTEXT_KEY]: {
|
||||||
|
service: "SWBPortalService",
|
||||||
|
operation: "GetRoleCredentials",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const { requestHandler } = configuration;
|
const { requestHandler } = configuration;
|
||||||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
||||||
@@ -3092,6 +3101,7 @@ const middleware_endpoint_1 = __nccwpck_require__(82918);
|
|||||||
const middleware_serde_1 = __nccwpck_require__(81238);
|
const middleware_serde_1 = __nccwpck_require__(81238);
|
||||||
const smithy_client_1 = __nccwpck_require__(63570);
|
const smithy_client_1 = __nccwpck_require__(63570);
|
||||||
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
||||||
|
const types_1 = __nccwpck_require__(55756);
|
||||||
const models_0_1 = __nccwpck_require__(66390);
|
const models_0_1 = __nccwpck_require__(66390);
|
||||||
const Aws_restJson1_1 = __nccwpck_require__(98507);
|
const Aws_restJson1_1 = __nccwpck_require__(98507);
|
||||||
class ListAccountRolesCommand extends smithy_client_1.Command {
|
class ListAccountRolesCommand extends smithy_client_1.Command {
|
||||||
@@ -3120,6 +3130,10 @@ class ListAccountRolesCommand extends smithy_client_1.Command {
|
|||||||
commandName,
|
commandName,
|
||||||
inputFilterSensitiveLog: models_0_1.ListAccountRolesRequestFilterSensitiveLog,
|
inputFilterSensitiveLog: models_0_1.ListAccountRolesRequestFilterSensitiveLog,
|
||||||
outputFilterSensitiveLog: (_) => _,
|
outputFilterSensitiveLog: (_) => _,
|
||||||
|
[types_1.SMITHY_CONTEXT_KEY]: {
|
||||||
|
service: "SWBPortalService",
|
||||||
|
operation: "ListAccountRoles",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const { requestHandler } = configuration;
|
const { requestHandler } = configuration;
|
||||||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
||||||
@@ -3147,6 +3161,7 @@ const middleware_endpoint_1 = __nccwpck_require__(82918);
|
|||||||
const middleware_serde_1 = __nccwpck_require__(81238);
|
const middleware_serde_1 = __nccwpck_require__(81238);
|
||||||
const smithy_client_1 = __nccwpck_require__(63570);
|
const smithy_client_1 = __nccwpck_require__(63570);
|
||||||
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
||||||
|
const types_1 = __nccwpck_require__(55756);
|
||||||
const models_0_1 = __nccwpck_require__(66390);
|
const models_0_1 = __nccwpck_require__(66390);
|
||||||
const Aws_restJson1_1 = __nccwpck_require__(98507);
|
const Aws_restJson1_1 = __nccwpck_require__(98507);
|
||||||
class ListAccountsCommand extends smithy_client_1.Command {
|
class ListAccountsCommand extends smithy_client_1.Command {
|
||||||
@@ -3175,6 +3190,10 @@ class ListAccountsCommand extends smithy_client_1.Command {
|
|||||||
commandName,
|
commandName,
|
||||||
inputFilterSensitiveLog: models_0_1.ListAccountsRequestFilterSensitiveLog,
|
inputFilterSensitiveLog: models_0_1.ListAccountsRequestFilterSensitiveLog,
|
||||||
outputFilterSensitiveLog: (_) => _,
|
outputFilterSensitiveLog: (_) => _,
|
||||||
|
[types_1.SMITHY_CONTEXT_KEY]: {
|
||||||
|
service: "SWBPortalService",
|
||||||
|
operation: "ListAccounts",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const { requestHandler } = configuration;
|
const { requestHandler } = configuration;
|
||||||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
||||||
@@ -3202,6 +3221,7 @@ const middleware_endpoint_1 = __nccwpck_require__(82918);
|
|||||||
const middleware_serde_1 = __nccwpck_require__(81238);
|
const middleware_serde_1 = __nccwpck_require__(81238);
|
||||||
const smithy_client_1 = __nccwpck_require__(63570);
|
const smithy_client_1 = __nccwpck_require__(63570);
|
||||||
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
||||||
|
const types_1 = __nccwpck_require__(55756);
|
||||||
const models_0_1 = __nccwpck_require__(66390);
|
const models_0_1 = __nccwpck_require__(66390);
|
||||||
const Aws_restJson1_1 = __nccwpck_require__(98507);
|
const Aws_restJson1_1 = __nccwpck_require__(98507);
|
||||||
class LogoutCommand extends smithy_client_1.Command {
|
class LogoutCommand extends smithy_client_1.Command {
|
||||||
@@ -3230,6 +3250,10 @@ class LogoutCommand extends smithy_client_1.Command {
|
|||||||
commandName,
|
commandName,
|
||||||
inputFilterSensitiveLog: models_0_1.LogoutRequestFilterSensitiveLog,
|
inputFilterSensitiveLog: models_0_1.LogoutRequestFilterSensitiveLog,
|
||||||
outputFilterSensitiveLog: (_) => _,
|
outputFilterSensitiveLog: (_) => _,
|
||||||
|
[types_1.SMITHY_CONTEXT_KEY]: {
|
||||||
|
service: "SWBPortalService",
|
||||||
|
operation: "Logout",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const { requestHandler } = configuration;
|
const { requestHandler } = configuration;
|
||||||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
||||||
@@ -3308,9 +3332,9 @@ exports.defaultEndpointResolver = defaultEndpointResolver;
|
|||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.ruleSet = void 0;
|
exports.ruleSet = void 0;
|
||||||
const p = "required", q = "fn", r = "argv", s = "ref";
|
const s = "required", t = "fn", u = "argv", v = "ref";
|
||||||
const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [p]: false, "type": "String" }, f = { [p]: true, "default": false, "type": "Boolean" }, g = { [s]: "Endpoint" }, h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, j = {}, k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }, l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }, m = [g], n = [h], o = [i];
|
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "getAttr", g = { [s]: false, "type": "String" }, h = { [s]: true, "default": false, "type": "Boolean" }, i = { [v]: "Endpoint" }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, l = {}, m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }, n = { [v]: e }, o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }, p = [j], q = [k], r = [{ [v]: "Region" }];
|
||||||
const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
|
const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }, { conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, o], type: b, rules: [{ endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], endpoint: { url: "https://portal.sso.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
|
||||||
exports.ruleSet = _data;
|
exports.ruleSet = _data;
|
||||||
|
|
||||||
|
|
||||||
@@ -4026,16 +4050,22 @@ exports.getRuntimeConfig = getRuntimeConfig;
|
|||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.resolveRuntimeExtensions = void 0;
|
exports.resolveRuntimeExtensions = void 0;
|
||||||
|
const region_config_resolver_1 = __nccwpck_require__(18156);
|
||||||
|
const protocol_http_1 = __nccwpck_require__(64418);
|
||||||
const smithy_client_1 = __nccwpck_require__(63570);
|
const smithy_client_1 = __nccwpck_require__(63570);
|
||||||
const asPartial = (t) => t;
|
const asPartial = (t) => t;
|
||||||
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
||||||
const extensionConfiguration = {
|
const extensionConfiguration = {
|
||||||
|
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
||||||
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
||||||
|
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
||||||
};
|
};
|
||||||
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
||||||
return {
|
return {
|
||||||
...runtimeConfig,
|
...runtimeConfig,
|
||||||
|
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
||||||
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
||||||
|
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
||||||
@@ -4140,6 +4170,7 @@ const middleware_endpoint_1 = __nccwpck_require__(82918);
|
|||||||
const middleware_serde_1 = __nccwpck_require__(81238);
|
const middleware_serde_1 = __nccwpck_require__(81238);
|
||||||
const smithy_client_1 = __nccwpck_require__(63570);
|
const smithy_client_1 = __nccwpck_require__(63570);
|
||||||
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
||||||
|
const types_1 = __nccwpck_require__(55756);
|
||||||
const models_0_1 = __nccwpck_require__(21780);
|
const models_0_1 = __nccwpck_require__(21780);
|
||||||
const Aws_query_1 = __nccwpck_require__(10740);
|
const Aws_query_1 = __nccwpck_require__(10740);
|
||||||
class AssumeRoleCommand extends smithy_client_1.Command {
|
class AssumeRoleCommand extends smithy_client_1.Command {
|
||||||
@@ -4170,6 +4201,10 @@ class AssumeRoleCommand extends smithy_client_1.Command {
|
|||||||
commandName,
|
commandName,
|
||||||
inputFilterSensitiveLog: (_) => _,
|
inputFilterSensitiveLog: (_) => _,
|
||||||
outputFilterSensitiveLog: models_0_1.AssumeRoleResponseFilterSensitiveLog,
|
outputFilterSensitiveLog: models_0_1.AssumeRoleResponseFilterSensitiveLog,
|
||||||
|
[types_1.SMITHY_CONTEXT_KEY]: {
|
||||||
|
service: "AWSSecurityTokenServiceV20110615",
|
||||||
|
operation: "AssumeRole",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const { requestHandler } = configuration;
|
const { requestHandler } = configuration;
|
||||||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
||||||
@@ -4197,6 +4232,7 @@ const middleware_endpoint_1 = __nccwpck_require__(82918);
|
|||||||
const middleware_serde_1 = __nccwpck_require__(81238);
|
const middleware_serde_1 = __nccwpck_require__(81238);
|
||||||
const smithy_client_1 = __nccwpck_require__(63570);
|
const smithy_client_1 = __nccwpck_require__(63570);
|
||||||
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
||||||
|
const types_1 = __nccwpck_require__(55756);
|
||||||
const models_0_1 = __nccwpck_require__(21780);
|
const models_0_1 = __nccwpck_require__(21780);
|
||||||
const Aws_query_1 = __nccwpck_require__(10740);
|
const Aws_query_1 = __nccwpck_require__(10740);
|
||||||
class AssumeRoleWithSAMLCommand extends smithy_client_1.Command {
|
class AssumeRoleWithSAMLCommand extends smithy_client_1.Command {
|
||||||
@@ -4226,6 +4262,10 @@ class AssumeRoleWithSAMLCommand extends smithy_client_1.Command {
|
|||||||
commandName,
|
commandName,
|
||||||
inputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLRequestFilterSensitiveLog,
|
inputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLRequestFilterSensitiveLog,
|
||||||
outputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLResponseFilterSensitiveLog,
|
outputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLResponseFilterSensitiveLog,
|
||||||
|
[types_1.SMITHY_CONTEXT_KEY]: {
|
||||||
|
service: "AWSSecurityTokenServiceV20110615",
|
||||||
|
operation: "AssumeRoleWithSAML",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const { requestHandler } = configuration;
|
const { requestHandler } = configuration;
|
||||||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
||||||
@@ -4253,6 +4293,7 @@ const middleware_endpoint_1 = __nccwpck_require__(82918);
|
|||||||
const middleware_serde_1 = __nccwpck_require__(81238);
|
const middleware_serde_1 = __nccwpck_require__(81238);
|
||||||
const smithy_client_1 = __nccwpck_require__(63570);
|
const smithy_client_1 = __nccwpck_require__(63570);
|
||||||
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
||||||
|
const types_1 = __nccwpck_require__(55756);
|
||||||
const models_0_1 = __nccwpck_require__(21780);
|
const models_0_1 = __nccwpck_require__(21780);
|
||||||
const Aws_query_1 = __nccwpck_require__(10740);
|
const Aws_query_1 = __nccwpck_require__(10740);
|
||||||
class AssumeRoleWithWebIdentityCommand extends smithy_client_1.Command {
|
class AssumeRoleWithWebIdentityCommand extends smithy_client_1.Command {
|
||||||
@@ -4282,6 +4323,10 @@ class AssumeRoleWithWebIdentityCommand extends smithy_client_1.Command {
|
|||||||
commandName,
|
commandName,
|
||||||
inputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityRequestFilterSensitiveLog,
|
inputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityRequestFilterSensitiveLog,
|
||||||
outputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityResponseFilterSensitiveLog,
|
outputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityResponseFilterSensitiveLog,
|
||||||
|
[types_1.SMITHY_CONTEXT_KEY]: {
|
||||||
|
service: "AWSSecurityTokenServiceV20110615",
|
||||||
|
operation: "AssumeRoleWithWebIdentity",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const { requestHandler } = configuration;
|
const { requestHandler } = configuration;
|
||||||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
||||||
@@ -4310,6 +4355,7 @@ const middleware_endpoint_1 = __nccwpck_require__(82918);
|
|||||||
const middleware_serde_1 = __nccwpck_require__(81238);
|
const middleware_serde_1 = __nccwpck_require__(81238);
|
||||||
const smithy_client_1 = __nccwpck_require__(63570);
|
const smithy_client_1 = __nccwpck_require__(63570);
|
||||||
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
||||||
|
const types_1 = __nccwpck_require__(55756);
|
||||||
const Aws_query_1 = __nccwpck_require__(10740);
|
const Aws_query_1 = __nccwpck_require__(10740);
|
||||||
class DecodeAuthorizationMessageCommand extends smithy_client_1.Command {
|
class DecodeAuthorizationMessageCommand extends smithy_client_1.Command {
|
||||||
static getEndpointParameterInstructions() {
|
static getEndpointParameterInstructions() {
|
||||||
@@ -4339,6 +4385,10 @@ class DecodeAuthorizationMessageCommand extends smithy_client_1.Command {
|
|||||||
commandName,
|
commandName,
|
||||||
inputFilterSensitiveLog: (_) => _,
|
inputFilterSensitiveLog: (_) => _,
|
||||||
outputFilterSensitiveLog: (_) => _,
|
outputFilterSensitiveLog: (_) => _,
|
||||||
|
[types_1.SMITHY_CONTEXT_KEY]: {
|
||||||
|
service: "AWSSecurityTokenServiceV20110615",
|
||||||
|
operation: "DecodeAuthorizationMessage",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const { requestHandler } = configuration;
|
const { requestHandler } = configuration;
|
||||||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
||||||
@@ -4367,6 +4417,7 @@ const middleware_endpoint_1 = __nccwpck_require__(82918);
|
|||||||
const middleware_serde_1 = __nccwpck_require__(81238);
|
const middleware_serde_1 = __nccwpck_require__(81238);
|
||||||
const smithy_client_1 = __nccwpck_require__(63570);
|
const smithy_client_1 = __nccwpck_require__(63570);
|
||||||
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
||||||
|
const types_1 = __nccwpck_require__(55756);
|
||||||
const Aws_query_1 = __nccwpck_require__(10740);
|
const Aws_query_1 = __nccwpck_require__(10740);
|
||||||
class GetAccessKeyInfoCommand extends smithy_client_1.Command {
|
class GetAccessKeyInfoCommand extends smithy_client_1.Command {
|
||||||
static getEndpointParameterInstructions() {
|
static getEndpointParameterInstructions() {
|
||||||
@@ -4396,6 +4447,10 @@ class GetAccessKeyInfoCommand extends smithy_client_1.Command {
|
|||||||
commandName,
|
commandName,
|
||||||
inputFilterSensitiveLog: (_) => _,
|
inputFilterSensitiveLog: (_) => _,
|
||||||
outputFilterSensitiveLog: (_) => _,
|
outputFilterSensitiveLog: (_) => _,
|
||||||
|
[types_1.SMITHY_CONTEXT_KEY]: {
|
||||||
|
service: "AWSSecurityTokenServiceV20110615",
|
||||||
|
operation: "GetAccessKeyInfo",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const { requestHandler } = configuration;
|
const { requestHandler } = configuration;
|
||||||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
||||||
@@ -4424,6 +4479,7 @@ const middleware_endpoint_1 = __nccwpck_require__(82918);
|
|||||||
const middleware_serde_1 = __nccwpck_require__(81238);
|
const middleware_serde_1 = __nccwpck_require__(81238);
|
||||||
const smithy_client_1 = __nccwpck_require__(63570);
|
const smithy_client_1 = __nccwpck_require__(63570);
|
||||||
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
||||||
|
const types_1 = __nccwpck_require__(55756);
|
||||||
const Aws_query_1 = __nccwpck_require__(10740);
|
const Aws_query_1 = __nccwpck_require__(10740);
|
||||||
class GetCallerIdentityCommand extends smithy_client_1.Command {
|
class GetCallerIdentityCommand extends smithy_client_1.Command {
|
||||||
static getEndpointParameterInstructions() {
|
static getEndpointParameterInstructions() {
|
||||||
@@ -4453,6 +4509,10 @@ class GetCallerIdentityCommand extends smithy_client_1.Command {
|
|||||||
commandName,
|
commandName,
|
||||||
inputFilterSensitiveLog: (_) => _,
|
inputFilterSensitiveLog: (_) => _,
|
||||||
outputFilterSensitiveLog: (_) => _,
|
outputFilterSensitiveLog: (_) => _,
|
||||||
|
[types_1.SMITHY_CONTEXT_KEY]: {
|
||||||
|
service: "AWSSecurityTokenServiceV20110615",
|
||||||
|
operation: "GetCallerIdentity",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const { requestHandler } = configuration;
|
const { requestHandler } = configuration;
|
||||||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
||||||
@@ -4481,6 +4541,7 @@ const middleware_endpoint_1 = __nccwpck_require__(82918);
|
|||||||
const middleware_serde_1 = __nccwpck_require__(81238);
|
const middleware_serde_1 = __nccwpck_require__(81238);
|
||||||
const smithy_client_1 = __nccwpck_require__(63570);
|
const smithy_client_1 = __nccwpck_require__(63570);
|
||||||
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
||||||
|
const types_1 = __nccwpck_require__(55756);
|
||||||
const models_0_1 = __nccwpck_require__(21780);
|
const models_0_1 = __nccwpck_require__(21780);
|
||||||
const Aws_query_1 = __nccwpck_require__(10740);
|
const Aws_query_1 = __nccwpck_require__(10740);
|
||||||
class GetFederationTokenCommand extends smithy_client_1.Command {
|
class GetFederationTokenCommand extends smithy_client_1.Command {
|
||||||
@@ -4511,6 +4572,10 @@ class GetFederationTokenCommand extends smithy_client_1.Command {
|
|||||||
commandName,
|
commandName,
|
||||||
inputFilterSensitiveLog: (_) => _,
|
inputFilterSensitiveLog: (_) => _,
|
||||||
outputFilterSensitiveLog: models_0_1.GetFederationTokenResponseFilterSensitiveLog,
|
outputFilterSensitiveLog: models_0_1.GetFederationTokenResponseFilterSensitiveLog,
|
||||||
|
[types_1.SMITHY_CONTEXT_KEY]: {
|
||||||
|
service: "AWSSecurityTokenServiceV20110615",
|
||||||
|
operation: "GetFederationToken",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const { requestHandler } = configuration;
|
const { requestHandler } = configuration;
|
||||||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
||||||
@@ -4539,6 +4604,7 @@ const middleware_endpoint_1 = __nccwpck_require__(82918);
|
|||||||
const middleware_serde_1 = __nccwpck_require__(81238);
|
const middleware_serde_1 = __nccwpck_require__(81238);
|
||||||
const smithy_client_1 = __nccwpck_require__(63570);
|
const smithy_client_1 = __nccwpck_require__(63570);
|
||||||
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
Object.defineProperty(exports, "$Command", ({ enumerable: true, get: function () { return smithy_client_1.Command; } }));
|
||||||
|
const types_1 = __nccwpck_require__(55756);
|
||||||
const models_0_1 = __nccwpck_require__(21780);
|
const models_0_1 = __nccwpck_require__(21780);
|
||||||
const Aws_query_1 = __nccwpck_require__(10740);
|
const Aws_query_1 = __nccwpck_require__(10740);
|
||||||
class GetSessionTokenCommand extends smithy_client_1.Command {
|
class GetSessionTokenCommand extends smithy_client_1.Command {
|
||||||
@@ -4569,6 +4635,10 @@ class GetSessionTokenCommand extends smithy_client_1.Command {
|
|||||||
commandName,
|
commandName,
|
||||||
inputFilterSensitiveLog: (_) => _,
|
inputFilterSensitiveLog: (_) => _,
|
||||||
outputFilterSensitiveLog: models_0_1.GetSessionTokenResponseFilterSensitiveLog,
|
outputFilterSensitiveLog: models_0_1.GetSessionTokenResponseFilterSensitiveLog,
|
||||||
|
[types_1.SMITHY_CONTEXT_KEY]: {
|
||||||
|
service: "AWSSecurityTokenServiceV20110615",
|
||||||
|
operation: "GetSessionToken",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const { requestHandler } = configuration;
|
const { requestHandler } = configuration;
|
||||||
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
||||||
@@ -4774,7 +4844,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|||||||
exports.ruleSet = void 0;
|
exports.ruleSet = void 0;
|
||||||
const F = "required", G = "type", H = "fn", I = "argv", J = "ref";
|
const F = "required", G = "type", H = "fn", I = "argv", J = "ref";
|
||||||
const a = false, b = true, c = "booleanEquals", d = "tree", e = "stringEquals", f = "sigv4", g = "sts", h = "us-east-1", i = "endpoint", j = "https://sts.{Region}.{PartitionResult#dnsSuffix}", k = "error", l = "getAttr", m = { [F]: false, [G]: "String" }, n = { [F]: true, "default": false, [G]: "Boolean" }, o = { [J]: "Endpoint" }, p = { [H]: "isSet", [I]: [{ [J]: "Region" }] }, q = { [J]: "Region" }, r = { [H]: "aws.partition", [I]: [q], "assign": "PartitionResult" }, s = { [J]: "UseFIPS" }, t = { [J]: "UseDualStack" }, u = { "url": "https://sts.amazonaws.com", "properties": { "authSchemes": [{ "name": f, "signingName": g, "signingRegion": h }] }, "headers": {} }, v = {}, w = { "conditions": [{ [H]: e, [I]: [q, "aws-global"] }], [i]: u, [G]: i }, x = { [H]: c, [I]: [s, true] }, y = { [H]: c, [I]: [t, true] }, z = { [H]: c, [I]: [true, { [H]: l, [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"] }] }, A = { [J]: "PartitionResult" }, B = { [H]: c, [I]: [true, { [H]: l, [I]: [A, "supportsDualStack"] }] }, C = [{ [H]: "isSet", [I]: [o] }], D = [x], E = [y];
|
const a = false, b = true, c = "booleanEquals", d = "tree", e = "stringEquals", f = "sigv4", g = "sts", h = "us-east-1", i = "endpoint", j = "https://sts.{Region}.{PartitionResult#dnsSuffix}", k = "error", l = "getAttr", m = { [F]: false, [G]: "String" }, n = { [F]: true, "default": false, [G]: "Boolean" }, o = { [J]: "Endpoint" }, p = { [H]: "isSet", [I]: [{ [J]: "Region" }] }, q = { [J]: "Region" }, r = { [H]: "aws.partition", [I]: [q], "assign": "PartitionResult" }, s = { [J]: "UseFIPS" }, t = { [J]: "UseDualStack" }, u = { "url": "https://sts.amazonaws.com", "properties": { "authSchemes": [{ "name": f, "signingName": g, "signingRegion": h }] }, "headers": {} }, v = {}, w = { "conditions": [{ [H]: e, [I]: [q, "aws-global"] }], [i]: u, [G]: i }, x = { [H]: c, [I]: [s, true] }, y = { [H]: c, [I]: [t, true] }, z = { [H]: c, [I]: [true, { [H]: l, [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"] }] }, A = { [J]: "PartitionResult" }, B = { [H]: c, [I]: [true, { [H]: l, [I]: [A, "supportsDualStack"] }] }, C = [{ [H]: "isSet", [I]: [o] }], D = [x], E = [y];
|
||||||
const _data = { version: "1.0", parameters: { Region: m, UseDualStack: n, UseFIPS: n, Endpoint: m, UseGlobalEndpoint: n }, rules: [{ conditions: [{ [H]: c, [I]: [{ [J]: "UseGlobalEndpoint" }, b] }, { [H]: "not", [I]: C }, p, r, { [H]: c, [I]: [s, a] }, { [H]: c, [I]: [t, a] }], [G]: d, rules: [{ conditions: [{ [H]: e, [I]: [q, "ap-northeast-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "ap-south-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "ap-southeast-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "ap-southeast-2"] }], endpoint: u, [G]: i }, w, { conditions: [{ [H]: e, [I]: [q, "ca-central-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-central-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-north-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-west-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-west-2"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-west-3"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "sa-east-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, h] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "us-east-2"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "us-west-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "us-west-2"] }], endpoint: u, [G]: i }, { endpoint: { url: j, properties: { authSchemes: [{ name: f, signingName: g, signingRegion: "{Region}" }] }, headers: v }, [G]: i }] }, { conditions: C, [G]: d, rules: [{ conditions: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G]: k }, { [G]: d, rules: [{ conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G]: k }, { endpoint: { url: o, properties: v, headers: v }, [G]: i }] }] }, { [G]: d, rules: [{ conditions: [p], [G]: d, rules: [{ conditions: [r], [G]: d, rules: [{ conditions: [x, y], [G]: d, rules: [{ conditions: [z, B], [G]: d, rules: [{ [G]: d, rules: [{ endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: i }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k }] }, { conditions: D, [G]: d, rules: [{ conditions: [z], [G]: d, rules: [{ [G]: d, rules: [{ conditions: [{ [H]: e, [I]: ["aws-us-gov", { [H]: l, [I]: [A, "name"] }] }], endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v }, [G]: i }, { endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", properties: v, headers: v }, [G]: i }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", [G]: k }] }, { conditions: E, [G]: d, rules: [{ conditions: [B], [G]: d, rules: [{ [G]: d, rules: [{ endpoint: { url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: i }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", [G]: k }] }, { [G]: d, rules: [w, { endpoint: { url: j, properties: v, headers: v }, [G]: i }] }] }] }, { error: "Invalid Configuration: Missing Region", [G]: k }] }] };
|
const _data = { version: "1.0", parameters: { Region: m, UseDualStack: n, UseFIPS: n, Endpoint: m, UseGlobalEndpoint: n }, rules: [{ conditions: [{ [H]: c, [I]: [{ [J]: "UseGlobalEndpoint" }, b] }, { [H]: "not", [I]: C }, p, r, { [H]: c, [I]: [s, a] }, { [H]: c, [I]: [t, a] }], [G]: d, rules: [{ conditions: [{ [H]: e, [I]: [q, "ap-northeast-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "ap-south-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "ap-southeast-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "ap-southeast-2"] }], endpoint: u, [G]: i }, w, { conditions: [{ [H]: e, [I]: [q, "ca-central-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-central-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-north-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-west-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-west-2"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "eu-west-3"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "sa-east-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, h] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "us-east-2"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "us-west-1"] }], endpoint: u, [G]: i }, { conditions: [{ [H]: e, [I]: [q, "us-west-2"] }], endpoint: u, [G]: i }, { endpoint: { url: j, properties: { authSchemes: [{ name: f, signingName: g, signingRegion: "{Region}" }] }, headers: v }, [G]: i }] }, { conditions: C, [G]: d, rules: [{ conditions: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G]: k }, { conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G]: k }, { endpoint: { url: o, properties: v, headers: v }, [G]: i }] }, { conditions: [p], [G]: d, rules: [{ conditions: [r], [G]: d, rules: [{ conditions: [x, y], [G]: d, rules: [{ conditions: [z, B], [G]: d, rules: [{ endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: i }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k }] }, { conditions: D, [G]: d, rules: [{ conditions: [z], [G]: d, rules: [{ conditions: [{ [H]: e, [I]: ["aws-us-gov", { [H]: l, [I]: [A, "name"] }] }], endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v }, [G]: i }, { endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", properties: v, headers: v }, [G]: i }] }, { error: "FIPS is enabled but this partition does not support FIPS", [G]: k }] }, { conditions: E, [G]: d, rules: [{ conditions: [B], [G]: d, rules: [{ endpoint: { url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: i }] }, { error: "DualStack is enabled but this partition does not support DualStack", [G]: k }] }, w, { endpoint: { url: j, properties: v, headers: v }, [G]: i }] }] }, { error: "Invalid Configuration: Missing Region", [G]: k }] };
|
||||||
exports.ruleSet = _data;
|
exports.ruleSet = _data;
|
||||||
|
|
||||||
|
|
||||||
@@ -6117,16 +6187,22 @@ exports.getRuntimeConfig = getRuntimeConfig;
|
|||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.resolveRuntimeExtensions = void 0;
|
exports.resolveRuntimeExtensions = void 0;
|
||||||
|
const region_config_resolver_1 = __nccwpck_require__(18156);
|
||||||
|
const protocol_http_1 = __nccwpck_require__(64418);
|
||||||
const smithy_client_1 = __nccwpck_require__(63570);
|
const smithy_client_1 = __nccwpck_require__(63570);
|
||||||
const asPartial = (t) => t;
|
const asPartial = (t) => t;
|
||||||
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
||||||
const extensionConfiguration = {
|
const extensionConfiguration = {
|
||||||
|
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
||||||
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
||||||
|
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
||||||
};
|
};
|
||||||
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
||||||
return {
|
return {
|
||||||
...runtimeConfig,
|
...runtimeConfig,
|
||||||
|
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
||||||
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
||||||
|
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
||||||
@@ -6250,6 +6326,7 @@ const resolveAssumeRoleCredentials = async (profileName, profiles, options, visi
|
|||||||
RoleArn: data.role_arn,
|
RoleArn: data.role_arn,
|
||||||
RoleSessionName: data.role_session_name || `aws-sdk-js-${Date.now()}`,
|
RoleSessionName: data.role_session_name || `aws-sdk-js-${Date.now()}`,
|
||||||
ExternalId: data.external_id,
|
ExternalId: data.external_id,
|
||||||
|
DurationSeconds: parseInt(data.duration_seconds || "3600", 10),
|
||||||
};
|
};
|
||||||
const { mfa_serial } = data;
|
const { mfa_serial } = data;
|
||||||
if (mfa_serial) {
|
if (mfa_serial) {
|
||||||
@@ -7414,6 +7491,161 @@ const getUserAgentPlugin = (config) => ({
|
|||||||
exports.getUserAgentPlugin = getUserAgentPlugin;
|
exports.getUserAgentPlugin = getUserAgentPlugin;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 60079:
|
||||||
|
/***/ ((__unused_webpack_module, exports) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
exports.resolveAwsRegionExtensionConfiguration = exports.getAwsRegionExtensionConfiguration = void 0;
|
||||||
|
const getAwsRegionExtensionConfiguration = (runtimeConfig) => {
|
||||||
|
let runtimeConfigRegion = async () => {
|
||||||
|
if (runtimeConfig.region === undefined) {
|
||||||
|
throw new Error("Region is missing from runtimeConfig");
|
||||||
|
}
|
||||||
|
const region = runtimeConfig.region;
|
||||||
|
if (typeof region === "string") {
|
||||||
|
return region;
|
||||||
|
}
|
||||||
|
return region();
|
||||||
|
};
|
||||||
|
return {
|
||||||
|
setRegion(region) {
|
||||||
|
runtimeConfigRegion = region;
|
||||||
|
},
|
||||||
|
region() {
|
||||||
|
return runtimeConfigRegion;
|
||||||
|
},
|
||||||
|
};
|
||||||
|
};
|
||||||
|
exports.getAwsRegionExtensionConfiguration = getAwsRegionExtensionConfiguration;
|
||||||
|
const resolveAwsRegionExtensionConfiguration = (awsRegionExtensionConfiguration) => {
|
||||||
|
return {
|
||||||
|
region: awsRegionExtensionConfiguration.region(),
|
||||||
|
};
|
||||||
|
};
|
||||||
|
exports.resolveAwsRegionExtensionConfiguration = resolveAwsRegionExtensionConfiguration;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 18156:
|
||||||
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
const tslib_1 = __nccwpck_require__(4351);
|
||||||
|
tslib_1.__exportStar(__nccwpck_require__(60079), exports);
|
||||||
|
tslib_1.__exportStar(__nccwpck_require__(17177), exports);
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 60123:
|
||||||
|
/***/ ((__unused_webpack_module, exports) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
exports.NODE_REGION_CONFIG_FILE_OPTIONS = exports.NODE_REGION_CONFIG_OPTIONS = exports.REGION_INI_NAME = exports.REGION_ENV_NAME = void 0;
|
||||||
|
exports.REGION_ENV_NAME = "AWS_REGION";
|
||||||
|
exports.REGION_INI_NAME = "region";
|
||||||
|
exports.NODE_REGION_CONFIG_OPTIONS = {
|
||||||
|
environmentVariableSelector: (env) => env[exports.REGION_ENV_NAME],
|
||||||
|
configFileSelector: (profile) => profile[exports.REGION_INI_NAME],
|
||||||
|
default: () => {
|
||||||
|
throw new Error("Region is missing");
|
||||||
|
},
|
||||||
|
};
|
||||||
|
exports.NODE_REGION_CONFIG_FILE_OPTIONS = {
|
||||||
|
preferredFile: "credentials",
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 30048:
|
||||||
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
exports.getRealRegion = void 0;
|
||||||
|
const isFipsRegion_1 = __nccwpck_require__(37257);
|
||||||
|
const getRealRegion = (region) => (0, isFipsRegion_1.isFipsRegion)(region)
|
||||||
|
? ["fips-aws-global", "aws-fips"].includes(region)
|
||||||
|
? "us-east-1"
|
||||||
|
: region.replace(/fips-(dkr-|prod-)?|-fips/, "")
|
||||||
|
: region;
|
||||||
|
exports.getRealRegion = getRealRegion;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 17177:
|
||||||
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
const tslib_1 = __nccwpck_require__(4351);
|
||||||
|
tslib_1.__exportStar(__nccwpck_require__(60123), exports);
|
||||||
|
tslib_1.__exportStar(__nccwpck_require__(46187), exports);
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 37257:
|
||||||
|
/***/ ((__unused_webpack_module, exports) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
exports.isFipsRegion = void 0;
|
||||||
|
const isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips"));
|
||||||
|
exports.isFipsRegion = isFipsRegion;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 46187:
|
||||||
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
exports.resolveRegionConfig = void 0;
|
||||||
|
const getRealRegion_1 = __nccwpck_require__(30048);
|
||||||
|
const isFipsRegion_1 = __nccwpck_require__(37257);
|
||||||
|
const resolveRegionConfig = (input) => {
|
||||||
|
const { region, useFipsEndpoint } = input;
|
||||||
|
if (!region) {
|
||||||
|
throw new Error("Region is missing");
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
...input,
|
||||||
|
region: async () => {
|
||||||
|
if (typeof region === "string") {
|
||||||
|
return (0, getRealRegion_1.getRealRegion)(region);
|
||||||
|
}
|
||||||
|
const providedRegion = await region();
|
||||||
|
return (0, getRealRegion_1.getRealRegion)(providedRegion);
|
||||||
|
},
|
||||||
|
useFipsEndpoint: async () => {
|
||||||
|
const providedRegion = typeof region === "string" ? region : await region();
|
||||||
|
if ((0, isFipsRegion_1.isFipsRegion)(providedRegion)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return typeof useFipsEndpoint !== "function" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint();
|
||||||
|
},
|
||||||
|
};
|
||||||
|
};
|
||||||
|
exports.resolveRegionConfig = resolveRegionConfig;
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 52664:
|
/***/ 52664:
|
||||||
@@ -8722,6 +8954,16 @@ Object.defineProperty(exports, "EndpointURLScheme", ({ enumerable: true, get: fu
|
|||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 76244:
|
||||||
|
/***/ ((__unused_webpack_module, exports) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 61393:
|
/***/ 61393:
|
||||||
@@ -8820,6 +9062,7 @@ tslib_1.__exportStar(__nccwpck_require__(90142), exports);
|
|||||||
tslib_1.__exportStar(__nccwpck_require__(62338), exports);
|
tslib_1.__exportStar(__nccwpck_require__(62338), exports);
|
||||||
tslib_1.__exportStar(__nccwpck_require__(99385), exports);
|
tslib_1.__exportStar(__nccwpck_require__(99385), exports);
|
||||||
tslib_1.__exportStar(__nccwpck_require__(37521), exports);
|
tslib_1.__exportStar(__nccwpck_require__(37521), exports);
|
||||||
|
tslib_1.__exportStar(__nccwpck_require__(76244), exports);
|
||||||
tslib_1.__exportStar(__nccwpck_require__(61393), exports);
|
tslib_1.__exportStar(__nccwpck_require__(61393), exports);
|
||||||
tslib_1.__exportStar(__nccwpck_require__(10640), exports);
|
tslib_1.__exportStar(__nccwpck_require__(10640), exports);
|
||||||
tslib_1.__exportStar(__nccwpck_require__(89910), exports);
|
tslib_1.__exportStar(__nccwpck_require__(89910), exports);
|
||||||
@@ -12575,18 +12818,37 @@ exports.serializerMiddleware = serializerMiddleware;
|
|||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.constructStack = void 0;
|
exports.constructStack = void 0;
|
||||||
|
const getAllAliases = (name, aliases) => {
|
||||||
|
const _aliases = [];
|
||||||
|
if (name) {
|
||||||
|
_aliases.push(name);
|
||||||
|
}
|
||||||
|
if (aliases) {
|
||||||
|
for (const alias of aliases) {
|
||||||
|
_aliases.push(alias);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return _aliases;
|
||||||
|
};
|
||||||
|
const getMiddlewareNameWithAliases = (name, aliases) => {
|
||||||
|
return `${name || "anonymous"}${aliases && aliases.length > 0 ? ` (a.k.a. ${aliases.join(",")})` : ""}`;
|
||||||
|
};
|
||||||
const constructStack = () => {
|
const constructStack = () => {
|
||||||
let absoluteEntries = [];
|
let absoluteEntries = [];
|
||||||
let relativeEntries = [];
|
let relativeEntries = [];
|
||||||
|
let identifyOnResolve = false;
|
||||||
const entriesNameSet = new Set();
|
const entriesNameSet = new Set();
|
||||||
const sort = (entries) => entries.sort((a, b) => stepWeights[b.step] - stepWeights[a.step] ||
|
const sort = (entries) => entries.sort((a, b) => stepWeights[b.step] - stepWeights[a.step] ||
|
||||||
priorityWeights[b.priority || "normal"] - priorityWeights[a.priority || "normal"]);
|
priorityWeights[b.priority || "normal"] - priorityWeights[a.priority || "normal"]);
|
||||||
const removeByName = (toRemove) => {
|
const removeByName = (toRemove) => {
|
||||||
let isRemoved = false;
|
let isRemoved = false;
|
||||||
const filterCb = (entry) => {
|
const filterCb = (entry) => {
|
||||||
if (entry.name && entry.name === toRemove) {
|
const aliases = getAllAliases(entry.name, entry.aliases);
|
||||||
|
if (aliases.includes(toRemove)) {
|
||||||
isRemoved = true;
|
isRemoved = true;
|
||||||
entriesNameSet.delete(toRemove);
|
for (const alias of aliases) {
|
||||||
|
entriesNameSet.delete(alias);
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@@ -12600,8 +12862,9 @@ const constructStack = () => {
|
|||||||
const filterCb = (entry) => {
|
const filterCb = (entry) => {
|
||||||
if (entry.middleware === toRemove) {
|
if (entry.middleware === toRemove) {
|
||||||
isRemoved = true;
|
isRemoved = true;
|
||||||
if (entry.name)
|
for (const alias of getAllAliases(entry.name, entry.aliases)) {
|
||||||
entriesNameSet.delete(entry.name);
|
entriesNameSet.delete(alias);
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@@ -12611,12 +12874,14 @@ const constructStack = () => {
|
|||||||
return isRemoved;
|
return isRemoved;
|
||||||
};
|
};
|
||||||
const cloneTo = (toStack) => {
|
const cloneTo = (toStack) => {
|
||||||
|
var _a;
|
||||||
absoluteEntries.forEach((entry) => {
|
absoluteEntries.forEach((entry) => {
|
||||||
toStack.add(entry.middleware, { ...entry });
|
toStack.add(entry.middleware, { ...entry });
|
||||||
});
|
});
|
||||||
relativeEntries.forEach((entry) => {
|
relativeEntries.forEach((entry) => {
|
||||||
toStack.addRelativeTo(entry.middleware, { ...entry });
|
toStack.addRelativeTo(entry.middleware, { ...entry });
|
||||||
});
|
});
|
||||||
|
(_a = toStack.identifyOnResolve) === null || _a === void 0 ? void 0 : _a.call(toStack, stack.identifyOnResolve());
|
||||||
return toStack;
|
return toStack;
|
||||||
};
|
};
|
||||||
const expandRelativeMiddlewareList = (from) => {
|
const expandRelativeMiddlewareList = (from) => {
|
||||||
@@ -12650,8 +12915,9 @@ const constructStack = () => {
|
|||||||
before: [],
|
before: [],
|
||||||
after: [],
|
after: [],
|
||||||
};
|
};
|
||||||
if (normalizedEntry.name)
|
for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) {
|
||||||
normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry;
|
normalizedEntriesNameMap[alias] = normalizedEntry;
|
||||||
|
}
|
||||||
normalizedAbsoluteEntries.push(normalizedEntry);
|
normalizedAbsoluteEntries.push(normalizedEntry);
|
||||||
});
|
});
|
||||||
relativeEntries.forEach((entry) => {
|
relativeEntries.forEach((entry) => {
|
||||||
@@ -12660,8 +12926,9 @@ const constructStack = () => {
|
|||||||
before: [],
|
before: [],
|
||||||
after: [],
|
after: [],
|
||||||
};
|
};
|
||||||
if (normalizedEntry.name)
|
for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) {
|
||||||
normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry;
|
normalizedEntriesNameMap[alias] = normalizedEntry;
|
||||||
|
}
|
||||||
normalizedRelativeEntries.push(normalizedEntry);
|
normalizedRelativeEntries.push(normalizedEntry);
|
||||||
});
|
});
|
||||||
normalizedRelativeEntries.forEach((entry) => {
|
normalizedRelativeEntries.forEach((entry) => {
|
||||||
@@ -12671,7 +12938,9 @@ const constructStack = () => {
|
|||||||
if (debug) {
|
if (debug) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
throw new Error(`${entry.toMiddleware} is not found when adding ${entry.name || "anonymous"} middleware ${entry.relation} ${entry.toMiddleware}`);
|
throw new Error(`${entry.toMiddleware} is not found when adding ` +
|
||||||
|
`${getMiddlewareNameWithAliases(entry.name, entry.aliases)} ` +
|
||||||
|
`middleware ${entry.relation} ${entry.toMiddleware}`);
|
||||||
}
|
}
|
||||||
if (entry.relation === "after") {
|
if (entry.relation === "after") {
|
||||||
toMiddleware.after.push(entry);
|
toMiddleware.after.push(entry);
|
||||||
@@ -12691,48 +12960,68 @@ const constructStack = () => {
|
|||||||
};
|
};
|
||||||
const stack = {
|
const stack = {
|
||||||
add: (middleware, options = {}) => {
|
add: (middleware, options = {}) => {
|
||||||
const { name, override } = options;
|
const { name, override, aliases: _aliases } = options;
|
||||||
const entry = {
|
const entry = {
|
||||||
step: "initialize",
|
step: "initialize",
|
||||||
priority: "normal",
|
priority: "normal",
|
||||||
middleware,
|
middleware,
|
||||||
...options,
|
...options,
|
||||||
};
|
};
|
||||||
if (name) {
|
const aliases = getAllAliases(name, _aliases);
|
||||||
if (entriesNameSet.has(name)) {
|
if (aliases.length > 0) {
|
||||||
|
if (aliases.some((alias) => entriesNameSet.has(alias))) {
|
||||||
if (!override)
|
if (!override)
|
||||||
throw new Error(`Duplicate middleware name '${name}'`);
|
throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
|
||||||
const toOverrideIndex = absoluteEntries.findIndex((entry) => entry.name === name);
|
for (const alias of aliases) {
|
||||||
const toOverride = absoluteEntries[toOverrideIndex];
|
const toOverrideIndex = absoluteEntries.findIndex((entry) => { var _a; return entry.name === alias || ((_a = entry.aliases) === null || _a === void 0 ? void 0 : _a.some((a) => a === alias)); });
|
||||||
if (toOverride.step !== entry.step || toOverride.priority !== entry.priority) {
|
if (toOverrideIndex === -1) {
|
||||||
throw new Error(`"${name}" middleware with ${toOverride.priority} priority in ${toOverride.step} step cannot be ` +
|
continue;
|
||||||
`overridden by same-name middleware with ${entry.priority} priority in ${entry.step} step.`);
|
}
|
||||||
|
const toOverride = absoluteEntries[toOverrideIndex];
|
||||||
|
if (toOverride.step !== entry.step || entry.priority !== toOverride.priority) {
|
||||||
|
throw new Error(`"${getMiddlewareNameWithAliases(toOverride.name, toOverride.aliases)}" middleware with ` +
|
||||||
|
`${toOverride.priority} priority in ${toOverride.step} step cannot ` +
|
||||||
|
`be overridden by "${getMiddlewareNameWithAliases(name, _aliases)}" middleware with ` +
|
||||||
|
`${entry.priority} priority in ${entry.step} step.`);
|
||||||
|
}
|
||||||
|
absoluteEntries.splice(toOverrideIndex, 1);
|
||||||
}
|
}
|
||||||
absoluteEntries.splice(toOverrideIndex, 1);
|
|
||||||
}
|
}
|
||||||
entriesNameSet.add(name);
|
for (const alias of aliases) {
|
||||||
|
entriesNameSet.add(alias);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
absoluteEntries.push(entry);
|
absoluteEntries.push(entry);
|
||||||
},
|
},
|
||||||
addRelativeTo: (middleware, options) => {
|
addRelativeTo: (middleware, options) => {
|
||||||
const { name, override } = options;
|
const { name, override, aliases: _aliases } = options;
|
||||||
const entry = {
|
const entry = {
|
||||||
middleware,
|
middleware,
|
||||||
...options,
|
...options,
|
||||||
};
|
};
|
||||||
if (name) {
|
const aliases = getAllAliases(name, _aliases);
|
||||||
if (entriesNameSet.has(name)) {
|
if (aliases.length > 0) {
|
||||||
|
if (aliases.some((alias) => entriesNameSet.has(alias))) {
|
||||||
if (!override)
|
if (!override)
|
||||||
throw new Error(`Duplicate middleware name '${name}'`);
|
throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
|
||||||
const toOverrideIndex = relativeEntries.findIndex((entry) => entry.name === name);
|
for (const alias of aliases) {
|
||||||
const toOverride = relativeEntries[toOverrideIndex];
|
const toOverrideIndex = relativeEntries.findIndex((entry) => { var _a; return entry.name === alias || ((_a = entry.aliases) === null || _a === void 0 ? void 0 : _a.some((a) => a === alias)); });
|
||||||
if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) {
|
if (toOverrideIndex === -1) {
|
||||||
throw new Error(`"${name}" middleware ${toOverride.relation} "${toOverride.toMiddleware}" middleware cannot be overridden ` +
|
continue;
|
||||||
`by same-name middleware ${entry.relation} "${entry.toMiddleware}" middleware.`);
|
}
|
||||||
|
const toOverride = relativeEntries[toOverrideIndex];
|
||||||
|
if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) {
|
||||||
|
throw new Error(`"${getMiddlewareNameWithAliases(toOverride.name, toOverride.aliases)}" middleware ` +
|
||||||
|
`${toOverride.relation} "${toOverride.toMiddleware}" middleware cannot be overridden ` +
|
||||||
|
`by "${getMiddlewareNameWithAliases(name, _aliases)}" middleware ${entry.relation} ` +
|
||||||
|
`"${entry.toMiddleware}" middleware.`);
|
||||||
|
}
|
||||||
|
relativeEntries.splice(toOverrideIndex, 1);
|
||||||
}
|
}
|
||||||
relativeEntries.splice(toOverrideIndex, 1);
|
|
||||||
}
|
}
|
||||||
entriesNameSet.add(name);
|
for (const alias of aliases) {
|
||||||
|
entriesNameSet.add(alias);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
relativeEntries.push(entry);
|
relativeEntries.push(entry);
|
||||||
},
|
},
|
||||||
@@ -12749,10 +13038,12 @@ const constructStack = () => {
|
|||||||
removeByTag: (toRemove) => {
|
removeByTag: (toRemove) => {
|
||||||
let isRemoved = false;
|
let isRemoved = false;
|
||||||
const filterCb = (entry) => {
|
const filterCb = (entry) => {
|
||||||
const { tags, name } = entry;
|
const { tags, name, aliases: _aliases } = entry;
|
||||||
if (tags && tags.includes(toRemove)) {
|
if (tags && tags.includes(toRemove)) {
|
||||||
if (name)
|
const aliases = getAllAliases(name, _aliases);
|
||||||
entriesNameSet.delete(name);
|
for (const alias of aliases) {
|
||||||
|
entriesNameSet.delete(alias);
|
||||||
|
}
|
||||||
isRemoved = true;
|
isRemoved = true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -12763,22 +13054,36 @@ const constructStack = () => {
|
|||||||
return isRemoved;
|
return isRemoved;
|
||||||
},
|
},
|
||||||
concat: (from) => {
|
concat: (from) => {
|
||||||
|
var _a, _b;
|
||||||
const cloned = cloneTo((0, exports.constructStack)());
|
const cloned = cloneTo((0, exports.constructStack)());
|
||||||
cloned.use(from);
|
cloned.use(from);
|
||||||
|
cloned.identifyOnResolve(identifyOnResolve || cloned.identifyOnResolve() || ((_b = (_a = from.identifyOnResolve) === null || _a === void 0 ? void 0 : _a.call(from)) !== null && _b !== void 0 ? _b : false));
|
||||||
return cloned;
|
return cloned;
|
||||||
},
|
},
|
||||||
applyToStack: cloneTo,
|
applyToStack: cloneTo,
|
||||||
identify: () => {
|
identify: () => {
|
||||||
return getMiddlewareList(true).map((mw) => {
|
return getMiddlewareList(true).map((mw) => {
|
||||||
return mw.name + ": " + (mw.tags || []).join(",");
|
var _a;
|
||||||
|
const step = (_a = mw.step) !== null && _a !== void 0 ? _a : mw.relation +
|
||||||
|
" " +
|
||||||
|
mw.toMiddleware;
|
||||||
|
return getMiddlewareNameWithAliases(mw.name, mw.aliases) + " - " + step;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
identifyOnResolve(toggle) {
|
||||||
|
if (typeof toggle === "boolean")
|
||||||
|
identifyOnResolve = toggle;
|
||||||
|
return identifyOnResolve;
|
||||||
|
},
|
||||||
resolve: (handler, context) => {
|
resolve: (handler, context) => {
|
||||||
for (const middleware of getMiddlewareList()
|
for (const middleware of getMiddlewareList()
|
||||||
.map((entry) => entry.middleware)
|
.map((entry) => entry.middleware)
|
||||||
.reverse()) {
|
.reverse()) {
|
||||||
handler = middleware(handler, context);
|
handler = middleware(handler, context);
|
||||||
}
|
}
|
||||||
|
if (identifyOnResolve) {
|
||||||
|
console.log(stack.identify());
|
||||||
|
}
|
||||||
return handler;
|
return handler;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -13097,6 +13402,19 @@ class NodeHttpHandler {
|
|||||||
writeRequestBodyPromise = (0, write_request_body_1.writeRequestBody)(req, request, this.config.requestTimeout).catch(_reject);
|
writeRequestBodyPromise = (0, write_request_body_1.writeRequestBody)(req, request, this.config.requestTimeout).catch(_reject);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
updateHttpClientConfig(key, value) {
|
||||||
|
this.config = undefined;
|
||||||
|
this.configProvider = this.configProvider.then((config) => {
|
||||||
|
return {
|
||||||
|
...config,
|
||||||
|
[key]: value,
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
httpHandlerConfigs() {
|
||||||
|
var _a;
|
||||||
|
return (_a = this.config) !== null && _a !== void 0 ? _a : {};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
exports.NodeHttpHandler = NodeHttpHandler;
|
exports.NodeHttpHandler = NodeHttpHandler;
|
||||||
|
|
||||||
@@ -13390,6 +13708,19 @@ class NodeHttp2Handler {
|
|||||||
writeRequestBodyPromise = (0, write_request_body_1.writeRequestBody)(req, request, requestTimeout);
|
writeRequestBodyPromise = (0, write_request_body_1.writeRequestBody)(req, request, requestTimeout);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
updateHttpClientConfig(key, value) {
|
||||||
|
this.config = undefined;
|
||||||
|
this.configProvider = this.configProvider.then((config) => {
|
||||||
|
return {
|
||||||
|
...config,
|
||||||
|
[key]: value,
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
httpHandlerConfigs() {
|
||||||
|
var _a;
|
||||||
|
return (_a = this.config) !== null && _a !== void 0 ? _a : {};
|
||||||
|
}
|
||||||
destroySession(session) {
|
destroySession(session) {
|
||||||
if (!session.destroyed) {
|
if (!session.destroyed) {
|
||||||
session.destroy();
|
session.destroy();
|
||||||
@@ -13823,6 +14154,53 @@ class Fields {
|
|||||||
exports.Fields = Fields;
|
exports.Fields = Fields;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 22474:
|
||||||
|
/***/ ((__unused_webpack_module, exports) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
exports.resolveHttpHandlerRuntimeConfig = exports.getHttpHandlerExtensionConfiguration = void 0;
|
||||||
|
const getHttpHandlerExtensionConfiguration = (runtimeConfig) => {
|
||||||
|
let httpHandler = runtimeConfig.httpHandler;
|
||||||
|
return {
|
||||||
|
setHttpHandler(handler) {
|
||||||
|
httpHandler = handler;
|
||||||
|
},
|
||||||
|
httpHandler() {
|
||||||
|
return httpHandler;
|
||||||
|
},
|
||||||
|
updateHttpClientConfig(key, value) {
|
||||||
|
httpHandler.updateHttpClientConfig(key, value);
|
||||||
|
},
|
||||||
|
httpHandlerConfigs() {
|
||||||
|
return httpHandler.httpHandlerConfigs();
|
||||||
|
},
|
||||||
|
};
|
||||||
|
};
|
||||||
|
exports.getHttpHandlerExtensionConfiguration = getHttpHandlerExtensionConfiguration;
|
||||||
|
const resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => {
|
||||||
|
return {
|
||||||
|
httpHandler: httpHandlerExtensionConfiguration.httpHandler(),
|
||||||
|
};
|
||||||
|
};
|
||||||
|
exports.resolveHttpHandlerRuntimeConfig = resolveHttpHandlerRuntimeConfig;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 91654:
|
||||||
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
const tslib_1 = __nccwpck_require__(4351);
|
||||||
|
tslib_1.__exportStar(__nccwpck_require__(22474), exports);
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 63206:
|
/***/ 63206:
|
||||||
@@ -13928,6 +14306,7 @@ exports.HttpResponse = HttpResponse;
|
|||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
const tslib_1 = __nccwpck_require__(4351);
|
const tslib_1 = __nccwpck_require__(4351);
|
||||||
|
tslib_1.__exportStar(__nccwpck_require__(91654), exports);
|
||||||
tslib_1.__exportStar(__nccwpck_require__(89179), exports);
|
tslib_1.__exportStar(__nccwpck_require__(89179), exports);
|
||||||
tslib_1.__exportStar(__nccwpck_require__(99242), exports);
|
tslib_1.__exportStar(__nccwpck_require__(99242), exports);
|
||||||
tslib_1.__exportStar(__nccwpck_require__(63206), exports);
|
tslib_1.__exportStar(__nccwpck_require__(63206), exports);
|
||||||
@@ -14154,11 +14533,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|||||||
exports.getHomeDir = void 0;
|
exports.getHomeDir = void 0;
|
||||||
const os_1 = __nccwpck_require__(22037);
|
const os_1 = __nccwpck_require__(22037);
|
||||||
const path_1 = __nccwpck_require__(71017);
|
const path_1 = __nccwpck_require__(71017);
|
||||||
const process_1 = __nccwpck_require__(77282);
|
|
||||||
const homeDirCache = {};
|
const homeDirCache = {};
|
||||||
const getHomeDirCacheKey = () => {
|
const getHomeDirCacheKey = () => {
|
||||||
if (process_1.geteuid) {
|
if (process && process.geteuid) {
|
||||||
return `${(0, process_1.geteuid)()}`;
|
return `${process.geteuid()}`;
|
||||||
}
|
}
|
||||||
return "DEFAULT";
|
return "DEFAULT";
|
||||||
};
|
};
|
||||||
@@ -15543,16 +15921,14 @@ const types_1 = __nccwpck_require__(55756);
|
|||||||
Object.defineProperty(exports, "AlgorithmId", ({ enumerable: true, get: function () { return types_1.AlgorithmId; } }));
|
Object.defineProperty(exports, "AlgorithmId", ({ enumerable: true, get: function () { return types_1.AlgorithmId; } }));
|
||||||
const getChecksumConfiguration = (runtimeConfig) => {
|
const getChecksumConfiguration = (runtimeConfig) => {
|
||||||
const checksumAlgorithms = [];
|
const checksumAlgorithms = [];
|
||||||
if (runtimeConfig.sha256 !== undefined) {
|
for (const id in types_1.AlgorithmId) {
|
||||||
|
const algorithmId = types_1.AlgorithmId[id];
|
||||||
|
if (runtimeConfig[algorithmId] === undefined) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
checksumAlgorithms.push({
|
checksumAlgorithms.push({
|
||||||
algorithmId: () => types_1.AlgorithmId.SHA256,
|
algorithmId: () => algorithmId,
|
||||||
checksumConstructor: () => runtimeConfig.sha256,
|
checksumConstructor: () => runtimeConfig[algorithmId],
|
||||||
});
|
|
||||||
}
|
|
||||||
if (runtimeConfig.md5 != undefined) {
|
|
||||||
checksumAlgorithms.push({
|
|
||||||
algorithmId: () => types_1.AlgorithmId.MD5,
|
|
||||||
checksumConstructor: () => runtimeConfig.md5,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
@@ -15586,9 +15962,11 @@ exports.resolveChecksumRuntimeConfig = resolveChecksumRuntimeConfig;
|
|||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.resolveDefaultRuntimeConfig = exports.getDefaultClientConfiguration = exports.getDefaultExtensionConfiguration = void 0;
|
exports.resolveDefaultRuntimeConfig = exports.getDefaultClientConfiguration = exports.getDefaultExtensionConfiguration = void 0;
|
||||||
const checksum_1 = __nccwpck_require__(30941);
|
const checksum_1 = __nccwpck_require__(30941);
|
||||||
|
const retry_1 = __nccwpck_require__(67367);
|
||||||
const getDefaultExtensionConfiguration = (runtimeConfig) => {
|
const getDefaultExtensionConfiguration = (runtimeConfig) => {
|
||||||
return {
|
return {
|
||||||
...(0, checksum_1.getChecksumConfiguration)(runtimeConfig),
|
...(0, checksum_1.getChecksumConfiguration)(runtimeConfig),
|
||||||
|
...(0, retry_1.getRetryConfiguration)(runtimeConfig),
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
exports.getDefaultExtensionConfiguration = getDefaultExtensionConfiguration;
|
exports.getDefaultExtensionConfiguration = getDefaultExtensionConfiguration;
|
||||||
@@ -15596,6 +15974,7 @@ exports.getDefaultClientConfiguration = exports.getDefaultExtensionConfiguration
|
|||||||
const resolveDefaultRuntimeConfig = (config) => {
|
const resolveDefaultRuntimeConfig = (config) => {
|
||||||
return {
|
return {
|
||||||
...(0, checksum_1.resolveChecksumRuntimeConfig)(config),
|
...(0, checksum_1.resolveChecksumRuntimeConfig)(config),
|
||||||
|
...(0, retry_1.resolveRetryRuntimeConfig)(config),
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
exports.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig;
|
exports.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig;
|
||||||
@@ -15613,6 +15992,35 @@ const tslib_1 = __nccwpck_require__(4351);
|
|||||||
tslib_1.__exportStar(__nccwpck_require__(78643), exports);
|
tslib_1.__exportStar(__nccwpck_require__(78643), exports);
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 67367:
|
||||||
|
/***/ ((__unused_webpack_module, exports) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
exports.resolveRetryRuntimeConfig = exports.getRetryConfiguration = void 0;
|
||||||
|
const getRetryConfiguration = (runtimeConfig) => {
|
||||||
|
let _retryStrategy = runtimeConfig.retryStrategy;
|
||||||
|
return {
|
||||||
|
setRetryStrategy(retryStrategy) {
|
||||||
|
_retryStrategy = retryStrategy;
|
||||||
|
},
|
||||||
|
retryStrategy() {
|
||||||
|
return _retryStrategy;
|
||||||
|
},
|
||||||
|
};
|
||||||
|
};
|
||||||
|
exports.getRetryConfiguration = getRetryConfiguration;
|
||||||
|
const resolveRetryRuntimeConfig = (retryStrategyConfiguration) => {
|
||||||
|
const runtimeConfig = {};
|
||||||
|
runtimeConfig.retryStrategy = retryStrategyConfiguration.retryStrategy();
|
||||||
|
return runtimeConfig;
|
||||||
|
};
|
||||||
|
exports.resolveRetryRuntimeConfig = resolveRetryRuntimeConfig;
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 42638:
|
/***/ 42638:
|
||||||
@@ -16658,6 +17066,8 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
exports.SMITHY_CONTEXT_KEY = void 0;
|
||||||
|
exports.SMITHY_CONTEXT_KEY = "__smithy_context";
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
@@ -17194,6 +17604,20 @@ function toHex(bytes) {
|
|||||||
exports.toHex = toHex;
|
exports.toHex = toHex;
|
||||||
|
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 85730:
|
||||||
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
|
exports.getSmithyContext = void 0;
|
||||||
|
const types_1 = __nccwpck_require__(55756);
|
||||||
|
const getSmithyContext = (context) => context[types_1.SMITHY_CONTEXT_KEY] || (context[types_1.SMITHY_CONTEXT_KEY] = {});
|
||||||
|
exports.getSmithyContext = getSmithyContext;
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 2390:
|
/***/ 2390:
|
||||||
@@ -17203,6 +17627,7 @@ exports.toHex = toHex;
|
|||||||
|
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
const tslib_1 = __nccwpck_require__(4351);
|
const tslib_1 = __nccwpck_require__(4351);
|
||||||
|
tslib_1.__exportStar(__nccwpck_require__(85730), exports);
|
||||||
tslib_1.__exportStar(__nccwpck_require__(80149), exports);
|
tslib_1.__exportStar(__nccwpck_require__(80149), exports);
|
||||||
|
|
||||||
|
|
||||||
@@ -23159,7 +23584,7 @@ module.exports = require("util");
|
|||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
module.exports = JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.405.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/middleware-host-header":"3.398.0","@aws-sdk/middleware-logger":"3.398.0","@aws-sdk/middleware-recursion-detection":"3.398.0","@aws-sdk/middleware-user-agent":"3.398.0","@aws-sdk/types":"3.398.0","@aws-sdk/util-endpoints":"3.398.0","@aws-sdk/util-user-agent-browser":"3.398.0","@aws-sdk/util-user-agent-node":"3.405.0","@smithy/config-resolver":"^2.0.5","@smithy/fetch-http-handler":"^2.0.5","@smithy/hash-node":"^2.0.5","@smithy/invalid-dependency":"^2.0.5","@smithy/middleware-content-length":"^2.0.5","@smithy/middleware-endpoint":"^2.0.5","@smithy/middleware-retry":"^2.0.5","@smithy/middleware-serde":"^2.0.5","@smithy/middleware-stack":"^2.0.0","@smithy/node-config-provider":"^2.0.6","@smithy/node-http-handler":"^2.0.5","@smithy/protocol-http":"^2.0.5","@smithy/smithy-client":"^2.0.5","@smithy/types":"^2.2.2","@smithy/url-parser":"^2.0.5","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.6","@smithy/util-defaults-mode-node":"^2.0.6","@smithy/util-retry":"^2.0.0","@smithy/util-utf8":"^2.0.0","tslib":"^2.5.0"},"devDependencies":{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.23.23","typescript":"~4.9.5"},"engines":{"node":">=14.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"}}');
|
module.exports = JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native","version":"3.423.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sso"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/middleware-host-header":"3.418.0","@aws-sdk/middleware-logger":"3.418.0","@aws-sdk/middleware-recursion-detection":"3.418.0","@aws-sdk/middleware-user-agent":"3.418.0","@aws-sdk/region-config-resolver":"3.418.0","@aws-sdk/types":"3.418.0","@aws-sdk/util-endpoints":"3.418.0","@aws-sdk/util-user-agent-browser":"3.418.0","@aws-sdk/util-user-agent-node":"3.418.0","@smithy/config-resolver":"^2.0.10","@smithy/fetch-http-handler":"^2.1.5","@smithy/hash-node":"^2.0.9","@smithy/invalid-dependency":"^2.0.9","@smithy/middleware-content-length":"^2.0.11","@smithy/middleware-endpoint":"^2.0.9","@smithy/middleware-retry":"^2.0.12","@smithy/middleware-serde":"^2.0.9","@smithy/middleware-stack":"^2.0.2","@smithy/node-config-provider":"^2.0.12","@smithy/node-http-handler":"^2.1.5","@smithy/protocol-http":"^3.0.5","@smithy/smithy-client":"^2.1.6","@smithy/types":"^2.3.3","@smithy/url-parser":"^2.0.9","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.10","@smithy/util-defaults-mode-node":"^2.0.12","@smithy/util-retry":"^2.0.2","@smithy/util-utf8":"^2.0.0","tslib":"^2.5.0"},"devDependencies":{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.23.23","typescript":"~4.9.5"},"engines":{"node":">=14.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sso"}}');
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
@@ -23167,7 +23592,7 @@ module.exports = JSON.parse('{"name":"@aws-sdk/client-sso","description":"AWS SD
|
|||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
module.exports = JSON.parse('{"name":"@aws-sdk/client-sts","description":"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native","version":"3.405.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts","test":"yarn test:unit","test:unit":"jest"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/credential-provider-node":"3.405.0","@aws-sdk/middleware-host-header":"3.398.0","@aws-sdk/middleware-logger":"3.398.0","@aws-sdk/middleware-recursion-detection":"3.398.0","@aws-sdk/middleware-sdk-sts":"3.398.0","@aws-sdk/middleware-signing":"3.398.0","@aws-sdk/middleware-user-agent":"3.398.0","@aws-sdk/types":"3.398.0","@aws-sdk/util-endpoints":"3.398.0","@aws-sdk/util-user-agent-browser":"3.398.0","@aws-sdk/util-user-agent-node":"3.405.0","@smithy/config-resolver":"^2.0.5","@smithy/fetch-http-handler":"^2.0.5","@smithy/hash-node":"^2.0.5","@smithy/invalid-dependency":"^2.0.5","@smithy/middleware-content-length":"^2.0.5","@smithy/middleware-endpoint":"^2.0.5","@smithy/middleware-retry":"^2.0.5","@smithy/middleware-serde":"^2.0.5","@smithy/middleware-stack":"^2.0.0","@smithy/node-config-provider":"^2.0.6","@smithy/node-http-handler":"^2.0.5","@smithy/protocol-http":"^2.0.5","@smithy/smithy-client":"^2.0.5","@smithy/types":"^2.2.2","@smithy/url-parser":"^2.0.5","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.6","@smithy/util-defaults-mode-node":"^2.0.6","@smithy/util-retry":"^2.0.0","@smithy/util-utf8":"^2.0.0","fast-xml-parser":"4.2.5","tslib":"^2.5.0"},"devDependencies":{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.23.23","typescript":"~4.9.5"},"engines":{"node":">=14.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sts"}}');
|
module.exports = JSON.parse('{"name":"@aws-sdk/client-sts","description":"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native","version":"3.423.0","scripts":{"build":"concurrently \'yarn:build:cjs\' \'yarn:build:es\' \'yarn:build:types\'","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts","test":"yarn test:unit","test:unit":"jest"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/credential-provider-node":"3.423.0","@aws-sdk/middleware-host-header":"3.418.0","@aws-sdk/middleware-logger":"3.418.0","@aws-sdk/middleware-recursion-detection":"3.418.0","@aws-sdk/middleware-sdk-sts":"3.418.0","@aws-sdk/middleware-signing":"3.418.0","@aws-sdk/middleware-user-agent":"3.418.0","@aws-sdk/region-config-resolver":"3.418.0","@aws-sdk/types":"3.418.0","@aws-sdk/util-endpoints":"3.418.0","@aws-sdk/util-user-agent-browser":"3.418.0","@aws-sdk/util-user-agent-node":"3.418.0","@smithy/config-resolver":"^2.0.10","@smithy/fetch-http-handler":"^2.1.5","@smithy/hash-node":"^2.0.9","@smithy/invalid-dependency":"^2.0.9","@smithy/middleware-content-length":"^2.0.11","@smithy/middleware-endpoint":"^2.0.9","@smithy/middleware-retry":"^2.0.12","@smithy/middleware-serde":"^2.0.9","@smithy/middleware-stack":"^2.0.2","@smithy/node-config-provider":"^2.0.12","@smithy/node-http-handler":"^2.1.5","@smithy/protocol-http":"^3.0.5","@smithy/smithy-client":"^2.1.6","@smithy/types":"^2.3.3","@smithy/url-parser":"^2.0.9","@smithy/util-base64":"^2.0.0","@smithy/util-body-length-browser":"^2.0.0","@smithy/util-body-length-node":"^2.1.0","@smithy/util-defaults-mode-browser":"^2.0.10","@smithy/util-defaults-mode-node":"^2.0.12","@smithy/util-retry":"^2.0.2","@smithy/util-utf8":"^2.0.0","fast-xml-parser":"4.2.5","tslib":"^2.5.0"},"devDependencies":{"@smithy/service-client-documentation-generator":"^2.0.0","@tsconfig/node14":"1.0.3","@types/node":"^14.14.31","concurrently":"7.0.0","downlevel-dts":"0.10.1","rimraf":"3.0.2","typedoc":"0.23.23","typescript":"~4.9.5"},"engines":{"node":">=14.0.0"},"typesVersions":{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-sts"}}');
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
@@ -23175,7 +23600,7 @@ module.exports = JSON.parse('{"name":"@aws-sdk/client-sts","description":"AWS SD
|
|||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
module.exports = JSON.parse('{"partitions":[{"id":"aws","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","name":"aws","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^(us|eu|ap|sa|ca|me|af|il)\\\\-\\\\w+\\\\-\\\\d+$","regions":{"af-south-1":{"description":"Africa (Cape Town)"},"ap-east-1":{"description":"Asia Pacific (Hong Kong)"},"ap-northeast-1":{"description":"Asia Pacific (Tokyo)"},"ap-northeast-2":{"description":"Asia Pacific (Seoul)"},"ap-northeast-3":{"description":"Asia Pacific (Osaka)"},"ap-south-1":{"description":"Asia Pacific (Mumbai)"},"ap-south-2":{"description":"Asia Pacific (Hyderabad)"},"ap-southeast-1":{"description":"Asia Pacific (Singapore)"},"ap-southeast-2":{"description":"Asia Pacific (Sydney)"},"ap-southeast-3":{"description":"Asia Pacific (Jakarta)"},"ap-southeast-4":{"description":"Asia Pacific (Melbourne)"},"aws-global":{"description":"AWS Standard global region"},"ca-central-1":{"description":"Canada (Central)"},"eu-central-1":{"description":"Europe (Frankfurt)"},"eu-central-2":{"description":"Europe (Zurich)"},"eu-north-1":{"description":"Europe (Stockholm)"},"eu-south-1":{"description":"Europe (Milan)"},"eu-south-2":{"description":"Europe (Spain)"},"eu-west-1":{"description":"Europe (Ireland)"},"eu-west-2":{"description":"Europe (London)"},"eu-west-3":{"description":"Europe (Paris)"},"il-central-1":{"description":"Israel (Tel Aviv)"},"me-central-1":{"description":"Middle East (UAE)"},"me-south-1":{"description":"Middle East (Bahrain)"},"sa-east-1":{"description":"South America (Sao Paulo)"},"us-east-1":{"description":"US East (N. Virginia)"},"us-east-2":{"description":"US East (Ohio)"},"us-west-1":{"description":"US West (N. California)"},"us-west-2":{"description":"US West (Oregon)"}}},{"id":"aws-cn","outputs":{"dnsSuffix":"amazonaws.com.cn","dualStackDnsSuffix":"api.amazonwebservices.com.cn","name":"aws-cn","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^cn\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-cn-global":{"description":"AWS China global region"},"cn-north-1":{"description":"China (Beijing)"},"cn-northwest-1":{"description":"China (Ningxia)"}}},{"id":"aws-us-gov","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","name":"aws-us-gov","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-gov\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-us-gov-global":{"description":"AWS GovCloud (US) global region"},"us-gov-east-1":{"description":"AWS GovCloud (US-East)"},"us-gov-west-1":{"description":"AWS GovCloud (US-West)"}}},{"id":"aws-iso","outputs":{"dnsSuffix":"c2s.ic.gov","dualStackDnsSuffix":"c2s.ic.gov","name":"aws-iso","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-iso\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-global":{"description":"AWS ISO (US) global region"},"us-iso-east-1":{"description":"US ISO East"},"us-iso-west-1":{"description":"US ISO WEST"}}},{"id":"aws-iso-b","outputs":{"dnsSuffix":"sc2s.sgov.gov","dualStackDnsSuffix":"sc2s.sgov.gov","name":"aws-iso-b","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isob\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-b-global":{"description":"AWS ISOB (US) global region"},"us-isob-east-1":{"description":"US ISOB East (Ohio)"}}},{"id":"aws-iso-e","outputs":{"dnsSuffix":"cloud.adc-e.uk","dualStackDnsSuffix":"cloud.adc-e.uk","name":"aws-iso-e","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^eu\\\\-isoe\\\\-\\\\w+\\\\-\\\\d+$","regions":{}},{"id":"aws-iso-f","outputs":{"dnsSuffix":"csp.hci.ic.gov","dualStackDnsSuffix":"csp.hci.ic.gov","name":"aws-iso-f","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isof\\\\-\\\\w+\\\\-\\\\d+$","regions":{}}],"version":"1.1"}');
|
module.exports = JSON.parse('{"partitions":[{"id":"aws","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-east-1","name":"aws","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^(us|eu|ap|sa|ca|me|af|il)\\\\-\\\\w+\\\\-\\\\d+$","regions":{"af-south-1":{"description":"Africa (Cape Town)"},"ap-east-1":{"description":"Asia Pacific (Hong Kong)"},"ap-northeast-1":{"description":"Asia Pacific (Tokyo)"},"ap-northeast-2":{"description":"Asia Pacific (Seoul)"},"ap-northeast-3":{"description":"Asia Pacific (Osaka)"},"ap-south-1":{"description":"Asia Pacific (Mumbai)"},"ap-south-2":{"description":"Asia Pacific (Hyderabad)"},"ap-southeast-1":{"description":"Asia Pacific (Singapore)"},"ap-southeast-2":{"description":"Asia Pacific (Sydney)"},"ap-southeast-3":{"description":"Asia Pacific (Jakarta)"},"ap-southeast-4":{"description":"Asia Pacific (Melbourne)"},"aws-global":{"description":"AWS Standard global region"},"ca-central-1":{"description":"Canada (Central)"},"eu-central-1":{"description":"Europe (Frankfurt)"},"eu-central-2":{"description":"Europe (Zurich)"},"eu-north-1":{"description":"Europe (Stockholm)"},"eu-south-1":{"description":"Europe (Milan)"},"eu-south-2":{"description":"Europe (Spain)"},"eu-west-1":{"description":"Europe (Ireland)"},"eu-west-2":{"description":"Europe (London)"},"eu-west-3":{"description":"Europe (Paris)"},"il-central-1":{"description":"Israel (Tel Aviv)"},"me-central-1":{"description":"Middle East (UAE)"},"me-south-1":{"description":"Middle East (Bahrain)"},"sa-east-1":{"description":"South America (Sao Paulo)"},"us-east-1":{"description":"US East (N. Virginia)"},"us-east-2":{"description":"US East (Ohio)"},"us-west-1":{"description":"US West (N. California)"},"us-west-2":{"description":"US West (Oregon)"}}},{"id":"aws-cn","outputs":{"dnsSuffix":"amazonaws.com.cn","dualStackDnsSuffix":"api.amazonwebservices.com.cn","implicitGlobalRegion":"cn-northwest-1","name":"aws-cn","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^cn\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-cn-global":{"description":"AWS China global region"},"cn-north-1":{"description":"China (Beijing)"},"cn-northwest-1":{"description":"China (Ningxia)"}}},{"id":"aws-us-gov","outputs":{"dnsSuffix":"amazonaws.com","dualStackDnsSuffix":"api.aws","implicitGlobalRegion":"us-gov-west-1","name":"aws-us-gov","supportsDualStack":true,"supportsFIPS":true},"regionRegex":"^us\\\\-gov\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-us-gov-global":{"description":"AWS GovCloud (US) global region"},"us-gov-east-1":{"description":"AWS GovCloud (US-East)"},"us-gov-west-1":{"description":"AWS GovCloud (US-West)"}}},{"id":"aws-iso","outputs":{"dnsSuffix":"c2s.ic.gov","dualStackDnsSuffix":"c2s.ic.gov","implicitGlobalRegion":"us-iso-east-1","name":"aws-iso","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-iso\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-global":{"description":"AWS ISO (US) global region"},"us-iso-east-1":{"description":"US ISO East"},"us-iso-west-1":{"description":"US ISO WEST"}}},{"id":"aws-iso-b","outputs":{"dnsSuffix":"sc2s.sgov.gov","dualStackDnsSuffix":"sc2s.sgov.gov","implicitGlobalRegion":"us-isob-east-1","name":"aws-iso-b","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isob\\\\-\\\\w+\\\\-\\\\d+$","regions":{"aws-iso-b-global":{"description":"AWS ISOB (US) global region"},"us-isob-east-1":{"description":"US ISOB East (Ohio)"}}},{"id":"aws-iso-e","outputs":{"dnsSuffix":"cloud.adc-e.uk","dualStackDnsSuffix":"cloud.adc-e.uk","implicitGlobalRegion":"eu-isoe-west-1","name":"aws-iso-e","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^eu\\\\-isoe\\\\-\\\\w+\\\\-\\\\d+$","regions":{}},{"id":"aws-iso-f","outputs":{"dnsSuffix":"csp.hci.ic.gov","dualStackDnsSuffix":"csp.hci.ic.gov","implicitGlobalRegion":"us-isof-south-1","name":"aws-iso-f","supportsDualStack":false,"supportsFIPS":true},"regionRegex":"^us\\\\-isof\\\\-\\\\w+\\\\-\\\\d+$","regions":{}}],"version":"1.1"}');
|
||||||
|
|
||||||
/***/ })
|
/***/ })
|
||||||
|
|
||||||
|
|||||||
Generated
+1278
-1193
File diff suppressed because it is too large
Load Diff
+7
-7
@@ -14,9 +14,9 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@aws-sdk/credential-provider-env": "^3.186.0",
|
"@aws-sdk/credential-provider-env": "^3.186.0",
|
||||||
"@smithy/property-provider": "^2.0.6",
|
"@smithy/property-provider": "^2.0.11",
|
||||||
"@jest/globals": "^29.6.4",
|
"@jest/globals": "^29.7.0",
|
||||||
"@types/jest": "^29.5.4",
|
"@types/jest": "^29.5.5",
|
||||||
"@types/node": "^20",
|
"@types/node": "^20",
|
||||||
"@typescript-eslint/eslint-plugin": "<=5.62.0",
|
"@typescript-eslint/eslint-plugin": "<=5.62.0",
|
||||||
"@typescript-eslint/parser": "<=5.62.0",
|
"@typescript-eslint/parser": "<=5.62.0",
|
||||||
@@ -27,10 +27,10 @@
|
|||||||
"eslint": "^8",
|
"eslint": "^8",
|
||||||
"eslint-config-prettier": "^9.0.0",
|
"eslint-config-prettier": "^9.0.0",
|
||||||
"eslint-import-resolver-node": "^0.3.6",
|
"eslint-import-resolver-node": "^0.3.6",
|
||||||
"eslint-import-resolver-typescript": "^3.5.1",
|
"eslint-import-resolver-typescript": "^3.6.1",
|
||||||
"eslint-plugin-import": "^2.28.1",
|
"eslint-plugin-import": "^2.28.1",
|
||||||
"eslint-plugin-prettier": "^5.0.0",
|
"eslint-plugin-prettier": "^5.0.0",
|
||||||
"jest": "^29.6.4",
|
"jest": "^29.7.0",
|
||||||
"jest-junit": "^16",
|
"jest-junit": "^16",
|
||||||
"json-schema": "^0.4.0",
|
"json-schema": "^0.4.0",
|
||||||
"prettier": "^3.0.3",
|
"prettier": "^3.0.3",
|
||||||
@@ -39,9 +39,9 @@
|
|||||||
"typescript": "^5.2.2"
|
"typescript": "^5.2.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.10.0",
|
"@actions/core": "^1.10.1",
|
||||||
"@aws-sdk/client-sts": "^3",
|
"@aws-sdk/client-sts": "^3",
|
||||||
"@smithy/node-http-handler": "^2.0.0",
|
"@smithy/node-http-handler": "^2.1.6",
|
||||||
"https-proxy-agent": "^5.0.0"
|
"https-proxy-agent": "^5.0.0"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|||||||
@@ -56,6 +56,12 @@ async function assumeRoleWithWebIdentityTokenFile(
|
|||||||
|
|
||||||
async function assumeRoleWithCredentials(params: AssumeRoleCommandInput, client: STSClient) {
|
async function assumeRoleWithCredentials(params: AssumeRoleCommandInput, client: STSClient) {
|
||||||
core.info('Assuming role with user credentials');
|
core.info('Assuming role with user credentials');
|
||||||
|
if (!process.env['AWS_SESSION_TOKEN']) {
|
||||||
|
core.warning(
|
||||||
|
'To avoid using long-term AWS credentials, please update your workflows to authenticate using OpenID Connect.' +
|
||||||
|
' See https://s12d.com/gha-oidc-aws for more information.'
|
||||||
|
);
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
const creds = await client.send(new AssumeRoleCommand({ ...params }));
|
const creds = await client.send(new AssumeRoleCommand({ ...params }));
|
||||||
return creds;
|
return creds;
|
||||||
|
|||||||
@@ -105,6 +105,9 @@ describe('Configure AWS Credentials', () => {
|
|||||||
jest.spyOn(core, 'info').mockImplementation((string) => {
|
jest.spyOn(core, 'info').mockImplementation((string) => {
|
||||||
return string;
|
return string;
|
||||||
});
|
});
|
||||||
|
jest.spyOn(core, 'warning').mockImplementation((string) => {
|
||||||
|
return string;
|
||||||
|
});
|
||||||
(fromEnv as jest.Mock)
|
(fromEnv as jest.Mock)
|
||||||
.mockImplementationOnce(() => () => ({
|
.mockImplementationOnce(() => () => ({
|
||||||
accessKeyId: FAKE_ACCESS_KEY_ID,
|
accessKeyId: FAKE_ACCESS_KEY_ID,
|
||||||
@@ -868,4 +871,23 @@ describe('Configure AWS Credentials', () => {
|
|||||||
|
|
||||||
expect(core.setOutput).toHaveBeenCalledTimes(4);
|
expect(core.setOutput).toHaveBeenCalledTimes(4);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('prints warning for access key usage and no session token', async () => {
|
||||||
|
jest.spyOn(core, 'getInput').mockImplementation(mockGetInput(ASSUME_ROLE_INPUTS));
|
||||||
|
|
||||||
|
await run();
|
||||||
|
|
||||||
|
expect(core.warning).toHaveBeenCalledWith(
|
||||||
|
'To avoid using long-term AWS credentials, please update your workflows to authenticate using OpenID Connect.' +
|
||||||
|
' See https://s12d.com/gha-oidc-aws for more information.'
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('skips warning for access key usage with session token', async () => {
|
||||||
|
jest.spyOn(core, 'getInput').mockImplementation(mockGetInput(DEFAULT_INPUTS));
|
||||||
|
|
||||||
|
await run();
|
||||||
|
|
||||||
|
expect(core.warning).toHaveBeenCalledTimes(0);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user