@aws-sdk/client-signin 3.1065.0 → 3.1067.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 +4 -4
@@ -1,40 +1,101 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateOAuth2Token$ = exports.CreateOAuth2TokenResponseBody$ = exports.CreateOAuth2TokenResponse$ = exports.CreateOAuth2TokenRequestBody$ = exports.CreateOAuth2TokenRequest$ = exports.AccessToken$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.TooManyRequestsError$ = exports.InternalServerException$ = exports.AccessDeniedException$ = exports.SigninServiceException$ = void 0;
3
+ exports.PutResourcePermissionStatement$ = exports.PutConsoleAuthorizationConfiguration$ = exports.ListResourcePermissionStatements$ = exports.GetResourcePolicy$ = exports.GetConsoleAuthorizationConfiguration$ = exports.DeleteResourcePermissionStatement$ = exports.DeleteConsoleAuthorizationConfiguration$ = exports.CreateOAuth2Token$ = exports.SigninResourceBasedPolicy$ = exports.PutResourcePermissionStatementOutput$ = exports.PutResourcePermissionStatementInput$ = exports.PutConsoleAuthorizationConfigurationOutput$ = exports.PutConsoleAuthorizationConfigurationInput$ = exports.PolicyStatement$ = exports.PermissionStatementSummary$ = exports.ListResourcePermissionStatementsOutput$ = exports.ListResourcePermissionStatementsInput$ = exports.GetResourcePolicyOutput$ = exports.GetResourcePolicyInput$ = exports.GetConsoleAuthorizationConfigurationOutput$ = exports.GetConsoleAuthorizationConfigurationInput$ = exports.DeleteResourcePermissionStatementOutput$ = exports.DeleteResourcePermissionStatementInput$ = exports.DeleteConsoleAuthorizationConfigurationOutput$ = exports.DeleteConsoleAuthorizationConfigurationInput$ = exports.CreateOAuth2TokenResponseBody$ = exports.CreateOAuth2TokenResponse$ = exports.CreateOAuth2TokenRequestBody$ = exports.CreateOAuth2TokenRequest$ = exports.AccessToken$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.TooManyRequestsError$ = exports.ServiceQuotaExceededException$ = exports.ResourceNotFoundException$ = exports.InternalServerException$ = exports.ConflictException$ = exports.AccessDeniedException$ = exports.SigninServiceException$ = void 0;
4
+ const _A = "Action";
4
5
  const _ADE = "AccessDeniedException";
5
6
  const _AT = "AccessToken";
7
+ const _C = "Condition";
8
+ const _CB = "ConditionBlock";
9
+ const _CE = "ConflictException";
6
10
  const _COAT = "CreateOAuth2Token";
7
11
  const _COATR = "CreateOAuth2TokenRequest";
8
12
  const _COATRB = "CreateOAuth2TokenRequestBody";
9
13
  const _COATRBr = "CreateOAuth2TokenResponseBody";
10
14
  const _COATRr = "CreateOAuth2TokenResponse";
15
+ const _DCAC = "DeleteConsoleAuthorizationConfiguration";
16
+ const _DCACI = "DeleteConsoleAuthorizationConfigurationInput";
17
+ const _DCACO = "DeleteConsoleAuthorizationConfigurationOutput";
18
+ const _DRPS = "DeleteResourcePermissionStatement";
19
+ const _DRPSI = "DeleteResourcePermissionStatementInput";
20
+ const _DRPSO = "DeleteResourcePermissionStatementOutput";
21
+ const _E = "Effect";
22
+ const _GCAC = "GetConsoleAuthorizationConfiguration";
23
+ const _GCACI = "GetConsoleAuthorizationConfigurationInput";
24
+ const _GCACO = "GetConsoleAuthorizationConfigurationOutput";
25
+ const _GRP = "GetResourcePolicy";
26
+ const _GRPI = "GetResourcePolicyInput";
27
+ const _GRPO = "GetResourcePolicyOutput";
11
28
  const _ISE = "InternalServerException";
29
+ const _LRPS = "ListResourcePermissionStatements";
30
+ const _LRPSI = "ListResourcePermissionStatementsInput";
31
+ const _LRPSO = "ListResourcePermissionStatementsOutput";
32
+ const _P = "Principal";
33
+ const _PCAC = "PutConsoleAuthorizationConfiguration";
34
+ const _PCACI = "PutConsoleAuthorizationConfigurationInput";
35
+ const _PCACO = "PutConsoleAuthorizationConfigurationOutput";
36
+ const _PRPS = "PutResourcePermissionStatement";
37
+ const _PRPSI = "PutResourcePermissionStatementInput";
38
+ const _PRPSO = "PutResourcePermissionStatementOutput";
39
+ const _PS = "PolicyStatement";
40
+ const _PSS = "PermissionStatementSummary";
41
+ const _PSSe = "PermissionStatementSummaries";
42
+ const _PSo = "PolicyStatements";
43
+ const _R = "Resource";
44
+ const _RNFE = "ResourceNotFoundException";
12
45
  const _RT = "RefreshToken";
46
+ const _S = "Statement";
47
+ const _SQEE = "ServiceQuotaExceededException";
48
+ const _SRBP = "SigninResourceBasedPolicy";
13
49
  const _TMRE = "TooManyRequestsError";
50
+ const _V = "Version";
14
51
  const _VE = "ValidationException";
52
+ const _a = "action";
15
53
  const _aKI = "accessKeyId";
16
54
  const _aT = "accessToken";
17
55
  const _c = "client";
56
+ const _cAE = "consoleAuthorizationEnabled";
18
57
  const _cI = "clientId";
58
+ const _cSV = "consoleSourceVpce";
59
+ const _cT = "clientToken";
19
60
  const _cV = "codeVerifier";
20
61
  const _co = "code";
62
+ const _con = "condition";
21
63
  const _e = "error";
22
64
  const _eI = "expiresIn";
65
+ const _eP = "excludedPrincipal";
66
+ const _ef = "effect";
23
67
  const _gT = "grantType";
24
68
  const _h = "http";
25
69
  const _hE = "httpError";
26
70
  const _iT = "idToken";
27
71
  const _jN = "jsonName";
28
72
  const _m = "message";
73
+ const _mR = "maxResults";
74
+ const _nT = "nextToken";
75
+ const _p = "principal";
76
+ const _pS = "permissionStatements";
77
+ const _r = "resource";
78
+ const _rR = "requestedRegion";
29
79
  const _rT = "refreshToken";
30
80
  const _rU = "redirectUri";
31
81
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.signin";
32
82
  const _sAK = "secretAccessKey";
83
+ const _sI = "statementId";
84
+ const _sIo = "sourceIp";
85
+ const _sRBP = "signinResourceBasedPolicy";
86
+ const _sSV = "signinSourceVpce";
33
87
  const _sT = "sessionToken";
88
+ const _sV = "sourceVpc";
89
+ const _sc = "scope";
34
90
  const _se = "server";
91
+ const _si = "sid";
92
+ const _st = "statement";
35
93
  const _tI = "tokenInput";
94
+ const _tIa = "targetId";
36
95
  const _tO = "tokenOutput";
37
96
  const _tT = "tokenType";
97
+ const _v = "version";
98
+ const _vSI = "vpcSourceIp";
38
99
  const n0 = "com.amazonaws.signin";
39
100
  const schema_1 = require("@smithy/core/schema");
40
101
  const errors_1 = require("../models/errors");
@@ -49,12 +110,30 @@ exports.AccessDeniedException$ = [-3, n0, _ADE,
49
110
  [0, 0], 2
50
111
  ];
51
112
  n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
113
+ exports.ConflictException$ = [-3, n0, _CE,
114
+ { [_e]: _c, [_hE]: 409 },
115
+ [_e, _m],
116
+ [0, 0], 2
117
+ ];
118
+ n0_registry.registerError(exports.ConflictException$, errors_1.ConflictException);
52
119
  exports.InternalServerException$ = [-3, n0, _ISE,
53
120
  { [_e]: _se, [_hE]: 500 },
54
121
  [_e, _m],
55
122
  [0, 0], 2
56
123
  ];
57
124
  n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
125
+ exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
126
+ { [_e]: _c, [_hE]: 404 },
127
+ [_e, _m],
128
+ [0, 0], 2
129
+ ];
130
+ n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
131
+ exports.ServiceQuotaExceededException$ = [-3, n0, _SQEE,
132
+ { [_e]: _c, [_hE]: 402 },
133
+ [_e, _m],
134
+ [0, 0], 2
135
+ ];
136
+ n0_registry.registerError(exports.ServiceQuotaExceededException$, errors_1.ServiceQuotaExceededException);
58
137
  exports.TooManyRequestsError$ = [-3, n0, _TMRE,
59
138
  { [_e]: _c, [_hE]: 429 },
60
139
  [_e, _m],
@@ -97,6 +176,128 @@ exports.CreateOAuth2TokenResponseBody$ = [3, n0, _COATRBr,
97
176
  [_aT, _tT, _eI, _rT, _iT],
98
177
  [[() => exports.AccessToken$, { [_jN]: _aT }], [0, { [_jN]: _tT }], [1, { [_jN]: _eI }], [() => RefreshToken, { [_jN]: _rT }], [0, { [_jN]: _iT }]], 4
99
178
  ];
179
+ exports.DeleteConsoleAuthorizationConfigurationInput$ = [3, n0, _DCACI,
180
+ 0,
181
+ [_tIa],
182
+ [0]
183
+ ];
184
+ exports.DeleteConsoleAuthorizationConfigurationOutput$ = [3, n0, _DCACO,
185
+ 0,
186
+ [_tIa, _sc, _cAE],
187
+ [0, 0, 2], 3
188
+ ];
189
+ exports.DeleteResourcePermissionStatementInput$ = [3, n0, _DRPSI,
190
+ 0,
191
+ [_sI, _cT],
192
+ [0, [0, 4]], 1
193
+ ];
194
+ exports.DeleteResourcePermissionStatementOutput$ = [3, n0, _DRPSO,
195
+ 0,
196
+ [],
197
+ []
198
+ ];
199
+ exports.GetConsoleAuthorizationConfigurationInput$ = [3, n0, _GCACI,
200
+ 0,
201
+ [_tIa],
202
+ [0]
203
+ ];
204
+ exports.GetConsoleAuthorizationConfigurationOutput$ = [3, n0, _GCACO,
205
+ 0,
206
+ [_tIa, _sc, _cAE],
207
+ [0, 0, 2], 3
208
+ ];
209
+ exports.GetResourcePolicyInput$ = [3, n0, _GRPI,
210
+ 0,
211
+ [],
212
+ []
213
+ ];
214
+ exports.GetResourcePolicyOutput$ = [3, n0, _GRPO,
215
+ 0,
216
+ [_sRBP],
217
+ [[() => exports.SigninResourceBasedPolicy$, 0]], 1
218
+ ];
219
+ exports.ListResourcePermissionStatementsInput$ = [3, n0, _LRPSI,
220
+ 0,
221
+ [_mR, _nT],
222
+ [1, 0]
223
+ ];
224
+ exports.ListResourcePermissionStatementsOutput$ = [3, n0, _LRPSO,
225
+ 0,
226
+ [_pS, _nT],
227
+ [() => PermissionStatementSummaries, 0], 1
228
+ ];
229
+ exports.PermissionStatementSummary$ = [3, n0, _PSS,
230
+ 0,
231
+ [_si, _con],
232
+ [0, [2, n0, _CB, 0, 0, [2, n0, _C, 0, 0, 64 | 0]]], 1
233
+ ];
234
+ exports.PolicyStatement$ = [3, n0, _PS,
235
+ 0,
236
+ [_ef, _p, _a, _r, _con],
237
+ [[0, { [_jN]: _E }], [128 | 0, { [_jN]: _P }], [64 | 0, { [_jN]: _A }], [0, { [_jN]: _R }], [[2, n0, _CB, 0, 0, [2, n0, _C, 0, 0, 64 | 0]], { [_jN]: _C }]]
238
+ ];
239
+ exports.PutConsoleAuthorizationConfigurationInput$ = [3, n0, _PCACI,
240
+ 0,
241
+ [_tIa],
242
+ [0]
243
+ ];
244
+ exports.PutConsoleAuthorizationConfigurationOutput$ = [3, n0, _PCACO,
245
+ 0,
246
+ [_tIa, _sc, _cAE],
247
+ [0, 0, 2], 3
248
+ ];
249
+ exports.PutResourcePermissionStatementInput$ = [3, n0, _PRPSI,
250
+ 0,
251
+ [_sV, _sSV, _cSV, _vSI, _sIo, _rR, _eP, _cT],
252
+ [0, 0, 0, 0, 0, 0, 0, [0, 4]]
253
+ ];
254
+ exports.PutResourcePermissionStatementOutput$ = [3, n0, _PRPSO,
255
+ 0,
256
+ [_sI],
257
+ [0], 1
258
+ ];
259
+ exports.SigninResourceBasedPolicy$ = [3, n0, _SRBP,
260
+ 0,
261
+ [_v, _st],
262
+ [[0, { [_jN]: _V }], [() => PolicyStatements, { [_jN]: _S }]]
263
+ ];
264
+ var ConditionValues = 64 | 0;
265
+ var PermissionStatementSummaries = [1, n0, _PSSe,
266
+ 0, () => exports.PermissionStatementSummary$
267
+ ];
268
+ var PolicyActions = 64 | 0;
269
+ var PolicyStatements = [1, n0, _PSo,
270
+ 0, [() => exports.PolicyStatement$,
271
+ 0]
272
+ ];
273
+ var Condition = [2, n0, _C,
274
+ 0, 0, 64 | 0
275
+ ];
276
+ var ConditionBlock = [2, n0, _CB,
277
+ 0, 0, [2, n0, _C, 0, 0, 64 | 0]
278
+ ];
279
+ var Principal = 128 | 0;
100
280
  exports.CreateOAuth2Token$ = [9, n0, _COAT,
101
281
  { [_h]: ["POST", "/v1/token", 200] }, () => exports.CreateOAuth2TokenRequest$, () => exports.CreateOAuth2TokenResponse$
102
282
  ];
283
+ exports.DeleteConsoleAuthorizationConfiguration$ = [9, n0, _DCAC,
284
+ { [_h]: ["POST", "/delete-console-authorization-configuration", 200] }, () => exports.DeleteConsoleAuthorizationConfigurationInput$, () => exports.DeleteConsoleAuthorizationConfigurationOutput$
285
+ ];
286
+ exports.DeleteResourcePermissionStatement$ = [9, n0, _DRPS,
287
+ { [_h]: ["POST", "/delete-resource-permission-statement", 200] }, () => exports.DeleteResourcePermissionStatementInput$, () => exports.DeleteResourcePermissionStatementOutput$
288
+ ];
289
+ exports.GetConsoleAuthorizationConfiguration$ = [9, n0, _GCAC,
290
+ { [_h]: ["POST", "/get-console-authorization-configuration", 200] }, () => exports.GetConsoleAuthorizationConfigurationInput$, () => exports.GetConsoleAuthorizationConfigurationOutput$
291
+ ];
292
+ exports.GetResourcePolicy$ = [9, n0, _GRP,
293
+ { [_h]: ["POST", "/get-resource-policy", 200] }, () => exports.GetResourcePolicyInput$, () => exports.GetResourcePolicyOutput$
294
+ ];
295
+ exports.ListResourcePermissionStatements$ = [9, n0, _LRPS,
296
+ { [_h]: ["POST", "/list-resource-permission-statements", 200] }, () => exports.ListResourcePermissionStatementsInput$, () => exports.ListResourcePermissionStatementsOutput$
297
+ ];
298
+ exports.PutConsoleAuthorizationConfiguration$ = [9, n0, _PCAC,
299
+ { [_h]: ["POST", "/put-console-authorization-configuration", 200] }, () => exports.PutConsoleAuthorizationConfigurationInput$, () => exports.PutConsoleAuthorizationConfigurationOutput$
300
+ ];
301
+ exports.PutResourcePermissionStatement$ = [9, n0, _PRPS,
302
+ { [_h]: ["POST", "/put-resource-permission-statement", 200] }, () => exports.PutResourcePermissionStatementInput$, () => exports.PutResourcePermissionStatementOutput$
303
+ ];
package/dist-es/Signin.js CHANGED
@@ -1,9 +1,27 @@
1
1
  import { createAggregatedClient } from "@smithy/core/client";
2
2
  import { CreateOAuth2TokenCommand, } from "./commands/CreateOAuth2TokenCommand";
3
+ import { DeleteConsoleAuthorizationConfigurationCommand, } from "./commands/DeleteConsoleAuthorizationConfigurationCommand";
4
+ import { DeleteResourcePermissionStatementCommand, } from "./commands/DeleteResourcePermissionStatementCommand";
5
+ import { GetConsoleAuthorizationConfigurationCommand, } from "./commands/GetConsoleAuthorizationConfigurationCommand";
6
+ import { GetResourcePolicyCommand, } from "./commands/GetResourcePolicyCommand";
7
+ import { ListResourcePermissionStatementsCommand, } from "./commands/ListResourcePermissionStatementsCommand";
8
+ import { PutConsoleAuthorizationConfigurationCommand, } from "./commands/PutConsoleAuthorizationConfigurationCommand";
9
+ import { PutResourcePermissionStatementCommand, } from "./commands/PutResourcePermissionStatementCommand";
10
+ import { paginateListResourcePermissionStatements } from "./pagination/ListResourcePermissionStatementsPaginator";
3
11
  import { SigninClient } from "./SigninClient";
4
12
  const commands = {
5
13
  CreateOAuth2TokenCommand,
14
+ DeleteConsoleAuthorizationConfigurationCommand,
15
+ DeleteResourcePermissionStatementCommand,
16
+ GetConsoleAuthorizationConfigurationCommand,
17
+ GetResourcePolicyCommand,
18
+ ListResourcePermissionStatementsCommand,
19
+ PutConsoleAuthorizationConfigurationCommand,
20
+ PutResourcePermissionStatementCommand,
21
+ };
22
+ const paginators = {
23
+ paginateListResourcePermissionStatements,
6
24
  };
7
25
  export class Signin extends SigninClient {
8
26
  }
9
- createAggregatedClient(commands, Signin);
27
+ createAggregatedClient(commands, Signin, { paginators });
@@ -5,7 +5,10 @@ import { CreateOAuth2Token$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class CreateOAuth2TokenCommand extends $Command
7
7
  .classBuilder()
8
- .ep(commonParams)
8
+ .ep({
9
+ ...commonParams,
10
+ IsControlPlane: { type: "staticContextParams", value: false },
11
+ })
9
12
  .m(function (Command, cs, config, o) {
10
13
  return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
14
  })
@@ -0,0 +1,19 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DeleteConsoleAuthorizationConfiguration$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class DeleteConsoleAuthorizationConfigurationCommand extends $Command
7
+ .classBuilder()
8
+ .ep({
9
+ ...commonParams,
10
+ IsControlPlane: { type: "staticContextParams", value: true },
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
14
+ })
15
+ .s("Signin", "DeleteConsoleAuthorizationConfiguration", {})
16
+ .n("SigninClient", "DeleteConsoleAuthorizationConfigurationCommand")
17
+ .sc(DeleteConsoleAuthorizationConfiguration$)
18
+ .build() {
19
+ }
@@ -0,0 +1,19 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DeleteResourcePermissionStatement$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class DeleteResourcePermissionStatementCommand extends $Command
7
+ .classBuilder()
8
+ .ep({
9
+ ...commonParams,
10
+ IsControlPlane: { type: "staticContextParams", value: true },
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
14
+ })
15
+ .s("Signin", "DeleteResourcePermissionStatement", {})
16
+ .n("SigninClient", "DeleteResourcePermissionStatementCommand")
17
+ .sc(DeleteResourcePermissionStatement$)
18
+ .build() {
19
+ }
@@ -0,0 +1,19 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetConsoleAuthorizationConfiguration$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GetConsoleAuthorizationConfigurationCommand extends $Command
7
+ .classBuilder()
8
+ .ep({
9
+ ...commonParams,
10
+ IsControlPlane: { type: "staticContextParams", value: true },
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
14
+ })
15
+ .s("Signin", "GetConsoleAuthorizationConfiguration", {})
16
+ .n("SigninClient", "GetConsoleAuthorizationConfigurationCommand")
17
+ .sc(GetConsoleAuthorizationConfiguration$)
18
+ .build() {
19
+ }
@@ -0,0 +1,19 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { GetResourcePolicy$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class GetResourcePolicyCommand extends $Command
7
+ .classBuilder()
8
+ .ep({
9
+ ...commonParams,
10
+ IsControlPlane: { type: "staticContextParams", value: true },
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
14
+ })
15
+ .s("Signin", "GetResourcePolicy", {})
16
+ .n("SigninClient", "GetResourcePolicyCommand")
17
+ .sc(GetResourcePolicy$)
18
+ .build() {
19
+ }
@@ -0,0 +1,19 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListResourcePermissionStatements$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListResourcePermissionStatementsCommand extends $Command
7
+ .classBuilder()
8
+ .ep({
9
+ ...commonParams,
10
+ IsControlPlane: { type: "staticContextParams", value: true },
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
14
+ })
15
+ .s("Signin", "ListResourcePermissionStatements", {})
16
+ .n("SigninClient", "ListResourcePermissionStatementsCommand")
17
+ .sc(ListResourcePermissionStatements$)
18
+ .build() {
19
+ }
@@ -0,0 +1,19 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { PutConsoleAuthorizationConfiguration$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class PutConsoleAuthorizationConfigurationCommand extends $Command
7
+ .classBuilder()
8
+ .ep({
9
+ ...commonParams,
10
+ IsControlPlane: { type: "staticContextParams", value: true },
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
14
+ })
15
+ .s("Signin", "PutConsoleAuthorizationConfiguration", {})
16
+ .n("SigninClient", "PutConsoleAuthorizationConfigurationCommand")
17
+ .sc(PutConsoleAuthorizationConfiguration$)
18
+ .build() {
19
+ }
@@ -0,0 +1,19 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { PutResourcePermissionStatement$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class PutResourcePermissionStatementCommand extends $Command
7
+ .classBuilder()
8
+ .ep({
9
+ ...commonParams,
10
+ IsControlPlane: { type: "staticContextParams", value: true },
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
14
+ })
15
+ .s("Signin", "PutResourcePermissionStatement", {})
16
+ .n("SigninClient", "PutResourcePermissionStatementCommand")
17
+ .sc(PutResourcePermissionStatement$)
18
+ .build() {
19
+ }
@@ -1 +1,8 @@
1
1
  export * from "./CreateOAuth2TokenCommand";
2
+ export * from "./DeleteConsoleAuthorizationConfigurationCommand";
3
+ export * from "./DeleteResourcePermissionStatementCommand";
4
+ export * from "./GetConsoleAuthorizationConfigurationCommand";
5
+ export * from "./GetResourcePolicyCommand";
6
+ export * from "./ListResourcePermissionStatementsCommand";
7
+ export * from "./PutConsoleAuthorizationConfigurationCommand";
8
+ export * from "./PutResourcePermissionStatementCommand";
@@ -1,34 +1,52 @@
1
1
  import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
2
- const m = "ref";
3
- 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" }];
2
+ const p = "ref";
3
+ 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];
4
4
  const _data = {
5
5
  conditions: [
6
- [c, [h]],
7
- [c, l],
8
- ["aws.partition", l, d],
9
- [e, [{ [m]: "UseFIPS" }, b]],
10
- [e, [{ [m]: "UseDualStack" }, b]],
11
- [e, [{ fn: f, argv: [i, "supportsDualStack"] }, b]],
12
- [e, [{ fn: f, argv: [i, "supportsFIPS"] }, b]],
13
- [g, [j, "aws"]],
14
- [g, [j, "aws-cn"]],
15
- [g, [j, "aws-us-gov"]]
6
+ [c, o],
7
+ [d, [{ fn: "coalesce", argv: [{ [p]: "IsControlPlane" }, false] }, b]],
8
+ [c, [i]],
9
+ ["aws.partition", o, e],
10
+ [d, [{ [p]: "UseFIPS" }, b]],
11
+ [d, [{ [p]: "UseDualStack" }, b]],
12
+ [f, [j, "aws"]],
13
+ [f, [j, "aws-cn"]],
14
+ [d, [{ fn: g, argv: [k, "supportsDualStack"] }, b]],
15
+ [f, [l, "us-gov-west-1"]],
16
+ [f, [j, "aws-us-gov"]],
17
+ [d, [{ fn: g, argv: [k, "supportsFIPS"] }, b]],
18
+ [f, [j, "aws-iso"]],
19
+ [f, [j, "aws-iso-b"]],
20
+ [f, [j, "aws-iso-f"]],
21
+ [f, [j, "aws-iso-e"]],
22
+ [f, [j, "aws-eusc"]]
16
23
  ],
17
24
  results: [
18
25
  [a],
26
+ ["https://signin.{Region}.api.aws", m],
27
+ ["https://signin.{Region}.api.amazonwebservices.com.cn", m],
28
+ [h, m],
29
+ ["https://{Region}.signin.aws.amazon.com", n],
30
+ ["https://{Region}.signin.amazonaws.cn", n],
31
+ ["https://{Region}.signin.amazonaws-us-gov.com", n],
32
+ ["https://{Region}.signin.c2shome.ic.gov", n],
33
+ ["https://{Region}.signin.sc2shome.sgov.gov", n],
34
+ ["https://{Region}.signin.csphome.hci.ic.gov", n],
35
+ ["https://{Region}.signin.csphome.adc-e.uk", n],
36
+ ["https://{Region}.signin.amazonaws-eusc.eu", n],
37
+ ["https://signin-fips.amazonaws-us-gov.com", n],
38
+ ["https://{Region}.signin-fips.amazonaws-us-gov.com", n],
39
+ ["https://{Region}.signin.{PartitionResult#dnsSuffix}", n],
19
40
  [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
20
41
  [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
21
- [h, k],
22
- ["https://{Region}.signin.aws.amazon.com", k],
23
- ["https://{Region}.signin.amazonaws.cn", k],
24
- ["https://{Region}.signin.amazonaws-us-gov.com", k],
25
- ["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
42
+ [i, n],
43
+ ["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", n],
26
44
  [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
27
- ["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", k],
45
+ ["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", n],
28
46
  [a, "FIPS is enabled but this partition does not support FIPS"],
29
- ["https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
47
+ [h, n],
30
48
  [a, "DualStack is enabled but this partition does not support DualStack"],
31
- ["https://signin.{Region}.{PartitionResult#dnsSuffix}", k],
49
+ ["https://signin.{Region}.{PartitionResult#dnsSuffix}", n],
32
50
  [a, "Invalid Configuration: Missing Region"]
33
51
  ]
34
52
  };
@@ -36,20 +54,37 @@ const root = 2;
36
54
  const r = 100_000_000;
37
55
  const nodes = new Int32Array([
38
56
  -1, 1, -1,
39
- 0, 15, 3,
40
- 1, 4, r + 14,
41
- 2, 5, r + 14,
42
- 3, 11, 6,
43
- 4, 10, 7,
44
- 7, r + 4, 8,
45
- 8, r + 5, 9,
46
- 9, r + 6, r + 13,
47
- 5, r + 11, r + 12,
48
- 4, 13, 12,
49
- 6, r + 9, r + 10,
50
- 5, 14, r + 8,
51
- 6, r + 7, r + 8,
52
- 3, r + 1, 16,
53
- 4, r + 2, r + 3,
57
+ 0, 4, 3,
58
+ 2, 30, r + 25,
59
+ 1, 24, 5,
60
+ 2, 30, 6,
61
+ 3, 7, 26,
62
+ 4, 18, 8,
63
+ 5, 17, 9,
64
+ 6, r + 4, 10,
65
+ 7, r + 5, 11,
66
+ 10, r + 6, 12,
67
+ 12, r + 7, 13,
68
+ 13, r + 8, 14,
69
+ 14, r + 9, 15,
70
+ 15, r + 10, 16,
71
+ 16, r + 11, r + 14,
72
+ 8, r + 22, r + 23,
73
+ 5, 22, 19,
74
+ 9, r + 12, 20,
75
+ 10, r + 13, 21,
76
+ 11, r + 20, r + 21,
77
+ 8, 23, r + 19,
78
+ 11, r + 18, r + 19,
79
+ 2, 29, 25,
80
+ 3, 32, 26,
81
+ 4, 27, r + 25,
82
+ 5, r + 25, 28,
83
+ 9, r + 12, r + 25,
84
+ 3, 32, 30,
85
+ 4, r + 15, 31,
86
+ 5, r + 16, r + 17,
87
+ 6, r + 1, 33,
88
+ 7, r + 2, r + 3,
54
89
  ]);
55
90
  export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -3,7 +3,7 @@ import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/
3
3
  import { bdd } from "./bdd";
4
4
  const cache = new EndpointCache({
5
5
  size: 50,
6
- params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
6
+ params: ["Endpoint", "IsControlPlane", "Region", "UseDualStack", "UseFIPS"],
7
7
  });
8
8
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
9
9
  return cache.get(endpointParams, () => decideEndpoint(bdd, {
package/dist-es/index.js CHANGED
@@ -2,6 +2,7 @@ export * from "./SigninClient";
2
2
  export * from "./Signin";
3
3
  export * from "./commands";
4
4
  export * from "./schemas/schemas_0";
5
+ export * from "./pagination";
5
6
  export * from "./models/enums";
6
7
  export * from "./models/errors";
7
8
  export * from "./models/models_0";
@@ -1,8 +1,11 @@
1
1
  export const OAuth2ErrorCode = {
2
2
  AUTHCODE_EXPIRED: "AUTHCODE_EXPIRED",
3
+ CONFLICT: "CONFLICT",
3
4
  INSUFFICIENT_PERMISSIONS: "INSUFFICIENT_PERMISSIONS",
4
5
  INVALID_REQUEST: "INVALID_REQUEST",
6
+ RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND",
5
7
  SERVER_ERROR: "server_error",
8
+ SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED",
6
9
  TOKEN_EXPIRED: "TOKEN_EXPIRED",
7
10
  USER_CREDENTIALS_CHANGED: "USER_CREDENTIALS_CHANGED",
8
11
  };