mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-09-01 05:45:06 +09:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 27bc1c5cc5 |
@@ -28,7 +28,7 @@ jobs:
|
|||||||
npm test
|
npm test
|
||||||
npm run package
|
npm run package
|
||||||
- name: Configure AWS credentials
|
- name: Configure AWS credentials
|
||||||
uses: aws-actions/configure-aws-credentials@v4
|
uses: aws-actions/configure-aws-credentials@v3
|
||||||
with:
|
with:
|
||||||
aws-region: us-west-2
|
aws-region: us-west-2
|
||||||
role-to-assume: ${{ secrets.SECRETS_AWS_PACKAGING_ROLE_TO_ASSUME }}
|
role-to-assume: ${{ secrets.SECRETS_AWS_PACKAGING_ROLE_TO_ASSUME }}
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [[self-hosted, linux-fargate], windows-latest, ubuntu-latest, macos-latest]
|
os: [[self-hosted, linux-fargate], windows-latest, ubuntu-latest, macos-latest]
|
||||||
|
node: [14, 16, 18]
|
||||||
name: Run OIDC integ tests
|
name: Run OIDC integ tests
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
@@ -34,6 +35,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [[self-hosted, linux-fargate], windows-latest, ubuntu-latest, macos-latest]
|
os: [[self-hosted, linux-fargate], windows-latest, ubuntu-latest, macos-latest]
|
||||||
|
node: [14, 16, 18]
|
||||||
name: Run OIDC integ tests with existing invalid env vars
|
name: Run OIDC integ tests with existing invalid env vars
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
env:
|
env:
|
||||||
@@ -57,6 +59,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [[self-hosted, linux-fargate], windows-latest, ubuntu-latest, macos-latest]
|
os: [[self-hosted, linux-fargate], windows-latest, ubuntu-latest, macos-latest]
|
||||||
|
node: [14, 16, 18]
|
||||||
name: Run access key integ tests
|
name: Run access key integ tests
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
@@ -77,6 +80,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [[self-hosted, linux-fargate], windows-latest, ubuntu-latest, macos-latest]
|
os: [[self-hosted, linux-fargate], windows-latest, ubuntu-latest, macos-latest]
|
||||||
|
node: [14, 16, 18]
|
||||||
name: Run access key from env integ tests
|
name: Run access key from env integ tests
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
@@ -98,6 +102,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [[self-hosted, linux-fargate], windows-latest, ubuntu-latest, macos-latest]
|
os: [[self-hosted, linux-fargate], windows-latest, ubuntu-latest, macos-latest]
|
||||||
|
node: [14, 16, 18]
|
||||||
name: Run IAM User integ tests
|
name: Run IAM User integ tests
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [windows-latest, ubuntu-latest, macos-latest]
|
os: [windows-latest, ubuntu-latest, macos-latest]
|
||||||
|
node: [14, 16, 18]
|
||||||
name: Run unit tests
|
name: Run unit tests
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
@@ -18,7 +19,7 @@ jobs:
|
|||||||
- name: "Setup node"
|
- name: "Setup node"
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: ${{ matrix.node }}
|
||||||
- name: "Install dependencies"
|
- name: "Install dependencies"
|
||||||
uses: bahmutov/npm-install@v1
|
uses: bahmutov/npm-install@v1
|
||||||
- name: "Run tests"
|
- name: "Run tests"
|
||||||
@@ -33,7 +34,7 @@ jobs:
|
|||||||
- name: "Setup node"
|
- name: "Setup node"
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 16
|
||||||
- name: "Install dependencies"
|
- name: "Install dependencies"
|
||||||
uses: bahmutov/npm-install@v1
|
uses: bahmutov/npm-install@v1
|
||||||
- name: "Lint code"
|
- name: "Lint code"
|
||||||
|
|||||||
+27
-9
@@ -2,9 +2,15 @@ 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)
|
- check-success=Run unit tests (windows-latest, 14)
|
||||||
- check-success=Run unit tests (ubuntu-latest)
|
- check-success=Run unit tests (windows-latest, 16)
|
||||||
- check-success=Run unit tests (macos-latest)
|
- check-success=Run unit tests (windows-latest, 18)
|
||||||
|
- 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
|
||||||
|
|
||||||
@@ -14,9 +20,15 @@ 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)
|
- check-success=Run unit tests (windows-latest, 14)
|
||||||
- check-success=Run unit tests (ubuntu-latest)
|
- check-success=Run unit tests (windows-latest, 16)
|
||||||
- check-success=Run unit tests (macos-latest)
|
- check-success=Run unit tests (windows-latest, 18)
|
||||||
|
- 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
|
||||||
@@ -31,9 +43,15 @@ pull_request_rules:
|
|||||||
conditions:
|
conditions:
|
||||||
- base~=main
|
- base~=main
|
||||||
- author=dependabot[bot]
|
- author=dependabot[bot]
|
||||||
- check-success=Run unit tests (windows-latest)
|
- check-success=Run unit tests (windows-latest, 14)
|
||||||
- check-success=Run unit tests (ubuntu-latest)
|
- check-success=Run unit tests (windows-latest, 16)
|
||||||
- check-success=Run unit tests (macos-latest)
|
- check-success=Run unit tests (windows-latest, 18)
|
||||||
|
- 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,15 +2,6 @@
|
|||||||
|
|
||||||
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)
|
|
||||||
|
|
||||||
* Upgraded runtime to `node20` from `node16`
|
|
||||||
|
|
||||||
## [3.0.2](https://github.com/aws-actions/configure-aws-credentials/compare/v3.0.1...v3.0.2) (2023-09-07)
|
## [3.0.2](https://github.com/aws-actions/configure-aws-credentials/compare/v3.0.1...v3.0.2) (2023-09-07)
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|||||||
@@ -7,23 +7,7 @@ calls.
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### Recent News
|
### 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)
|
|
||||||
|
|
||||||
We have just released `v4` of Configure AWS Credentials. The only thing that
|
|
||||||
changed from `v3` is that the action now runs on `node20` instead of `node16`.
|
|
||||||
You can still see the `v3` announcement below, as it is still recent.
|
|
||||||
|
|
||||||
#### v3 Announcement (8/23/23)
|
|
||||||
|
|
||||||
We have recently released `v3` of Configure AWS Credentials! With this new
|
We have recently released `v3` of Configure AWS Credentials! With this new
|
||||||
release we have migrated the code to TypeScript, and have also migrated away
|
release we have migrated the code to TypeScript, and have also migrated away
|
||||||
@@ -98,7 +82,7 @@ To do that, you would add the following step to your workflow:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Configure AWS Credentials
|
- name: Configure AWS Credentials
|
||||||
uses: aws-actions/configure-aws-credentials@v4
|
uses: aws-actions/configure-aws-credentials@v3
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::123456789100:role/my-github-actions-role
|
role-to-assume: arn:aws:iam::123456789100:role/my-github-actions-role
|
||||||
aws-region: us-east-2
|
aws-region: us-east-2
|
||||||
@@ -127,7 +111,7 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Configure AWS credentials from Test account
|
- name: Configure AWS credentials from Test account
|
||||||
uses: aws-actions/configure-aws-credentials@v4
|
uses: aws-actions/configure-aws-credentials@v3
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::111111111111:role/my-github-actions-role-test
|
role-to-assume: arn:aws:iam::111111111111:role/my-github-actions-role-test
|
||||||
aws-region: us-east-1
|
aws-region: us-east-1
|
||||||
@@ -135,7 +119,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
aws s3 sync . s3://my-s3-test-website-bucket
|
aws s3 sync . s3://my-s3-test-website-bucket
|
||||||
- name: Configure AWS credentials from Production account
|
- name: Configure AWS credentials from Production account
|
||||||
uses: aws-actions/configure-aws-credentials@v4
|
uses: aws-actions/configure-aws-credentials@v3
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::222222222222:role/my-github-actions-role-prod
|
role-to-assume: arn:aws:iam::222222222222:role/my-github-actions-role-prod
|
||||||
aws-region: us-west-2
|
aws-region: us-west-2
|
||||||
@@ -225,7 +209,7 @@ within the Action. See [issue 419](https://github.com/aws-actions/configure-aws-
|
|||||||
You can skip this session tagging by providing
|
You can skip this session tagging by providing
|
||||||
`role-skip-session-tagging` as true in the action's inputs:
|
`role-skip-session-tagging` as true in the action's inputs:
|
||||||
```yaml
|
```yaml
|
||||||
uses: aws-actions/configure-aws-credentials@v4
|
uses: aws-actions/configure-aws-credentials@v3
|
||||||
with:
|
with:
|
||||||
role-skip-session-tagging: true
|
role-skip-session-tagging: true
|
||||||
```
|
```
|
||||||
@@ -236,13 +220,13 @@ You can skip this session tagging by providing
|
|||||||
An IAM policy in stringified JSON format that you want to use as an inline session policy.
|
An IAM policy in stringified JSON format that you want to use as an inline session policy.
|
||||||
Depending on preferences, the JSON could be written on a single line like this:
|
Depending on preferences, the JSON could be written on a single line like this:
|
||||||
```yaml
|
```yaml
|
||||||
uses: aws-actions/configure-aws-credentials@v4
|
uses: aws-actions/configure-aws-credentials@v3
|
||||||
with:
|
with:
|
||||||
inline-session-policy: '{"Version":"2012-10-17","Statement":[{"Sid":"Stmt1","Effect":"Allow","Action":"s3:List*","Resource":"*"}]}'
|
inline-session-policy: '{"Version":"2012-10-17","Statement":[{"Sid":"Stmt1","Effect":"Allow","Action":"s3:List*","Resource":"*"}]}'
|
||||||
```
|
```
|
||||||
Or we can have a nicely formatted JSON as well:
|
Or we can have a nicely formatted JSON as well:
|
||||||
```yaml
|
```yaml
|
||||||
uses: aws-actions/configure-aws-credentials@v4
|
uses: aws-actions/configure-aws-credentials@v3
|
||||||
with:
|
with:
|
||||||
inline-session-policy: >-
|
inline-session-policy: >-
|
||||||
{
|
{
|
||||||
@@ -262,13 +246,13 @@ Or we can have a nicely formatted JSON as well:
|
|||||||
The Amazon Resource Names (ARNs) of the IAM managed policies that you want to use as managed session policies.
|
The Amazon Resource Names (ARNs) of the IAM managed policies that you want to use as managed session policies.
|
||||||
The policies must exist in the same account as the role. You can pass a single managed policy like this:
|
The policies must exist in the same account as the role. You can pass a single managed policy like this:
|
||||||
```yaml
|
```yaml
|
||||||
uses: aws-actions/configure-aws-credentials@v4
|
uses: aws-actions/configure-aws-credentials@v3
|
||||||
with:
|
with:
|
||||||
managed-session-policies: arn:aws:iam::aws:policy/AmazonS3ReadOnlyAccess
|
managed-session-policies: arn:aws:iam::aws:policy/AmazonS3ReadOnlyAccess
|
||||||
```
|
```
|
||||||
And we can pass multiple managed policies likes this:
|
And we can pass multiple managed policies likes this:
|
||||||
```yaml
|
```yaml
|
||||||
uses: aws-actions/configure-aws-credentials@v4
|
uses: aws-actions/configure-aws-credentials@v3
|
||||||
with:
|
with:
|
||||||
managed-session-policies: |
|
managed-session-policies: |
|
||||||
arn:aws:iam::aws:policy/AmazonS3ReadOnlyAccess
|
arn:aws:iam::aws:policy/AmazonS3ReadOnlyAccess
|
||||||
@@ -311,7 +295,7 @@ When the JWT is created, an audience needs to be specified. By default, the audi
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Configure AWS Credentials for China region audience
|
- name: Configure AWS Credentials for China region audience
|
||||||
uses: aws-actions/configure-aws-credentials@v4
|
uses: aws-actions/configure-aws-credentials@v3
|
||||||
with:
|
with:
|
||||||
audience: sts.amazonaws.com.cn
|
audience: sts.amazonaws.com.cn
|
||||||
aws-region: us-east-3
|
aws-region: us-east-3
|
||||||
@@ -423,7 +407,7 @@ You can use this action to simply configure the region and account ID in the
|
|||||||
environment, and then use the runner's credentials for all AWS API calls made by
|
environment, and then use the runner's credentials for all AWS API calls made by
|
||||||
your Actions workflow:
|
your Actions workflow:
|
||||||
```yaml
|
```yaml
|
||||||
uses: aws-actions/configure-aws-credentials@v4
|
uses: aws-actions/configure-aws-credentials@v3
|
||||||
with:
|
with:
|
||||||
aws-region: us-east-2
|
aws-region: us-east-2
|
||||||
```
|
```
|
||||||
@@ -433,7 +417,7 @@ APIs called by your Actions workflow.
|
|||||||
Or, you can use this action to assume a role, and then use the role credentials
|
Or, you can use this action to assume a role, and then use the role credentials
|
||||||
for all AWS API calls made by your Actions workflow:
|
for all AWS API calls made by your Actions workflow:
|
||||||
```yaml
|
```yaml
|
||||||
uses: aws-actions/configure-aws-credentials@v4
|
uses: aws-actions/configure-aws-credentials@v3
|
||||||
with:
|
with:
|
||||||
aws-region: us-east-2
|
aws-region: us-east-2
|
||||||
role-to-assume: my-github-actions-role
|
role-to-assume: my-github-actions-role
|
||||||
@@ -456,7 +440,7 @@ environment.
|
|||||||
|
|
||||||
Manually configured proxy:
|
Manually configured proxy:
|
||||||
```yaml
|
```yaml
|
||||||
uses: aws-actions/configure-aws-credentials@v4
|
uses: aws-actions/configure-aws-credentials@v3
|
||||||
with:
|
with:
|
||||||
aws-region: us-east-2
|
aws-region: us-east-2
|
||||||
role-to-assume: my-github-actions-role
|
role-to-assume: my-github-actions-role
|
||||||
@@ -486,7 +470,7 @@ should include the AWS CLI by default.
|
|||||||
### AssumeRoleWithWebIdentity (recommended)
|
### AssumeRoleWithWebIdentity (recommended)
|
||||||
```yaml
|
```yaml
|
||||||
- name: Configure AWS Credentials
|
- name: Configure AWS Credentials
|
||||||
uses: aws-actions/configure-aws-credentials@v4
|
uses: aws-actions/configure-aws-credentials@v3
|
||||||
with:
|
with:
|
||||||
aws-region: us-east-2
|
aws-region: us-east-2
|
||||||
role-to-assume: arn:aws:iam::123456789100:role/my-github-actions-role
|
role-to-assume: arn:aws:iam::123456789100:role/my-github-actions-role
|
||||||
@@ -497,13 +481,13 @@ In this example, the Action will load the OIDC token from the GitHub-provided en
|
|||||||
### AssumeRole with role previously assumed by action in same workflow
|
### AssumeRole with role previously assumed by action in same workflow
|
||||||
```yaml
|
```yaml
|
||||||
- name: Configure AWS Credentials
|
- name: Configure AWS Credentials
|
||||||
uses: aws-actions/configure-aws-credentials@v4
|
uses: aws-actions/configure-aws-credentials@v3
|
||||||
with:
|
with:
|
||||||
aws-region: us-east-2
|
aws-region: us-east-2
|
||||||
role-to-assume: arn:aws:iam::123456789100:role/my-github-actions-role
|
role-to-assume: arn:aws:iam::123456789100:role/my-github-actions-role
|
||||||
role-session-name: MySessionName
|
role-session-name: MySessionName
|
||||||
- name: Configure other AWS Credentials
|
- name: Configure other AWS Credentials
|
||||||
uses: aws-actions/configure-aws-credentials@v4
|
uses: aws-actions/configure-aws-credentials@v3
|
||||||
with:
|
with:
|
||||||
aws-region: us-east-2
|
aws-region: us-east-2
|
||||||
role-to-assume: arn:aws:iam::987654321000:role/my-second-role
|
role-to-assume: arn:aws:iam::987654321000:role/my-second-role
|
||||||
@@ -515,7 +499,7 @@ In this two-step example, the first step will use OIDC to assume the role `arn:a
|
|||||||
### AssumeRole with static IAM credentials in repository secrets
|
### AssumeRole with static IAM credentials in repository secrets
|
||||||
```yaml
|
```yaml
|
||||||
- name: Configure AWS Credentials
|
- name: Configure AWS Credentials
|
||||||
uses: aws-actions/configure-aws-credentials@v4
|
uses: aws-actions/configure-aws-credentials@v3
|
||||||
with:
|
with:
|
||||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
@@ -531,7 +515,7 @@ In this example, the secret `AWS_ROLE_TO_ASSUME` contains a string like `arn:aws
|
|||||||
```yaml
|
```yaml
|
||||||
- name: Configure AWS Credentials 1
|
- name: Configure AWS Credentials 1
|
||||||
id: creds
|
id: creds
|
||||||
uses: aws-actions/configure-aws-credentials@v4
|
uses: aws-actions/configure-aws-credentials@v3
|
||||||
with:
|
with:
|
||||||
aws-region: us-east-2
|
aws-region: us-east-2
|
||||||
role-to-assume: arn:aws:iam::123456789100:role/my-github-actions-role
|
role-to-assume: arn:aws:iam::123456789100:role/my-github-actions-role
|
||||||
@@ -540,7 +524,7 @@ In this example, the secret `AWS_ROLE_TO_ASSUME` contains a string like `arn:aws
|
|||||||
run: |
|
run: |
|
||||||
aws sts get-caller-identity
|
aws sts get-caller-identity
|
||||||
- name: Configure AWS Credentials 2
|
- name: Configure AWS Credentials 2
|
||||||
uses: aws-actions/configure-aws-credentials@v4
|
uses: aws-actions/configure-aws-credentials@v3
|
||||||
with:
|
with:
|
||||||
aws-region: us-east-2
|
aws-region: us-east-2
|
||||||
aws-access-key-id: ${{ steps.creds.outputs.aws-access-key-id }}
|
aws-access-key-id: ${{ steps.creds.outputs.aws-access-key-id }}
|
||||||
|
|||||||
+1
-1
@@ -3307,7 +3307,7 @@ Apache-2.0
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
|
|
||||||
|
|
||||||
@aws-sdk/region-config-resolver
|
@aws-sdk/node-http-handler
|
||||||
Apache-2.0
|
Apache-2.0
|
||||||
Apache License
|
Apache License
|
||||||
Version 2.0, January 2004
|
Version 2.0, January 2004
|
||||||
|
|||||||
+55
-476
@@ -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.message}`);
|
Error Message: ${error.result.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,7 +2447,6 @@ 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 {
|
||||||
@@ -2476,10 +2475,6 @@ 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);
|
||||||
@@ -2507,7 +2502,6 @@ 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 {
|
||||||
@@ -2536,10 +2530,6 @@ 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);
|
||||||
@@ -2567,7 +2557,6 @@ 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 {
|
||||||
@@ -2596,10 +2585,6 @@ 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);
|
||||||
@@ -2627,7 +2612,6 @@ 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 {
|
||||||
@@ -2656,10 +2640,6 @@ 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);
|
||||||
@@ -2738,9 +2718,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 s = "required", t = "fn", u = "argv", v = "ref";
|
const p = "required", q = "fn", r = "argv", s = "ref";
|
||||||
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 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 _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 }] };
|
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 }] }] };
|
||||||
exports.ruleSet = _data;
|
exports.ruleSet = _data;
|
||||||
|
|
||||||
|
|
||||||
@@ -3456,22 +3436,16 @@ 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;
|
||||||
@@ -3576,7 +3550,6 @@ 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 {
|
||||||
@@ -3607,10 +3580,6 @@ 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);
|
||||||
@@ -3638,7 +3607,6 @@ 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 {
|
||||||
@@ -3668,10 +3636,6 @@ 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);
|
||||||
@@ -3699,7 +3663,6 @@ 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 {
|
||||||
@@ -3729,10 +3692,6 @@ 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);
|
||||||
@@ -3761,7 +3720,6 @@ 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() {
|
||||||
@@ -3791,10 +3749,6 @@ 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);
|
||||||
@@ -3823,7 +3777,6 @@ 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() {
|
||||||
@@ -3853,10 +3806,6 @@ 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);
|
||||||
@@ -3885,7 +3834,6 @@ 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() {
|
||||||
@@ -3915,10 +3863,6 @@ 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);
|
||||||
@@ -3947,7 +3891,6 @@ 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 {
|
||||||
@@ -3978,10 +3921,6 @@ 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);
|
||||||
@@ -4010,7 +3949,6 @@ 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 {
|
||||||
@@ -4041,10 +3979,6 @@ 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);
|
||||||
@@ -4250,7 +4184,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 }, { 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 }] };
|
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 }] }] };
|
||||||
exports.ruleSet = _data;
|
exports.ruleSet = _data;
|
||||||
|
|
||||||
|
|
||||||
@@ -5593,22 +5527,16 @@ 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;
|
||||||
@@ -5732,7 +5660,6 @@ 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) {
|
||||||
@@ -6897,161 +6824,6 @@ 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:
|
||||||
@@ -8360,16 +8132,6 @@ 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:
|
||||||
@@ -8468,7 +8230,6 @@ 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);
|
||||||
@@ -12224,37 +11985,18 @@ 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) => {
|
||||||
const aliases = getAllAliases(entry.name, entry.aliases);
|
if (entry.name && entry.name === toRemove) {
|
||||||
if (aliases.includes(toRemove)) {
|
|
||||||
isRemoved = true;
|
isRemoved = true;
|
||||||
for (const alias of aliases) {
|
entriesNameSet.delete(toRemove);
|
||||||
entriesNameSet.delete(alias);
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@@ -12268,9 +12010,8 @@ const constructStack = () => {
|
|||||||
const filterCb = (entry) => {
|
const filterCb = (entry) => {
|
||||||
if (entry.middleware === toRemove) {
|
if (entry.middleware === toRemove) {
|
||||||
isRemoved = true;
|
isRemoved = true;
|
||||||
for (const alias of getAllAliases(entry.name, entry.aliases)) {
|
if (entry.name)
|
||||||
entriesNameSet.delete(alias);
|
entriesNameSet.delete(entry.name);
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@@ -12280,14 +12021,12 @@ 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) => {
|
||||||
@@ -12321,9 +12060,8 @@ const constructStack = () => {
|
|||||||
before: [],
|
before: [],
|
||||||
after: [],
|
after: [],
|
||||||
};
|
};
|
||||||
for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) {
|
if (normalizedEntry.name)
|
||||||
normalizedEntriesNameMap[alias] = normalizedEntry;
|
normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry;
|
||||||
}
|
|
||||||
normalizedAbsoluteEntries.push(normalizedEntry);
|
normalizedAbsoluteEntries.push(normalizedEntry);
|
||||||
});
|
});
|
||||||
relativeEntries.forEach((entry) => {
|
relativeEntries.forEach((entry) => {
|
||||||
@@ -12332,9 +12070,8 @@ const constructStack = () => {
|
|||||||
before: [],
|
before: [],
|
||||||
after: [],
|
after: [],
|
||||||
};
|
};
|
||||||
for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) {
|
if (normalizedEntry.name)
|
||||||
normalizedEntriesNameMap[alias] = normalizedEntry;
|
normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry;
|
||||||
}
|
|
||||||
normalizedRelativeEntries.push(normalizedEntry);
|
normalizedRelativeEntries.push(normalizedEntry);
|
||||||
});
|
});
|
||||||
normalizedRelativeEntries.forEach((entry) => {
|
normalizedRelativeEntries.forEach((entry) => {
|
||||||
@@ -12344,9 +12081,7 @@ const constructStack = () => {
|
|||||||
if (debug) {
|
if (debug) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
throw new Error(`${entry.toMiddleware} is not found when adding ` +
|
throw new Error(`${entry.toMiddleware} is not found when adding ${entry.name || "anonymous"} middleware ${entry.relation} ${entry.toMiddleware}`);
|
||||||
`${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);
|
||||||
@@ -12366,68 +12101,48 @@ const constructStack = () => {
|
|||||||
};
|
};
|
||||||
const stack = {
|
const stack = {
|
||||||
add: (middleware, options = {}) => {
|
add: (middleware, options = {}) => {
|
||||||
const { name, override, aliases: _aliases } = options;
|
const { name, override } = options;
|
||||||
const entry = {
|
const entry = {
|
||||||
step: "initialize",
|
step: "initialize",
|
||||||
priority: "normal",
|
priority: "normal",
|
||||||
middleware,
|
middleware,
|
||||||
...options,
|
...options,
|
||||||
};
|
};
|
||||||
const aliases = getAllAliases(name, _aliases);
|
if (name) {
|
||||||
if (aliases.length > 0) {
|
if (entriesNameSet.has(name)) {
|
||||||
if (aliases.some((alias) => entriesNameSet.has(alias))) {
|
|
||||||
if (!override)
|
if (!override)
|
||||||
throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
|
throw new Error(`Duplicate middleware name '${name}'`);
|
||||||
for (const alias of aliases) {
|
const toOverrideIndex = absoluteEntries.findIndex((entry) => entry.name === name);
|
||||||
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)); });
|
const toOverride = absoluteEntries[toOverrideIndex];
|
||||||
if (toOverrideIndex === -1) {
|
if (toOverride.step !== entry.step || toOverride.priority !== entry.priority) {
|
||||||
continue;
|
throw new Error(`"${name}" middleware with ${toOverride.priority} priority in ${toOverride.step} step cannot be ` +
|
||||||
}
|
`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);
|
||||||
}
|
}
|
||||||
for (const alias of aliases) {
|
entriesNameSet.add(name);
|
||||||
entriesNameSet.add(alias);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
absoluteEntries.push(entry);
|
absoluteEntries.push(entry);
|
||||||
},
|
},
|
||||||
addRelativeTo: (middleware, options) => {
|
addRelativeTo: (middleware, options) => {
|
||||||
const { name, override, aliases: _aliases } = options;
|
const { name, override } = options;
|
||||||
const entry = {
|
const entry = {
|
||||||
middleware,
|
middleware,
|
||||||
...options,
|
...options,
|
||||||
};
|
};
|
||||||
const aliases = getAllAliases(name, _aliases);
|
if (name) {
|
||||||
if (aliases.length > 0) {
|
if (entriesNameSet.has(name)) {
|
||||||
if (aliases.some((alias) => entriesNameSet.has(alias))) {
|
|
||||||
if (!override)
|
if (!override)
|
||||||
throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
|
throw new Error(`Duplicate middleware name '${name}'`);
|
||||||
for (const alias of aliases) {
|
const toOverrideIndex = relativeEntries.findIndex((entry) => entry.name === name);
|
||||||
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)); });
|
const toOverride = relativeEntries[toOverrideIndex];
|
||||||
if (toOverrideIndex === -1) {
|
if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) {
|
||||||
continue;
|
throw new Error(`"${name}" middleware ${toOverride.relation} "${toOverride.toMiddleware}" middleware cannot be overridden ` +
|
||||||
}
|
`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);
|
||||||
}
|
}
|
||||||
for (const alias of aliases) {
|
entriesNameSet.add(name);
|
||||||
entriesNameSet.add(alias);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
relativeEntries.push(entry);
|
relativeEntries.push(entry);
|
||||||
},
|
},
|
||||||
@@ -12444,12 +12159,10 @@ const constructStack = () => {
|
|||||||
removeByTag: (toRemove) => {
|
removeByTag: (toRemove) => {
|
||||||
let isRemoved = false;
|
let isRemoved = false;
|
||||||
const filterCb = (entry) => {
|
const filterCb = (entry) => {
|
||||||
const { tags, name, aliases: _aliases } = entry;
|
const { tags, name } = entry;
|
||||||
if (tags && tags.includes(toRemove)) {
|
if (tags && tags.includes(toRemove)) {
|
||||||
const aliases = getAllAliases(name, _aliases);
|
if (name)
|
||||||
for (const alias of aliases) {
|
entriesNameSet.delete(name);
|
||||||
entriesNameSet.delete(alias);
|
|
||||||
}
|
|
||||||
isRemoved = true;
|
isRemoved = true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -12460,36 +12173,22 @@ 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) => {
|
||||||
var _a;
|
return mw.name + ": " + (mw.tags || []).join(",");
|
||||||
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;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -12808,19 +12507,6 @@ 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;
|
||||||
|
|
||||||
@@ -13114,19 +12800,6 @@ 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();
|
||||||
@@ -13560,53 +13233,6 @@ 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:
|
||||||
@@ -13712,7 +13338,6 @@ 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);
|
||||||
@@ -13939,10 +13564,11 @@ 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 && process.geteuid) {
|
if (process_1.geteuid) {
|
||||||
return `${process.geteuid()}`;
|
return `${(0, process_1.geteuid)()}`;
|
||||||
}
|
}
|
||||||
return "DEFAULT";
|
return "DEFAULT";
|
||||||
};
|
};
|
||||||
@@ -15327,14 +14953,16 @@ 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 = [];
|
||||||
for (const id in types_1.AlgorithmId) {
|
if (runtimeConfig.sha256 !== undefined) {
|
||||||
const algorithmId = types_1.AlgorithmId[id];
|
|
||||||
if (runtimeConfig[algorithmId] === undefined) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
checksumAlgorithms.push({
|
checksumAlgorithms.push({
|
||||||
algorithmId: () => algorithmId,
|
algorithmId: () => types_1.AlgorithmId.SHA256,
|
||||||
checksumConstructor: () => runtimeConfig[algorithmId],
|
checksumConstructor: () => runtimeConfig.sha256,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (runtimeConfig.md5 != undefined) {
|
||||||
|
checksumAlgorithms.push({
|
||||||
|
algorithmId: () => types_1.AlgorithmId.MD5,
|
||||||
|
checksumConstructor: () => runtimeConfig.md5,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
@@ -15368,11 +14996,9 @@ 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;
|
||||||
@@ -15380,7 +15006,6 @@ 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;
|
||||||
@@ -15398,35 +15023,6 @@ 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:
|
||||||
@@ -16472,8 +16068,6 @@ 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";
|
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
@@ -17010,20 +16604,6 @@ 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:
|
||||||
@@ -17033,7 +16613,6 @@ exports.getSmithyContext = getSmithyContext;
|
|||||||
|
|
||||||
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);
|
||||||
|
|
||||||
|
|
||||||
@@ -21538,7 +21117,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.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"}}');
|
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"}}');
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
@@ -21546,7 +21125,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.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"}}');
|
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"}}');
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
@@ -21554,7 +21133,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","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"}');
|
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"}');
|
||||||
|
|
||||||
/***/ })
|
/***/ })
|
||||||
|
|
||||||
|
|||||||
+55
-480
@@ -143,10 +143,6 @@ 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;
|
||||||
@@ -1152,7 +1148,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.message}`);
|
Error Message: ${error.result.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) {
|
||||||
@@ -3041,7 +3037,6 @@ 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 {
|
||||||
@@ -3070,10 +3065,6 @@ 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);
|
||||||
@@ -3101,7 +3092,6 @@ 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 {
|
||||||
@@ -3130,10 +3120,6 @@ 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);
|
||||||
@@ -3161,7 +3147,6 @@ 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 {
|
||||||
@@ -3190,10 +3175,6 @@ 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);
|
||||||
@@ -3221,7 +3202,6 @@ 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 {
|
||||||
@@ -3250,10 +3230,6 @@ 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);
|
||||||
@@ -3332,9 +3308,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 s = "required", t = "fn", u = "argv", v = "ref";
|
const p = "required", q = "fn", r = "argv", s = "ref";
|
||||||
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 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 _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 }] };
|
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 }] }] };
|
||||||
exports.ruleSet = _data;
|
exports.ruleSet = _data;
|
||||||
|
|
||||||
|
|
||||||
@@ -4050,22 +4026,16 @@ 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;
|
||||||
@@ -4170,7 +4140,6 @@ 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 {
|
||||||
@@ -4201,10 +4170,6 @@ 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);
|
||||||
@@ -4232,7 +4197,6 @@ 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 {
|
||||||
@@ -4262,10 +4226,6 @@ 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);
|
||||||
@@ -4293,7 +4253,6 @@ 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 {
|
||||||
@@ -4323,10 +4282,6 @@ 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);
|
||||||
@@ -4355,7 +4310,6 @@ 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() {
|
||||||
@@ -4385,10 +4339,6 @@ 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);
|
||||||
@@ -4417,7 +4367,6 @@ 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() {
|
||||||
@@ -4447,10 +4396,6 @@ 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);
|
||||||
@@ -4479,7 +4424,6 @@ 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() {
|
||||||
@@ -4509,10 +4453,6 @@ 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);
|
||||||
@@ -4541,7 +4481,6 @@ 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 {
|
||||||
@@ -4572,10 +4511,6 @@ 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);
|
||||||
@@ -4604,7 +4539,6 @@ 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 {
|
||||||
@@ -4635,10 +4569,6 @@ 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);
|
||||||
@@ -4844,7 +4774,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 }, { 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 }] };
|
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 }] }] };
|
||||||
exports.ruleSet = _data;
|
exports.ruleSet = _data;
|
||||||
|
|
||||||
|
|
||||||
@@ -6187,22 +6117,16 @@ 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;
|
||||||
@@ -6326,7 +6250,6 @@ 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) {
|
||||||
@@ -7491,161 +7414,6 @@ 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:
|
||||||
@@ -8954,16 +8722,6 @@ 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:
|
||||||
@@ -9062,7 +8820,6 @@ 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);
|
||||||
@@ -12818,37 +12575,18 @@ 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) => {
|
||||||
const aliases = getAllAliases(entry.name, entry.aliases);
|
if (entry.name && entry.name === toRemove) {
|
||||||
if (aliases.includes(toRemove)) {
|
|
||||||
isRemoved = true;
|
isRemoved = true;
|
||||||
for (const alias of aliases) {
|
entriesNameSet.delete(toRemove);
|
||||||
entriesNameSet.delete(alias);
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@@ -12862,9 +12600,8 @@ const constructStack = () => {
|
|||||||
const filterCb = (entry) => {
|
const filterCb = (entry) => {
|
||||||
if (entry.middleware === toRemove) {
|
if (entry.middleware === toRemove) {
|
||||||
isRemoved = true;
|
isRemoved = true;
|
||||||
for (const alias of getAllAliases(entry.name, entry.aliases)) {
|
if (entry.name)
|
||||||
entriesNameSet.delete(alias);
|
entriesNameSet.delete(entry.name);
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@@ -12874,14 +12611,12 @@ 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) => {
|
||||||
@@ -12915,9 +12650,8 @@ const constructStack = () => {
|
|||||||
before: [],
|
before: [],
|
||||||
after: [],
|
after: [],
|
||||||
};
|
};
|
||||||
for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) {
|
if (normalizedEntry.name)
|
||||||
normalizedEntriesNameMap[alias] = normalizedEntry;
|
normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry;
|
||||||
}
|
|
||||||
normalizedAbsoluteEntries.push(normalizedEntry);
|
normalizedAbsoluteEntries.push(normalizedEntry);
|
||||||
});
|
});
|
||||||
relativeEntries.forEach((entry) => {
|
relativeEntries.forEach((entry) => {
|
||||||
@@ -12926,9 +12660,8 @@ const constructStack = () => {
|
|||||||
before: [],
|
before: [],
|
||||||
after: [],
|
after: [],
|
||||||
};
|
};
|
||||||
for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) {
|
if (normalizedEntry.name)
|
||||||
normalizedEntriesNameMap[alias] = normalizedEntry;
|
normalizedEntriesNameMap[normalizedEntry.name] = normalizedEntry;
|
||||||
}
|
|
||||||
normalizedRelativeEntries.push(normalizedEntry);
|
normalizedRelativeEntries.push(normalizedEntry);
|
||||||
});
|
});
|
||||||
normalizedRelativeEntries.forEach((entry) => {
|
normalizedRelativeEntries.forEach((entry) => {
|
||||||
@@ -12938,9 +12671,7 @@ const constructStack = () => {
|
|||||||
if (debug) {
|
if (debug) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
throw new Error(`${entry.toMiddleware} is not found when adding ` +
|
throw new Error(`${entry.toMiddleware} is not found when adding ${entry.name || "anonymous"} middleware ${entry.relation} ${entry.toMiddleware}`);
|
||||||
`${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);
|
||||||
@@ -12960,68 +12691,48 @@ const constructStack = () => {
|
|||||||
};
|
};
|
||||||
const stack = {
|
const stack = {
|
||||||
add: (middleware, options = {}) => {
|
add: (middleware, options = {}) => {
|
||||||
const { name, override, aliases: _aliases } = options;
|
const { name, override } = options;
|
||||||
const entry = {
|
const entry = {
|
||||||
step: "initialize",
|
step: "initialize",
|
||||||
priority: "normal",
|
priority: "normal",
|
||||||
middleware,
|
middleware,
|
||||||
...options,
|
...options,
|
||||||
};
|
};
|
||||||
const aliases = getAllAliases(name, _aliases);
|
if (name) {
|
||||||
if (aliases.length > 0) {
|
if (entriesNameSet.has(name)) {
|
||||||
if (aliases.some((alias) => entriesNameSet.has(alias))) {
|
|
||||||
if (!override)
|
if (!override)
|
||||||
throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
|
throw new Error(`Duplicate middleware name '${name}'`);
|
||||||
for (const alias of aliases) {
|
const toOverrideIndex = absoluteEntries.findIndex((entry) => entry.name === name);
|
||||||
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)); });
|
const toOverride = absoluteEntries[toOverrideIndex];
|
||||||
if (toOverrideIndex === -1) {
|
if (toOverride.step !== entry.step || toOverride.priority !== entry.priority) {
|
||||||
continue;
|
throw new Error(`"${name}" middleware with ${toOverride.priority} priority in ${toOverride.step} step cannot be ` +
|
||||||
}
|
`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);
|
||||||
}
|
}
|
||||||
for (const alias of aliases) {
|
entriesNameSet.add(name);
|
||||||
entriesNameSet.add(alias);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
absoluteEntries.push(entry);
|
absoluteEntries.push(entry);
|
||||||
},
|
},
|
||||||
addRelativeTo: (middleware, options) => {
|
addRelativeTo: (middleware, options) => {
|
||||||
const { name, override, aliases: _aliases } = options;
|
const { name, override } = options;
|
||||||
const entry = {
|
const entry = {
|
||||||
middleware,
|
middleware,
|
||||||
...options,
|
...options,
|
||||||
};
|
};
|
||||||
const aliases = getAllAliases(name, _aliases);
|
if (name) {
|
||||||
if (aliases.length > 0) {
|
if (entriesNameSet.has(name)) {
|
||||||
if (aliases.some((alias) => entriesNameSet.has(alias))) {
|
|
||||||
if (!override)
|
if (!override)
|
||||||
throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`);
|
throw new Error(`Duplicate middleware name '${name}'`);
|
||||||
for (const alias of aliases) {
|
const toOverrideIndex = relativeEntries.findIndex((entry) => entry.name === name);
|
||||||
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)); });
|
const toOverride = relativeEntries[toOverrideIndex];
|
||||||
if (toOverrideIndex === -1) {
|
if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) {
|
||||||
continue;
|
throw new Error(`"${name}" middleware ${toOverride.relation} "${toOverride.toMiddleware}" middleware cannot be overridden ` +
|
||||||
}
|
`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);
|
||||||
}
|
}
|
||||||
for (const alias of aliases) {
|
entriesNameSet.add(name);
|
||||||
entriesNameSet.add(alias);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
relativeEntries.push(entry);
|
relativeEntries.push(entry);
|
||||||
},
|
},
|
||||||
@@ -13038,12 +12749,10 @@ const constructStack = () => {
|
|||||||
removeByTag: (toRemove) => {
|
removeByTag: (toRemove) => {
|
||||||
let isRemoved = false;
|
let isRemoved = false;
|
||||||
const filterCb = (entry) => {
|
const filterCb = (entry) => {
|
||||||
const { tags, name, aliases: _aliases } = entry;
|
const { tags, name } = entry;
|
||||||
if (tags && tags.includes(toRemove)) {
|
if (tags && tags.includes(toRemove)) {
|
||||||
const aliases = getAllAliases(name, _aliases);
|
if (name)
|
||||||
for (const alias of aliases) {
|
entriesNameSet.delete(name);
|
||||||
entriesNameSet.delete(alias);
|
|
||||||
}
|
|
||||||
isRemoved = true;
|
isRemoved = true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -13054,36 +12763,22 @@ 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) => {
|
||||||
var _a;
|
return mw.name + ": " + (mw.tags || []).join(",");
|
||||||
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;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -13402,19 +13097,6 @@ 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;
|
||||||
|
|
||||||
@@ -13708,19 +13390,6 @@ 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();
|
||||||
@@ -14154,53 +13823,6 @@ 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:
|
||||||
@@ -14306,7 +13928,6 @@ 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);
|
||||||
@@ -14533,10 +14154,11 @@ 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 && process.geteuid) {
|
if (process_1.geteuid) {
|
||||||
return `${process.geteuid()}`;
|
return `${(0, process_1.geteuid)()}`;
|
||||||
}
|
}
|
||||||
return "DEFAULT";
|
return "DEFAULT";
|
||||||
};
|
};
|
||||||
@@ -15921,14 +15543,16 @@ 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 = [];
|
||||||
for (const id in types_1.AlgorithmId) {
|
if (runtimeConfig.sha256 !== undefined) {
|
||||||
const algorithmId = types_1.AlgorithmId[id];
|
|
||||||
if (runtimeConfig[algorithmId] === undefined) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
checksumAlgorithms.push({
|
checksumAlgorithms.push({
|
||||||
algorithmId: () => algorithmId,
|
algorithmId: () => types_1.AlgorithmId.SHA256,
|
||||||
checksumConstructor: () => runtimeConfig[algorithmId],
|
checksumConstructor: () => runtimeConfig.sha256,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (runtimeConfig.md5 != undefined) {
|
||||||
|
checksumAlgorithms.push({
|
||||||
|
algorithmId: () => types_1.AlgorithmId.MD5,
|
||||||
|
checksumConstructor: () => runtimeConfig.md5,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
@@ -15962,11 +15586,9 @@ 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;
|
||||||
@@ -15974,7 +15596,6 @@ 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;
|
||||||
@@ -15992,35 +15613,6 @@ 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:
|
||||||
@@ -17066,8 +16658,6 @@ 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";
|
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
@@ -17604,20 +17194,6 @@ 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:
|
||||||
@@ -17627,7 +17203,6 @@ exports.getSmithyContext = getSmithyContext;
|
|||||||
|
|
||||||
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);
|
||||||
|
|
||||||
|
|
||||||
@@ -23584,7 +23159,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.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"}}');
|
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"}}');
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
@@ -23592,7 +23167,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.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"}}');
|
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"}}');
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
@@ -23600,7 +23175,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","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"}');
|
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"}');
|
||||||
|
|
||||||
/***/ })
|
/***/ })
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Configure AWS Credentials
|
- name: Configure AWS Credentials
|
||||||
uses: aws-actions/configure-aws-credentials@v4
|
uses: aws-actions/configure-aws-credentials@v3
|
||||||
with:
|
with:
|
||||||
aws-region: us-east-1
|
aws-region: us-east-1
|
||||||
## the following creates an ARN based on the values entered into github secrets
|
## the following creates an ARN based on the values entered into github secrets
|
||||||
|
|||||||
Generated
+1193
-1278
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.11",
|
"@smithy/property-provider": "^2.0.6",
|
||||||
"@jest/globals": "^29.7.0",
|
"@jest/globals": "^29.6.4",
|
||||||
"@types/jest": "^29.5.5",
|
"@types/jest": "^29.5.4",
|
||||||
"@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.6.1",
|
"eslint-import-resolver-typescript": "^3.5.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.7.0",
|
"jest": "^29.6.4",
|
||||||
"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.1",
|
"@actions/core": "^1.10.0",
|
||||||
"@aws-sdk/client-sts": "^3",
|
"@aws-sdk/client-sts": "^3",
|
||||||
"@smithy/node-http-handler": "^2.1.6",
|
"@smithy/node-http-handler": "^2.0.0",
|
||||||
"https-proxy-agent": "^5.0.0"
|
"https-proxy-agent": "^5.0.0"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|||||||
@@ -56,12 +56,6 @@ 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,9 +105,6 @@ 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,
|
||||||
@@ -871,23 +868,4 @@ 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