@jjrawlins/cdk-iam-policy-builder-helper 0.0.114 → 0.0.116
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/cdkiampolicybuilderhelper/go.mod +1 -1
- package/cdkiampolicybuilderhelper/jsii/jsii.go +2 -2
- package/cdkiampolicybuilderhelper/version +1 -1
- package/node_modules/@aws-sdk/client-iam/README.md +1 -182
- package/node_modules/@aws-sdk/client-iam/dist-cjs/auth/httpAuthSchemeProvider.js +3 -4
- package/node_modules/@aws-sdk/client-iam/dist-cjs/index.js +2164 -2317
- package/node_modules/@aws-sdk/client-iam/dist-cjs/runtimeConfig.browser.js +1 -2
- package/node_modules/@aws-sdk/client-iam/dist-cjs/runtimeConfig.js +2 -4
- package/node_modules/@aws-sdk/client-iam/dist-es/auth/httpAuthSchemeProvider.js +3 -4
- package/node_modules/@aws-sdk/client-iam/dist-es/pagination/index.js +9 -9
- package/node_modules/@aws-sdk/client-iam/dist-es/runtimeConfig.browser.js +1 -2
- package/node_modules/@aws-sdk/client-iam/dist-es/runtimeConfig.js +4 -6
- package/node_modules/@aws-sdk/client-iam/dist-es/schemas/schemas_0.js +1961 -2114
- package/node_modules/@aws-sdk/client-iam/dist-types/pagination/index.d.ts +9 -9
- package/node_modules/@aws-sdk/client-iam/dist-types/ts3.4/pagination/index.d.ts +9 -9
- package/node_modules/@aws-sdk/client-iam/package.json +15 -13
- package/node_modules/@aws-sdk/client-sso/README.md +1 -9
- package/node_modules/@aws-sdk/client-sso/dist-cjs/auth/httpAuthSchemeProvider.js +27 -20
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +69 -77
- package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.browser.js +1 -2
- package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js +2 -4
- package/node_modules/@aws-sdk/client-sso/dist-es/auth/httpAuthSchemeProvider.js +27 -20
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.browser.js +1 -2
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js +4 -6
- package/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +75 -83
- package/node_modules/@aws-sdk/client-sso/package.json +12 -12
- package/node_modules/@aws-sdk/core/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-env/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-http/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-login/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-process/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-host-header/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +5 -5
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/package.json +12 -12
- package/node_modules/@aws-sdk/region-config-resolver/package.json +3 -3
- package/node_modules/@aws-sdk/token-providers/package.json +5 -5
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/util-endpoints/package.json +3 -3
- package/node_modules/@aws-sdk/util-locate-window/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +4 -4
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/package.json +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
export * from "./Interfaces";
|
|
1
2
|
export * from "./GetAccountAuthorizationDetailsPaginator";
|
|
2
3
|
export * from "./GetGroupPaginator";
|
|
3
|
-
export * from "./Interfaces";
|
|
4
4
|
export * from "./ListAccessKeysPaginator";
|
|
5
5
|
export * from "./ListAccountAliasesPaginator";
|
|
6
6
|
export * from "./ListAttachedGroupPoliciesPaginator";
|
|
@@ -8,28 +8,28 @@ export * from "./ListAttachedRolePoliciesPaginator";
|
|
|
8
8
|
export * from "./ListAttachedUserPoliciesPaginator";
|
|
9
9
|
export * from "./ListEntitiesForPolicyPaginator";
|
|
10
10
|
export * from "./ListGroupPoliciesPaginator";
|
|
11
|
-
export * from "./ListGroupsForUserPaginator";
|
|
12
11
|
export * from "./ListGroupsPaginator";
|
|
13
|
-
export * from "./
|
|
14
|
-
export * from "./ListInstanceProfilesForRolePaginator";
|
|
12
|
+
export * from "./ListGroupsForUserPaginator";
|
|
15
13
|
export * from "./ListInstanceProfilesPaginator";
|
|
16
|
-
export * from "./
|
|
14
|
+
export * from "./ListInstanceProfilesForRolePaginator";
|
|
15
|
+
export * from "./ListInstanceProfileTagsPaginator";
|
|
17
16
|
export * from "./ListMFADevicesPaginator";
|
|
17
|
+
export * from "./ListMFADeviceTagsPaginator";
|
|
18
18
|
export * from "./ListOpenIDConnectProviderTagsPaginator";
|
|
19
19
|
export * from "./ListPoliciesPaginator";
|
|
20
20
|
export * from "./ListPolicyTagsPaginator";
|
|
21
21
|
export * from "./ListPolicyVersionsPaginator";
|
|
22
22
|
export * from "./ListRolePoliciesPaginator";
|
|
23
|
-
export * from "./ListRoleTagsPaginator";
|
|
24
23
|
export * from "./ListRolesPaginator";
|
|
24
|
+
export * from "./ListRoleTagsPaginator";
|
|
25
25
|
export * from "./ListSAMLProviderTagsPaginator";
|
|
26
|
-
export * from "./ListSSHPublicKeysPaginator";
|
|
27
|
-
export * from "./ListServerCertificateTagsPaginator";
|
|
28
26
|
export * from "./ListServerCertificatesPaginator";
|
|
27
|
+
export * from "./ListServerCertificateTagsPaginator";
|
|
29
28
|
export * from "./ListSigningCertificatesPaginator";
|
|
29
|
+
export * from "./ListSSHPublicKeysPaginator";
|
|
30
30
|
export * from "./ListUserPoliciesPaginator";
|
|
31
|
-
export * from "./ListUserTagsPaginator";
|
|
32
31
|
export * from "./ListUsersPaginator";
|
|
32
|
+
export * from "./ListUserTagsPaginator";
|
|
33
33
|
export * from "./ListVirtualMFADevicesPaginator";
|
|
34
34
|
export * from "./SimulateCustomPolicyPaginator";
|
|
35
35
|
export * from "./SimulatePrincipalPolicyPaginator";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
export * from "./Interfaces";
|
|
1
2
|
export * from "./GetAccountAuthorizationDetailsPaginator";
|
|
2
3
|
export * from "./GetGroupPaginator";
|
|
3
|
-
export * from "./Interfaces";
|
|
4
4
|
export * from "./ListAccessKeysPaginator";
|
|
5
5
|
export * from "./ListAccountAliasesPaginator";
|
|
6
6
|
export * from "./ListAttachedGroupPoliciesPaginator";
|
|
@@ -8,28 +8,28 @@ export * from "./ListAttachedRolePoliciesPaginator";
|
|
|
8
8
|
export * from "./ListAttachedUserPoliciesPaginator";
|
|
9
9
|
export * from "./ListEntitiesForPolicyPaginator";
|
|
10
10
|
export * from "./ListGroupPoliciesPaginator";
|
|
11
|
-
export * from "./ListGroupsForUserPaginator";
|
|
12
11
|
export * from "./ListGroupsPaginator";
|
|
13
|
-
export * from "./
|
|
14
|
-
export * from "./ListInstanceProfilesForRolePaginator";
|
|
12
|
+
export * from "./ListGroupsForUserPaginator";
|
|
15
13
|
export * from "./ListInstanceProfilesPaginator";
|
|
16
|
-
export * from "./
|
|
14
|
+
export * from "./ListInstanceProfilesForRolePaginator";
|
|
15
|
+
export * from "./ListInstanceProfileTagsPaginator";
|
|
17
16
|
export * from "./ListMFADevicesPaginator";
|
|
17
|
+
export * from "./ListMFADeviceTagsPaginator";
|
|
18
18
|
export * from "./ListOpenIDConnectProviderTagsPaginator";
|
|
19
19
|
export * from "./ListPoliciesPaginator";
|
|
20
20
|
export * from "./ListPolicyTagsPaginator";
|
|
21
21
|
export * from "./ListPolicyVersionsPaginator";
|
|
22
22
|
export * from "./ListRolePoliciesPaginator";
|
|
23
|
-
export * from "./ListRoleTagsPaginator";
|
|
24
23
|
export * from "./ListRolesPaginator";
|
|
24
|
+
export * from "./ListRoleTagsPaginator";
|
|
25
25
|
export * from "./ListSAMLProviderTagsPaginator";
|
|
26
|
-
export * from "./ListSSHPublicKeysPaginator";
|
|
27
|
-
export * from "./ListServerCertificateTagsPaginator";
|
|
28
26
|
export * from "./ListServerCertificatesPaginator";
|
|
27
|
+
export * from "./ListServerCertificateTagsPaginator";
|
|
29
28
|
export * from "./ListSigningCertificatesPaginator";
|
|
29
|
+
export * from "./ListSSHPublicKeysPaginator";
|
|
30
30
|
export * from "./ListUserPoliciesPaginator";
|
|
31
|
-
export * from "./ListUserTagsPaginator";
|
|
32
31
|
export * from "./ListUsersPaginator";
|
|
32
|
+
export * from "./ListUserTagsPaginator";
|
|
33
33
|
export * from "./ListVirtualMFADevicesPaginator";
|
|
34
34
|
export * from "./SimulateCustomPolicyPaginator";
|
|
35
35
|
export * from "./SimulatePrincipalPolicyPaginator";
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-iam",
|
|
3
3
|
"description": "AWS SDK for JavaScript Iam Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.958.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-iam",
|
|
8
8
|
"build:es": "tsc -p tsconfig.es.json",
|
|
9
|
-
"build:include:deps": "
|
|
9
|
+
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
12
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
13
13
|
"extract:docs": "api-extractor run --local",
|
|
14
14
|
"generate:client": "node ../../scripts/generate-clients/single-service --solo iam",
|
|
15
|
+
"test:e2e": "yarn g:vitest run -c vitest.config.e2e.mts --mode development",
|
|
16
|
+
"test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts",
|
|
15
17
|
"test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
|
|
16
18
|
},
|
|
17
19
|
"main": "./dist-cjs/index.js",
|
|
@@ -21,17 +23,17 @@
|
|
|
21
23
|
"dependencies": {
|
|
22
24
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
25
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
31
|
-
"@aws-sdk/types": "3.
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
26
|
+
"@aws-sdk/core": "3.957.0",
|
|
27
|
+
"@aws-sdk/credential-provider-node": "3.958.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.957.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.957.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.957.0",
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "3.957.0",
|
|
32
|
+
"@aws-sdk/region-config-resolver": "3.957.0",
|
|
33
|
+
"@aws-sdk/types": "3.957.0",
|
|
34
|
+
"@aws-sdk/util-endpoints": "3.957.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-browser": "3.957.0",
|
|
36
|
+
"@aws-sdk/util-user-agent-node": "3.957.0",
|
|
35
37
|
"@smithy/config-resolver": "^4.4.5",
|
|
36
38
|
"@smithy/core": "^3.20.0",
|
|
37
39
|
"@smithy/fetch-http-handler": "^5.3.8",
|
|
@@ -24,10 +24,8 @@ information about the AWS SDKs, including how to download and install them, see
|
|
|
24
24
|
</note>
|
|
25
25
|
|
|
26
26
|
## Installing
|
|
27
|
-
|
|
28
27
|
To install this package, simply type add or install @aws-sdk/client-sso
|
|
29
28
|
using your favorite package manager:
|
|
30
|
-
|
|
31
29
|
- `npm install @aws-sdk/client-sso`
|
|
32
30
|
- `yarn add @aws-sdk/client-sso`
|
|
33
31
|
- `pnpm add @aws-sdk/client-sso`
|
|
@@ -63,9 +61,7 @@ To send a request, you:
|
|
|
63
61
|
// a client can be shared by different commands.
|
|
64
62
|
const client = new SSOClient({ region: "REGION" });
|
|
65
63
|
|
|
66
|
-
const params = {
|
|
67
|
-
/** input parameters */
|
|
68
|
-
};
|
|
64
|
+
const params = { /** input parameters */ };
|
|
69
65
|
const command = new ListAccountsCommand(params);
|
|
70
66
|
```
|
|
71
67
|
|
|
@@ -224,7 +220,6 @@ GetRoleCredentials
|
|
|
224
220
|
</summary>
|
|
225
221
|
|
|
226
222
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sso/command/GetRoleCredentialsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sso/Interface/GetRoleCredentialsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sso/Interface/GetRoleCredentialsCommandOutput/)
|
|
227
|
-
|
|
228
223
|
</details>
|
|
229
224
|
<details>
|
|
230
225
|
<summary>
|
|
@@ -232,7 +227,6 @@ ListAccountRoles
|
|
|
232
227
|
</summary>
|
|
233
228
|
|
|
234
229
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sso/command/ListAccountRolesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sso/Interface/ListAccountRolesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sso/Interface/ListAccountRolesCommandOutput/)
|
|
235
|
-
|
|
236
230
|
</details>
|
|
237
231
|
<details>
|
|
238
232
|
<summary>
|
|
@@ -240,7 +234,6 @@ ListAccounts
|
|
|
240
234
|
</summary>
|
|
241
235
|
|
|
242
236
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sso/command/ListAccountsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sso/Interface/ListAccountsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sso/Interface/ListAccountsCommandOutput/)
|
|
243
|
-
|
|
244
237
|
</details>
|
|
245
238
|
<details>
|
|
246
239
|
<summary>
|
|
@@ -248,5 +241,4 @@ Logout
|
|
|
248
241
|
</summary>
|
|
249
242
|
|
|
250
243
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sso/command/LogoutCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sso/Interface/LogoutCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sso/Interface/LogoutCommandOutput/)
|
|
251
|
-
|
|
252
244
|
</details>
|
|
@@ -6,10 +6,9 @@ const util_middleware_1 = require("@smithy/util-middleware");
|
|
|
6
6
|
const defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
7
|
return {
|
|
8
8
|
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
|
9
|
-
region:
|
|
10
|
-
(
|
|
11
|
-
|
|
12
|
-
})(),
|
|
9
|
+
region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
|
|
10
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
|
+
})(),
|
|
13
12
|
};
|
|
14
13
|
};
|
|
15
14
|
exports.defaultSSOHttpAuthSchemeParametersProvider = defaultSSOHttpAuthSchemeParametersProvider;
|
|
@@ -36,22 +35,30 @@ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
|
36
35
|
const defaultSSOHttpAuthSchemeProvider = (authParameters) => {
|
|
37
36
|
const options = [];
|
|
38
37
|
switch (authParameters.operation) {
|
|
39
|
-
case "GetRoleCredentials":
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
case "
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
38
|
+
case "GetRoleCredentials":
|
|
39
|
+
{
|
|
40
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
;
|
|
44
|
+
case "ListAccountRoles":
|
|
45
|
+
{
|
|
46
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
;
|
|
50
|
+
case "ListAccounts":
|
|
51
|
+
{
|
|
52
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
;
|
|
56
|
+
case "Logout":
|
|
57
|
+
{
|
|
58
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
;
|
|
55
62
|
default: {
|
|
56
63
|
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
57
64
|
}
|
|
@@ -220,108 +220,100 @@ const n0 = "com.amazonaws.sso";
|
|
|
220
220
|
var AccessTokenType = [0, n0, _ATT, 8, 0];
|
|
221
221
|
var SecretAccessKeyType = [0, n0, _SAKT, 8, 0];
|
|
222
222
|
var SessionTokenType = [0, n0, _STT, 8, 0];
|
|
223
|
-
var AccountInfo$ = [3, n0, _AI,
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
223
|
+
var AccountInfo$ = [3, n0, _AI,
|
|
224
|
+
0,
|
|
225
|
+
[_aI, _aN, _eA],
|
|
226
|
+
[0, 0, 0]
|
|
227
|
+
];
|
|
228
|
+
var GetRoleCredentialsRequest$ = [3, n0, _GRCR,
|
|
228
229
|
0,
|
|
229
230
|
[_rN, _aI, _aT],
|
|
230
|
-
[
|
|
231
|
-
[0, { [_hQ]: _rn }],
|
|
232
|
-
[0, { [_hQ]: _ai }],
|
|
233
|
-
[() => AccessTokenType, { [_hH]: _xasbt }],
|
|
234
|
-
],
|
|
231
|
+
[[0, { [_hQ]: _rn }], [0, { [_hQ]: _ai }], [() => AccessTokenType, { [_hH]: _xasbt }]]
|
|
235
232
|
];
|
|
236
|
-
var GetRoleCredentialsResponse$ = [
|
|
237
|
-
3,
|
|
238
|
-
n0,
|
|
239
|
-
_GRCRe,
|
|
233
|
+
var GetRoleCredentialsResponse$ = [3, n0, _GRCRe,
|
|
240
234
|
0,
|
|
241
235
|
[_rC],
|
|
242
|
-
[[() => RoleCredentials$, 0]]
|
|
236
|
+
[[() => RoleCredentials$, 0]]
|
|
237
|
+
];
|
|
238
|
+
var InvalidRequestException$ = [-3, n0, _IRE,
|
|
239
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
240
|
+
[_m],
|
|
241
|
+
[0]
|
|
243
242
|
];
|
|
244
|
-
var InvalidRequestException$ = [-3, n0, _IRE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
|
|
245
243
|
schema.TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
|
|
246
|
-
var ListAccountRolesRequest$ = [
|
|
247
|
-
3,
|
|
248
|
-
n0,
|
|
249
|
-
_LARR,
|
|
244
|
+
var ListAccountRolesRequest$ = [3, n0, _LARR,
|
|
250
245
|
0,
|
|
251
246
|
[_nT, _mR, _aT, _aI],
|
|
252
|
-
[
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
]
|
|
247
|
+
[[0, { [_hQ]: _nt }], [1, { [_hQ]: _mr }], [() => AccessTokenType, { [_hH]: _xasbt }], [0, { [_hQ]: _ai }]]
|
|
248
|
+
];
|
|
249
|
+
var ListAccountRolesResponse$ = [3, n0, _LARRi,
|
|
250
|
+
0,
|
|
251
|
+
[_nT, _rL],
|
|
252
|
+
[0, () => RoleListType]
|
|
258
253
|
];
|
|
259
|
-
var
|
|
260
|
-
var ListAccountsRequest$ = [
|
|
261
|
-
3,
|
|
262
|
-
n0,
|
|
263
|
-
_LAR,
|
|
254
|
+
var ListAccountsRequest$ = [3, n0, _LAR,
|
|
264
255
|
0,
|
|
265
256
|
[_nT, _mR, _aT],
|
|
266
|
-
[
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
],
|
|
257
|
+
[[0, { [_hQ]: _nt }], [1, { [_hQ]: _mr }], [() => AccessTokenType, { [_hH]: _xasbt }]]
|
|
258
|
+
];
|
|
259
|
+
var ListAccountsResponse$ = [3, n0, _LARi,
|
|
260
|
+
0,
|
|
261
|
+
[_nT, _aL],
|
|
262
|
+
[0, () => AccountListType]
|
|
263
|
+
];
|
|
264
|
+
var LogoutRequest$ = [3, n0, _LR,
|
|
265
|
+
0,
|
|
266
|
+
[_aT],
|
|
267
|
+
[[() => AccessTokenType, { [_hH]: _xasbt }]]
|
|
268
|
+
];
|
|
269
|
+
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
270
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
271
|
+
[_m],
|
|
272
|
+
[0]
|
|
271
273
|
];
|
|
272
|
-
var ListAccountsResponse$ = [3, n0, _LARi, 0, [_nT, _aL], [0, () => AccountListType]];
|
|
273
|
-
var LogoutRequest$ = [3, n0, _LR, 0, [_aT], [[() => AccessTokenType, { [_hH]: _xasbt }]]];
|
|
274
|
-
var ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];
|
|
275
274
|
schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
276
|
-
var RoleCredentials$ = [
|
|
277
|
-
3,
|
|
278
|
-
n0,
|
|
279
|
-
_RC,
|
|
275
|
+
var RoleCredentials$ = [3, n0, _RC,
|
|
280
276
|
0,
|
|
281
277
|
[_aKI, _sAK, _sT, _ex],
|
|
282
|
-
[0, [() => SecretAccessKeyType, 0], [() => SessionTokenType, 0], 1]
|
|
278
|
+
[0, [() => SecretAccessKeyType, 0], [() => SessionTokenType, 0], 1]
|
|
279
|
+
];
|
|
280
|
+
var RoleInfo$ = [3, n0, _RI,
|
|
281
|
+
0,
|
|
282
|
+
[_rN, _aI],
|
|
283
|
+
[0, 0]
|
|
284
|
+
];
|
|
285
|
+
var TooManyRequestsException$ = [-3, n0, _TMRE,
|
|
286
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
287
|
+
[_m],
|
|
288
|
+
[0]
|
|
283
289
|
];
|
|
284
|
-
var RoleInfo$ = [3, n0, _RI, 0, [_rN, _aI], [0, 0]];
|
|
285
|
-
var TooManyRequestsException$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_m], [0]];
|
|
286
290
|
schema.TypeRegistry.for(n0).registerError(TooManyRequestsException$, TooManyRequestsException);
|
|
287
|
-
var UnauthorizedException$ = [-3, n0, _UE,
|
|
291
|
+
var UnauthorizedException$ = [-3, n0, _UE,
|
|
292
|
+
{ [_e]: _c, [_hE]: 401 },
|
|
293
|
+
[_m],
|
|
294
|
+
[0]
|
|
295
|
+
];
|
|
288
296
|
schema.TypeRegistry.for(n0).registerError(UnauthorizedException$, UnauthorizedException);
|
|
289
297
|
var __Unit = "unit";
|
|
290
298
|
var SSOServiceException$ = [-3, _s, "SSOServiceException", 0, [], []];
|
|
291
299
|
schema.TypeRegistry.for(_s).registerError(SSOServiceException$, SSOServiceException);
|
|
292
|
-
var AccountListType = [1, n0, _ALT,
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
() => GetRoleCredentialsRequest$,
|
|
300
|
-
() => GetRoleCredentialsResponse$,
|
|
300
|
+
var AccountListType = [1, n0, _ALT,
|
|
301
|
+
0, () => AccountInfo$
|
|
302
|
+
];
|
|
303
|
+
var RoleListType = [1, n0, _RLT,
|
|
304
|
+
0, () => RoleInfo$
|
|
305
|
+
];
|
|
306
|
+
var GetRoleCredentials$ = [9, n0, _GRC,
|
|
307
|
+
{ [_h]: ["GET", "/federation/credentials", 200] }, () => GetRoleCredentialsRequest$, () => GetRoleCredentialsResponse$
|
|
301
308
|
];
|
|
302
|
-
var ListAccountRoles$ = [
|
|
303
|
-
|
|
304
|
-
n0,
|
|
305
|
-
_LARis,
|
|
306
|
-
{ [_h]: ["GET", "/assignment/roles", 200] },
|
|
307
|
-
() => ListAccountRolesRequest$,
|
|
308
|
-
() => ListAccountRolesResponse$,
|
|
309
|
+
var ListAccountRoles$ = [9, n0, _LARis,
|
|
310
|
+
{ [_h]: ["GET", "/assignment/roles", 200] }, () => ListAccountRolesRequest$, () => ListAccountRolesResponse$
|
|
309
311
|
];
|
|
310
|
-
var ListAccounts$ = [
|
|
311
|
-
|
|
312
|
-
n0,
|
|
313
|
-
_LA,
|
|
314
|
-
{ [_h]: ["GET", "/assignment/accounts", 200] },
|
|
315
|
-
() => ListAccountsRequest$,
|
|
316
|
-
() => ListAccountsResponse$,
|
|
312
|
+
var ListAccounts$ = [9, n0, _LA,
|
|
313
|
+
{ [_h]: ["GET", "/assignment/accounts", 200] }, () => ListAccountsRequest$, () => ListAccountsResponse$
|
|
317
314
|
];
|
|
318
|
-
var Logout$ = [
|
|
319
|
-
|
|
320
|
-
n0,
|
|
321
|
-
_L,
|
|
322
|
-
{ [_h]: ["POST", "/logout", 200] },
|
|
323
|
-
() => LogoutRequest$,
|
|
324
|
-
() => __Unit,
|
|
315
|
+
var Logout$ = [9, n0, _L,
|
|
316
|
+
{ [_h]: ["POST", "/logout", 200] }, () => LogoutRequest$, () => __Unit
|
|
325
317
|
];
|
|
326
318
|
|
|
327
319
|
class GetRoleCredentialsCommand extends smithyClient.Command
|
|
@@ -23,8 +23,7 @@ const getRuntimeConfig = (config) => {
|
|
|
23
23
|
runtime: "browser",
|
|
24
24
|
defaultsMode,
|
|
25
25
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
26
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
27
|
-
(0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
26
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
27
|
maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
28
|
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
30
29
|
requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
@@ -32,11 +32,9 @@ const getRuntimeConfig = (config) => {
|
|
|
32
32
|
defaultsMode,
|
|
33
33
|
authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
34
34
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
35
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
36
|
-
(0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
37
36
|
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
38
|
-
region: config?.region ??
|
|
39
|
-
(0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
37
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
40
38
|
requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
41
39
|
retryMode: config?.retryMode ??
|
|
42
40
|
(0, node_config_provider_1.loadConfig)({
|
|
@@ -3,10 +3,9 @@ import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
|
|
|
3
3
|
export const defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
4
|
return {
|
|
5
5
|
operation: getSmithyContext(context).operation,
|
|
6
|
-
region:
|
|
7
|
-
(
|
|
8
|
-
|
|
9
|
-
})(),
|
|
6
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
7
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
8
|
+
})(),
|
|
10
9
|
};
|
|
11
10
|
};
|
|
12
11
|
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
@@ -32,22 +31,30 @@ function createSmithyApiNoAuthHttpAuthOption(authParameters) {
|
|
|
32
31
|
export const defaultSSOHttpAuthSchemeProvider = (authParameters) => {
|
|
33
32
|
const options = [];
|
|
34
33
|
switch (authParameters.operation) {
|
|
35
|
-
case "GetRoleCredentials":
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
case "
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
34
|
+
case "GetRoleCredentials":
|
|
35
|
+
{
|
|
36
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
;
|
|
40
|
+
case "ListAccountRoles":
|
|
41
|
+
{
|
|
42
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
;
|
|
46
|
+
case "ListAccounts":
|
|
47
|
+
{
|
|
48
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
;
|
|
52
|
+
case "Logout":
|
|
53
|
+
{
|
|
54
|
+
options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
;
|
|
51
58
|
default: {
|
|
52
59
|
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
53
60
|
}
|
|
@@ -19,8 +19,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
19
19
|
runtime: "browser",
|
|
20
20
|
defaultsMode,
|
|
21
21
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
22
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
23
|
-
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
22
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
24
23
|
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
25
24
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
26
25
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core";
|
|
3
|
+
import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
|
|
4
4
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
5
5
|
import { Hash } from "@smithy/hash-node";
|
|
6
6
|
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
@@ -28,11 +28,9 @@ export const getRuntimeConfig = (config) => {
|
|
|
28
28
|
defaultsMode,
|
|
29
29
|
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
30
30
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
31
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
32
|
-
createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
31
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
33
32
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
34
|
-
region: config?.region ??
|
|
35
|
-
loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
33
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
36
34
|
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
37
35
|
retryMode: config?.retryMode ??
|
|
38
36
|
loadNodeConfig({
|