@cdk8s/awscdk-resolver 0.0.55 → 0.0.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +3 -3
- package/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/README.md +88 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/CreateGeneratedTemplateCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DeleteGeneratedTemplateCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DescribeGeneratedTemplateCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DescribeResourceScanCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/GetGeneratedTemplateCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListGeneratedTemplatesCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListResourceScanRelatedResourcesCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListResourceScanResourcesCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListResourceScansCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/StartResourceScanCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/UpdateGeneratedTemplateCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1677 -73
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/models_1.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListGeneratedTemplatesPaginator.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListResourceScanRelatedResourcesPaginator.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListResourceScanResourcesPaginator.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListResourceScansPaginator.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/CloudFormation.js +22 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/CreateGeneratedTemplateCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/DeleteGeneratedTemplateCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/DescribeGeneratedTemplateCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/DescribeResourceScanCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/GetGeneratedTemplateCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/ListGeneratedTemplatesCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/ListResourceScanRelatedResourcesCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/ListResourceScanResourcesCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/ListResourceScansCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/StartResourceScanCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/UpdateGeneratedTemplateCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/index.js +11 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/index.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/models_0.js +104 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/models_1.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListGeneratedTemplatesPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListResourceScanRelatedResourcesPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListResourceScanResourcesPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListResourceScansPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/index.js +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/protocols/Aws_query.js +1322 -92
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormation.d.ts +77 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormationClient.d.ts +13 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/CreateGeneratedTemplateCommand.d.ts +116 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DeleteGeneratedTemplateCommand.d.ts +75 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeGeneratedTemplateCommand.d.ts +135 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeResourceScanCommand.d.ts +168 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/GetGeneratedTemplateCommand.d.ts +100 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListGeneratedTemplatesCommand.d.ts +112 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListResourceScanRelatedResourcesCommand.d.ts +145 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListResourceScanResourcesCommand.d.ts +147 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListResourceScansCommand.d.ts +97 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/StartResourceScanCommand.d.ts +91 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/StopStackSetOperationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/TestTypeCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateGeneratedTemplateCommand.d.ts +156 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackInstancesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackSetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateTerminationProtectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ValidateTemplateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/index.d.ts +11 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +4075 -3877
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_1.d.ts +974 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListGeneratedTemplatesPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListResourceScanRelatedResourcesPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListResourceScanResourcesPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListResourceScansPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/index.d.ts +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/protocols/Aws_query.d.ts +99 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormation.d.ts +187 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormationClient.d.ts +66 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/CreateGeneratedTemplateCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DeleteGeneratedTemplateCommand.d.ts +26 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeGeneratedTemplateCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeResourceScanCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/GetGeneratedTemplateCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListGeneratedTemplatesCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListResourceScanRelatedResourcesCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListResourceScanResourcesCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListResourceScansCommand.d.ts +29 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/StartResourceScanCommand.d.ts +29 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/StopStackSetOperationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/TestTypeCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateGeneratedTemplateCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateStackCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateStackInstancesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateStackSetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateTerminationProtectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ValidateTemplateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/index.d.ts +11 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/models_0.d.ts +250 -99
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/models_1.d.ts +132 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListGeneratedTemplatesPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListResourceScanRelatedResourcesPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListResourceScanResourcesPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListResourceScansPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/protocols/Aws_query.d.ts +132 -0
- package/node_modules/@aws-sdk/client-cloudformation/package.json +3 -3
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +3 -3
- package/node_modules/@aws-sdk/client-sts/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/README.md +10 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js +46 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.browser.js +32 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +65 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttpTypes.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +59 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js +17 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.browser.js +5 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +5 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js +42 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.browser.js +27 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js +59 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttpTypes.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js +53 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/retry-wrapper.js +13 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/index.browser.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/checkUrl.d.ts +7 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttp.browser.d.ts +6 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttp.d.ts +6 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttpTypes.d.ts +69 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/requestHelpers.d.ts +11 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/retry-wrapper.d.ts +10 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/index.browser.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/index.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/checkUrl.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/fromHttp.browser.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/fromHttp.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/fromHttpTypes.d.ts +18 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/requestHelpers.d.ts +7 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/retry-wrapper.d.ts +8 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/index.browser.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/index.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-http/package.json +67 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +7 -10
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js +4 -8
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveSsoCredentials.d.ts +2 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveSsoCredentials.d.ts +4 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +5 -4
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js +2 -2
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/remoteProvider.js +4 -3
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/remoteProvider.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-node/package.json +5 -4
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +9 -6
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js +3 -5
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +5 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/resolveSSOCredentials.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/resolveSSOCredentials.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +2 -2
- package/package.json +5 -5
@@ -61,6 +61,7 @@ var resolveSSOCredentials = /* @__PURE__ */ __name(async ({
|
|
61
61
|
ssoRegion,
|
62
62
|
ssoRoleName,
|
63
63
|
ssoClient,
|
64
|
+
clientConfig,
|
64
65
|
profile
|
65
66
|
}) => {
|
66
67
|
let token;
|
@@ -93,7 +94,11 @@ var resolveSSOCredentials = /* @__PURE__ */ __name(async ({
|
|
93
94
|
}
|
94
95
|
const { accessToken } = token;
|
95
96
|
const { SSOClient: SSOClient2, GetRoleCredentialsCommand: GetRoleCredentialsCommand2 } = await Promise.resolve().then(() => (init_loadSso(), loadSso_exports));
|
96
|
-
const sso = ssoClient || new SSOClient2(
|
97
|
+
const sso = ssoClient || new SSOClient2(
|
98
|
+
Object.assign({}, clientConfig ?? {}, {
|
99
|
+
region: (clientConfig == null ? void 0 : clientConfig.region) ?? ssoRegion
|
100
|
+
})
|
101
|
+
);
|
97
102
|
let ssoResp;
|
98
103
|
try {
|
99
104
|
ssoResp = await sso.send(
|
@@ -134,11 +139,7 @@ var fromSSO = /* @__PURE__ */ __name((init = {}) => async () => {
|
|
134
139
|
var _a;
|
135
140
|
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-sso", "fromSSO");
|
136
141
|
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
|
137
|
-
|
138
|
-
if (!ssoClient) {
|
139
|
-
const { SSOClient: SSOClient2 } = await Promise.resolve().then(() => (init_loadSso(), loadSso_exports));
|
140
|
-
ssoClient = new SSOClient2(init.clientConfig ?? {});
|
141
|
-
}
|
142
|
+
const { ssoClient } = init;
|
142
143
|
const profileName = (0, import_shared_ini_file_loader.getProfileName)(init);
|
143
144
|
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
144
145
|
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);
|
@@ -170,6 +171,7 @@ var fromSSO = /* @__PURE__ */ __name((init = {}) => async () => {
|
|
170
171
|
ssoRegion: sso_region,
|
171
172
|
ssoRoleName: sso_role_name,
|
172
173
|
ssoClient,
|
174
|
+
clientConfig: init.clientConfig,
|
173
175
|
profile: profileName
|
174
176
|
});
|
175
177
|
} else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) {
|
@@ -184,6 +186,7 @@ var fromSSO = /* @__PURE__ */ __name((init = {}) => async () => {
|
|
184
186
|
ssoRegion,
|
185
187
|
ssoRoleName,
|
186
188
|
ssoClient,
|
189
|
+
clientConfig: init.clientConfig,
|
187
190
|
profile: profileName
|
188
191
|
});
|
189
192
|
}
|
@@ -6,11 +6,7 @@ import { validateSsoProfile } from "./validateSsoProfile";
|
|
6
6
|
export const fromSSO = (init = {}) => async () => {
|
7
7
|
init.logger?.debug("@aws-sdk/credential-provider-sso", "fromSSO");
|
8
8
|
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
|
9
|
-
|
10
|
-
if (!ssoClient) {
|
11
|
-
const { SSOClient } = await import("./loadSso");
|
12
|
-
ssoClient = new SSOClient(init.clientConfig ?? {});
|
13
|
-
}
|
9
|
+
const { ssoClient } = init;
|
14
10
|
const profileName = getProfileName(init);
|
15
11
|
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
16
12
|
const profiles = await parseKnownFiles(init);
|
@@ -42,6 +38,7 @@ export const fromSSO = (init = {}) => async () => {
|
|
42
38
|
ssoRegion: sso_region,
|
43
39
|
ssoRoleName: sso_role_name,
|
44
40
|
ssoClient: ssoClient,
|
41
|
+
clientConfig: init.clientConfig,
|
45
42
|
profile: profileName,
|
46
43
|
});
|
47
44
|
}
|
@@ -57,6 +54,7 @@ export const fromSSO = (init = {}) => async () => {
|
|
57
54
|
ssoRegion,
|
58
55
|
ssoRoleName,
|
59
56
|
ssoClient,
|
57
|
+
clientConfig: init.clientConfig,
|
60
58
|
profile: profileName,
|
61
59
|
});
|
62
60
|
}
|
@@ -2,7 +2,7 @@ import { fromSso as getSsoTokenProvider } from "@aws-sdk/token-providers";
|
|
2
2
|
import { CredentialsProviderError } from "@smithy/property-provider";
|
3
3
|
import { getSSOTokenFromFile } from "@smithy/shared-ini-file-loader";
|
4
4
|
const SHOULD_FAIL_CREDENTIAL_CHAIN = false;
|
5
|
-
export const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, profile, }) => {
|
5
|
+
export const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, profile, }) => {
|
6
6
|
let token;
|
7
7
|
const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`;
|
8
8
|
if (ssoSession) {
|
@@ -30,7 +30,10 @@ export const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccoun
|
|
30
30
|
}
|
31
31
|
const { accessToken } = token;
|
32
32
|
const { SSOClient, GetRoleCredentialsCommand } = await import("./loadSso");
|
33
|
-
const sso = ssoClient ||
|
33
|
+
const sso = ssoClient ||
|
34
|
+
new SSOClient(Object.assign({}, clientConfig ?? {}, {
|
35
|
+
region: clientConfig?.region ?? ssoRegion,
|
36
|
+
}));
|
34
37
|
let ssoResp;
|
35
38
|
try {
|
36
39
|
ssoResp = await sso.send(new GetRoleCredentialsCommand({
|
@@ -3,4 +3,4 @@ import { FromSSOInit, SsoCredentialsParameters } from "./fromSSO";
|
|
3
3
|
/**
|
4
4
|
* @internal
|
5
5
|
*/
|
6
|
-
export declare const resolveSSOCredentials: ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, profile, }: FromSSOInit & SsoCredentialsParameters) => Promise<AwsCredentialIdentity>;
|
6
|
+
export declare const resolveSSOCredentials: ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, profile, }: FromSSOInit & SsoCredentialsParameters) => Promise<AwsCredentialIdentity>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/credential-provider-sso",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.504.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,7 +25,7 @@
|
|
25
25
|
"license": "Apache-2.0",
|
26
26
|
"dependencies": {
|
27
27
|
"@aws-sdk/client-sso": "3.502.0",
|
28
|
-
"@aws-sdk/token-providers": "3.
|
28
|
+
"@aws-sdk/token-providers": "3.504.0",
|
29
29
|
"@aws-sdk/types": "3.502.0",
|
30
30
|
"@smithy/property-provider": "^2.1.1",
|
31
31
|
"@smithy/shared-ini-file-loader": "^2.3.1",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/credential-provider-web-identity",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.504.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",
|
@@ -32,7 +32,7 @@
|
|
32
32
|
},
|
33
33
|
"license": "Apache-2.0",
|
34
34
|
"dependencies": {
|
35
|
-
"@aws-sdk/client-sts": "3.
|
35
|
+
"@aws-sdk/client-sts": "3.504.0",
|
36
36
|
"@aws-sdk/types": "3.502.0",
|
37
37
|
"@smithy/property-provider": "^2.1.1",
|
38
38
|
"@smithy/types": "^2.9.1",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/token-providers",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.504.0",
|
4
4
|
"description": "A collection of token providers",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -26,7 +26,7 @@
|
|
26
26
|
},
|
27
27
|
"license": "Apache-2.0",
|
28
28
|
"dependencies": {
|
29
|
-
"@aws-sdk/client-sso-oidc": "3.
|
29
|
+
"@aws-sdk/client-sso-oidc": "3.504.0",
|
30
30
|
"@aws-sdk/types": "3.502.0",
|
31
31
|
"@smithy/property-provider": "^2.1.1",
|
32
32
|
"@smithy/shared-ini-file-loader": "^2.3.1",
|
package/package.json
CHANGED
@@ -42,16 +42,16 @@
|
|
42
42
|
"organization": false
|
43
43
|
},
|
44
44
|
"devDependencies": {
|
45
|
-
"@cdk8s/projen-common": "0.0.
|
45
|
+
"@cdk8s/projen-common": "0.0.486",
|
46
46
|
"@types/fs-extra": "^11.0.4",
|
47
47
|
"@types/jest": "^27",
|
48
48
|
"@types/node": "^16",
|
49
49
|
"@typescript-eslint/eslint-plugin": "^6",
|
50
50
|
"@typescript-eslint/parser": "^6",
|
51
|
-
"aws-cdk": "^2.
|
51
|
+
"aws-cdk": "^2.126.0",
|
52
52
|
"aws-cdk-lib": "2.109.0",
|
53
53
|
"cdk8s": "2.68.4",
|
54
|
-
"cdk8s-cli": "^2.198.
|
54
|
+
"cdk8s-cli": "^2.198.40",
|
55
55
|
"constructs": "10.3.0",
|
56
56
|
"eslint": "^8",
|
57
57
|
"eslint-import-resolver-typescript": "^3.6.1",
|
@@ -64,7 +64,7 @@
|
|
64
64
|
"jsii-docgen": "^9.2.2",
|
65
65
|
"jsii-pacmak": "^1.94.0",
|
66
66
|
"jsii-rosetta": "^5",
|
67
|
-
"projen": "^0.79.
|
67
|
+
"projen": "^0.79.7",
|
68
68
|
"standard-version": "^9",
|
69
69
|
"ts-jest": "^27",
|
70
70
|
"ts-node": "^10.9.2",
|
@@ -92,7 +92,7 @@
|
|
92
92
|
"publishConfig": {
|
93
93
|
"access": "public"
|
94
94
|
},
|
95
|
-
"version": "0.0.
|
95
|
+
"version": "0.0.57",
|
96
96
|
"jest": {
|
97
97
|
"testMatch": [
|
98
98
|
"<rootDir>/src/**/__tests__/**/*.ts?(x)",
|