@aws-sdk/client-signin 3.1064.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.
Files changed (66) hide show
  1. package/README.md +56 -7
  2. package/dist-cjs/endpoint/bdd.js +70 -35
  3. package/dist-cjs/endpoint/endpointResolver.js +1 -1
  4. package/dist-cjs/index.js +133 -2
  5. package/dist-cjs/models/errors.js +46 -1
  6. package/dist-cjs/schemas/schemas_0.js +202 -1
  7. package/dist-es/Signin.js +19 -1
  8. package/dist-es/commands/CreateOAuth2TokenCommand.js +4 -1
  9. package/dist-es/commands/DeleteConsoleAuthorizationConfigurationCommand.js +19 -0
  10. package/dist-es/commands/DeleteResourcePermissionStatementCommand.js +19 -0
  11. package/dist-es/commands/GetConsoleAuthorizationConfigurationCommand.js +19 -0
  12. package/dist-es/commands/GetResourcePolicyCommand.js +19 -0
  13. package/dist-es/commands/ListResourcePermissionStatementsCommand.js +19 -0
  14. package/dist-es/commands/PutConsoleAuthorizationConfigurationCommand.js +19 -0
  15. package/dist-es/commands/PutResourcePermissionStatementCommand.js +19 -0
  16. package/dist-es/commands/index.js +7 -0
  17. package/dist-es/endpoint/bdd.js +70 -35
  18. package/dist-es/endpoint/endpointResolver.js +1 -1
  19. package/dist-es/index.js +1 -0
  20. package/dist-es/models/enums.js +3 -0
  21. package/dist-es/models/errors.js +42 -0
  22. package/dist-es/pagination/Interfaces.js +1 -0
  23. package/dist-es/pagination/ListResourcePermissionStatementsPaginator.js +4 -0
  24. package/dist-es/pagination/index.js +2 -0
  25. package/dist-es/schemas/schemas_0.js +202 -1
  26. package/dist-types/Signin.d.ts +63 -1
  27. package/dist-types/SigninClient.d.ts +9 -2
  28. package/dist-types/commands/CreateOAuth2TokenCommand.d.ts +3 -3
  29. package/dist-types/commands/DeleteConsoleAuthorizationConfigurationCommand.d.ts +124 -0
  30. package/dist-types/commands/DeleteResourcePermissionStatementCommand.d.ts +121 -0
  31. package/dist-types/commands/GetConsoleAuthorizationConfigurationCommand.d.ts +124 -0
  32. package/dist-types/commands/GetResourcePolicyCommand.d.ts +133 -0
  33. package/dist-types/commands/ListResourcePermissionStatementsCommand.d.ts +135 -0
  34. package/dist-types/commands/PutConsoleAuthorizationConfigurationCommand.d.ts +131 -0
  35. package/dist-types/commands/PutResourcePermissionStatementCommand.d.ts +136 -0
  36. package/dist-types/commands/index.d.ts +7 -0
  37. package/dist-types/endpoint/EndpointParameters.d.ts +1 -0
  38. package/dist-types/index.d.ts +1 -0
  39. package/dist-types/models/enums.d.ts +12 -0
  40. package/dist-types/models/errors.d.ts +66 -0
  41. package/dist-types/models/models_0.d.ts +288 -0
  42. package/dist-types/pagination/Interfaces.d.ts +8 -0
  43. package/dist-types/pagination/ListResourcePermissionStatementsPaginator.d.ts +7 -0
  44. package/dist-types/pagination/index.d.ts +2 -0
  45. package/dist-types/schemas/schemas_0.d.ts +27 -0
  46. package/dist-types/ts3.4/Signin.d.ts +161 -1
  47. package/dist-types/ts3.4/SigninClient.d.ts +46 -2
  48. package/dist-types/ts3.4/commands/CreateOAuth2TokenCommand.d.ts +9 -5
  49. package/dist-types/ts3.4/commands/DeleteConsoleAuthorizationConfigurationCommand.d.ts +53 -0
  50. package/dist-types/ts3.4/commands/DeleteResourcePermissionStatementCommand.d.ts +53 -0
  51. package/dist-types/ts3.4/commands/GetConsoleAuthorizationConfigurationCommand.d.ts +53 -0
  52. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +52 -0
  53. package/dist-types/ts3.4/commands/ListResourcePermissionStatementsCommand.d.ts +53 -0
  54. package/dist-types/ts3.4/commands/PutConsoleAuthorizationConfigurationCommand.d.ts +53 -0
  55. package/dist-types/ts3.4/commands/PutResourcePermissionStatementCommand.d.ts +53 -0
  56. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  57. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -0
  58. package/dist-types/ts3.4/index.d.ts +1 -0
  59. package/dist-types/ts3.4/models/enums.d.ts +3 -0
  60. package/dist-types/ts3.4/models/errors.d.ts +22 -0
  61. package/dist-types/ts3.4/models/models_0.d.ts +69 -0
  62. package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
  63. package/dist-types/ts3.4/pagination/ListResourcePermissionStatementsPaginator.d.ts +11 -0
  64. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  65. package/dist-types/ts3.4/schemas/schemas_0.d.ts +27 -0
  66. package/package.json +5 -5
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 `CreateOAuth2TokenCommand`:
26
+ the commands you need, for example `ListResourcePermissionStatementsCommand`:
27
27
 
28
28
  ```js
29
29
  // ES5 example
30
- const { SigninClient, CreateOAuth2TokenCommand } = require("@aws-sdk/client-signin");
30
+ const { SigninClient, ListResourcePermissionStatementsCommand } = require("@aws-sdk/client-signin");
31
31
  ```
32
32
 
33
33
  ```ts
34
34
  // ES6+ example
35
- import { SigninClient, CreateOAuth2TokenCommand } from "@aws-sdk/client-signin";
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 CreateOAuth2TokenCommand(params);
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.createOAuth2Token(params);
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
- .createOAuth2Token(params)
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.createOAuth2Token(params, (err, data) => {
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>
@@ -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 m = "ref";
6
- const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = { [m]: "Endpoint" }, i = { [m]: d }, j = { "fn": f, "argv": [i, "name"] }, k = {}, l = [{ [m]: "Region" }];
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, [h]],
10
- [c, l],
11
- ["aws.partition", l, d],
12
- [e, [{ [m]: "UseFIPS" }, b]],
13
- [e, [{ [m]: "UseDualStack" }, b]],
14
- [e, [{ fn: f, argv: [i, "supportsDualStack"] }, b]],
15
- [e, [{ fn: f, argv: [i, "supportsFIPS"] }, b]],
16
- [g, [j, "aws"]],
17
- [g, [j, "aws-cn"]],
18
- [g, [j, "aws-us-gov"]]
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
- [h, k],
25
- ["https://{Region}.signin.aws.amazon.com", k],
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}", k],
48
+ ["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", n],
31
49
  [a, "FIPS is enabled but this partition does not support FIPS"],
32
- ["https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
50
+ [h, n],
33
51
  [a, "DualStack is enabled but this partition does not support DualStack"],
34
- ["https://signin.{Region}.{PartitionResult#dnsSuffix}", k],
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, 15, 3,
43
- 1, 4, r + 14,
44
- 2, 5, r + 14,
45
- 3, 11, 6,
46
- 4, 10, 7,
47
- 7, r + 4, 8,
48
- 8, r + 5, 9,
49
- 9, r + 6, r + 13,
50
- 5, r + 11, r + 12,
51
- 4, 13, 12,
52
- 6, r + 9, r + 10,
53
- 5, 14, r + 8,
54
- 6, r + 7, r + 8,
55
- 3, r + 1, 16,
56
- 4, r + 2, r + 3,
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(commonParams)
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;