@jjrawlins/cdk-diff-pr-github-action 0.0.44 → 0.0.45
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/CdkDiffIamTemplate.js +1 -1
- package/lib/CdkDiffStackWorkflow.js +1 -1
- package/lib/CdkDriftDetectionWorkflow.js +1 -1
- package/lib/CdkDriftIamTemplate.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/README.md +1 -96
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/auth/httpAuthSchemeProvider.js +3 -4
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1857 -2253
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.browser.js +1 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/runtimeConfig.js +2 -4
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/auth/httpAuthSchemeProvider.js +3 -4
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/index.js +3 -3
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.browser.js +1 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/runtimeConfig.js +4 -6
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/schemas/schemas_0.js +1504 -1900
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/waiters/index.js +2 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/waiters/waitForChangeSetCreateComplete.js +2 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/waiters/waitForStackCreateComplete.js +74 -74
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/waiters/waitForStackDeleteComplete.js +34 -34
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/waiters/waitForStackImportComplete.js +26 -26
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/waiters/waitForStackRefactorCreateComplete.js +2 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/waiters/waitForStackRefactorExecuteComplete.js +3 -3
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/waiters/waitForStackRollbackComplete.js +18 -18
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/waiters/waitForStackUpdateComplete.js +18 -18
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/waiters/waitForTypeRegistrationComplete.js +2 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/index.d.ts +3 -3
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/index.d.ts +3 -3
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/waiters/index.d.ts +2 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/waiters/index.d.ts +2 -2
- package/node_modules/@aws-sdk/client-cloudformation/package.json +2 -2
- 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 +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-login/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-node/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +2 -2
- 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 +1 -1
- package/node_modules/@aws-sdk/token-providers/package.json +2 -2
- package/package.json +2 -2
package/node_modules/@aws-sdk/client-cloudformation/dist-es/waiters/waitForStackRollbackComplete.js
CHANGED
|
@@ -6,16 +6,16 @@ const checkState = async (client, input) => {
|
|
|
6
6
|
const result = await client.send(new DescribeStacksCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
let returnComparator = () => {
|
|
10
|
+
let flat_1 = [].concat(...result.Stacks);
|
|
11
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
12
12
|
return element_2.StackStatus;
|
|
13
13
|
});
|
|
14
14
|
return projection_3;
|
|
15
15
|
};
|
|
16
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
17
|
-
for (
|
|
18
|
-
allStringEq_5 = allStringEq_5 && element_4 == "UPDATE_ROLLBACK_COMPLETE";
|
|
16
|
+
let allStringEq_5 = (returnComparator().length > 0);
|
|
17
|
+
for (let element_4 of returnComparator()) {
|
|
18
|
+
allStringEq_5 = allStringEq_5 && (element_4 == "UPDATE_ROLLBACK_COMPLETE");
|
|
19
19
|
}
|
|
20
20
|
if (allStringEq_5) {
|
|
21
21
|
return { state: WaiterState.SUCCESS, reason };
|
|
@@ -23,14 +23,14 @@ const checkState = async (client, input) => {
|
|
|
23
23
|
}
|
|
24
24
|
catch (e) { }
|
|
25
25
|
try {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
let returnComparator = () => {
|
|
27
|
+
let flat_1 = [].concat(...result.Stacks);
|
|
28
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
29
29
|
return element_2.StackStatus;
|
|
30
30
|
});
|
|
31
31
|
return projection_3;
|
|
32
32
|
};
|
|
33
|
-
for (
|
|
33
|
+
for (let anyStringEq_4 of returnComparator()) {
|
|
34
34
|
if (anyStringEq_4 == "UPDATE_FAILED") {
|
|
35
35
|
return { state: WaiterState.FAILURE, reason };
|
|
36
36
|
}
|
|
@@ -38,14 +38,14 @@ const checkState = async (client, input) => {
|
|
|
38
38
|
}
|
|
39
39
|
catch (e) { }
|
|
40
40
|
try {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
let returnComparator = () => {
|
|
42
|
+
let flat_1 = [].concat(...result.Stacks);
|
|
43
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
44
44
|
return element_2.StackStatus;
|
|
45
45
|
});
|
|
46
46
|
return projection_3;
|
|
47
47
|
};
|
|
48
|
-
for (
|
|
48
|
+
for (let anyStringEq_4 of returnComparator()) {
|
|
49
49
|
if (anyStringEq_4 == "UPDATE_ROLLBACK_FAILED") {
|
|
50
50
|
return { state: WaiterState.FAILURE, reason };
|
|
51
51
|
}
|
|
@@ -53,14 +53,14 @@ const checkState = async (client, input) => {
|
|
|
53
53
|
}
|
|
54
54
|
catch (e) { }
|
|
55
55
|
try {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
let returnComparator = () => {
|
|
57
|
+
let flat_1 = [].concat(...result.Stacks);
|
|
58
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
59
59
|
return element_2.StackStatus;
|
|
60
60
|
});
|
|
61
61
|
return projection_3;
|
|
62
62
|
};
|
|
63
|
-
for (
|
|
63
|
+
for (let anyStringEq_4 of returnComparator()) {
|
|
64
64
|
if (anyStringEq_4 == "DELETE_FAILED") {
|
|
65
65
|
return { state: WaiterState.FAILURE, reason };
|
|
66
66
|
}
|
package/node_modules/@aws-sdk/client-cloudformation/dist-es/waiters/waitForStackUpdateComplete.js
CHANGED
|
@@ -6,16 +6,16 @@ const checkState = async (client, input) => {
|
|
|
6
6
|
const result = await client.send(new DescribeStacksCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
let returnComparator = () => {
|
|
10
|
+
let flat_1 = [].concat(...result.Stacks);
|
|
11
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
12
12
|
return element_2.StackStatus;
|
|
13
13
|
});
|
|
14
14
|
return projection_3;
|
|
15
15
|
};
|
|
16
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
17
|
-
for (
|
|
18
|
-
allStringEq_5 = allStringEq_5 && element_4 == "UPDATE_COMPLETE";
|
|
16
|
+
let allStringEq_5 = (returnComparator().length > 0);
|
|
17
|
+
for (let element_4 of returnComparator()) {
|
|
18
|
+
allStringEq_5 = allStringEq_5 && (element_4 == "UPDATE_COMPLETE");
|
|
19
19
|
}
|
|
20
20
|
if (allStringEq_5) {
|
|
21
21
|
return { state: WaiterState.SUCCESS, reason };
|
|
@@ -23,14 +23,14 @@ const checkState = async (client, input) => {
|
|
|
23
23
|
}
|
|
24
24
|
catch (e) { }
|
|
25
25
|
try {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
let returnComparator = () => {
|
|
27
|
+
let flat_1 = [].concat(...result.Stacks);
|
|
28
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
29
29
|
return element_2.StackStatus;
|
|
30
30
|
});
|
|
31
31
|
return projection_3;
|
|
32
32
|
};
|
|
33
|
-
for (
|
|
33
|
+
for (let anyStringEq_4 of returnComparator()) {
|
|
34
34
|
if (anyStringEq_4 == "UPDATE_FAILED") {
|
|
35
35
|
return { state: WaiterState.FAILURE, reason };
|
|
36
36
|
}
|
|
@@ -38,14 +38,14 @@ const checkState = async (client, input) => {
|
|
|
38
38
|
}
|
|
39
39
|
catch (e) { }
|
|
40
40
|
try {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
let returnComparator = () => {
|
|
42
|
+
let flat_1 = [].concat(...result.Stacks);
|
|
43
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
44
44
|
return element_2.StackStatus;
|
|
45
45
|
});
|
|
46
46
|
return projection_3;
|
|
47
47
|
};
|
|
48
|
-
for (
|
|
48
|
+
for (let anyStringEq_4 of returnComparator()) {
|
|
49
49
|
if (anyStringEq_4 == "UPDATE_ROLLBACK_FAILED") {
|
|
50
50
|
return { state: WaiterState.FAILURE, reason };
|
|
51
51
|
}
|
|
@@ -53,14 +53,14 @@ const checkState = async (client, input) => {
|
|
|
53
53
|
}
|
|
54
54
|
catch (e) { }
|
|
55
55
|
try {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
let returnComparator = () => {
|
|
57
|
+
let flat_1 = [].concat(...result.Stacks);
|
|
58
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
59
59
|
return element_2.StackStatus;
|
|
60
60
|
});
|
|
61
61
|
return projection_3;
|
|
62
62
|
};
|
|
63
|
-
for (
|
|
63
|
+
for (let anyStringEq_4 of returnComparator()) {
|
|
64
64
|
if (anyStringEq_4 == "UPDATE_ROLLBACK_COMPLETE") {
|
|
65
65
|
return { state: WaiterState.FAILURE, reason };
|
|
66
66
|
}
|
|
@@ -6,7 +6,7 @@ const checkState = async (client, input) => {
|
|
|
6
6
|
const result = await client.send(new DescribeTypeRegistrationCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
9
|
+
let returnComparator = () => {
|
|
10
10
|
return result.ProgressStatus;
|
|
11
11
|
};
|
|
12
12
|
if (returnComparator() === "COMPLETE") {
|
|
@@ -15,7 +15,7 @@ const checkState = async (client, input) => {
|
|
|
15
15
|
}
|
|
16
16
|
catch (e) { }
|
|
17
17
|
try {
|
|
18
|
-
|
|
18
|
+
let returnComparator = () => {
|
|
19
19
|
return result.ProgressStatus;
|
|
20
20
|
};
|
|
21
21
|
if (returnComparator() === "FAILED") {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
export * from "./Interfaces";
|
|
1
2
|
export * from "./DescribeAccountLimitsPaginator";
|
|
2
3
|
export * from "./DescribeChangeSetPaginator";
|
|
3
4
|
export * from "./DescribeEventsPaginator";
|
|
4
5
|
export * from "./DescribeStackEventsPaginator";
|
|
5
6
|
export * from "./DescribeStackResourceDriftsPaginator";
|
|
6
7
|
export * from "./DescribeStacksPaginator";
|
|
7
|
-
export * from "./Interfaces";
|
|
8
8
|
export * from "./ListChangeSetsPaginator";
|
|
9
9
|
export * from "./ListExportsPaginator";
|
|
10
10
|
export * from "./ListGeneratedTemplatesPaginator";
|
|
@@ -16,10 +16,10 @@ export * from "./ListStackInstancesPaginator";
|
|
|
16
16
|
export * from "./ListStackRefactorActionsPaginator";
|
|
17
17
|
export * from "./ListStackRefactorsPaginator";
|
|
18
18
|
export * from "./ListStackResourcesPaginator";
|
|
19
|
+
export * from "./ListStacksPaginator";
|
|
19
20
|
export * from "./ListStackSetOperationResultsPaginator";
|
|
20
21
|
export * from "./ListStackSetOperationsPaginator";
|
|
21
22
|
export * from "./ListStackSetsPaginator";
|
|
22
|
-
export * from "./ListStacksPaginator";
|
|
23
23
|
export * from "./ListTypeRegistrationsPaginator";
|
|
24
|
-
export * from "./ListTypeVersionsPaginator";
|
|
25
24
|
export * from "./ListTypesPaginator";
|
|
25
|
+
export * from "./ListTypeVersionsPaginator";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
export * from "./Interfaces";
|
|
1
2
|
export * from "./DescribeAccountLimitsPaginator";
|
|
2
3
|
export * from "./DescribeChangeSetPaginator";
|
|
3
4
|
export * from "./DescribeEventsPaginator";
|
|
4
5
|
export * from "./DescribeStackEventsPaginator";
|
|
5
6
|
export * from "./DescribeStackResourceDriftsPaginator";
|
|
6
7
|
export * from "./DescribeStacksPaginator";
|
|
7
|
-
export * from "./Interfaces";
|
|
8
8
|
export * from "./ListChangeSetsPaginator";
|
|
9
9
|
export * from "./ListExportsPaginator";
|
|
10
10
|
export * from "./ListGeneratedTemplatesPaginator";
|
|
@@ -16,10 +16,10 @@ export * from "./ListStackInstancesPaginator";
|
|
|
16
16
|
export * from "./ListStackRefactorActionsPaginator";
|
|
17
17
|
export * from "./ListStackRefactorsPaginator";
|
|
18
18
|
export * from "./ListStackResourcesPaginator";
|
|
19
|
+
export * from "./ListStacksPaginator";
|
|
19
20
|
export * from "./ListStackSetOperationResultsPaginator";
|
|
20
21
|
export * from "./ListStackSetOperationsPaginator";
|
|
21
22
|
export * from "./ListStackSetsPaginator";
|
|
22
|
-
export * from "./ListStacksPaginator";
|
|
23
23
|
export * from "./ListTypeRegistrationsPaginator";
|
|
24
|
-
export * from "./ListTypeVersionsPaginator";
|
|
25
24
|
export * from "./ListTypesPaginator";
|
|
25
|
+
export * from "./ListTypeVersionsPaginator";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export * from "./waitForChangeSetCreateComplete";
|
|
2
|
+
export * from "./waitForStackRefactorCreateComplete";
|
|
3
|
+
export * from "./waitForStackRefactorExecuteComplete";
|
|
2
4
|
export * from "./waitForStackCreateComplete";
|
|
3
5
|
export * from "./waitForStackDeleteComplete";
|
|
4
6
|
export * from "./waitForStackExists";
|
|
5
7
|
export * from "./waitForStackImportComplete";
|
|
6
|
-
export * from "./waitForStackRefactorCreateComplete";
|
|
7
|
-
export * from "./waitForStackRefactorExecuteComplete";
|
|
8
8
|
export * from "./waitForStackRollbackComplete";
|
|
9
9
|
export * from "./waitForStackUpdateComplete";
|
|
10
10
|
export * from "./waitForTypeRegistrationComplete";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export * from "./waitForChangeSetCreateComplete";
|
|
2
|
+
export * from "./waitForStackRefactorCreateComplete";
|
|
3
|
+
export * from "./waitForStackRefactorExecuteComplete";
|
|
2
4
|
export * from "./waitForStackCreateComplete";
|
|
3
5
|
export * from "./waitForStackDeleteComplete";
|
|
4
6
|
export * from "./waitForStackExists";
|
|
5
7
|
export * from "./waitForStackImportComplete";
|
|
6
|
-
export * from "./waitForStackRefactorCreateComplete";
|
|
7
|
-
export * from "./waitForStackRefactorExecuteComplete";
|
|
8
8
|
export * from "./waitForStackRollbackComplete";
|
|
9
9
|
export * from "./waitForStackUpdateComplete";
|
|
10
10
|
export * from "./waitForTypeRegistrationComplete";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudformation",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudformation 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-cloudformation",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
26
26
|
"@aws-sdk/core": "3.957.0",
|
|
27
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
+
"@aws-sdk/credential-provider-node": "3.958.0",
|
|
28
28
|
"@aws-sdk/middleware-host-header": "3.957.0",
|
|
29
29
|
"@aws-sdk/middleware-logger": "3.957.0",
|
|
30
30
|
"@aws-sdk/middleware-recursion-detection": "3.957.0",
|
|
@@ -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
|
}
|