@aws-sdk/client-signin 3.1081.0 → 3.1083.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 +21 -0
- package/dist-cjs/index.js +194 -81
- package/dist-es/Signin.js +6 -0
- package/dist-es/commandBuilder.js +3 -0
- package/dist-es/commands/CreateOAuth2TokenWithIAMCommand.js +4 -0
- package/dist-es/commands/DeleteConsoleAuthorizationConfigurationCommand.js +2 -2
- package/dist-es/commands/DeleteResourcePermissionStatementCommand.js +2 -2
- package/dist-es/commands/GetConsoleAuthorizationConfigurationCommand.js +2 -2
- package/dist-es/commands/GetResourcePolicyCommand.js +2 -2
- package/dist-es/commands/IntrospectOAuth2TokenWithIAMCommand.js +4 -0
- package/dist-es/commands/ListResourcePermissionStatementsCommand.js +2 -2
- package/dist-es/commands/PutConsoleAuthorizationConfigurationCommand.js +2 -2
- package/dist-es/commands/PutResourcePermissionStatementCommand.js +2 -2
- package/dist-es/commands/RevokeOAuth2TokenWithIAMCommand.js +4 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoint/bdd.js +80 -70
- package/dist-es/endpoint/endpointResolver.js +1 -1
- package/dist-es/schemas/schemas_0.js +78 -2
- package/dist-types/Signin.d.ts +21 -0
- package/dist-types/SigninClient.d.ts +5 -2
- package/dist-types/commandBuilder.d.ts +4 -0
- package/dist-types/commands/CreateOAuth2TokenWithIAMCommand.d.ts +114 -0
- package/dist-types/commands/IntrospectOAuth2TokenWithIAMCommand.d.ts +134 -0
- package/dist-types/commands/RevokeOAuth2TokenWithIAMCommand.d.ts +114 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +175 -3
- package/dist-types/schemas/schemas_0.d.ts +9 -0
- package/dist-types/ts3.4/Signin.d.ts +51 -0
- package/dist-types/ts3.4/SigninClient.d.ts +20 -2
- package/dist-types/ts3.4/commandBuilder.d.ts +1 -0
- package/dist-types/ts3.4/commands/CreateOAuth2TokenWithIAMCommand.d.ts +44 -0
- package/dist-types/ts3.4/commands/IntrospectOAuth2TokenWithIAMCommand.d.ts +44 -0
- package/dist-types/ts3.4/commands/RevokeOAuth2TokenWithIAMCommand.d.ts +44 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +33 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +9 -0
- package/package.json +9 -9
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export * from "./CreateOAuth2TokenCommand";
|
|
2
|
+
export * from "./CreateOAuth2TokenWithIAMCommand";
|
|
2
3
|
export * from "./DeleteConsoleAuthorizationConfigurationCommand";
|
|
3
4
|
export * from "./DeleteResourcePermissionStatementCommand";
|
|
4
5
|
export * from "./GetConsoleAuthorizationConfigurationCommand";
|
|
5
6
|
export * from "./GetResourcePolicyCommand";
|
|
7
|
+
export * from "./IntrospectOAuth2TokenWithIAMCommand";
|
|
6
8
|
export * from "./ListResourcePermissionStatementsCommand";
|
|
7
9
|
export * from "./PutConsoleAuthorizationConfigurationCommand";
|
|
8
10
|
export * from "./PutResourcePermissionStatementCommand";
|
|
11
|
+
export * from "./RevokeOAuth2TokenWithIAMCommand";
|
package/dist-es/endpoint/bdd.js
CHANGED
|
@@ -1,52 +1,55 @@
|
|
|
1
1
|
import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
|
|
2
|
-
const
|
|
3
|
-
const a = -1, b =
|
|
2
|
+
const s = "ref";
|
|
3
|
+
const a = -1, b = false, c = true, d = "isSet", e = "booleanEquals", f = "coalesce", g = "PartitionResult", h = "stringEquals", i = "getAttr", j = "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", k = { [s]: "Endpoint" }, l = { "fn": i, "argv": [{ [s]: g }, "name"] }, m = { [s]: "Region" }, n = { [s]: g }, o = { "authSchemes": [{ "name": "sigv4", "signingName": "signin", "signingRegion": "{Region}" }] }, p = {}, q = [m];
|
|
4
4
|
const _data = {
|
|
5
5
|
conditions: [
|
|
6
|
-
[
|
|
7
|
-
[
|
|
8
|
-
[
|
|
9
|
-
["aws.partition",
|
|
10
|
-
[
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
19
|
-
[
|
|
20
|
-
[
|
|
21
|
-
[
|
|
22
|
-
[
|
|
6
|
+
[d, q],
|
|
7
|
+
[e, [{ fn: f, argv: [{ [s]: "IsControlPlane" }, b] }, c]],
|
|
8
|
+
[d, [k]],
|
|
9
|
+
["aws.partition", q, g],
|
|
10
|
+
[e, [{ [s]: "UseFIPS" }, c]],
|
|
11
|
+
[h, [l, "aws"]],
|
|
12
|
+
[e, [{ fn: f, argv: [{ [s]: "IsOAuthEndpoint" }, b] }, c]],
|
|
13
|
+
[e, [{ [s]: "UseDualStack" }, c]],
|
|
14
|
+
[h, [l, "aws-cn"]],
|
|
15
|
+
[h, [m, "us-gov-west-1"]],
|
|
16
|
+
[h, [l, "aws-us-gov"]],
|
|
17
|
+
[e, [{ fn: i, argv: [n, "supportsFIPS"] }, c]],
|
|
18
|
+
[h, [l, "aws-iso"]],
|
|
19
|
+
[h, [l, "aws-iso-b"]],
|
|
20
|
+
[h, [l, "aws-iso-f"]],
|
|
21
|
+
[h, [l, "aws-iso-e"]],
|
|
22
|
+
[h, [l, "aws-eusc"]],
|
|
23
|
+
[e, [{ fn: i, argv: [n, "supportsDualStack"] }, c]]
|
|
23
24
|
],
|
|
24
25
|
results: [
|
|
25
26
|
[a],
|
|
26
|
-
["https://signin.{Region}.api.aws",
|
|
27
|
-
["https://signin.{Region}.api.amazonwebservices.com.cn",
|
|
28
|
-
[
|
|
29
|
-
["
|
|
30
|
-
["https://{Region}.signin.
|
|
31
|
-
["https://{Region}.signin.
|
|
32
|
-
["https://{Region}.signin.
|
|
33
|
-
["https://{Region}.signin.
|
|
34
|
-
["https://{Region}.signin.
|
|
35
|
-
["https://{Region}.signin.
|
|
36
|
-
["https://{Region}.signin.
|
|
37
|
-
["https://signin
|
|
38
|
-
["https://{Region}.signin
|
|
39
|
-
["https://
|
|
27
|
+
["https://signin.{Region}.api.aws", o],
|
|
28
|
+
["https://signin.{Region}.api.amazonwebservices.com.cn", o],
|
|
29
|
+
[j, o],
|
|
30
|
+
[a, "FIPS endpoints are not supported for OAuth operations. Disable FIPS or use a non-OAuth operation."],
|
|
31
|
+
["https://{Region}.oauth.signin.aws", o],
|
|
32
|
+
["https://{Region}.signin.aws.amazon.com", p],
|
|
33
|
+
["https://{Region}.signin.amazonaws.cn", p],
|
|
34
|
+
["https://{Region}.signin.amazonaws-us-gov.com", p],
|
|
35
|
+
["https://{Region}.signin.c2shome.ic.gov", p],
|
|
36
|
+
["https://{Region}.signin.sc2shome.sgov.gov", p],
|
|
37
|
+
["https://{Region}.signin.csphome.hci.ic.gov", p],
|
|
38
|
+
["https://{Region}.signin.csphome.adc-e.uk", p],
|
|
39
|
+
["https://{Region}.signin.amazonaws-eusc.eu", p],
|
|
40
|
+
["https://signin-fips.amazonaws-us-gov.com", p],
|
|
41
|
+
["https://{Region}.signin-fips.amazonaws-us-gov.com", p],
|
|
42
|
+
["https://{Region}.signin.{PartitionResult#dnsSuffix}", p],
|
|
40
43
|
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
41
44
|
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
42
|
-
[
|
|
43
|
-
["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
45
|
+
[k, p],
|
|
46
|
+
["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", p],
|
|
44
47
|
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
45
|
-
["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
48
|
+
["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", p],
|
|
46
49
|
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
47
|
-
[
|
|
50
|
+
[j, p],
|
|
48
51
|
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
49
|
-
["https://signin.{Region}.{PartitionResult#dnsSuffix}",
|
|
52
|
+
["https://signin.{Region}.{PartitionResult#dnsSuffix}", p],
|
|
50
53
|
[a, "Invalid Configuration: Missing Region"]
|
|
51
54
|
]
|
|
52
55
|
};
|
|
@@ -54,37 +57,44 @@ const root = 2;
|
|
|
54
57
|
const r = 100_000_000;
|
|
55
58
|
const nodes = new Int32Array([
|
|
56
59
|
-1, 1, -1,
|
|
57
|
-
0,
|
|
58
|
-
2,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
6, r +
|
|
88
|
-
7, r +
|
|
60
|
+
0, 6, 3,
|
|
61
|
+
2, 36, 4,
|
|
62
|
+
4, 5, r + 27,
|
|
63
|
+
6, r + 4, r + 27,
|
|
64
|
+
1, 29, 7,
|
|
65
|
+
2, 36, 8,
|
|
66
|
+
3, 9, 31,
|
|
67
|
+
4, 22, 10,
|
|
68
|
+
5, 19, 11,
|
|
69
|
+
7, 21, 12,
|
|
70
|
+
8, r + 7, 13,
|
|
71
|
+
10, r + 8, 14,
|
|
72
|
+
12, r + 9, 15,
|
|
73
|
+
13, r + 10, 16,
|
|
74
|
+
14, r + 11, 17,
|
|
75
|
+
15, r + 12, 18,
|
|
76
|
+
16, r + 13, r + 16,
|
|
77
|
+
6, r + 5, 20,
|
|
78
|
+
7, 21, r + 6,
|
|
79
|
+
17, r + 24, r + 25,
|
|
80
|
+
6, r + 4, 23,
|
|
81
|
+
7, 27, 24,
|
|
82
|
+
9, r + 14, 25,
|
|
83
|
+
10, r + 15, 26,
|
|
84
|
+
11, r + 22, r + 23,
|
|
85
|
+
11, 28, r + 21,
|
|
86
|
+
17, r + 20, r + 21,
|
|
87
|
+
2, 35, 30,
|
|
88
|
+
3, 39, 31,
|
|
89
|
+
4, 32, r + 27,
|
|
90
|
+
6, r + 4, 33,
|
|
91
|
+
7, r + 27, 34,
|
|
92
|
+
9, r + 14, r + 27,
|
|
93
|
+
3, 39, 36,
|
|
94
|
+
4, 38, 37,
|
|
95
|
+
7, r + 18, r + 19,
|
|
96
|
+
6, r + 4, r + 17,
|
|
97
|
+
5, r + 1, 40,
|
|
98
|
+
8, r + 2, r + 3,
|
|
89
99
|
]);
|
|
90
100
|
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", "IsControlPlane", "Region", "UseDualStack", "UseFIPS"],
|
|
6
|
+
params: ["Endpoint", "IsControlPlane", "IsOAuthEndpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
7
7
|
});
|
|
8
8
|
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
9
|
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
@@ -9,6 +9,9 @@ const _COATR = "CreateOAuth2TokenRequest";
|
|
|
9
9
|
const _COATRB = "CreateOAuth2TokenRequestBody";
|
|
10
10
|
const _COATRBr = "CreateOAuth2TokenResponseBody";
|
|
11
11
|
const _COATRr = "CreateOAuth2TokenResponse";
|
|
12
|
+
const _COATWIAM = "CreateOAuth2TokenWithIAM";
|
|
13
|
+
const _COATWIAMR = "CreateOAuth2TokenWithIAMRequest";
|
|
14
|
+
const _COATWIAMRr = "CreateOAuth2TokenWithIAMResponse";
|
|
12
15
|
const _DCAC = "DeleteConsoleAuthorizationConfiguration";
|
|
13
16
|
const _DCACI = "DeleteConsoleAuthorizationConfigurationInput";
|
|
14
17
|
const _DCACO = "DeleteConsoleAuthorizationConfigurationOutput";
|
|
@@ -22,10 +25,15 @@ const _GCACO = "GetConsoleAuthorizationConfigurationOutput";
|
|
|
22
25
|
const _GRP = "GetResourcePolicy";
|
|
23
26
|
const _GRPI = "GetResourcePolicyInput";
|
|
24
27
|
const _GRPO = "GetResourcePolicyOutput";
|
|
28
|
+
const _IOATWIAM = "IntrospectOAuth2TokenWithIAM";
|
|
29
|
+
const _IOATWIAMR = "IntrospectOAuth2TokenWithIAMRequest";
|
|
30
|
+
const _IOATWIAMRn = "IntrospectOAuth2TokenWithIAMResponse";
|
|
25
31
|
const _ISE = "InternalServerException";
|
|
32
|
+
const _IT = "IntrospectionToken";
|
|
26
33
|
const _LRPS = "ListResourcePermissionStatements";
|
|
27
34
|
const _LRPSI = "ListResourcePermissionStatementsInput";
|
|
28
35
|
const _LRPSO = "ListResourcePermissionStatementsOutput";
|
|
36
|
+
const _OAAT = "OAuthAccessToken";
|
|
29
37
|
const _P = "Principal";
|
|
30
38
|
const _PCAC = "PutConsoleAuthorizationConfiguration";
|
|
31
39
|
const _PCACI = "PutConsoleAuthorizationConfigurationInput";
|
|
@@ -39,35 +47,52 @@ const _PSSe = "PermissionStatementSummaries";
|
|
|
39
47
|
const _PSo = "PolicyStatements";
|
|
40
48
|
const _R = "Resource";
|
|
41
49
|
const _RNFE = "ResourceNotFoundException";
|
|
50
|
+
const _ROATWIAM = "RevokeOAuth2TokenWithIAM";
|
|
51
|
+
const _ROATWIAMR = "RevokeOAuth2TokenWithIAMRequest";
|
|
52
|
+
const _ROATWIAMRe = "RevokeOAuth2TokenWithIAMResponse";
|
|
42
53
|
const _RT = "RefreshToken";
|
|
54
|
+
const _RTe = "RevocationToken";
|
|
43
55
|
const _S = "Statement";
|
|
44
56
|
const _SQEE = "ServiceQuotaExceededException";
|
|
45
57
|
const _SRBP = "SigninResourceBasedPolicy";
|
|
46
58
|
const _TMRE = "TooManyRequestsError";
|
|
47
59
|
const _V = "Version";
|
|
48
60
|
const _VE = "ValidationException";
|
|
49
|
-
const _a = "
|
|
61
|
+
const _a = "active";
|
|
62
|
+
const _aI = "accountId";
|
|
50
63
|
const _aKI = "accessKeyId";
|
|
51
64
|
const _aT = "accessToken";
|
|
65
|
+
const _ac = "action";
|
|
66
|
+
const _ai = "account_id";
|
|
67
|
+
const _at = "access_token";
|
|
68
|
+
const _au = "aud";
|
|
52
69
|
const _c = "client";
|
|
53
70
|
const _cAE = "consoleAuthorizationEnabled";
|
|
54
71
|
const _cI = "clientId";
|
|
55
72
|
const _cSV = "consoleSourceVpce";
|
|
56
73
|
const _cT = "clientToken";
|
|
57
74
|
const _cV = "codeVerifier";
|
|
75
|
+
const _ci = "client_id";
|
|
58
76
|
const _co = "code";
|
|
59
77
|
const _con = "condition";
|
|
60
78
|
const _e = "error";
|
|
61
79
|
const _eI = "expiresIn";
|
|
62
80
|
const _eP = "excludedPrincipal";
|
|
63
81
|
const _ef = "effect";
|
|
82
|
+
const _ei = "expires_in";
|
|
83
|
+
const _ex = "exp";
|
|
64
84
|
const _gT = "grantType";
|
|
85
|
+
const _gt = "grant_type";
|
|
65
86
|
const _h = "http";
|
|
66
87
|
const _hE = "httpError";
|
|
88
|
+
const _i = "iat";
|
|
67
89
|
const _iT = "idToken";
|
|
90
|
+
const _is = "iss";
|
|
91
|
+
const _j = "jti";
|
|
68
92
|
const _jN = "jsonName";
|
|
69
93
|
const _m = "message";
|
|
70
94
|
const _mR = "maxResults";
|
|
95
|
+
const _n = "nbf";
|
|
71
96
|
const _nT = "nextToken";
|
|
72
97
|
const _p = "principal";
|
|
73
98
|
const _pS = "permissionStatements";
|
|
@@ -80,17 +105,26 @@ const _sAK = "secretAccessKey";
|
|
|
80
105
|
const _sI = "statementId";
|
|
81
106
|
const _sIo = "sourceIp";
|
|
82
107
|
const _sRBP = "signinResourceBasedPolicy";
|
|
108
|
+
const _sS = "signinSession";
|
|
83
109
|
const _sSV = "signinSourceVpce";
|
|
84
110
|
const _sT = "sessionToken";
|
|
85
111
|
const _sV = "sourceVpc";
|
|
86
112
|
const _sc = "scope";
|
|
87
113
|
const _se = "server";
|
|
88
114
|
const _si = "sid";
|
|
115
|
+
const _ss = "signin_session";
|
|
89
116
|
const _st = "statement";
|
|
117
|
+
const _su = "sub";
|
|
118
|
+
const _t = "token";
|
|
90
119
|
const _tI = "tokenInput";
|
|
91
120
|
const _tIa = "targetId";
|
|
92
121
|
const _tO = "tokenOutput";
|
|
93
122
|
const _tT = "tokenType";
|
|
123
|
+
const _tTH = "tokenTypeHint";
|
|
124
|
+
const _tt = "token_type";
|
|
125
|
+
const _tth = "token_type_hint";
|
|
126
|
+
const _uI = "userId";
|
|
127
|
+
const _ui = "user_id";
|
|
94
128
|
const _v = "version";
|
|
95
129
|
const _vSI = "vpcSourceIp";
|
|
96
130
|
const n0 = "com.amazonaws.signin";
|
|
@@ -147,7 +181,10 @@ export const errorTypeRegistries = [
|
|
|
147
181
|
_s_registry,
|
|
148
182
|
n0_registry,
|
|
149
183
|
];
|
|
184
|
+
var IntrospectionToken = [0, n0, _IT, 8, 0];
|
|
185
|
+
var OAuthAccessToken = [0, n0, _OAAT, 8, 0];
|
|
150
186
|
var RefreshToken = [0, n0, _RT, 8, 0];
|
|
187
|
+
var RevocationToken = [0, n0, _RTe, 8, 0];
|
|
151
188
|
export var AccessToken$ = [3, n0, _AT,
|
|
152
189
|
8,
|
|
153
190
|
[_aKI, _sAK, _sT],
|
|
@@ -173,6 +210,16 @@ export var CreateOAuth2TokenResponseBody$ = [3, n0, _COATRBr,
|
|
|
173
210
|
[_aT, _tT, _eI, _rT, _iT],
|
|
174
211
|
[[() => AccessToken$, { [_jN]: _aT }], [0, { [_jN]: _tT }], [1, { [_jN]: _eI }], [() => RefreshToken, { [_jN]: _rT }], [0, { [_jN]: _iT }]], 4
|
|
175
212
|
];
|
|
213
|
+
export var CreateOAuth2TokenWithIAMRequest$ = [3, n0, _COATWIAMR,
|
|
214
|
+
0,
|
|
215
|
+
[_gT, _r],
|
|
216
|
+
[[0, { [_jN]: _gt }], 0], 2
|
|
217
|
+
];
|
|
218
|
+
export var CreateOAuth2TokenWithIAMResponse$ = [3, n0, _COATWIAMRr,
|
|
219
|
+
0,
|
|
220
|
+
[_aT, _tT, _eI],
|
|
221
|
+
[[() => OAuthAccessToken, { [_jN]: _at }], [0, { [_jN]: _tt }], [1, { [_jN]: _ei }]], 3
|
|
222
|
+
];
|
|
176
223
|
export var DeleteConsoleAuthorizationConfigurationInput$ = [3, n0, _DCACI,
|
|
177
224
|
0,
|
|
178
225
|
[_tIa],
|
|
@@ -213,6 +260,16 @@ export var GetResourcePolicyOutput$ = [3, n0, _GRPO,
|
|
|
213
260
|
[_sRBP],
|
|
214
261
|
[[() => SigninResourceBasedPolicy$, 0]], 1
|
|
215
262
|
];
|
|
263
|
+
export var IntrospectOAuth2TokenWithIAMRequest$ = [3, n0, _IOATWIAMR,
|
|
264
|
+
0,
|
|
265
|
+
[_t, _tTH],
|
|
266
|
+
[[() => IntrospectionToken, { [_jN]: _t }], [0, { [_jN]: _tth }]], 1
|
|
267
|
+
];
|
|
268
|
+
export var IntrospectOAuth2TokenWithIAMResponse$ = [3, n0, _IOATWIAMRn,
|
|
269
|
+
0,
|
|
270
|
+
[_a, _cI, _uI, _tT, _ex, _i, _n, _su, _au, _is, _j, _aI, _sS, _r],
|
|
271
|
+
[2, [0, { [_jN]: _ci }], [0, { [_jN]: _ui }], [0, { [_jN]: _tt }], [1, { [_jN]: _ex }], [1, { [_jN]: _i }], [1, { [_jN]: _n }], [0, { [_jN]: _su }], [0, { [_jN]: _au }], [0, { [_jN]: _is }], [0, { [_jN]: _j }], [0, { [_jN]: _ai }], [0, { [_jN]: _ss }], [0, { [_jN]: _r }]], 1
|
|
272
|
+
];
|
|
216
273
|
export var ListResourcePermissionStatementsInput$ = [3, n0, _LRPSI,
|
|
217
274
|
0,
|
|
218
275
|
[_mR, _nT],
|
|
@@ -230,7 +287,7 @@ export var PermissionStatementSummary$ = [3, n0, _PSS,
|
|
|
230
287
|
];
|
|
231
288
|
export var PolicyStatement$ = [3, n0, _PS,
|
|
232
289
|
0,
|
|
233
|
-
[_ef, _p,
|
|
290
|
+
[_ef, _p, _ac, _r, _con],
|
|
234
291
|
[[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 }]]
|
|
235
292
|
];
|
|
236
293
|
export var PutConsoleAuthorizationConfigurationInput$ = [3, n0, _PCACI,
|
|
@@ -253,6 +310,16 @@ export var PutResourcePermissionStatementOutput$ = [3, n0, _PRPSO,
|
|
|
253
310
|
[_sI],
|
|
254
311
|
[0], 1
|
|
255
312
|
];
|
|
313
|
+
export var RevokeOAuth2TokenWithIAMRequest$ = [3, n0, _ROATWIAMR,
|
|
314
|
+
0,
|
|
315
|
+
[_t],
|
|
316
|
+
[[() => RevocationToken, { [_jN]: _t }]], 1
|
|
317
|
+
];
|
|
318
|
+
export var RevokeOAuth2TokenWithIAMResponse$ = [3, n0, _ROATWIAMRe,
|
|
319
|
+
0,
|
|
320
|
+
[],
|
|
321
|
+
[]
|
|
322
|
+
];
|
|
256
323
|
export var SigninResourceBasedPolicy$ = [3, n0, _SRBP,
|
|
257
324
|
0,
|
|
258
325
|
[_v, _st],
|
|
@@ -277,6 +344,9 @@ var Principal = 128 | 0;
|
|
|
277
344
|
export var CreateOAuth2Token$ = [9, n0, _COAT,
|
|
278
345
|
{ [_h]: ["POST", "/v1/token", 200] }, () => CreateOAuth2TokenRequest$, () => CreateOAuth2TokenResponse$
|
|
279
346
|
];
|
|
347
|
+
export var CreateOAuth2TokenWithIAM$ = [9, n0, _COATWIAM,
|
|
348
|
+
{ [_h]: ["POST", "/v1/token?x-amz-client-auth-method=iam", 200] }, () => CreateOAuth2TokenWithIAMRequest$, () => CreateOAuth2TokenWithIAMResponse$
|
|
349
|
+
];
|
|
280
350
|
export var DeleteConsoleAuthorizationConfiguration$ = [9, n0, _DCAC,
|
|
281
351
|
{ [_h]: ["POST", "/delete-console-authorization-configuration", 200] }, () => DeleteConsoleAuthorizationConfigurationInput$, () => DeleteConsoleAuthorizationConfigurationOutput$
|
|
282
352
|
];
|
|
@@ -289,6 +359,9 @@ export var GetConsoleAuthorizationConfiguration$ = [9, n0, _GCAC,
|
|
|
289
359
|
export var GetResourcePolicy$ = [9, n0, _GRP,
|
|
290
360
|
{ [_h]: ["POST", "/get-resource-policy", 200] }, () => GetResourcePolicyInput$, () => GetResourcePolicyOutput$
|
|
291
361
|
];
|
|
362
|
+
export var IntrospectOAuth2TokenWithIAM$ = [9, n0, _IOATWIAM,
|
|
363
|
+
{ [_h]: ["POST", "/v1/introspect?x-amz-client-auth-method=iam", 200] }, () => IntrospectOAuth2TokenWithIAMRequest$, () => IntrospectOAuth2TokenWithIAMResponse$
|
|
364
|
+
];
|
|
292
365
|
export var ListResourcePermissionStatements$ = [9, n0, _LRPS,
|
|
293
366
|
{ [_h]: ["POST", "/list-resource-permission-statements", 200] }, () => ListResourcePermissionStatementsInput$, () => ListResourcePermissionStatementsOutput$
|
|
294
367
|
];
|
|
@@ -298,3 +371,6 @@ export var PutConsoleAuthorizationConfiguration$ = [9, n0, _PCAC,
|
|
|
298
371
|
export var PutResourcePermissionStatement$ = [9, n0, _PRPS,
|
|
299
372
|
{ [_h]: ["POST", "/put-resource-permission-statement", 200] }, () => PutResourcePermissionStatementInput$, () => PutResourcePermissionStatementOutput$
|
|
300
373
|
];
|
|
374
|
+
export var RevokeOAuth2TokenWithIAM$ = [9, n0, _ROATWIAM,
|
|
375
|
+
{ [_h]: ["POST", "/v1/revoke?x-amz-client-auth-method=iam", 200] }, () => RevokeOAuth2TokenWithIAMRequest$, () => RevokeOAuth2TokenWithIAMResponse$
|
|
376
|
+
];
|
package/dist-types/Signin.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
|
|
2
2
|
import { type CreateOAuth2TokenCommandInput, type CreateOAuth2TokenCommandOutput } from "./commands/CreateOAuth2TokenCommand";
|
|
3
|
+
import { type CreateOAuth2TokenWithIAMCommandInput, type CreateOAuth2TokenWithIAMCommandOutput } from "./commands/CreateOAuth2TokenWithIAMCommand";
|
|
3
4
|
import { type DeleteConsoleAuthorizationConfigurationCommandInput, type DeleteConsoleAuthorizationConfigurationCommandOutput } from "./commands/DeleteConsoleAuthorizationConfigurationCommand";
|
|
4
5
|
import { type DeleteResourcePermissionStatementCommandInput, type DeleteResourcePermissionStatementCommandOutput } from "./commands/DeleteResourcePermissionStatementCommand";
|
|
5
6
|
import { type GetConsoleAuthorizationConfigurationCommandInput, type GetConsoleAuthorizationConfigurationCommandOutput } from "./commands/GetConsoleAuthorizationConfigurationCommand";
|
|
6
7
|
import { type GetResourcePolicyCommandInput, type GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
|
|
8
|
+
import { type IntrospectOAuth2TokenWithIAMCommandInput, type IntrospectOAuth2TokenWithIAMCommandOutput } from "./commands/IntrospectOAuth2TokenWithIAMCommand";
|
|
7
9
|
import { type ListResourcePermissionStatementsCommandInput, type ListResourcePermissionStatementsCommandOutput } from "./commands/ListResourcePermissionStatementsCommand";
|
|
8
10
|
import { type PutConsoleAuthorizationConfigurationCommandInput, type PutConsoleAuthorizationConfigurationCommandOutput } from "./commands/PutConsoleAuthorizationConfigurationCommand";
|
|
9
11
|
import { type PutResourcePermissionStatementCommandInput, type PutResourcePermissionStatementCommandOutput } from "./commands/PutResourcePermissionStatementCommand";
|
|
12
|
+
import { type RevokeOAuth2TokenWithIAMCommandInput, type RevokeOAuth2TokenWithIAMCommandOutput } from "./commands/RevokeOAuth2TokenWithIAMCommand";
|
|
10
13
|
import { SigninClient } from "./SigninClient";
|
|
11
14
|
export interface Signin {
|
|
12
15
|
/**
|
|
@@ -15,6 +18,12 @@ export interface Signin {
|
|
|
15
18
|
createOAuth2Token(args: CreateOAuth2TokenCommandInput, options?: __HttpHandlerOptions): Promise<CreateOAuth2TokenCommandOutput>;
|
|
16
19
|
createOAuth2Token(args: CreateOAuth2TokenCommandInput, cb: (err: any, data?: CreateOAuth2TokenCommandOutput) => void): void;
|
|
17
20
|
createOAuth2Token(args: CreateOAuth2TokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateOAuth2TokenCommandOutput) => void): void;
|
|
21
|
+
/**
|
|
22
|
+
* @see {@link CreateOAuth2TokenWithIAMCommand}
|
|
23
|
+
*/
|
|
24
|
+
createOAuth2TokenWithIAM(args: CreateOAuth2TokenWithIAMCommandInput, options?: __HttpHandlerOptions): Promise<CreateOAuth2TokenWithIAMCommandOutput>;
|
|
25
|
+
createOAuth2TokenWithIAM(args: CreateOAuth2TokenWithIAMCommandInput, cb: (err: any, data?: CreateOAuth2TokenWithIAMCommandOutput) => void): void;
|
|
26
|
+
createOAuth2TokenWithIAM(args: CreateOAuth2TokenWithIAMCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateOAuth2TokenWithIAMCommandOutput) => void): void;
|
|
18
27
|
/**
|
|
19
28
|
* @see {@link DeleteConsoleAuthorizationConfigurationCommand}
|
|
20
29
|
*/
|
|
@@ -42,6 +51,12 @@ export interface Signin {
|
|
|
42
51
|
getResourcePolicy(args: GetResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetResourcePolicyCommandOutput>;
|
|
43
52
|
getResourcePolicy(args: GetResourcePolicyCommandInput, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
|
|
44
53
|
getResourcePolicy(args: GetResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
|
|
54
|
+
/**
|
|
55
|
+
* @see {@link IntrospectOAuth2TokenWithIAMCommand}
|
|
56
|
+
*/
|
|
57
|
+
introspectOAuth2TokenWithIAM(args: IntrospectOAuth2TokenWithIAMCommandInput, options?: __HttpHandlerOptions): Promise<IntrospectOAuth2TokenWithIAMCommandOutput>;
|
|
58
|
+
introspectOAuth2TokenWithIAM(args: IntrospectOAuth2TokenWithIAMCommandInput, cb: (err: any, data?: IntrospectOAuth2TokenWithIAMCommandOutput) => void): void;
|
|
59
|
+
introspectOAuth2TokenWithIAM(args: IntrospectOAuth2TokenWithIAMCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: IntrospectOAuth2TokenWithIAMCommandOutput) => void): void;
|
|
45
60
|
/**
|
|
46
61
|
* @see {@link ListResourcePermissionStatementsCommand}
|
|
47
62
|
*/
|
|
@@ -63,6 +78,12 @@ export interface Signin {
|
|
|
63
78
|
putResourcePermissionStatement(args: PutResourcePermissionStatementCommandInput, options?: __HttpHandlerOptions): Promise<PutResourcePermissionStatementCommandOutput>;
|
|
64
79
|
putResourcePermissionStatement(args: PutResourcePermissionStatementCommandInput, cb: (err: any, data?: PutResourcePermissionStatementCommandOutput) => void): void;
|
|
65
80
|
putResourcePermissionStatement(args: PutResourcePermissionStatementCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutResourcePermissionStatementCommandOutput) => void): void;
|
|
81
|
+
/**
|
|
82
|
+
* @see {@link RevokeOAuth2TokenWithIAMCommand}
|
|
83
|
+
*/
|
|
84
|
+
revokeOAuth2TokenWithIAM(args: RevokeOAuth2TokenWithIAMCommandInput, options?: __HttpHandlerOptions): Promise<RevokeOAuth2TokenWithIAMCommandOutput>;
|
|
85
|
+
revokeOAuth2TokenWithIAM(args: RevokeOAuth2TokenWithIAMCommandInput, cb: (err: any, data?: RevokeOAuth2TokenWithIAMCommandOutput) => void): void;
|
|
86
|
+
revokeOAuth2TokenWithIAM(args: RevokeOAuth2TokenWithIAMCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RevokeOAuth2TokenWithIAMCommandOutput) => void): void;
|
|
66
87
|
/**
|
|
67
88
|
* @see {@link ListResourcePermissionStatementsCommand}
|
|
68
89
|
* @param args - command input.
|
|
@@ -7,24 +7,27 @@ import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/re
|
|
|
7
7
|
import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
8
8
|
import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
9
9
|
import type { CreateOAuth2TokenCommandInput, CreateOAuth2TokenCommandOutput } from "./commands/CreateOAuth2TokenCommand";
|
|
10
|
+
import type { CreateOAuth2TokenWithIAMCommandInput, CreateOAuth2TokenWithIAMCommandOutput } from "./commands/CreateOAuth2TokenWithIAMCommand";
|
|
10
11
|
import type { DeleteConsoleAuthorizationConfigurationCommandInput, DeleteConsoleAuthorizationConfigurationCommandOutput } from "./commands/DeleteConsoleAuthorizationConfigurationCommand";
|
|
11
12
|
import type { DeleteResourcePermissionStatementCommandInput, DeleteResourcePermissionStatementCommandOutput } from "./commands/DeleteResourcePermissionStatementCommand";
|
|
12
13
|
import type { GetConsoleAuthorizationConfigurationCommandInput, GetConsoleAuthorizationConfigurationCommandOutput } from "./commands/GetConsoleAuthorizationConfigurationCommand";
|
|
13
14
|
import type { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
|
|
15
|
+
import type { IntrospectOAuth2TokenWithIAMCommandInput, IntrospectOAuth2TokenWithIAMCommandOutput } from "./commands/IntrospectOAuth2TokenWithIAMCommand";
|
|
14
16
|
import type { ListResourcePermissionStatementsCommandInput, ListResourcePermissionStatementsCommandOutput } from "./commands/ListResourcePermissionStatementsCommand";
|
|
15
17
|
import type { PutConsoleAuthorizationConfigurationCommandInput, PutConsoleAuthorizationConfigurationCommandOutput } from "./commands/PutConsoleAuthorizationConfigurationCommand";
|
|
16
18
|
import type { PutResourcePermissionStatementCommandInput, PutResourcePermissionStatementCommandOutput } from "./commands/PutResourcePermissionStatementCommand";
|
|
19
|
+
import type { RevokeOAuth2TokenWithIAMCommandInput, RevokeOAuth2TokenWithIAMCommandOutput } from "./commands/RevokeOAuth2TokenWithIAMCommand";
|
|
17
20
|
import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
|
|
18
21
|
import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
19
22
|
export { __Client };
|
|
20
23
|
/**
|
|
21
24
|
* @public
|
|
22
25
|
*/
|
|
23
|
-
export type ServiceInputTypes = CreateOAuth2TokenCommandInput | DeleteConsoleAuthorizationConfigurationCommandInput | DeleteResourcePermissionStatementCommandInput | GetConsoleAuthorizationConfigurationCommandInput | GetResourcePolicyCommandInput | ListResourcePermissionStatementsCommandInput | PutConsoleAuthorizationConfigurationCommandInput | PutResourcePermissionStatementCommandInput;
|
|
26
|
+
export type ServiceInputTypes = CreateOAuth2TokenCommandInput | CreateOAuth2TokenWithIAMCommandInput | DeleteConsoleAuthorizationConfigurationCommandInput | DeleteResourcePermissionStatementCommandInput | GetConsoleAuthorizationConfigurationCommandInput | GetResourcePolicyCommandInput | IntrospectOAuth2TokenWithIAMCommandInput | ListResourcePermissionStatementsCommandInput | PutConsoleAuthorizationConfigurationCommandInput | PutResourcePermissionStatementCommandInput | RevokeOAuth2TokenWithIAMCommandInput;
|
|
24
27
|
/**
|
|
25
28
|
* @public
|
|
26
29
|
*/
|
|
27
|
-
export type ServiceOutputTypes = CreateOAuth2TokenCommandOutput | DeleteConsoleAuthorizationConfigurationCommandOutput | DeleteResourcePermissionStatementCommandOutput | GetConsoleAuthorizationConfigurationCommandOutput | GetResourcePolicyCommandOutput | ListResourcePermissionStatementsCommandOutput | PutConsoleAuthorizationConfigurationCommandOutput | PutResourcePermissionStatementCommandOutput;
|
|
30
|
+
export type ServiceOutputTypes = CreateOAuth2TokenCommandOutput | CreateOAuth2TokenWithIAMCommandOutput | DeleteConsoleAuthorizationConfigurationCommandOutput | DeleteResourcePermissionStatementCommandOutput | GetConsoleAuthorizationConfigurationCommandOutput | GetResourcePolicyCommandOutput | IntrospectOAuth2TokenWithIAMCommandOutput | ListResourcePermissionStatementsCommandOutput | PutConsoleAuthorizationConfigurationCommandOutput | PutResourcePermissionStatementCommandOutput | RevokeOAuth2TokenWithIAMCommandOutput;
|
|
28
31
|
/**
|
|
29
32
|
* @public
|
|
30
33
|
*/
|
|
@@ -16,6 +16,10 @@ export declare const _ep0: EndpointParameterInstructions;
|
|
|
16
16
|
* @internal
|
|
17
17
|
*/
|
|
18
18
|
export declare const _ep1: EndpointParameterInstructions;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export declare const _ep2: EndpointParameterInstructions;
|
|
19
23
|
/**
|
|
20
24
|
* @internal
|
|
21
25
|
*/
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { CreateOAuth2TokenWithIAMRequest, CreateOAuth2TokenWithIAMResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link CreateOAuth2TokenWithIAMCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface CreateOAuth2TokenWithIAMCommandInput extends CreateOAuth2TokenWithIAMRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link CreateOAuth2TokenWithIAMCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateOAuth2TokenWithIAMCommandOutput extends CreateOAuth2TokenWithIAMResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const CreateOAuth2TokenWithIAMCommand_base: {
|
|
22
|
+
new (input: CreateOAuth2TokenWithIAMCommandInput): import("@smithy/core/client").CommandImpl<CreateOAuth2TokenWithIAMCommandInput, CreateOAuth2TokenWithIAMCommandOutput, import("..").SigninClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: CreateOAuth2TokenWithIAMCommandInput): import("@smithy/core/client").CommandImpl<CreateOAuth2TokenWithIAMCommandInput, CreateOAuth2TokenWithIAMCommandOutput, import("..").SigninClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Grants permission to exchange client credentials for an OAuth 2.0 access token
|
|
28
|
+
* scoped to a resource that can be used to access AWS services from applications
|
|
29
|
+
* @example
|
|
30
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
+
* ```javascript
|
|
32
|
+
* import { SigninClient, CreateOAuth2TokenWithIAMCommand } from "@aws-sdk/client-signin"; // ES Modules import
|
|
33
|
+
* // const { SigninClient, CreateOAuth2TokenWithIAMCommand } = require("@aws-sdk/client-signin"); // CommonJS import
|
|
34
|
+
* // import type { SigninClientConfig } from "@aws-sdk/client-signin";
|
|
35
|
+
* const config = {}; // type is SigninClientConfig
|
|
36
|
+
* const client = new SigninClient(config);
|
|
37
|
+
* const input = { // CreateOAuth2TokenWithIAMRequest
|
|
38
|
+
* grantType: "STRING_VALUE", // required
|
|
39
|
+
* resource: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new CreateOAuth2TokenWithIAMCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // CreateOAuth2TokenWithIAMResponse
|
|
44
|
+
* // accessToken: "STRING_VALUE", // required
|
|
45
|
+
* // tokenType: "STRING_VALUE", // required
|
|
46
|
+
* // expiresIn: Number("int"), // required
|
|
47
|
+
* // };
|
|
48
|
+
*
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param CreateOAuth2TokenWithIAMCommandInput - {@link CreateOAuth2TokenWithIAMCommandInput}
|
|
52
|
+
* @returns {@link CreateOAuth2TokenWithIAMCommandOutput}
|
|
53
|
+
* @see {@link CreateOAuth2TokenWithIAMCommandInput} for command's `input` shape.
|
|
54
|
+
* @see {@link CreateOAuth2TokenWithIAMCommandOutput} for command's `response` shape.
|
|
55
|
+
* @see {@link SigninClientResolvedConfig | config} for SigninClient's `config` shape.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
58
|
+
* Error thrown for access denied scenarios with flexible HTTP status mapping
|
|
59
|
+
*
|
|
60
|
+
* Runtime HTTP Status Code Mapping:
|
|
61
|
+
* - HTTP 401 (Unauthorized): TOKEN_EXPIRED, AUTHCODE_EXPIRED
|
|
62
|
+
* - HTTP 403 (Forbidden): USER_CREDENTIALS_CHANGED, INSUFFICIENT_PERMISSIONS
|
|
63
|
+
*
|
|
64
|
+
* The specific HTTP status code is determined at runtime based on the error enum value.
|
|
65
|
+
* Consumers should use the error field to determine the specific access denial reason.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link InternalServerException} (server fault)
|
|
68
|
+
* Error thrown when an internal server error occurs
|
|
69
|
+
*
|
|
70
|
+
* HTTP Status Code: 500 Internal Server Error
|
|
71
|
+
*
|
|
72
|
+
* Used for unexpected server-side errors that prevent request processing.
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link TooManyRequestsError} (client fault)
|
|
75
|
+
* Error thrown when rate limit is exceeded
|
|
76
|
+
*
|
|
77
|
+
* HTTP Status Code: 429 Too Many Requests
|
|
78
|
+
*
|
|
79
|
+
* Possible OAuth2ErrorCode values:
|
|
80
|
+
* - INVALID_REQUEST: Rate limiting, too many requests, abuse prevention
|
|
81
|
+
*
|
|
82
|
+
* Possible causes:
|
|
83
|
+
* - Too many token requests from the same client
|
|
84
|
+
* - Rate limiting based on client_id or IP address
|
|
85
|
+
* - Abuse prevention mechanisms triggered
|
|
86
|
+
* - Service protection against excessive token generation
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ValidationException} (client fault)
|
|
89
|
+
* Error thrown when request validation fails
|
|
90
|
+
*
|
|
91
|
+
* HTTP Status Code: 400 Bad Request
|
|
92
|
+
*
|
|
93
|
+
* Used for request validation errors such as malformed parameters,
|
|
94
|
+
* missing required fields, or invalid parameter values.
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link SigninServiceException}
|
|
97
|
+
* <p>Base exception class for all service exceptions from Signin service.</p>
|
|
98
|
+
*
|
|
99
|
+
*
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
102
|
+
export declare class CreateOAuth2TokenWithIAMCommand extends CreateOAuth2TokenWithIAMCommand_base {
|
|
103
|
+
/** @internal type navigation helper, not in runtime. */
|
|
104
|
+
protected static __types: {
|
|
105
|
+
api: {
|
|
106
|
+
input: CreateOAuth2TokenWithIAMRequest;
|
|
107
|
+
output: CreateOAuth2TokenWithIAMResponse;
|
|
108
|
+
};
|
|
109
|
+
sdk: {
|
|
110
|
+
input: CreateOAuth2TokenWithIAMCommandInput;
|
|
111
|
+
output: CreateOAuth2TokenWithIAMCommandOutput;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
}
|