@cdklabs/cdk-ecs-codedeploy 0.0.355 → 0.0.356
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +3 -3
- package/lib/api-canary/index.js +1 -1
- package/lib/ecs-appspec/index.js +1 -1
- package/lib/ecs-deployment/index.js +1 -1
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.js +8 -6
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/runtimeConfig.js +8 -6
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/CodeDeployClient.d.ts +18 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/CodeDeployClient.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/package.json +14 -14
- package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js +8 -6
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js +8 -6
- package/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +18 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSOClient.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso/package.json +11 -11
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/runtimeConfig.js +8 -6
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/runtimeConfig.js +8 -6
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/SSOOIDCClient.d.ts +18 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/SSOOIDCClient.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +13 -13
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +8 -6
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js +8 -6
- package/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +18 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STSClient.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/node_modules/@aws-sdk/client-sts/package.json +13 -13
- package/node_modules/@aws-sdk/core/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +12 -8
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js +7 -7
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +8 -2
- package/node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js +4 -2
- package/node_modules/@aws-sdk/credential-provider-process/dist-types/fromProcess.d.ts +2 -3
- package/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/fromProcess.d.ts +5 -3
- package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +4 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js +4 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/fromSSO.d.ts +2 -3
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/fromSSO.d.ts +5 -3
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +4 -8
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js +4 -8
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-host-header/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +4 -4
- package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +10 -10
- package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +8 -10
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +1 -0
- package/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts +1 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +1 -0
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +1 -0
- package/node_modules/@aws-sdk/types/package.json +1 -1
- package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +3 -3
- package/package.json +3 -3
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { CredentialProviderOptions } from "@aws-sdk/types";
|
|
1
|
+
import type { CredentialProviderOptions, RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
|
|
2
2
|
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
|
3
|
-
import { AwsCredentialIdentityProvider } from "@smithy/types";
|
|
4
3
|
/**
|
|
5
4
|
* @internal
|
|
6
5
|
*/
|
|
@@ -12,4 +11,4 @@ export interface FromProcessInit extends SourceProfileInit, CredentialProviderOp
|
|
|
12
11
|
* Creates a credential provider that will read from a credential_process specified
|
|
13
12
|
* in ini files.
|
|
14
13
|
*/
|
|
15
|
-
export declare const fromProcess: (init?: FromProcessInit) =>
|
|
14
|
+
export declare const fromProcess: (init?: FromProcessInit) => RuntimeConfigAwsCredentialIdentityProvider;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
CredentialProviderOptions,
|
|
3
|
+
RuntimeConfigAwsCredentialIdentityProvider,
|
|
4
|
+
} from "@aws-sdk/types";
|
|
2
5
|
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
|
3
|
-
import { AwsCredentialIdentityProvider } from "@smithy/types";
|
|
4
6
|
export interface FromProcessInit
|
|
5
7
|
extends SourceProfileInit,
|
|
6
8
|
CredentialProviderOptions {}
|
|
7
9
|
export declare const fromProcess: (
|
|
8
10
|
init?: FromProcessInit
|
|
9
|
-
) =>
|
|
11
|
+
) => RuntimeConfigAwsCredentialIdentityProvider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-process",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.714.0",
|
|
4
4
|
"description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
},
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aws-sdk/core": "3.
|
|
29
|
-
"@aws-sdk/types": "3.
|
|
28
|
+
"@aws-sdk/core": "3.714.0",
|
|
29
|
+
"@aws-sdk/types": "3.714.0",
|
|
30
30
|
"@smithy/property-provider": "^3.1.11",
|
|
31
31
|
"@smithy/shared-ini-file-loader": "^3.1.12",
|
|
32
32
|
"@smithy/types": "^3.7.2",
|
|
@@ -165,12 +165,14 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
|
165
165
|
}, "validateSsoProfile");
|
|
166
166
|
|
|
167
167
|
// src/fromSSO.ts
|
|
168
|
-
var fromSSO = /* @__PURE__ */ __name((init = {}) => async () => {
|
|
168
|
+
var fromSSO = /* @__PURE__ */ __name((init = {}) => async ({ callerClientConfig } = {}) => {
|
|
169
169
|
var _a;
|
|
170
170
|
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-sso - fromSSO");
|
|
171
171
|
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
|
|
172
172
|
const { ssoClient } = init;
|
|
173
|
-
const profileName = (0, import_shared_ini_file_loader.getProfileName)(
|
|
173
|
+
const profileName = (0, import_shared_ini_file_loader.getProfileName)({
|
|
174
|
+
profile: init.profile ?? (callerClientConfig == null ? void 0 : callerClientConfig.profile)
|
|
175
|
+
});
|
|
174
176
|
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
|
175
177
|
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);
|
|
176
178
|
const profile = profiles[profileName];
|
|
@@ -3,11 +3,13 @@ import { getProfileName, loadSsoSessionData, parseKnownFiles } from "@smithy/sha
|
|
|
3
3
|
import { isSsoProfile } from "./isSsoProfile";
|
|
4
4
|
import { resolveSSOCredentials } from "./resolveSSOCredentials";
|
|
5
5
|
import { validateSsoProfile } from "./validateSsoProfile";
|
|
6
|
-
export const fromSSO = (init = {}) => async () => {
|
|
6
|
+
export const fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
7
7
|
init.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");
|
|
8
8
|
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
|
|
9
9
|
const { ssoClient } = init;
|
|
10
|
-
const profileName = getProfileName(
|
|
10
|
+
const profileName = getProfileName({
|
|
11
|
+
profile: init.profile ?? callerClientConfig?.profile,
|
|
12
|
+
});
|
|
11
13
|
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
|
12
14
|
const profiles = await parseKnownFiles(init);
|
|
13
15
|
const profile = profiles[profileName];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { CredentialProviderOptions } from "@aws-sdk/types";
|
|
1
|
+
import type { CredentialProviderOptions, RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
|
|
2
2
|
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
|
3
|
-
import { AwsCredentialIdentityProvider } from "@smithy/types";
|
|
4
3
|
import type { SSOClient, SSOClientConfig } from "./loadSso";
|
|
5
4
|
/**
|
|
6
5
|
* @internal
|
|
@@ -66,4 +65,4 @@ export interface FromSSOInit extends SourceProfileInit, CredentialProviderOption
|
|
|
66
65
|
* sso_start_url = https://www.....com/start
|
|
67
66
|
* ```
|
|
68
67
|
*/
|
|
69
|
-
export declare const fromSSO: (init?: FromSSOInit & Partial<SsoCredentialsParameters>) =>
|
|
68
|
+
export declare const fromSSO: (init?: FromSSOInit & Partial<SsoCredentialsParameters>) => RuntimeConfigAwsCredentialIdentityProvider;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
CredentialProviderOptions,
|
|
3
|
+
RuntimeConfigAwsCredentialIdentityProvider,
|
|
4
|
+
} from "@aws-sdk/types";
|
|
2
5
|
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
|
3
|
-
import { AwsCredentialIdentityProvider } from "@smithy/types";
|
|
4
6
|
import { SSOClient, SSOClientConfig } from "./loadSso";
|
|
5
7
|
export interface SsoCredentialsParameters {
|
|
6
8
|
ssoStartUrl: string;
|
|
@@ -17,4 +19,4 @@ export interface FromSSOInit
|
|
|
17
19
|
}
|
|
18
20
|
export declare const fromSSO: (
|
|
19
21
|
init?: FromSSOInit & Partial<SsoCredentialsParameters>
|
|
20
|
-
) =>
|
|
22
|
+
) => RuntimeConfigAwsCredentialIdentityProvider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-sso",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.714.0",
|
|
4
4
|
"description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
},
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aws-sdk/client-sso": "3.
|
|
29
|
-
"@aws-sdk/core": "3.
|
|
30
|
-
"@aws-sdk/token-providers": "3.
|
|
31
|
-
"@aws-sdk/types": "3.
|
|
28
|
+
"@aws-sdk/client-sso": "3.714.0",
|
|
29
|
+
"@aws-sdk/core": "3.714.0",
|
|
30
|
+
"@aws-sdk/token-providers": "3.714.0",
|
|
31
|
+
"@aws-sdk/types": "3.714.0",
|
|
32
32
|
"@smithy/property-provider": "^3.1.11",
|
|
33
33
|
"@smithy/shared-ini-file-loader": "^3.1.12",
|
|
34
34
|
"@smithy/types": "^3.7.2",
|
|
@@ -33,14 +33,10 @@ const fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
|
33
33
|
roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
|
|
34
34
|
...init.clientConfig,
|
|
35
35
|
credentialProviderLogger: init.logger,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
...init.parentClientConfig,
|
|
41
|
-
},
|
|
42
|
-
}
|
|
43
|
-
: {}),
|
|
36
|
+
parentClientConfig: {
|
|
37
|
+
...awsIdentityProperties?.callerClientConfig,
|
|
38
|
+
...init.parentClientConfig,
|
|
39
|
+
},
|
|
44
40
|
}, init.clientPlugins);
|
|
45
41
|
}
|
|
46
42
|
return roleAssumerWithWebIdentity({
|
|
@@ -7,14 +7,10 @@ export const fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
|
7
7
|
roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
|
|
8
8
|
...init.clientConfig,
|
|
9
9
|
credentialProviderLogger: init.logger,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
...init.parentClientConfig,
|
|
15
|
-
},
|
|
16
|
-
}
|
|
17
|
-
: {}),
|
|
10
|
+
parentClientConfig: {
|
|
11
|
+
...awsIdentityProperties?.callerClientConfig,
|
|
12
|
+
...init.parentClientConfig,
|
|
13
|
+
},
|
|
18
14
|
}, init.clientPlugins);
|
|
19
15
|
}
|
|
20
16
|
return roleAssumerWithWebIdentity({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-web-identity",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.714.0",
|
|
4
4
|
"description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
},
|
|
34
34
|
"license": "Apache-2.0",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@aws-sdk/core": "3.
|
|
37
|
-
"@aws-sdk/types": "3.
|
|
36
|
+
"@aws-sdk/core": "3.714.0",
|
|
37
|
+
"@aws-sdk/types": "3.714.0",
|
|
38
38
|
"@smithy/property-provider": "^3.1.11",
|
|
39
39
|
"@smithy/types": "^3.7.2",
|
|
40
40
|
"tslib": "^2.6.2"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"typescript": "~4.9.5"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@aws-sdk/client-sts": "^3.
|
|
51
|
+
"@aws-sdk/client-sts": "^3.714.0"
|
|
52
52
|
},
|
|
53
53
|
"types": "./dist-types/index.d.ts",
|
|
54
54
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-host-header",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.714.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-host-header",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@aws-sdk/types": "3.
|
|
26
|
+
"@aws-sdk/types": "3.714.0",
|
|
27
27
|
"@smithy/protocol-http": "^4.1.8",
|
|
28
28
|
"@smithy/types": "^3.7.2",
|
|
29
29
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-logger",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.714.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-logger",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"module": "./dist-es/index.js",
|
|
25
25
|
"types": "./dist-types/index.d.ts",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/types": "3.
|
|
27
|
+
"@aws-sdk/types": "3.714.0",
|
|
28
28
|
"@smithy/types": "^3.7.2",
|
|
29
29
|
"tslib": "^2.6.2"
|
|
30
30
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-recursion-detection",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.714.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-recursion-detection",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@aws-sdk/types": "3.
|
|
26
|
+
"@aws-sdk/types": "3.714.0",
|
|
27
27
|
"@smithy/protocol-http": "^4.1.8",
|
|
28
28
|
"@smithy/types": "^3.7.2",
|
|
29
29
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-user-agent",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.714.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-user-agent",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/core": "3.
|
|
28
|
-
"@aws-sdk/types": "3.
|
|
29
|
-
"@aws-sdk/util-endpoints": "3.
|
|
27
|
+
"@aws-sdk/core": "3.714.0",
|
|
28
|
+
"@aws-sdk/types": "3.714.0",
|
|
29
|
+
"@aws-sdk/util-endpoints": "3.714.0",
|
|
30
30
|
"@smithy/core": "^2.5.5",
|
|
31
31
|
"@smithy/protocol-http": "^4.1.8",
|
|
32
32
|
"@smithy/types": "^3.7.2",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/region-config-resolver",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.714.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline region-config-resolver",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@aws-sdk/types": "3.
|
|
25
|
+
"@aws-sdk/types": "3.714.0",
|
|
26
26
|
"@smithy/node-config-provider": "^3.1.12",
|
|
27
27
|
"@smithy/types": "^3.7.2",
|
|
28
28
|
"@smithy/util-config-provider": "^3.0.0",
|
|
@@ -103,20 +103,20 @@ var writeSSOTokenToFile = /* @__PURE__ */ __name((id, ssoToken) => {
|
|
|
103
103
|
|
|
104
104
|
// src/fromSso.ts
|
|
105
105
|
var lastRefreshAttemptTime = /* @__PURE__ */ new Date(0);
|
|
106
|
-
var fromSso = /* @__PURE__ */ __name((_init = {}) => async (
|
|
107
|
-
var _a
|
|
106
|
+
var fromSso = /* @__PURE__ */ __name((_init = {}) => async ({ callerClientConfig } = {}) => {
|
|
107
|
+
var _a;
|
|
108
108
|
const init = {
|
|
109
109
|
..._init,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}
|
|
115
|
-
} : {}
|
|
110
|
+
parentClientConfig: {
|
|
111
|
+
...callerClientConfig,
|
|
112
|
+
..._init.parentClientConfig
|
|
113
|
+
}
|
|
116
114
|
};
|
|
117
|
-
(
|
|
115
|
+
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/token-providers - fromSso");
|
|
118
116
|
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);
|
|
119
|
-
const profileName = (0, import_shared_ini_file_loader.getProfileName)(
|
|
117
|
+
const profileName = (0, import_shared_ini_file_loader.getProfileName)({
|
|
118
|
+
profile: init.profile ?? (callerClientConfig == null ? void 0 : callerClientConfig.profile)
|
|
119
|
+
});
|
|
120
120
|
const profile = profiles[profileName];
|
|
121
121
|
if (!profile) {
|
|
122
122
|
throw new import_property_provider.TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false);
|
|
@@ -6,21 +6,19 @@ import { validateTokenExpiry } from "./validateTokenExpiry";
|
|
|
6
6
|
import { validateTokenKey } from "./validateTokenKey";
|
|
7
7
|
import { writeSSOTokenToFile } from "./writeSSOTokenToFile";
|
|
8
8
|
const lastRefreshAttemptTime = new Date(0);
|
|
9
|
-
export const fromSso = (_init = {}) => async (
|
|
9
|
+
export const fromSso = (_init = {}) => async ({ callerClientConfig } = {}) => {
|
|
10
10
|
const init = {
|
|
11
11
|
..._init,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
..._init.parentClientConfig,
|
|
17
|
-
},
|
|
18
|
-
}
|
|
19
|
-
: {}),
|
|
12
|
+
parentClientConfig: {
|
|
13
|
+
...callerClientConfig,
|
|
14
|
+
..._init.parentClientConfig,
|
|
15
|
+
},
|
|
20
16
|
};
|
|
21
17
|
init.logger?.debug("@aws-sdk/token-providers - fromSso");
|
|
22
18
|
const profiles = await parseKnownFiles(init);
|
|
23
|
-
const profileName = getProfileName(
|
|
19
|
+
const profileName = getProfileName({
|
|
20
|
+
profile: init.profile ?? callerClientConfig?.profile,
|
|
21
|
+
});
|
|
24
22
|
const profile = profiles[profileName];
|
|
25
23
|
if (!profile) {
|
|
26
24
|
throw new TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/token-providers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.714.0",
|
|
4
4
|
"description": "A collection of token providers",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@aws-sdk/types": "3.
|
|
30
|
+
"@aws-sdk/types": "3.714.0",
|
|
31
31
|
"@smithy/property-provider": "^3.1.11",
|
|
32
32
|
"@smithy/shared-ini-file-loader": "^3.1.12",
|
|
33
33
|
"@smithy/types": "^3.7.2",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"typescript": "~4.9.5"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@aws-sdk/client-sso-oidc": "^3.
|
|
45
|
+
"@aws-sdk/client-sso-oidc": "^3.714.0"
|
|
46
46
|
},
|
|
47
47
|
"types": "./dist-types/index.d.ts",
|
|
48
48
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-endpoints",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.714.0",
|
|
4
4
|
"description": "Utilities to help with endpoint resolution",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@aws-sdk/types": "3.
|
|
27
|
+
"@aws-sdk/types": "3.714.0",
|
|
28
28
|
"@smithy/types": "^3.7.2",
|
|
29
29
|
"@smithy/util-endpoints": "^2.1.7",
|
|
30
30
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-user-agent-browser",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.714.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline util-user-agent-browser",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"react-native": "dist-es/index.native.js",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@aws-sdk/types": "3.
|
|
26
|
+
"@aws-sdk/types": "3.714.0",
|
|
27
27
|
"@smithy/types": "^3.7.2",
|
|
28
28
|
"bowser": "^2.11.0",
|
|
29
29
|
"tslib": "^2.6.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-user-agent-node",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.714.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline util-user-agent-node",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
25
|
-
"@aws-sdk/types": "3.
|
|
24
|
+
"@aws-sdk/middleware-user-agent": "3.714.0",
|
|
25
|
+
"@aws-sdk/types": "3.714.0",
|
|
26
26
|
"@smithy/node-config-provider": "^3.1.12",
|
|
27
27
|
"@smithy/types": "^3.7.2",
|
|
28
28
|
"tslib": "^2.6.2"
|
package/package.json
CHANGED
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"jsii-diff": "^1.106.0",
|
|
98
98
|
"jsii-docgen": "^10.5.0",
|
|
99
99
|
"jsii-pacmak": "^1.106.0",
|
|
100
|
-
"jsii-rosetta": "^5.
|
|
100
|
+
"jsii-rosetta": "^5.7.1",
|
|
101
101
|
"lambda-tester": "^4.0.1",
|
|
102
102
|
"projen": "0.87.4",
|
|
103
103
|
"ts-jest": "^27",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"constructs": "^10.0.5"
|
|
110
110
|
},
|
|
111
111
|
"dependencies": {
|
|
112
|
-
"@aws-sdk/client-codedeploy": "^3.
|
|
112
|
+
"@aws-sdk/client-codedeploy": "^3.714.0",
|
|
113
113
|
"jmespath": "^0.16.0"
|
|
114
114
|
},
|
|
115
115
|
"bundledDependencies": [
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"publishConfig": {
|
|
128
128
|
"access": "public"
|
|
129
129
|
},
|
|
130
|
-
"version": "0.0.
|
|
130
|
+
"version": "0.0.356",
|
|
131
131
|
"jest": {
|
|
132
132
|
"coverageProvider": "v8",
|
|
133
133
|
"testMatch": [
|