@aws-sdk/client-sso 3.131.0 → 3.142.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/CHANGELOG.md +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/GetRoleCredentialsCommand.js +2 -2
- package/dist-cjs/commands/ListAccountRolesCommand.js +2 -2
- package/dist-cjs/commands/ListAccountsCommand.js +2 -2
- package/dist-cjs/commands/LogoutCommand.js +1 -1
- package/dist-cjs/models/models_0.js +48 -68
- package/dist-cjs/protocols/Aws_restJson1.js +71 -87
- package/dist-es/commands/GetRoleCredentialsCommand.js +3 -3
- package/dist-es/commands/ListAccountRolesCommand.js +3 -3
- package/dist-es/commands/ListAccountsCommand.js +3 -3
- package/dist-es/commands/LogoutCommand.js +2 -2
- package/dist-es/models/models_0.js +10 -40
- package/dist-es/protocols/Aws_restJson1.js +84 -70
- package/dist-types/models/models_0.d.ts +40 -60
- package/dist-types/ts3.4/models/models_0.d.ts +20 -40
- package/package.json +4 -4
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
import { __assign, __extends } from "tslib";
|
|
2
2
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { SSOServiceException as __BaseException } from "./SSOServiceException";
|
|
4
|
-
export var AccountInfo;
|
|
5
|
-
(function (AccountInfo) {
|
|
6
|
-
AccountInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
7
|
-
})(AccountInfo || (AccountInfo = {}));
|
|
8
|
-
export var GetRoleCredentialsRequest;
|
|
9
|
-
(function (GetRoleCredentialsRequest) {
|
|
10
|
-
GetRoleCredentialsRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
|
|
11
|
-
})(GetRoleCredentialsRequest || (GetRoleCredentialsRequest = {}));
|
|
12
|
-
export var RoleCredentials;
|
|
13
|
-
(function (RoleCredentials) {
|
|
14
|
-
RoleCredentials.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.secretAccessKey && { secretAccessKey: SENSITIVE_STRING })), (obj.sessionToken && { sessionToken: SENSITIVE_STRING }))); };
|
|
15
|
-
})(RoleCredentials || (RoleCredentials = {}));
|
|
16
|
-
export var GetRoleCredentialsResponse;
|
|
17
|
-
(function (GetRoleCredentialsResponse) {
|
|
18
|
-
GetRoleCredentialsResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.roleCredentials && { roleCredentials: RoleCredentials.filterSensitiveLog(obj.roleCredentials) }))); };
|
|
19
|
-
})(GetRoleCredentialsResponse || (GetRoleCredentialsResponse = {}));
|
|
20
4
|
var InvalidRequestException = (function (_super) {
|
|
21
5
|
__extends(InvalidRequestException, _super);
|
|
22
6
|
function InvalidRequestException(opts) {
|
|
@@ -65,27 +49,13 @@ var UnauthorizedException = (function (_super) {
|
|
|
65
49
|
return UnauthorizedException;
|
|
66
50
|
}(__BaseException));
|
|
67
51
|
export { UnauthorizedException };
|
|
68
|
-
export var
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
export var
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
export var
|
|
77
|
-
|
|
78
|
-
ListAccountRolesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
79
|
-
})(ListAccountRolesResponse || (ListAccountRolesResponse = {}));
|
|
80
|
-
export var ListAccountsRequest;
|
|
81
|
-
(function (ListAccountsRequest) {
|
|
82
|
-
ListAccountsRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
|
|
83
|
-
})(ListAccountsRequest || (ListAccountsRequest = {}));
|
|
84
|
-
export var ListAccountsResponse;
|
|
85
|
-
(function (ListAccountsResponse) {
|
|
86
|
-
ListAccountsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
87
|
-
})(ListAccountsResponse || (ListAccountsResponse = {}));
|
|
88
|
-
export var LogoutRequest;
|
|
89
|
-
(function (LogoutRequest) {
|
|
90
|
-
LogoutRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
|
|
91
|
-
})(LogoutRequest || (LogoutRequest = {}));
|
|
52
|
+
export var AccountInfoFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
53
|
+
export var GetRoleCredentialsRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
|
|
54
|
+
export var RoleCredentialsFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.secretAccessKey && { secretAccessKey: SENSITIVE_STRING })), (obj.sessionToken && { sessionToken: SENSITIVE_STRING }))); };
|
|
55
|
+
export var GetRoleCredentialsResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.roleCredentials && { roleCredentials: RoleCredentialsFilterSensitiveLog(obj.roleCredentials) }))); };
|
|
56
|
+
export var ListAccountRolesRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
|
|
57
|
+
export var RoleInfoFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
58
|
+
export var ListAccountRolesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
59
|
+
export var ListAccountsRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
|
|
60
|
+
export var ListAccountsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
61
|
+
export var LogoutRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, UnauthorizedException, } from "../models/models_0";
|
|
5
5
|
import { SSOServiceException as __BaseException } from "../models/SSOServiceException";
|
|
6
6
|
export var serializeAws_restJson1GetRoleCredentialsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -10,9 +10,14 @@ export var serializeAws_restJson1GetRoleCredentialsCommand = function (input, co
|
|
|
10
10
|
case 0: return [4, context.endpoint()];
|
|
11
11
|
case 1:
|
|
12
12
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
13
|
-
headers =
|
|
13
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
14
|
+
"x-amz-sso_bearer_token": input.accessToken,
|
|
15
|
+
});
|
|
14
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/federation/credentials";
|
|
15
|
-
query =
|
|
17
|
+
query = map({
|
|
18
|
+
role_name: [, input.roleName],
|
|
19
|
+
account_id: [, input.accountId],
|
|
20
|
+
});
|
|
16
21
|
return [2, new __HttpRequest({
|
|
17
22
|
protocol: protocol,
|
|
18
23
|
hostname: hostname,
|
|
@@ -33,9 +38,15 @@ export var serializeAws_restJson1ListAccountRolesCommand = function (input, cont
|
|
|
33
38
|
case 0: return [4, context.endpoint()];
|
|
34
39
|
case 1:
|
|
35
40
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
36
|
-
headers =
|
|
41
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
42
|
+
"x-amz-sso_bearer_token": input.accessToken,
|
|
43
|
+
});
|
|
37
44
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assignment/roles";
|
|
38
|
-
query =
|
|
45
|
+
query = map({
|
|
46
|
+
next_token: [, input.nextToken],
|
|
47
|
+
max_result: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
48
|
+
account_id: [, input.accountId],
|
|
49
|
+
});
|
|
39
50
|
return [2, new __HttpRequest({
|
|
40
51
|
protocol: protocol,
|
|
41
52
|
hostname: hostname,
|
|
@@ -56,9 +67,14 @@ export var serializeAws_restJson1ListAccountsCommand = function (input, context)
|
|
|
56
67
|
case 0: return [4, context.endpoint()];
|
|
57
68
|
case 1:
|
|
58
69
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
59
|
-
headers =
|
|
70
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
71
|
+
"x-amz-sso_bearer_token": input.accessToken,
|
|
72
|
+
});
|
|
60
73
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/assignment/accounts";
|
|
61
|
-
query =
|
|
74
|
+
query = map({
|
|
75
|
+
next_token: [, input.nextToken],
|
|
76
|
+
max_result: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
77
|
+
});
|
|
62
78
|
return [2, new __HttpRequest({
|
|
63
79
|
protocol: protocol,
|
|
64
80
|
hostname: hostname,
|
|
@@ -79,7 +95,9 @@ export var serializeAws_restJson1LogoutCommand = function (input, context) { ret
|
|
|
79
95
|
case 0: return [4, context.endpoint()];
|
|
80
96
|
case 1:
|
|
81
97
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
82
|
-
headers =
|
|
98
|
+
headers = map({}, isSerializableHeaderValue, {
|
|
99
|
+
"x-amz-sso_bearer_token": input.accessToken,
|
|
100
|
+
});
|
|
83
101
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/logout";
|
|
84
102
|
return [2, new __HttpRequest({
|
|
85
103
|
protocol: protocol,
|
|
@@ -101,24 +119,23 @@ export var deserializeAws_restJson1GetRoleCredentialsCommand = function (output,
|
|
|
101
119
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
102
120
|
return [2, deserializeAws_restJson1GetRoleCredentialsCommandError(output, context)];
|
|
103
121
|
}
|
|
104
|
-
contents = {
|
|
122
|
+
contents = map({
|
|
105
123
|
$metadata: deserializeMetadata(output),
|
|
106
|
-
|
|
107
|
-
};
|
|
124
|
+
});
|
|
108
125
|
_a = __expectNonNull;
|
|
109
126
|
_b = __expectObject;
|
|
110
127
|
return [4, parseBody(output.body, context)];
|
|
111
128
|
case 1:
|
|
112
129
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
113
|
-
if (data.roleCredentials
|
|
130
|
+
if (data.roleCredentials != null) {
|
|
114
131
|
contents.roleCredentials = deserializeAws_restJson1RoleCredentials(data.roleCredentials, context);
|
|
115
132
|
}
|
|
116
|
-
return [2,
|
|
133
|
+
return [2, contents];
|
|
117
134
|
}
|
|
118
135
|
});
|
|
119
136
|
}); };
|
|
120
137
|
var deserializeAws_restJson1GetRoleCredentialsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
121
|
-
var parsedOutput, _a,
|
|
138
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
122
139
|
var _c;
|
|
123
140
|
return __generator(this, function (_d) {
|
|
124
141
|
switch (_d.label) {
|
|
@@ -151,14 +168,14 @@ var deserializeAws_restJson1GetRoleCredentialsCommandError = function (output, c
|
|
|
151
168
|
case 9: throw _d.sent();
|
|
152
169
|
case 10:
|
|
153
170
|
parsedBody = parsedOutput.body;
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
$metadata: $metadata,
|
|
171
|
+
throwDefaultError({
|
|
172
|
+
output: output,
|
|
173
|
+
parsedBody: parsedBody,
|
|
174
|
+
exceptionCtor: __BaseException,
|
|
175
|
+
errorCode: errorCode,
|
|
160
176
|
});
|
|
161
|
-
|
|
177
|
+
_d.label = 11;
|
|
178
|
+
case 11: return [2];
|
|
162
179
|
}
|
|
163
180
|
});
|
|
164
181
|
}); };
|
|
@@ -170,28 +187,26 @@ export var deserializeAws_restJson1ListAccountRolesCommand = function (output, c
|
|
|
170
187
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
171
188
|
return [2, deserializeAws_restJson1ListAccountRolesCommandError(output, context)];
|
|
172
189
|
}
|
|
173
|
-
contents = {
|
|
190
|
+
contents = map({
|
|
174
191
|
$metadata: deserializeMetadata(output),
|
|
175
|
-
|
|
176
|
-
roleList: undefined,
|
|
177
|
-
};
|
|
192
|
+
});
|
|
178
193
|
_a = __expectNonNull;
|
|
179
194
|
_b = __expectObject;
|
|
180
195
|
return [4, parseBody(output.body, context)];
|
|
181
196
|
case 1:
|
|
182
197
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
183
|
-
if (data.nextToken
|
|
198
|
+
if (data.nextToken != null) {
|
|
184
199
|
contents.nextToken = __expectString(data.nextToken);
|
|
185
200
|
}
|
|
186
|
-
if (data.roleList
|
|
201
|
+
if (data.roleList != null) {
|
|
187
202
|
contents.roleList = deserializeAws_restJson1RoleListType(data.roleList, context);
|
|
188
203
|
}
|
|
189
|
-
return [2,
|
|
204
|
+
return [2, contents];
|
|
190
205
|
}
|
|
191
206
|
});
|
|
192
207
|
}); };
|
|
193
208
|
var deserializeAws_restJson1ListAccountRolesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
194
|
-
var parsedOutput, _a,
|
|
209
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
195
210
|
var _c;
|
|
196
211
|
return __generator(this, function (_d) {
|
|
197
212
|
switch (_d.label) {
|
|
@@ -224,14 +239,14 @@ var deserializeAws_restJson1ListAccountRolesCommandError = function (output, con
|
|
|
224
239
|
case 9: throw _d.sent();
|
|
225
240
|
case 10:
|
|
226
241
|
parsedBody = parsedOutput.body;
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
$metadata: $metadata,
|
|
242
|
+
throwDefaultError({
|
|
243
|
+
output: output,
|
|
244
|
+
parsedBody: parsedBody,
|
|
245
|
+
exceptionCtor: __BaseException,
|
|
246
|
+
errorCode: errorCode,
|
|
233
247
|
});
|
|
234
|
-
|
|
248
|
+
_d.label = 11;
|
|
249
|
+
case 11: return [2];
|
|
235
250
|
}
|
|
236
251
|
});
|
|
237
252
|
}); };
|
|
@@ -243,28 +258,26 @@ export var deserializeAws_restJson1ListAccountsCommand = function (output, conte
|
|
|
243
258
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
244
259
|
return [2, deserializeAws_restJson1ListAccountsCommandError(output, context)];
|
|
245
260
|
}
|
|
246
|
-
contents = {
|
|
261
|
+
contents = map({
|
|
247
262
|
$metadata: deserializeMetadata(output),
|
|
248
|
-
|
|
249
|
-
nextToken: undefined,
|
|
250
|
-
};
|
|
263
|
+
});
|
|
251
264
|
_a = __expectNonNull;
|
|
252
265
|
_b = __expectObject;
|
|
253
266
|
return [4, parseBody(output.body, context)];
|
|
254
267
|
case 1:
|
|
255
268
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
256
|
-
if (data.accountList
|
|
269
|
+
if (data.accountList != null) {
|
|
257
270
|
contents.accountList = deserializeAws_restJson1AccountListType(data.accountList, context);
|
|
258
271
|
}
|
|
259
|
-
if (data.nextToken
|
|
272
|
+
if (data.nextToken != null) {
|
|
260
273
|
contents.nextToken = __expectString(data.nextToken);
|
|
261
274
|
}
|
|
262
|
-
return [2,
|
|
275
|
+
return [2, contents];
|
|
263
276
|
}
|
|
264
277
|
});
|
|
265
278
|
}); };
|
|
266
279
|
var deserializeAws_restJson1ListAccountsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
267
|
-
var parsedOutput, _a,
|
|
280
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
268
281
|
var _c;
|
|
269
282
|
return __generator(this, function (_d) {
|
|
270
283
|
switch (_d.label) {
|
|
@@ -297,14 +310,14 @@ var deserializeAws_restJson1ListAccountsCommandError = function (output, context
|
|
|
297
310
|
case 9: throw _d.sent();
|
|
298
311
|
case 10:
|
|
299
312
|
parsedBody = parsedOutput.body;
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
$metadata: $metadata,
|
|
313
|
+
throwDefaultError({
|
|
314
|
+
output: output,
|
|
315
|
+
parsedBody: parsedBody,
|
|
316
|
+
exceptionCtor: __BaseException,
|
|
317
|
+
errorCode: errorCode,
|
|
306
318
|
});
|
|
307
|
-
|
|
319
|
+
_d.label = 11;
|
|
320
|
+
case 11: return [2];
|
|
308
321
|
}
|
|
309
322
|
});
|
|
310
323
|
}); };
|
|
@@ -316,18 +329,18 @@ export var deserializeAws_restJson1LogoutCommand = function (output, context) {
|
|
|
316
329
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
317
330
|
return [2, deserializeAws_restJson1LogoutCommandError(output, context)];
|
|
318
331
|
}
|
|
319
|
-
contents = {
|
|
332
|
+
contents = map({
|
|
320
333
|
$metadata: deserializeMetadata(output),
|
|
321
|
-
};
|
|
334
|
+
});
|
|
322
335
|
return [4, collectBody(output.body, context)];
|
|
323
336
|
case 1:
|
|
324
337
|
_a.sent();
|
|
325
|
-
return [2,
|
|
338
|
+
return [2, contents];
|
|
326
339
|
}
|
|
327
340
|
});
|
|
328
341
|
}); };
|
|
329
342
|
var deserializeAws_restJson1LogoutCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
330
|
-
var parsedOutput, _a,
|
|
343
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
331
344
|
var _c;
|
|
332
345
|
return __generator(this, function (_d) {
|
|
333
346
|
switch (_d.label) {
|
|
@@ -356,23 +369,24 @@ var deserializeAws_restJson1LogoutCommandError = function (output, context) { re
|
|
|
356
369
|
case 7: throw _d.sent();
|
|
357
370
|
case 8:
|
|
358
371
|
parsedBody = parsedOutput.body;
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
$metadata: $metadata,
|
|
372
|
+
throwDefaultError({
|
|
373
|
+
output: output,
|
|
374
|
+
parsedBody: parsedBody,
|
|
375
|
+
exceptionCtor: __BaseException,
|
|
376
|
+
errorCode: errorCode,
|
|
365
377
|
});
|
|
366
|
-
|
|
378
|
+
_d.label = 9;
|
|
379
|
+
case 9: return [2];
|
|
367
380
|
}
|
|
368
381
|
});
|
|
369
382
|
}); };
|
|
383
|
+
var map = __map;
|
|
370
384
|
var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
371
385
|
var contents, data, exception;
|
|
372
386
|
return __generator(this, function (_a) {
|
|
373
|
-
contents = {};
|
|
387
|
+
contents = map({});
|
|
374
388
|
data = parsedOutput.body;
|
|
375
|
-
if (data.message
|
|
389
|
+
if (data.message != null) {
|
|
376
390
|
contents.message = __expectString(data.message);
|
|
377
391
|
}
|
|
378
392
|
exception = new InvalidRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -382,9 +396,9 @@ var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOu
|
|
|
382
396
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
383
397
|
var contents, data, exception;
|
|
384
398
|
return __generator(this, function (_a) {
|
|
385
|
-
contents = {};
|
|
399
|
+
contents = map({});
|
|
386
400
|
data = parsedOutput.body;
|
|
387
|
-
if (data.message
|
|
401
|
+
if (data.message != null) {
|
|
388
402
|
contents.message = __expectString(data.message);
|
|
389
403
|
}
|
|
390
404
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -394,9 +408,9 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
394
408
|
var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
395
409
|
var contents, data, exception;
|
|
396
410
|
return __generator(this, function (_a) {
|
|
397
|
-
contents = {};
|
|
411
|
+
contents = map({});
|
|
398
412
|
data = parsedOutput.body;
|
|
399
|
-
if (data.message
|
|
413
|
+
if (data.message != null) {
|
|
400
414
|
contents.message = __expectString(data.message);
|
|
401
415
|
}
|
|
402
416
|
exception = new TooManyRequestsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -406,9 +420,9 @@ var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedO
|
|
|
406
420
|
var deserializeAws_restJson1UnauthorizedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
407
421
|
var contents, data, exception;
|
|
408
422
|
return __generator(this, function (_a) {
|
|
409
|
-
contents = {};
|
|
423
|
+
contents = map({});
|
|
410
424
|
data = parsedOutput.body;
|
|
411
|
-
if (data.message
|
|
425
|
+
if (data.message != null) {
|
|
412
426
|
contents.message = __expectString(data.message);
|
|
413
427
|
}
|
|
414
428
|
exception = new UnauthorizedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -17,12 +17,6 @@ export interface AccountInfo {
|
|
|
17
17
|
*/
|
|
18
18
|
emailAddress?: string;
|
|
19
19
|
}
|
|
20
|
-
export declare namespace AccountInfo {
|
|
21
|
-
/**
|
|
22
|
-
* @internal
|
|
23
|
-
*/
|
|
24
|
-
const filterSensitiveLog: (obj: AccountInfo) => any;
|
|
25
|
-
}
|
|
26
20
|
export interface GetRoleCredentialsRequest {
|
|
27
21
|
/**
|
|
28
22
|
* <p>The friendly name of the role that is assigned to the user.</p>
|
|
@@ -38,12 +32,6 @@ export interface GetRoleCredentialsRequest {
|
|
|
38
32
|
*/
|
|
39
33
|
accessToken: string | undefined;
|
|
40
34
|
}
|
|
41
|
-
export declare namespace GetRoleCredentialsRequest {
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
45
|
-
const filterSensitiveLog: (obj: GetRoleCredentialsRequest) => any;
|
|
46
|
-
}
|
|
47
35
|
/**
|
|
48
36
|
* <p>Provides information about the role credentials that are assigned to the user.</p>
|
|
49
37
|
*/
|
|
@@ -69,24 +57,12 @@ export interface RoleCredentials {
|
|
|
69
57
|
*/
|
|
70
58
|
expiration?: number;
|
|
71
59
|
}
|
|
72
|
-
export declare namespace RoleCredentials {
|
|
73
|
-
/**
|
|
74
|
-
* @internal
|
|
75
|
-
*/
|
|
76
|
-
const filterSensitiveLog: (obj: RoleCredentials) => any;
|
|
77
|
-
}
|
|
78
60
|
export interface GetRoleCredentialsResponse {
|
|
79
61
|
/**
|
|
80
62
|
* <p>The credentials for the role that is assigned to the user.</p>
|
|
81
63
|
*/
|
|
82
64
|
roleCredentials?: RoleCredentials;
|
|
83
65
|
}
|
|
84
|
-
export declare namespace GetRoleCredentialsResponse {
|
|
85
|
-
/**
|
|
86
|
-
* @internal
|
|
87
|
-
*/
|
|
88
|
-
const filterSensitiveLog: (obj: GetRoleCredentialsResponse) => any;
|
|
89
|
-
}
|
|
90
66
|
/**
|
|
91
67
|
* <p>Indicates that a problem occurred with the input to the request. For example, a required
|
|
92
68
|
* parameter might be missing or out of range.</p>
|
|
@@ -151,12 +127,6 @@ export interface ListAccountRolesRequest {
|
|
|
151
127
|
*/
|
|
152
128
|
accountId: string | undefined;
|
|
153
129
|
}
|
|
154
|
-
export declare namespace ListAccountRolesRequest {
|
|
155
|
-
/**
|
|
156
|
-
* @internal
|
|
157
|
-
*/
|
|
158
|
-
const filterSensitiveLog: (obj: ListAccountRolesRequest) => any;
|
|
159
|
-
}
|
|
160
130
|
/**
|
|
161
131
|
* <p>Provides information about the role that is assigned to the user.</p>
|
|
162
132
|
*/
|
|
@@ -170,12 +140,6 @@ export interface RoleInfo {
|
|
|
170
140
|
*/
|
|
171
141
|
accountId?: string;
|
|
172
142
|
}
|
|
173
|
-
export declare namespace RoleInfo {
|
|
174
|
-
/**
|
|
175
|
-
* @internal
|
|
176
|
-
*/
|
|
177
|
-
const filterSensitiveLog: (obj: RoleInfo) => any;
|
|
178
|
-
}
|
|
179
143
|
export interface ListAccountRolesResponse {
|
|
180
144
|
/**
|
|
181
145
|
* <p>The page token client that is used to retrieve the list of accounts.</p>
|
|
@@ -186,12 +150,6 @@ export interface ListAccountRolesResponse {
|
|
|
186
150
|
*/
|
|
187
151
|
roleList?: RoleInfo[];
|
|
188
152
|
}
|
|
189
|
-
export declare namespace ListAccountRolesResponse {
|
|
190
|
-
/**
|
|
191
|
-
* @internal
|
|
192
|
-
*/
|
|
193
|
-
const filterSensitiveLog: (obj: ListAccountRolesResponse) => any;
|
|
194
|
-
}
|
|
195
153
|
export interface ListAccountsRequest {
|
|
196
154
|
/**
|
|
197
155
|
* <p>(Optional) When requesting subsequent pages, this is the page token from the previous response output.</p>
|
|
@@ -207,12 +165,6 @@ export interface ListAccountsRequest {
|
|
|
207
165
|
*/
|
|
208
166
|
accessToken: string | undefined;
|
|
209
167
|
}
|
|
210
|
-
export declare namespace ListAccountsRequest {
|
|
211
|
-
/**
|
|
212
|
-
* @internal
|
|
213
|
-
*/
|
|
214
|
-
const filterSensitiveLog: (obj: ListAccountsRequest) => any;
|
|
215
|
-
}
|
|
216
168
|
export interface ListAccountsResponse {
|
|
217
169
|
/**
|
|
218
170
|
* <p>The page token client that is used to retrieve the list of accounts.</p>
|
|
@@ -223,12 +175,6 @@ export interface ListAccountsResponse {
|
|
|
223
175
|
*/
|
|
224
176
|
accountList?: AccountInfo[];
|
|
225
177
|
}
|
|
226
|
-
export declare namespace ListAccountsResponse {
|
|
227
|
-
/**
|
|
228
|
-
* @internal
|
|
229
|
-
*/
|
|
230
|
-
const filterSensitiveLog: (obj: ListAccountsResponse) => any;
|
|
231
|
-
}
|
|
232
178
|
export interface LogoutRequest {
|
|
233
179
|
/**
|
|
234
180
|
* <p>The token issued by the <code>CreateToken</code> API call. For more information, see
|
|
@@ -236,9 +182,43 @@ export interface LogoutRequest {
|
|
|
236
182
|
*/
|
|
237
183
|
accessToken: string | undefined;
|
|
238
184
|
}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
185
|
+
/**
|
|
186
|
+
* @internal
|
|
187
|
+
*/
|
|
188
|
+
export declare const AccountInfoFilterSensitiveLog: (obj: AccountInfo) => any;
|
|
189
|
+
/**
|
|
190
|
+
* @internal
|
|
191
|
+
*/
|
|
192
|
+
export declare const GetRoleCredentialsRequestFilterSensitiveLog: (obj: GetRoleCredentialsRequest) => any;
|
|
193
|
+
/**
|
|
194
|
+
* @internal
|
|
195
|
+
*/
|
|
196
|
+
export declare const RoleCredentialsFilterSensitiveLog: (obj: RoleCredentials) => any;
|
|
197
|
+
/**
|
|
198
|
+
* @internal
|
|
199
|
+
*/
|
|
200
|
+
export declare const GetRoleCredentialsResponseFilterSensitiveLog: (obj: GetRoleCredentialsResponse) => any;
|
|
201
|
+
/**
|
|
202
|
+
* @internal
|
|
203
|
+
*/
|
|
204
|
+
export declare const ListAccountRolesRequestFilterSensitiveLog: (obj: ListAccountRolesRequest) => any;
|
|
205
|
+
/**
|
|
206
|
+
* @internal
|
|
207
|
+
*/
|
|
208
|
+
export declare const RoleInfoFilterSensitiveLog: (obj: RoleInfo) => any;
|
|
209
|
+
/**
|
|
210
|
+
* @internal
|
|
211
|
+
*/
|
|
212
|
+
export declare const ListAccountRolesResponseFilterSensitiveLog: (obj: ListAccountRolesResponse) => any;
|
|
213
|
+
/**
|
|
214
|
+
* @internal
|
|
215
|
+
*/
|
|
216
|
+
export declare const ListAccountsRequestFilterSensitiveLog: (obj: ListAccountsRequest) => any;
|
|
217
|
+
/**
|
|
218
|
+
* @internal
|
|
219
|
+
*/
|
|
220
|
+
export declare const ListAccountsResponseFilterSensitiveLog: (obj: ListAccountsResponse) => any;
|
|
221
|
+
/**
|
|
222
|
+
* @internal
|
|
223
|
+
*/
|
|
224
|
+
export declare const LogoutRequestFilterSensitiveLog: (obj: LogoutRequest) => any;
|
|
@@ -9,10 +9,6 @@ export interface AccountInfo {
|
|
|
9
9
|
|
|
10
10
|
emailAddress?: string;
|
|
11
11
|
}
|
|
12
|
-
export declare namespace AccountInfo {
|
|
13
|
-
|
|
14
|
-
const filterSensitiveLog: (obj: AccountInfo) => any;
|
|
15
|
-
}
|
|
16
12
|
export interface GetRoleCredentialsRequest {
|
|
17
13
|
|
|
18
14
|
roleName: string | undefined;
|
|
@@ -21,10 +17,6 @@ export interface GetRoleCredentialsRequest {
|
|
|
21
17
|
|
|
22
18
|
accessToken: string | undefined;
|
|
23
19
|
}
|
|
24
|
-
export declare namespace GetRoleCredentialsRequest {
|
|
25
|
-
|
|
26
|
-
const filterSensitiveLog: (obj: GetRoleCredentialsRequest) => any;
|
|
27
|
-
}
|
|
28
20
|
|
|
29
21
|
export interface RoleCredentials {
|
|
30
22
|
|
|
@@ -36,18 +28,10 @@ export interface RoleCredentials {
|
|
|
36
28
|
|
|
37
29
|
expiration?: number;
|
|
38
30
|
}
|
|
39
|
-
export declare namespace RoleCredentials {
|
|
40
|
-
|
|
41
|
-
const filterSensitiveLog: (obj: RoleCredentials) => any;
|
|
42
|
-
}
|
|
43
31
|
export interface GetRoleCredentialsResponse {
|
|
44
32
|
|
|
45
33
|
roleCredentials?: RoleCredentials;
|
|
46
34
|
}
|
|
47
|
-
export declare namespace GetRoleCredentialsResponse {
|
|
48
|
-
|
|
49
|
-
const filterSensitiveLog: (obj: GetRoleCredentialsResponse) => any;
|
|
50
|
-
}
|
|
51
35
|
|
|
52
36
|
export declare class InvalidRequestException extends __BaseException {
|
|
53
37
|
readonly name: "InvalidRequestException";
|
|
@@ -86,10 +70,6 @@ export interface ListAccountRolesRequest {
|
|
|
86
70
|
|
|
87
71
|
accountId: string | undefined;
|
|
88
72
|
}
|
|
89
|
-
export declare namespace ListAccountRolesRequest {
|
|
90
|
-
|
|
91
|
-
const filterSensitiveLog: (obj: ListAccountRolesRequest) => any;
|
|
92
|
-
}
|
|
93
73
|
|
|
94
74
|
export interface RoleInfo {
|
|
95
75
|
|
|
@@ -97,20 +77,12 @@ export interface RoleInfo {
|
|
|
97
77
|
|
|
98
78
|
accountId?: string;
|
|
99
79
|
}
|
|
100
|
-
export declare namespace RoleInfo {
|
|
101
|
-
|
|
102
|
-
const filterSensitiveLog: (obj: RoleInfo) => any;
|
|
103
|
-
}
|
|
104
80
|
export interface ListAccountRolesResponse {
|
|
105
81
|
|
|
106
82
|
nextToken?: string;
|
|
107
83
|
|
|
108
84
|
roleList?: RoleInfo[];
|
|
109
85
|
}
|
|
110
|
-
export declare namespace ListAccountRolesResponse {
|
|
111
|
-
|
|
112
|
-
const filterSensitiveLog: (obj: ListAccountRolesResponse) => any;
|
|
113
|
-
}
|
|
114
86
|
export interface ListAccountsRequest {
|
|
115
87
|
|
|
116
88
|
nextToken?: string;
|
|
@@ -119,25 +91,33 @@ export interface ListAccountsRequest {
|
|
|
119
91
|
|
|
120
92
|
accessToken: string | undefined;
|
|
121
93
|
}
|
|
122
|
-
export declare namespace ListAccountsRequest {
|
|
123
|
-
|
|
124
|
-
const filterSensitiveLog: (obj: ListAccountsRequest) => any;
|
|
125
|
-
}
|
|
126
94
|
export interface ListAccountsResponse {
|
|
127
95
|
|
|
128
96
|
nextToken?: string;
|
|
129
97
|
|
|
130
98
|
accountList?: AccountInfo[];
|
|
131
99
|
}
|
|
132
|
-
export declare namespace ListAccountsResponse {
|
|
133
|
-
|
|
134
|
-
const filterSensitiveLog: (obj: ListAccountsResponse) => any;
|
|
135
|
-
}
|
|
136
100
|
export interface LogoutRequest {
|
|
137
101
|
|
|
138
102
|
accessToken: string | undefined;
|
|
139
103
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
104
|
+
|
|
105
|
+
export declare const AccountInfoFilterSensitiveLog: (obj: AccountInfo) => any;
|
|
106
|
+
|
|
107
|
+
export declare const GetRoleCredentialsRequestFilterSensitiveLog: (obj: GetRoleCredentialsRequest) => any;
|
|
108
|
+
|
|
109
|
+
export declare const RoleCredentialsFilterSensitiveLog: (obj: RoleCredentials) => any;
|
|
110
|
+
|
|
111
|
+
export declare const GetRoleCredentialsResponseFilterSensitiveLog: (obj: GetRoleCredentialsResponse) => any;
|
|
112
|
+
|
|
113
|
+
export declare const ListAccountRolesRequestFilterSensitiveLog: (obj: ListAccountRolesRequest) => any;
|
|
114
|
+
|
|
115
|
+
export declare const RoleInfoFilterSensitiveLog: (obj: RoleInfo) => any;
|
|
116
|
+
|
|
117
|
+
export declare const ListAccountRolesResponseFilterSensitiveLog: (obj: ListAccountRolesResponse) => any;
|
|
118
|
+
|
|
119
|
+
export declare const ListAccountsRequestFilterSensitiveLog: (obj: ListAccountsRequest) => any;
|
|
120
|
+
|
|
121
|
+
export declare const ListAccountsResponseFilterSensitiveLog: (obj: ListAccountsResponse) => any;
|
|
122
|
+
|
|
123
|
+
export declare const LogoutRequestFilterSensitiveLog: (obj: LogoutRequest) => any;
|