@aws-sdk/client-signin 3.1065.0 → 3.1066.0
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/README.md +56 -7
- package/dist-cjs/endpoint/bdd.js +70 -35
- package/dist-cjs/endpoint/endpointResolver.js +1 -1
- package/dist-cjs/index.js +133 -2
- package/dist-cjs/models/errors.js +46 -1
- package/dist-cjs/schemas/schemas_0.js +202 -1
- package/dist-es/Signin.js +19 -1
- package/dist-es/commands/CreateOAuth2TokenCommand.js +4 -1
- package/dist-es/commands/DeleteConsoleAuthorizationConfigurationCommand.js +19 -0
- package/dist-es/commands/DeleteResourcePermissionStatementCommand.js +19 -0
- package/dist-es/commands/GetConsoleAuthorizationConfigurationCommand.js +19 -0
- package/dist-es/commands/GetResourcePolicyCommand.js +19 -0
- package/dist-es/commands/ListResourcePermissionStatementsCommand.js +19 -0
- package/dist-es/commands/PutConsoleAuthorizationConfigurationCommand.js +19 -0
- package/dist-es/commands/PutResourcePermissionStatementCommand.js +19 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/endpoint/bdd.js +70 -35
- package/dist-es/endpoint/endpointResolver.js +1 -1
- package/dist-es/index.js +1 -0
- package/dist-es/models/enums.js +3 -0
- package/dist-es/models/errors.js +42 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListResourcePermissionStatementsPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/schemas/schemas_0.js +202 -1
- package/dist-types/Signin.d.ts +63 -1
- package/dist-types/SigninClient.d.ts +9 -2
- package/dist-types/commands/CreateOAuth2TokenCommand.d.ts +3 -3
- package/dist-types/commands/DeleteConsoleAuthorizationConfigurationCommand.d.ts +124 -0
- package/dist-types/commands/DeleteResourcePermissionStatementCommand.d.ts +121 -0
- package/dist-types/commands/GetConsoleAuthorizationConfigurationCommand.d.ts +124 -0
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +133 -0
- package/dist-types/commands/ListResourcePermissionStatementsCommand.d.ts +135 -0
- package/dist-types/commands/PutConsoleAuthorizationConfigurationCommand.d.ts +131 -0
- package/dist-types/commands/PutResourcePermissionStatementCommand.d.ts +136 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +12 -0
- package/dist-types/models/errors.d.ts +66 -0
- package/dist-types/models/models_0.d.ts +288 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListResourcePermissionStatementsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/schemas/schemas_0.d.ts +27 -0
- package/dist-types/ts3.4/Signin.d.ts +161 -1
- package/dist-types/ts3.4/SigninClient.d.ts +46 -2
- package/dist-types/ts3.4/commands/CreateOAuth2TokenCommand.d.ts +9 -5
- package/dist-types/ts3.4/commands/DeleteConsoleAuthorizationConfigurationCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/DeleteResourcePermissionStatementCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/GetConsoleAuthorizationConfigurationCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/ListResourcePermissionStatementsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/PutConsoleAuthorizationConfigurationCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/PutResourcePermissionStatementCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +3 -0
- package/dist-types/ts3.4/models/errors.d.ts +22 -0
- package/dist-types/ts3.4/models/models_0.d.ts +69 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist-types/ts3.4/pagination/ListResourcePermissionStatementsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +27 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -23,16 +23,16 @@ To install this package, use the CLI of your favorite package manager:
|
|
|
23
23
|
|
|
24
24
|
The AWS SDK is modulized by clients and commands.
|
|
25
25
|
To send a request, you only need to import the `SigninClient` and
|
|
26
|
-
the commands you need, for example `
|
|
26
|
+
the commands you need, for example `ListResourcePermissionStatementsCommand`:
|
|
27
27
|
|
|
28
28
|
```js
|
|
29
29
|
// ES5 example
|
|
30
|
-
const { SigninClient,
|
|
30
|
+
const { SigninClient, ListResourcePermissionStatementsCommand } = require("@aws-sdk/client-signin");
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
```ts
|
|
34
34
|
// ES6+ example
|
|
35
|
-
import { SigninClient,
|
|
35
|
+
import { SigninClient, ListResourcePermissionStatementsCommand } from "@aws-sdk/client-signin";
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
### Usage
|
|
@@ -49,7 +49,7 @@ To send a request:
|
|
|
49
49
|
const client = new SigninClient({ region: "REGION" });
|
|
50
50
|
|
|
51
51
|
const params = { /** input parameters */ };
|
|
52
|
-
const command = new
|
|
52
|
+
const command = new ListResourcePermissionStatementsCommand(params);
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
#### Async/await
|
|
@@ -105,7 +105,7 @@ const client = new Signin({ region: "REGION" });
|
|
|
105
105
|
|
|
106
106
|
// async/await.
|
|
107
107
|
try {
|
|
108
|
-
const data = await client.
|
|
108
|
+
const data = await client.listResourcePermissionStatements(params);
|
|
109
109
|
// process data.
|
|
110
110
|
} catch (error) {
|
|
111
111
|
// error handling.
|
|
@@ -113,7 +113,7 @@ try {
|
|
|
113
113
|
|
|
114
114
|
// Promises.
|
|
115
115
|
client
|
|
116
|
-
.
|
|
116
|
+
.listResourcePermissionStatements(params)
|
|
117
117
|
.then((data) => {
|
|
118
118
|
// process data.
|
|
119
119
|
})
|
|
@@ -122,7 +122,7 @@ client
|
|
|
122
122
|
});
|
|
123
123
|
|
|
124
124
|
// callbacks (not recommended).
|
|
125
|
-
client.
|
|
125
|
+
client.listResourcePermissionStatements(params, (err, data) => {
|
|
126
126
|
// process err and data.
|
|
127
127
|
});
|
|
128
128
|
```
|
|
@@ -187,3 +187,52 @@ CreateOAuth2Token
|
|
|
187
187
|
|
|
188
188
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/signin/command/CreateOAuth2TokenCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-signin/Interface/CreateOAuth2TokenCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-signin/Interface/CreateOAuth2TokenCommandOutput/)
|
|
189
189
|
</details>
|
|
190
|
+
<details>
|
|
191
|
+
<summary>
|
|
192
|
+
DeleteConsoleAuthorizationConfiguration
|
|
193
|
+
</summary>
|
|
194
|
+
|
|
195
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/signin/command/DeleteConsoleAuthorizationConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-signin/Interface/DeleteConsoleAuthorizationConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-signin/Interface/DeleteConsoleAuthorizationConfigurationCommandOutput/)
|
|
196
|
+
</details>
|
|
197
|
+
<details>
|
|
198
|
+
<summary>
|
|
199
|
+
DeleteResourcePermissionStatement
|
|
200
|
+
</summary>
|
|
201
|
+
|
|
202
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/signin/command/DeleteResourcePermissionStatementCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-signin/Interface/DeleteResourcePermissionStatementCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-signin/Interface/DeleteResourcePermissionStatementCommandOutput/)
|
|
203
|
+
</details>
|
|
204
|
+
<details>
|
|
205
|
+
<summary>
|
|
206
|
+
GetConsoleAuthorizationConfiguration
|
|
207
|
+
</summary>
|
|
208
|
+
|
|
209
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/signin/command/GetConsoleAuthorizationConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-signin/Interface/GetConsoleAuthorizationConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-signin/Interface/GetConsoleAuthorizationConfigurationCommandOutput/)
|
|
210
|
+
</details>
|
|
211
|
+
<details>
|
|
212
|
+
<summary>
|
|
213
|
+
GetResourcePolicy
|
|
214
|
+
</summary>
|
|
215
|
+
|
|
216
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/signin/command/GetResourcePolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-signin/Interface/GetResourcePolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-signin/Interface/GetResourcePolicyCommandOutput/)
|
|
217
|
+
</details>
|
|
218
|
+
<details>
|
|
219
|
+
<summary>
|
|
220
|
+
ListResourcePermissionStatements
|
|
221
|
+
</summary>
|
|
222
|
+
|
|
223
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/signin/command/ListResourcePermissionStatementsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-signin/Interface/ListResourcePermissionStatementsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-signin/Interface/ListResourcePermissionStatementsCommandOutput/)
|
|
224
|
+
</details>
|
|
225
|
+
<details>
|
|
226
|
+
<summary>
|
|
227
|
+
PutConsoleAuthorizationConfiguration
|
|
228
|
+
</summary>
|
|
229
|
+
|
|
230
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/signin/command/PutConsoleAuthorizationConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-signin/Interface/PutConsoleAuthorizationConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-signin/Interface/PutConsoleAuthorizationConfigurationCommandOutput/)
|
|
231
|
+
</details>
|
|
232
|
+
<details>
|
|
233
|
+
<summary>
|
|
234
|
+
PutResourcePermissionStatement
|
|
235
|
+
</summary>
|
|
236
|
+
|
|
237
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/signin/command/PutResourcePermissionStatementCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-signin/Interface/PutResourcePermissionStatementCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-signin/Interface/PutResourcePermissionStatementCommandOutput/)
|
|
238
|
+
</details>
|
package/dist-cjs/endpoint/bdd.js
CHANGED
|
@@ -2,36 +2,54 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.bdd = void 0;
|
|
4
4
|
const endpoints_1 = require("@smithy/core/endpoints");
|
|
5
|
-
const
|
|
6
|
-
const a = -1, b = true, c = "isSet", d = "
|
|
5
|
+
const p = "ref";
|
|
6
|
+
const a = -1, b = true, c = "isSet", d = "booleanEquals", e = "PartitionResult", f = "stringEquals", g = "getAttr", h = "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", i = { [p]: "Endpoint" }, j = { "fn": g, "argv": [{ [p]: e }, "name"] }, k = { [p]: e }, l = { [p]: "Region" }, m = { "authSchemes": [{ "name": "sigv4", "signingName": "signin", "signingRegion": "{Region}" }] }, n = {}, o = [l];
|
|
7
7
|
const _data = {
|
|
8
8
|
conditions: [
|
|
9
|
-
[c,
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[g, [
|
|
18
|
-
[
|
|
9
|
+
[c, o],
|
|
10
|
+
[d, [{ fn: "coalesce", argv: [{ [p]: "IsControlPlane" }, false] }, b]],
|
|
11
|
+
[c, [i]],
|
|
12
|
+
["aws.partition", o, e],
|
|
13
|
+
[d, [{ [p]: "UseFIPS" }, b]],
|
|
14
|
+
[d, [{ [p]: "UseDualStack" }, b]],
|
|
15
|
+
[f, [j, "aws"]],
|
|
16
|
+
[f, [j, "aws-cn"]],
|
|
17
|
+
[d, [{ fn: g, argv: [k, "supportsDualStack"] }, b]],
|
|
18
|
+
[f, [l, "us-gov-west-1"]],
|
|
19
|
+
[f, [j, "aws-us-gov"]],
|
|
20
|
+
[d, [{ fn: g, argv: [k, "supportsFIPS"] }, b]],
|
|
21
|
+
[f, [j, "aws-iso"]],
|
|
22
|
+
[f, [j, "aws-iso-b"]],
|
|
23
|
+
[f, [j, "aws-iso-f"]],
|
|
24
|
+
[f, [j, "aws-iso-e"]],
|
|
25
|
+
[f, [j, "aws-eusc"]]
|
|
19
26
|
],
|
|
20
27
|
results: [
|
|
21
28
|
[a],
|
|
29
|
+
["https://signin.{Region}.api.aws", m],
|
|
30
|
+
["https://signin.{Region}.api.amazonwebservices.com.cn", m],
|
|
31
|
+
[h, m],
|
|
32
|
+
["https://{Region}.signin.aws.amazon.com", n],
|
|
33
|
+
["https://{Region}.signin.amazonaws.cn", n],
|
|
34
|
+
["https://{Region}.signin.amazonaws-us-gov.com", n],
|
|
35
|
+
["https://{Region}.signin.c2shome.ic.gov", n],
|
|
36
|
+
["https://{Region}.signin.sc2shome.sgov.gov", n],
|
|
37
|
+
["https://{Region}.signin.csphome.hci.ic.gov", n],
|
|
38
|
+
["https://{Region}.signin.csphome.adc-e.uk", n],
|
|
39
|
+
["https://{Region}.signin.amazonaws-eusc.eu", n],
|
|
40
|
+
["https://signin-fips.amazonaws-us-gov.com", n],
|
|
41
|
+
["https://{Region}.signin-fips.amazonaws-us-gov.com", n],
|
|
42
|
+
["https://{Region}.signin.{PartitionResult#dnsSuffix}", n],
|
|
22
43
|
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
23
44
|
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
24
|
-
[
|
|
25
|
-
["https://{Region}.
|
|
26
|
-
["https://{Region}.signin.amazonaws.cn", k],
|
|
27
|
-
["https://{Region}.signin.amazonaws-us-gov.com", k],
|
|
28
|
-
["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
45
|
+
[i, n],
|
|
46
|
+
["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", n],
|
|
29
47
|
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
30
|
-
["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
48
|
+
["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", n],
|
|
31
49
|
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
32
|
-
[
|
|
50
|
+
[h, n],
|
|
33
51
|
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
34
|
-
["https://signin.{Region}.{PartitionResult#dnsSuffix}",
|
|
52
|
+
["https://signin.{Region}.{PartitionResult#dnsSuffix}", n],
|
|
35
53
|
[a, "Invalid Configuration: Missing Region"]
|
|
36
54
|
]
|
|
37
55
|
};
|
|
@@ -39,20 +57,37 @@ const root = 2;
|
|
|
39
57
|
const r = 100_000_000;
|
|
40
58
|
const nodes = new Int32Array([
|
|
41
59
|
-1, 1, -1,
|
|
42
|
-
0,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
60
|
+
0, 4, 3,
|
|
61
|
+
2, 30, r + 25,
|
|
62
|
+
1, 24, 5,
|
|
63
|
+
2, 30, 6,
|
|
64
|
+
3, 7, 26,
|
|
65
|
+
4, 18, 8,
|
|
66
|
+
5, 17, 9,
|
|
67
|
+
6, r + 4, 10,
|
|
68
|
+
7, r + 5, 11,
|
|
69
|
+
10, r + 6, 12,
|
|
70
|
+
12, r + 7, 13,
|
|
71
|
+
13, r + 8, 14,
|
|
72
|
+
14, r + 9, 15,
|
|
73
|
+
15, r + 10, 16,
|
|
74
|
+
16, r + 11, r + 14,
|
|
75
|
+
8, r + 22, r + 23,
|
|
76
|
+
5, 22, 19,
|
|
77
|
+
9, r + 12, 20,
|
|
78
|
+
10, r + 13, 21,
|
|
79
|
+
11, r + 20, r + 21,
|
|
80
|
+
8, 23, r + 19,
|
|
81
|
+
11, r + 18, r + 19,
|
|
82
|
+
2, 29, 25,
|
|
83
|
+
3, 32, 26,
|
|
84
|
+
4, 27, r + 25,
|
|
85
|
+
5, r + 25, 28,
|
|
86
|
+
9, r + 12, r + 25,
|
|
87
|
+
3, 32, 30,
|
|
88
|
+
4, r + 15, 31,
|
|
89
|
+
5, r + 16, r + 17,
|
|
90
|
+
6, r + 1, 33,
|
|
91
|
+
7, r + 2, r + 3,
|
|
57
92
|
]);
|
|
58
93
|
exports.bdd = endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -6,7 +6,7 @@ const endpoints_1 = require("@smithy/core/endpoints");
|
|
|
6
6
|
const bdd_1 = require("./bdd");
|
|
7
7
|
const cache = new endpoints_1.EndpointCache({
|
|
8
8
|
size: 50,
|
|
9
|
-
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
9
|
+
params: ["Endpoint", "IsControlPlane", "Region", "UseDualStack", "UseFIPS"],
|
|
10
10
|
});
|
|
11
11
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
12
12
|
return cache.get(endpointParams, () => (0, endpoints_1.decideEndpoint)(bdd_1.bdd, {
|
package/dist-cjs/index.js
CHANGED
|
@@ -110,7 +110,10 @@ class SigninClient extends client.Client {
|
|
|
110
110
|
|
|
111
111
|
class CreateOAuth2TokenCommand extends client.Command
|
|
112
112
|
.classBuilder()
|
|
113
|
-
.ep(
|
|
113
|
+
.ep({
|
|
114
|
+
...commonParams,
|
|
115
|
+
IsControlPlane: { type: "staticContextParams", value: false },
|
|
116
|
+
})
|
|
114
117
|
.m(function (Command, cs, config, o) {
|
|
115
118
|
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
116
119
|
})
|
|
@@ -120,18 +123,138 @@ class CreateOAuth2TokenCommand extends client.Command
|
|
|
120
123
|
.build() {
|
|
121
124
|
}
|
|
122
125
|
|
|
126
|
+
class DeleteConsoleAuthorizationConfigurationCommand extends client.Command
|
|
127
|
+
.classBuilder()
|
|
128
|
+
.ep({
|
|
129
|
+
...commonParams,
|
|
130
|
+
IsControlPlane: { type: "staticContextParams", value: true },
|
|
131
|
+
})
|
|
132
|
+
.m(function (Command, cs, config, o) {
|
|
133
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
134
|
+
})
|
|
135
|
+
.s("Signin", "DeleteConsoleAuthorizationConfiguration", {})
|
|
136
|
+
.n("SigninClient", "DeleteConsoleAuthorizationConfigurationCommand")
|
|
137
|
+
.sc(schemas_0.DeleteConsoleAuthorizationConfiguration$)
|
|
138
|
+
.build() {
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
class DeleteResourcePermissionStatementCommand extends client.Command
|
|
142
|
+
.classBuilder()
|
|
143
|
+
.ep({
|
|
144
|
+
...commonParams,
|
|
145
|
+
IsControlPlane: { type: "staticContextParams", value: true },
|
|
146
|
+
})
|
|
147
|
+
.m(function (Command, cs, config, o) {
|
|
148
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
149
|
+
})
|
|
150
|
+
.s("Signin", "DeleteResourcePermissionStatement", {})
|
|
151
|
+
.n("SigninClient", "DeleteResourcePermissionStatementCommand")
|
|
152
|
+
.sc(schemas_0.DeleteResourcePermissionStatement$)
|
|
153
|
+
.build() {
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
class GetConsoleAuthorizationConfigurationCommand extends client.Command
|
|
157
|
+
.classBuilder()
|
|
158
|
+
.ep({
|
|
159
|
+
...commonParams,
|
|
160
|
+
IsControlPlane: { type: "staticContextParams", value: true },
|
|
161
|
+
})
|
|
162
|
+
.m(function (Command, cs, config, o) {
|
|
163
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
164
|
+
})
|
|
165
|
+
.s("Signin", "GetConsoleAuthorizationConfiguration", {})
|
|
166
|
+
.n("SigninClient", "GetConsoleAuthorizationConfigurationCommand")
|
|
167
|
+
.sc(schemas_0.GetConsoleAuthorizationConfiguration$)
|
|
168
|
+
.build() {
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
class GetResourcePolicyCommand extends client.Command
|
|
172
|
+
.classBuilder()
|
|
173
|
+
.ep({
|
|
174
|
+
...commonParams,
|
|
175
|
+
IsControlPlane: { type: "staticContextParams", value: true },
|
|
176
|
+
})
|
|
177
|
+
.m(function (Command, cs, config, o) {
|
|
178
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
179
|
+
})
|
|
180
|
+
.s("Signin", "GetResourcePolicy", {})
|
|
181
|
+
.n("SigninClient", "GetResourcePolicyCommand")
|
|
182
|
+
.sc(schemas_0.GetResourcePolicy$)
|
|
183
|
+
.build() {
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
class ListResourcePermissionStatementsCommand extends client.Command
|
|
187
|
+
.classBuilder()
|
|
188
|
+
.ep({
|
|
189
|
+
...commonParams,
|
|
190
|
+
IsControlPlane: { type: "staticContextParams", value: true },
|
|
191
|
+
})
|
|
192
|
+
.m(function (Command, cs, config, o) {
|
|
193
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
194
|
+
})
|
|
195
|
+
.s("Signin", "ListResourcePermissionStatements", {})
|
|
196
|
+
.n("SigninClient", "ListResourcePermissionStatementsCommand")
|
|
197
|
+
.sc(schemas_0.ListResourcePermissionStatements$)
|
|
198
|
+
.build() {
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
class PutConsoleAuthorizationConfigurationCommand extends client.Command
|
|
202
|
+
.classBuilder()
|
|
203
|
+
.ep({
|
|
204
|
+
...commonParams,
|
|
205
|
+
IsControlPlane: { type: "staticContextParams", value: true },
|
|
206
|
+
})
|
|
207
|
+
.m(function (Command, cs, config, o) {
|
|
208
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
209
|
+
})
|
|
210
|
+
.s("Signin", "PutConsoleAuthorizationConfiguration", {})
|
|
211
|
+
.n("SigninClient", "PutConsoleAuthorizationConfigurationCommand")
|
|
212
|
+
.sc(schemas_0.PutConsoleAuthorizationConfiguration$)
|
|
213
|
+
.build() {
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
class PutResourcePermissionStatementCommand extends client.Command
|
|
217
|
+
.classBuilder()
|
|
218
|
+
.ep({
|
|
219
|
+
...commonParams,
|
|
220
|
+
IsControlPlane: { type: "staticContextParams", value: true },
|
|
221
|
+
})
|
|
222
|
+
.m(function (Command, cs, config, o) {
|
|
223
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
224
|
+
})
|
|
225
|
+
.s("Signin", "PutResourcePermissionStatement", {})
|
|
226
|
+
.n("SigninClient", "PutResourcePermissionStatementCommand")
|
|
227
|
+
.sc(schemas_0.PutResourcePermissionStatement$)
|
|
228
|
+
.build() {
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
const paginateListResourcePermissionStatements = core.createPaginator(SigninClient, ListResourcePermissionStatementsCommand, "nextToken", "nextToken", "maxResults");
|
|
232
|
+
|
|
123
233
|
const commands = {
|
|
124
234
|
CreateOAuth2TokenCommand,
|
|
235
|
+
DeleteConsoleAuthorizationConfigurationCommand,
|
|
236
|
+
DeleteResourcePermissionStatementCommand,
|
|
237
|
+
GetConsoleAuthorizationConfigurationCommand,
|
|
238
|
+
GetResourcePolicyCommand,
|
|
239
|
+
ListResourcePermissionStatementsCommand,
|
|
240
|
+
PutConsoleAuthorizationConfigurationCommand,
|
|
241
|
+
PutResourcePermissionStatementCommand,
|
|
242
|
+
};
|
|
243
|
+
const paginators = {
|
|
244
|
+
paginateListResourcePermissionStatements,
|
|
125
245
|
};
|
|
126
246
|
class Signin extends SigninClient {
|
|
127
247
|
}
|
|
128
|
-
client.createAggregatedClient(commands, Signin);
|
|
248
|
+
client.createAggregatedClient(commands, Signin, { paginators });
|
|
129
249
|
|
|
130
250
|
const OAuth2ErrorCode = {
|
|
131
251
|
AUTHCODE_EXPIRED: "AUTHCODE_EXPIRED",
|
|
252
|
+
CONFLICT: "CONFLICT",
|
|
132
253
|
INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS",
|
|
133
254
|
INVALID_REQUEST: "INVALID_REQUEST",
|
|
255
|
+
RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND",
|
|
134
256
|
SERVER_ERROR: "server_error",
|
|
257
|
+
SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED",
|
|
135
258
|
TOKEN_EXPIRED: "TOKEN_EXPIRED",
|
|
136
259
|
USER_CREDENTIALS_CHANGED: "USER_CREDENTIALS_CHANGED",
|
|
137
260
|
};
|
|
@@ -140,9 +263,17 @@ exports.$Command = client.Command;
|
|
|
140
263
|
exports.__Client = client.Client;
|
|
141
264
|
exports.SigninServiceException = SigninServiceException.SigninServiceException;
|
|
142
265
|
exports.CreateOAuth2TokenCommand = CreateOAuth2TokenCommand;
|
|
266
|
+
exports.DeleteConsoleAuthorizationConfigurationCommand = DeleteConsoleAuthorizationConfigurationCommand;
|
|
267
|
+
exports.DeleteResourcePermissionStatementCommand = DeleteResourcePermissionStatementCommand;
|
|
268
|
+
exports.GetConsoleAuthorizationConfigurationCommand = GetConsoleAuthorizationConfigurationCommand;
|
|
269
|
+
exports.GetResourcePolicyCommand = GetResourcePolicyCommand;
|
|
270
|
+
exports.ListResourcePermissionStatementsCommand = ListResourcePermissionStatementsCommand;
|
|
143
271
|
exports.OAuth2ErrorCode = OAuth2ErrorCode;
|
|
272
|
+
exports.PutConsoleAuthorizationConfigurationCommand = PutConsoleAuthorizationConfigurationCommand;
|
|
273
|
+
exports.PutResourcePermissionStatementCommand = PutResourcePermissionStatementCommand;
|
|
144
274
|
exports.Signin = Signin;
|
|
145
275
|
exports.SigninClient = SigninClient;
|
|
276
|
+
exports.paginateListResourcePermissionStatements = paginateListResourcePermissionStatements;
|
|
146
277
|
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
147
278
|
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
148
279
|
Object.defineProperty(exports, '__proto__', {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ValidationException = exports.TooManyRequestsError = exports.InternalServerException = exports.AccessDeniedException = void 0;
|
|
3
|
+
exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.ValidationException = exports.TooManyRequestsError = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
4
|
const SigninServiceException_1 = require("./SigninServiceException");
|
|
5
5
|
class AccessDeniedException extends SigninServiceException_1.SigninServiceException {
|
|
6
6
|
name = "AccessDeniedException";
|
|
@@ -17,6 +17,21 @@ class AccessDeniedException extends SigninServiceException_1.SigninServiceExcept
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
exports.AccessDeniedException = AccessDeniedException;
|
|
20
|
+
class ConflictException extends SigninServiceException_1.SigninServiceException {
|
|
21
|
+
name = "ConflictException";
|
|
22
|
+
$fault = "client";
|
|
23
|
+
error;
|
|
24
|
+
constructor(opts) {
|
|
25
|
+
super({
|
|
26
|
+
name: "ConflictException",
|
|
27
|
+
$fault: "client",
|
|
28
|
+
...opts,
|
|
29
|
+
});
|
|
30
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
31
|
+
this.error = opts.error;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.ConflictException = ConflictException;
|
|
20
35
|
class InternalServerException extends SigninServiceException_1.SigninServiceException {
|
|
21
36
|
name = "InternalServerException";
|
|
22
37
|
$fault = "server";
|
|
@@ -62,3 +77,33 @@ class ValidationException extends SigninServiceException_1.SigninServiceExceptio
|
|
|
62
77
|
}
|
|
63
78
|
}
|
|
64
79
|
exports.ValidationException = ValidationException;
|
|
80
|
+
class ResourceNotFoundException extends SigninServiceException_1.SigninServiceException {
|
|
81
|
+
name = "ResourceNotFoundException";
|
|
82
|
+
$fault = "client";
|
|
83
|
+
error;
|
|
84
|
+
constructor(opts) {
|
|
85
|
+
super({
|
|
86
|
+
name: "ResourceNotFoundException",
|
|
87
|
+
$fault: "client",
|
|
88
|
+
...opts,
|
|
89
|
+
});
|
|
90
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
91
|
+
this.error = opts.error;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
95
|
+
class ServiceQuotaExceededException extends SigninServiceException_1.SigninServiceException {
|
|
96
|
+
name = "ServiceQuotaExceededException";
|
|
97
|
+
$fault = "client";
|
|
98
|
+
error;
|
|
99
|
+
constructor(opts) {
|
|
100
|
+
super({
|
|
101
|
+
name: "ServiceQuotaExceededException",
|
|
102
|
+
$fault: "client",
|
|
103
|
+
...opts,
|
|
104
|
+
});
|
|
105
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
106
|
+
this.error = opts.error;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|