@aws-sdk/client-sso 3.306.0 → 3.310.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/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 +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +54 -54
- 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 +3 -3
- package/dist-es/protocols/Aws_restJson1.js +45 -45
- package/dist-types/protocols/Aws_restJson1.d.ts +32 -8
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +8 -8
- package/package.json +32 -32
|
@@ -37,10 +37,10 @@ class GetRoleCredentialsCommand extends smithy_client_1.Command {
|
|
|
37
37
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
38
|
}
|
|
39
39
|
serialize(input, context) {
|
|
40
|
-
return (0, Aws_restJson1_1.
|
|
40
|
+
return (0, Aws_restJson1_1.se_GetRoleCredentialsCommand)(input, context);
|
|
41
41
|
}
|
|
42
42
|
deserialize(output, context) {
|
|
43
|
-
return (0, Aws_restJson1_1.
|
|
43
|
+
return (0, Aws_restJson1_1.de_GetRoleCredentialsCommand)(output, context);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand;
|
|
@@ -37,10 +37,10 @@ class ListAccountRolesCommand extends smithy_client_1.Command {
|
|
|
37
37
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
38
|
}
|
|
39
39
|
serialize(input, context) {
|
|
40
|
-
return (0, Aws_restJson1_1.
|
|
40
|
+
return (0, Aws_restJson1_1.se_ListAccountRolesCommand)(input, context);
|
|
41
41
|
}
|
|
42
42
|
deserialize(output, context) {
|
|
43
|
-
return (0, Aws_restJson1_1.
|
|
43
|
+
return (0, Aws_restJson1_1.de_ListAccountRolesCommand)(output, context);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
exports.ListAccountRolesCommand = ListAccountRolesCommand;
|
|
@@ -37,10 +37,10 @@ class ListAccountsCommand extends smithy_client_1.Command {
|
|
|
37
37
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
38
|
}
|
|
39
39
|
serialize(input, context) {
|
|
40
|
-
return (0, Aws_restJson1_1.
|
|
40
|
+
return (0, Aws_restJson1_1.se_ListAccountsCommand)(input, context);
|
|
41
41
|
}
|
|
42
42
|
deserialize(output, context) {
|
|
43
|
-
return (0, Aws_restJson1_1.
|
|
43
|
+
return (0, Aws_restJson1_1.de_ListAccountsCommand)(output, context);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
exports.ListAccountsCommand = ListAccountsCommand;
|
|
@@ -37,10 +37,10 @@ class LogoutCommand extends smithy_client_1.Command {
|
|
|
37
37
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
38
|
}
|
|
39
39
|
serialize(input, context) {
|
|
40
|
-
return (0, Aws_restJson1_1.
|
|
40
|
+
return (0, Aws_restJson1_1.se_LogoutCommand)(input, context);
|
|
41
41
|
}
|
|
42
42
|
deserialize(output, context) {
|
|
43
|
-
return (0, Aws_restJson1_1.
|
|
43
|
+
return (0, Aws_restJson1_1.de_LogoutCommand)(output, context);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
exports.LogoutCommand = LogoutCommand;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_LogoutCommand = exports.de_ListAccountsCommand = exports.de_ListAccountRolesCommand = exports.de_GetRoleCredentialsCommand = exports.se_LogoutCommand = exports.se_ListAccountsCommand = exports.se_ListAccountRolesCommand = exports.se_GetRoleCredentialsCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const SSOServiceException_1 = require("../models/SSOServiceException");
|
|
8
|
-
const
|
|
8
|
+
const se_GetRoleCredentialsCommand = async (input, context) => {
|
|
9
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
10
|
const headers = map({}, isSerializableHeaderValue, {
|
|
11
11
|
"x-amz-sso_bearer_token": input.accessToken,
|
|
@@ -27,8 +27,8 @@ const serializeAws_restJson1GetRoleCredentialsCommand = async (input, context) =
|
|
|
27
27
|
body,
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
|
-
exports.
|
|
31
|
-
const
|
|
30
|
+
exports.se_GetRoleCredentialsCommand = se_GetRoleCredentialsCommand;
|
|
31
|
+
const se_ListAccountRolesCommand = async (input, context) => {
|
|
32
32
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
33
33
|
const headers = map({}, isSerializableHeaderValue, {
|
|
34
34
|
"x-amz-sso_bearer_token": input.accessToken,
|
|
@@ -51,8 +51,8 @@ const serializeAws_restJson1ListAccountRolesCommand = async (input, context) =>
|
|
|
51
51
|
body,
|
|
52
52
|
});
|
|
53
53
|
};
|
|
54
|
-
exports.
|
|
55
|
-
const
|
|
54
|
+
exports.se_ListAccountRolesCommand = se_ListAccountRolesCommand;
|
|
55
|
+
const se_ListAccountsCommand = async (input, context) => {
|
|
56
56
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
57
57
|
const headers = map({}, isSerializableHeaderValue, {
|
|
58
58
|
"x-amz-sso_bearer_token": input.accessToken,
|
|
@@ -74,8 +74,8 @@ const serializeAws_restJson1ListAccountsCommand = async (input, context) => {
|
|
|
74
74
|
body,
|
|
75
75
|
});
|
|
76
76
|
};
|
|
77
|
-
exports.
|
|
78
|
-
const
|
|
77
|
+
exports.se_ListAccountsCommand = se_ListAccountsCommand;
|
|
78
|
+
const se_LogoutCommand = async (input, context) => {
|
|
79
79
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
80
80
|
const headers = map({}, isSerializableHeaderValue, {
|
|
81
81
|
"x-amz-sso_bearer_token": input.accessToken,
|
|
@@ -92,22 +92,22 @@ const serializeAws_restJson1LogoutCommand = async (input, context) => {
|
|
|
92
92
|
body,
|
|
93
93
|
});
|
|
94
94
|
};
|
|
95
|
-
exports.
|
|
96
|
-
const
|
|
95
|
+
exports.se_LogoutCommand = se_LogoutCommand;
|
|
96
|
+
const de_GetRoleCredentialsCommand = async (output, context) => {
|
|
97
97
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
98
|
-
return
|
|
98
|
+
return de_GetRoleCredentialsCommandError(output, context);
|
|
99
99
|
}
|
|
100
100
|
const contents = map({
|
|
101
101
|
$metadata: deserializeMetadata(output),
|
|
102
102
|
});
|
|
103
103
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
104
104
|
if (data.roleCredentials != null) {
|
|
105
|
-
contents.roleCredentials =
|
|
105
|
+
contents.roleCredentials = de_RoleCredentials(data.roleCredentials, context);
|
|
106
106
|
}
|
|
107
107
|
return contents;
|
|
108
108
|
};
|
|
109
|
-
exports.
|
|
110
|
-
const
|
|
109
|
+
exports.de_GetRoleCredentialsCommand = de_GetRoleCredentialsCommand;
|
|
110
|
+
const de_GetRoleCredentialsCommandError = async (output, context) => {
|
|
111
111
|
const parsedOutput = {
|
|
112
112
|
...output,
|
|
113
113
|
body: await parseErrorBody(output.body, context),
|
|
@@ -116,16 +116,16 @@ const deserializeAws_restJson1GetRoleCredentialsCommandError = async (output, co
|
|
|
116
116
|
switch (errorCode) {
|
|
117
117
|
case "InvalidRequestException":
|
|
118
118
|
case "com.amazonaws.sso#InvalidRequestException":
|
|
119
|
-
throw await
|
|
119
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
120
120
|
case "ResourceNotFoundException":
|
|
121
121
|
case "com.amazonaws.sso#ResourceNotFoundException":
|
|
122
|
-
throw await
|
|
122
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
123
123
|
case "TooManyRequestsException":
|
|
124
124
|
case "com.amazonaws.sso#TooManyRequestsException":
|
|
125
|
-
throw await
|
|
125
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
126
126
|
case "UnauthorizedException":
|
|
127
127
|
case "com.amazonaws.sso#UnauthorizedException":
|
|
128
|
-
throw await
|
|
128
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
129
129
|
default:
|
|
130
130
|
const parsedBody = parsedOutput.body;
|
|
131
131
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -136,9 +136,9 @@ const deserializeAws_restJson1GetRoleCredentialsCommandError = async (output, co
|
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
138
|
};
|
|
139
|
-
const
|
|
139
|
+
const de_ListAccountRolesCommand = async (output, context) => {
|
|
140
140
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
141
|
-
return
|
|
141
|
+
return de_ListAccountRolesCommandError(output, context);
|
|
142
142
|
}
|
|
143
143
|
const contents = map({
|
|
144
144
|
$metadata: deserializeMetadata(output),
|
|
@@ -148,12 +148,12 @@ const deserializeAws_restJson1ListAccountRolesCommand = async (output, context)
|
|
|
148
148
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
149
149
|
}
|
|
150
150
|
if (data.roleList != null) {
|
|
151
|
-
contents.roleList =
|
|
151
|
+
contents.roleList = de_RoleListType(data.roleList, context);
|
|
152
152
|
}
|
|
153
153
|
return contents;
|
|
154
154
|
};
|
|
155
|
-
exports.
|
|
156
|
-
const
|
|
155
|
+
exports.de_ListAccountRolesCommand = de_ListAccountRolesCommand;
|
|
156
|
+
const de_ListAccountRolesCommandError = async (output, context) => {
|
|
157
157
|
const parsedOutput = {
|
|
158
158
|
...output,
|
|
159
159
|
body: await parseErrorBody(output.body, context),
|
|
@@ -162,16 +162,16 @@ const deserializeAws_restJson1ListAccountRolesCommandError = async (output, cont
|
|
|
162
162
|
switch (errorCode) {
|
|
163
163
|
case "InvalidRequestException":
|
|
164
164
|
case "com.amazonaws.sso#InvalidRequestException":
|
|
165
|
-
throw await
|
|
165
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
166
166
|
case "ResourceNotFoundException":
|
|
167
167
|
case "com.amazonaws.sso#ResourceNotFoundException":
|
|
168
|
-
throw await
|
|
168
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
169
169
|
case "TooManyRequestsException":
|
|
170
170
|
case "com.amazonaws.sso#TooManyRequestsException":
|
|
171
|
-
throw await
|
|
171
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
172
172
|
case "UnauthorizedException":
|
|
173
173
|
case "com.amazonaws.sso#UnauthorizedException":
|
|
174
|
-
throw await
|
|
174
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
175
175
|
default:
|
|
176
176
|
const parsedBody = parsedOutput.body;
|
|
177
177
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -182,24 +182,24 @@ const deserializeAws_restJson1ListAccountRolesCommandError = async (output, cont
|
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
|
-
const
|
|
185
|
+
const de_ListAccountsCommand = async (output, context) => {
|
|
186
186
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
187
|
-
return
|
|
187
|
+
return de_ListAccountsCommandError(output, context);
|
|
188
188
|
}
|
|
189
189
|
const contents = map({
|
|
190
190
|
$metadata: deserializeMetadata(output),
|
|
191
191
|
});
|
|
192
192
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
193
193
|
if (data.accountList != null) {
|
|
194
|
-
contents.accountList =
|
|
194
|
+
contents.accountList = de_AccountListType(data.accountList, context);
|
|
195
195
|
}
|
|
196
196
|
if (data.nextToken != null) {
|
|
197
197
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
198
198
|
}
|
|
199
199
|
return contents;
|
|
200
200
|
};
|
|
201
|
-
exports.
|
|
202
|
-
const
|
|
201
|
+
exports.de_ListAccountsCommand = de_ListAccountsCommand;
|
|
202
|
+
const de_ListAccountsCommandError = async (output, context) => {
|
|
203
203
|
const parsedOutput = {
|
|
204
204
|
...output,
|
|
205
205
|
body: await parseErrorBody(output.body, context),
|
|
@@ -208,16 +208,16 @@ const deserializeAws_restJson1ListAccountsCommandError = async (output, context)
|
|
|
208
208
|
switch (errorCode) {
|
|
209
209
|
case "InvalidRequestException":
|
|
210
210
|
case "com.amazonaws.sso#InvalidRequestException":
|
|
211
|
-
throw await
|
|
211
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
212
212
|
case "ResourceNotFoundException":
|
|
213
213
|
case "com.amazonaws.sso#ResourceNotFoundException":
|
|
214
|
-
throw await
|
|
214
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
215
215
|
case "TooManyRequestsException":
|
|
216
216
|
case "com.amazonaws.sso#TooManyRequestsException":
|
|
217
|
-
throw await
|
|
217
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
218
218
|
case "UnauthorizedException":
|
|
219
219
|
case "com.amazonaws.sso#UnauthorizedException":
|
|
220
|
-
throw await
|
|
220
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
221
221
|
default:
|
|
222
222
|
const parsedBody = parsedOutput.body;
|
|
223
223
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -228,9 +228,9 @@ const deserializeAws_restJson1ListAccountsCommandError = async (output, context)
|
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
230
|
};
|
|
231
|
-
const
|
|
231
|
+
const de_LogoutCommand = async (output, context) => {
|
|
232
232
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
233
|
-
return
|
|
233
|
+
return de_LogoutCommandError(output, context);
|
|
234
234
|
}
|
|
235
235
|
const contents = map({
|
|
236
236
|
$metadata: deserializeMetadata(output),
|
|
@@ -238,8 +238,8 @@ const deserializeAws_restJson1LogoutCommand = async (output, context) => {
|
|
|
238
238
|
await collectBody(output.body, context);
|
|
239
239
|
return contents;
|
|
240
240
|
};
|
|
241
|
-
exports.
|
|
242
|
-
const
|
|
241
|
+
exports.de_LogoutCommand = de_LogoutCommand;
|
|
242
|
+
const de_LogoutCommandError = async (output, context) => {
|
|
243
243
|
const parsedOutput = {
|
|
244
244
|
...output,
|
|
245
245
|
body: await parseErrorBody(output.body, context),
|
|
@@ -248,13 +248,13 @@ const deserializeAws_restJson1LogoutCommandError = async (output, context) => {
|
|
|
248
248
|
switch (errorCode) {
|
|
249
249
|
case "InvalidRequestException":
|
|
250
250
|
case "com.amazonaws.sso#InvalidRequestException":
|
|
251
|
-
throw await
|
|
251
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
252
252
|
case "TooManyRequestsException":
|
|
253
253
|
case "com.amazonaws.sso#TooManyRequestsException":
|
|
254
|
-
throw await
|
|
254
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
255
255
|
case "UnauthorizedException":
|
|
256
256
|
case "com.amazonaws.sso#UnauthorizedException":
|
|
257
|
-
throw await
|
|
257
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
258
258
|
default:
|
|
259
259
|
const parsedBody = parsedOutput.body;
|
|
260
260
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -266,7 +266,7 @@ const deserializeAws_restJson1LogoutCommandError = async (output, context) => {
|
|
|
266
266
|
}
|
|
267
267
|
};
|
|
268
268
|
const map = smithy_client_1.map;
|
|
269
|
-
const
|
|
269
|
+
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
270
270
|
const contents = map({});
|
|
271
271
|
const data = parsedOutput.body;
|
|
272
272
|
if (data.message != null) {
|
|
@@ -278,7 +278,7 @@ const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOut
|
|
|
278
278
|
});
|
|
279
279
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
280
280
|
};
|
|
281
|
-
const
|
|
281
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
282
282
|
const contents = map({});
|
|
283
283
|
const data = parsedOutput.body;
|
|
284
284
|
if (data.message != null) {
|
|
@@ -290,7 +290,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
290
290
|
});
|
|
291
291
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
292
292
|
};
|
|
293
|
-
const
|
|
293
|
+
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
294
294
|
const contents = map({});
|
|
295
295
|
const data = parsedOutput.body;
|
|
296
296
|
if (data.message != null) {
|
|
@@ -302,7 +302,7 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
|
|
|
302
302
|
});
|
|
303
303
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
304
304
|
};
|
|
305
|
-
const
|
|
305
|
+
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
306
306
|
const contents = map({});
|
|
307
307
|
const data = parsedOutput.body;
|
|
308
308
|
if (data.message != null) {
|
|
@@ -314,25 +314,25 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutpu
|
|
|
314
314
|
});
|
|
315
315
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
316
316
|
};
|
|
317
|
-
const
|
|
317
|
+
const de_AccountInfo = (output, context) => {
|
|
318
318
|
return {
|
|
319
319
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
320
320
|
accountName: (0, smithy_client_1.expectString)(output.accountName),
|
|
321
321
|
emailAddress: (0, smithy_client_1.expectString)(output.emailAddress),
|
|
322
322
|
};
|
|
323
323
|
};
|
|
324
|
-
const
|
|
324
|
+
const de_AccountListType = (output, context) => {
|
|
325
325
|
const retVal = (output || [])
|
|
326
326
|
.filter((e) => e != null)
|
|
327
327
|
.map((entry) => {
|
|
328
328
|
if (entry === null) {
|
|
329
329
|
return null;
|
|
330
330
|
}
|
|
331
|
-
return
|
|
331
|
+
return de_AccountInfo(entry, context);
|
|
332
332
|
});
|
|
333
333
|
return retVal;
|
|
334
334
|
};
|
|
335
|
-
const
|
|
335
|
+
const de_RoleCredentials = (output, context) => {
|
|
336
336
|
return {
|
|
337
337
|
accessKeyId: (0, smithy_client_1.expectString)(output.accessKeyId),
|
|
338
338
|
expiration: (0, smithy_client_1.expectLong)(output.expiration),
|
|
@@ -340,20 +340,20 @@ const deserializeAws_restJson1RoleCredentials = (output, context) => {
|
|
|
340
340
|
sessionToken: (0, smithy_client_1.expectString)(output.sessionToken),
|
|
341
341
|
};
|
|
342
342
|
};
|
|
343
|
-
const
|
|
343
|
+
const de_RoleInfo = (output, context) => {
|
|
344
344
|
return {
|
|
345
345
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
346
346
|
roleName: (0, smithy_client_1.expectString)(output.roleName),
|
|
347
347
|
};
|
|
348
348
|
};
|
|
349
|
-
const
|
|
349
|
+
const de_RoleListType = (output, context) => {
|
|
350
350
|
const retVal = (output || [])
|
|
351
351
|
.filter((e) => e != null)
|
|
352
352
|
.map((entry) => {
|
|
353
353
|
if (entry === null) {
|
|
354
354
|
return null;
|
|
355
355
|
}
|
|
356
|
-
return
|
|
356
|
+
return de_RoleInfo(entry, context);
|
|
357
357
|
});
|
|
358
358
|
return retVal;
|
|
359
359
|
};
|
|
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { GetRoleCredentialsRequestFilterSensitiveLog, GetRoleCredentialsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
-
import {
|
|
5
|
+
import { de_GetRoleCredentialsCommand, se_GetRoleCredentialsCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export class GetRoleCredentialsCommand extends $Command {
|
|
7
7
|
static getEndpointParameterInstructions() {
|
|
8
8
|
return {
|
|
@@ -34,9 +34,9 @@ export class GetRoleCredentialsCommand extends $Command {
|
|
|
34
34
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
35
|
}
|
|
36
36
|
serialize(input, context) {
|
|
37
|
-
return
|
|
37
|
+
return se_GetRoleCredentialsCommand(input, context);
|
|
38
38
|
}
|
|
39
39
|
deserialize(output, context) {
|
|
40
|
-
return
|
|
40
|
+
return de_GetRoleCredentialsCommand(output, context);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { ListAccountRolesRequestFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
-
import {
|
|
5
|
+
import { de_ListAccountRolesCommand, se_ListAccountRolesCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export class ListAccountRolesCommand extends $Command {
|
|
7
7
|
static getEndpointParameterInstructions() {
|
|
8
8
|
return {
|
|
@@ -34,9 +34,9 @@ export class ListAccountRolesCommand extends $Command {
|
|
|
34
34
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
35
|
}
|
|
36
36
|
serialize(input, context) {
|
|
37
|
-
return
|
|
37
|
+
return se_ListAccountRolesCommand(input, context);
|
|
38
38
|
}
|
|
39
39
|
deserialize(output, context) {
|
|
40
|
-
return
|
|
40
|
+
return de_ListAccountRolesCommand(output, context);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { ListAccountsRequestFilterSensitiveLog } from "../models/models_0";
|
|
5
|
-
import {
|
|
5
|
+
import { de_ListAccountsCommand, se_ListAccountsCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export class ListAccountsCommand extends $Command {
|
|
7
7
|
static getEndpointParameterInstructions() {
|
|
8
8
|
return {
|
|
@@ -34,9 +34,9 @@ export class ListAccountsCommand extends $Command {
|
|
|
34
34
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
35
|
}
|
|
36
36
|
serialize(input, context) {
|
|
37
|
-
return
|
|
37
|
+
return se_ListAccountsCommand(input, context);
|
|
38
38
|
}
|
|
39
39
|
deserialize(output, context) {
|
|
40
|
-
return
|
|
40
|
+
return de_ListAccountsCommand(output, context);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { LogoutRequestFilterSensitiveLog } from "../models/models_0";
|
|
5
|
-
import {
|
|
5
|
+
import { de_LogoutCommand, se_LogoutCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export class LogoutCommand extends $Command {
|
|
7
7
|
static getEndpointParameterInstructions() {
|
|
8
8
|
return {
|
|
@@ -34,9 +34,9 @@ export class LogoutCommand extends $Command {
|
|
|
34
34
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
35
|
}
|
|
36
36
|
serialize(input, context) {
|
|
37
|
-
return
|
|
37
|
+
return se_LogoutCommand(input, context);
|
|
38
38
|
}
|
|
39
39
|
deserialize(output, context) {
|
|
40
|
-
return
|
|
40
|
+
return de_LogoutCommand(output, context);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
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";
|
|
3
3
|
import { InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, UnauthorizedException, } from "../models/models_0";
|
|
4
4
|
import { SSOServiceException as __BaseException } from "../models/SSOServiceException";
|
|
5
|
-
export const
|
|
5
|
+
export const se_GetRoleCredentialsCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = map({}, isSerializableHeaderValue, {
|
|
8
8
|
"x-amz-sso_bearer_token": input.accessToken,
|
|
@@ -24,7 +24,7 @@ export const serializeAws_restJson1GetRoleCredentialsCommand = async (input, con
|
|
|
24
24
|
body,
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
|
-
export const
|
|
27
|
+
export const se_ListAccountRolesCommand = async (input, context) => {
|
|
28
28
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
29
29
|
const headers = map({}, isSerializableHeaderValue, {
|
|
30
30
|
"x-amz-sso_bearer_token": input.accessToken,
|
|
@@ -47,7 +47,7 @@ export const serializeAws_restJson1ListAccountRolesCommand = async (input, conte
|
|
|
47
47
|
body,
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
|
-
export const
|
|
50
|
+
export const se_ListAccountsCommand = async (input, context) => {
|
|
51
51
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
52
52
|
const headers = map({}, isSerializableHeaderValue, {
|
|
53
53
|
"x-amz-sso_bearer_token": input.accessToken,
|
|
@@ -69,7 +69,7 @@ export const serializeAws_restJson1ListAccountsCommand = async (input, context)
|
|
|
69
69
|
body,
|
|
70
70
|
});
|
|
71
71
|
};
|
|
72
|
-
export const
|
|
72
|
+
export const se_LogoutCommand = async (input, context) => {
|
|
73
73
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
74
74
|
const headers = map({}, isSerializableHeaderValue, {
|
|
75
75
|
"x-amz-sso_bearer_token": input.accessToken,
|
|
@@ -86,20 +86,20 @@ export const serializeAws_restJson1LogoutCommand = async (input, context) => {
|
|
|
86
86
|
body,
|
|
87
87
|
});
|
|
88
88
|
};
|
|
89
|
-
export const
|
|
89
|
+
export const de_GetRoleCredentialsCommand = async (output, context) => {
|
|
90
90
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
91
|
-
return
|
|
91
|
+
return de_GetRoleCredentialsCommandError(output, context);
|
|
92
92
|
}
|
|
93
93
|
const contents = map({
|
|
94
94
|
$metadata: deserializeMetadata(output),
|
|
95
95
|
});
|
|
96
96
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
97
97
|
if (data.roleCredentials != null) {
|
|
98
|
-
contents.roleCredentials =
|
|
98
|
+
contents.roleCredentials = de_RoleCredentials(data.roleCredentials, context);
|
|
99
99
|
}
|
|
100
100
|
return contents;
|
|
101
101
|
};
|
|
102
|
-
const
|
|
102
|
+
const de_GetRoleCredentialsCommandError = async (output, context) => {
|
|
103
103
|
const parsedOutput = {
|
|
104
104
|
...output,
|
|
105
105
|
body: await parseErrorBody(output.body, context),
|
|
@@ -108,16 +108,16 @@ const deserializeAws_restJson1GetRoleCredentialsCommandError = async (output, co
|
|
|
108
108
|
switch (errorCode) {
|
|
109
109
|
case "InvalidRequestException":
|
|
110
110
|
case "com.amazonaws.sso#InvalidRequestException":
|
|
111
|
-
throw await
|
|
111
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
112
112
|
case "ResourceNotFoundException":
|
|
113
113
|
case "com.amazonaws.sso#ResourceNotFoundException":
|
|
114
|
-
throw await
|
|
114
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
115
115
|
case "TooManyRequestsException":
|
|
116
116
|
case "com.amazonaws.sso#TooManyRequestsException":
|
|
117
|
-
throw await
|
|
117
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
118
118
|
case "UnauthorizedException":
|
|
119
119
|
case "com.amazonaws.sso#UnauthorizedException":
|
|
120
|
-
throw await
|
|
120
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
121
121
|
default:
|
|
122
122
|
const parsedBody = parsedOutput.body;
|
|
123
123
|
throwDefaultError({
|
|
@@ -128,9 +128,9 @@ const deserializeAws_restJson1GetRoleCredentialsCommandError = async (output, co
|
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
130
|
};
|
|
131
|
-
export const
|
|
131
|
+
export const de_ListAccountRolesCommand = async (output, context) => {
|
|
132
132
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
133
|
-
return
|
|
133
|
+
return de_ListAccountRolesCommandError(output, context);
|
|
134
134
|
}
|
|
135
135
|
const contents = map({
|
|
136
136
|
$metadata: deserializeMetadata(output),
|
|
@@ -140,11 +140,11 @@ export const deserializeAws_restJson1ListAccountRolesCommand = async (output, co
|
|
|
140
140
|
contents.nextToken = __expectString(data.nextToken);
|
|
141
141
|
}
|
|
142
142
|
if (data.roleList != null) {
|
|
143
|
-
contents.roleList =
|
|
143
|
+
contents.roleList = de_RoleListType(data.roleList, context);
|
|
144
144
|
}
|
|
145
145
|
return contents;
|
|
146
146
|
};
|
|
147
|
-
const
|
|
147
|
+
const de_ListAccountRolesCommandError = async (output, context) => {
|
|
148
148
|
const parsedOutput = {
|
|
149
149
|
...output,
|
|
150
150
|
body: await parseErrorBody(output.body, context),
|
|
@@ -153,16 +153,16 @@ const deserializeAws_restJson1ListAccountRolesCommandError = async (output, cont
|
|
|
153
153
|
switch (errorCode) {
|
|
154
154
|
case "InvalidRequestException":
|
|
155
155
|
case "com.amazonaws.sso#InvalidRequestException":
|
|
156
|
-
throw await
|
|
156
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
157
157
|
case "ResourceNotFoundException":
|
|
158
158
|
case "com.amazonaws.sso#ResourceNotFoundException":
|
|
159
|
-
throw await
|
|
159
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
160
160
|
case "TooManyRequestsException":
|
|
161
161
|
case "com.amazonaws.sso#TooManyRequestsException":
|
|
162
|
-
throw await
|
|
162
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
163
163
|
case "UnauthorizedException":
|
|
164
164
|
case "com.amazonaws.sso#UnauthorizedException":
|
|
165
|
-
throw await
|
|
165
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
166
166
|
default:
|
|
167
167
|
const parsedBody = parsedOutput.body;
|
|
168
168
|
throwDefaultError({
|
|
@@ -173,23 +173,23 @@ const deserializeAws_restJson1ListAccountRolesCommandError = async (output, cont
|
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
175
|
};
|
|
176
|
-
export const
|
|
176
|
+
export const de_ListAccountsCommand = async (output, context) => {
|
|
177
177
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
178
|
-
return
|
|
178
|
+
return de_ListAccountsCommandError(output, context);
|
|
179
179
|
}
|
|
180
180
|
const contents = map({
|
|
181
181
|
$metadata: deserializeMetadata(output),
|
|
182
182
|
});
|
|
183
183
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
184
184
|
if (data.accountList != null) {
|
|
185
|
-
contents.accountList =
|
|
185
|
+
contents.accountList = de_AccountListType(data.accountList, context);
|
|
186
186
|
}
|
|
187
187
|
if (data.nextToken != null) {
|
|
188
188
|
contents.nextToken = __expectString(data.nextToken);
|
|
189
189
|
}
|
|
190
190
|
return contents;
|
|
191
191
|
};
|
|
192
|
-
const
|
|
192
|
+
const de_ListAccountsCommandError = async (output, context) => {
|
|
193
193
|
const parsedOutput = {
|
|
194
194
|
...output,
|
|
195
195
|
body: await parseErrorBody(output.body, context),
|
|
@@ -198,16 +198,16 @@ const deserializeAws_restJson1ListAccountsCommandError = async (output, context)
|
|
|
198
198
|
switch (errorCode) {
|
|
199
199
|
case "InvalidRequestException":
|
|
200
200
|
case "com.amazonaws.sso#InvalidRequestException":
|
|
201
|
-
throw await
|
|
201
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
202
202
|
case "ResourceNotFoundException":
|
|
203
203
|
case "com.amazonaws.sso#ResourceNotFoundException":
|
|
204
|
-
throw await
|
|
204
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
205
205
|
case "TooManyRequestsException":
|
|
206
206
|
case "com.amazonaws.sso#TooManyRequestsException":
|
|
207
|
-
throw await
|
|
207
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
208
208
|
case "UnauthorizedException":
|
|
209
209
|
case "com.amazonaws.sso#UnauthorizedException":
|
|
210
|
-
throw await
|
|
210
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
211
211
|
default:
|
|
212
212
|
const parsedBody = parsedOutput.body;
|
|
213
213
|
throwDefaultError({
|
|
@@ -218,9 +218,9 @@ const deserializeAws_restJson1ListAccountsCommandError = async (output, context)
|
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
220
|
};
|
|
221
|
-
export const
|
|
221
|
+
export const de_LogoutCommand = async (output, context) => {
|
|
222
222
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
223
|
-
return
|
|
223
|
+
return de_LogoutCommandError(output, context);
|
|
224
224
|
}
|
|
225
225
|
const contents = map({
|
|
226
226
|
$metadata: deserializeMetadata(output),
|
|
@@ -228,7 +228,7 @@ export const deserializeAws_restJson1LogoutCommand = async (output, context) =>
|
|
|
228
228
|
await collectBody(output.body, context);
|
|
229
229
|
return contents;
|
|
230
230
|
};
|
|
231
|
-
const
|
|
231
|
+
const de_LogoutCommandError = async (output, context) => {
|
|
232
232
|
const parsedOutput = {
|
|
233
233
|
...output,
|
|
234
234
|
body: await parseErrorBody(output.body, context),
|
|
@@ -237,13 +237,13 @@ const deserializeAws_restJson1LogoutCommandError = async (output, context) => {
|
|
|
237
237
|
switch (errorCode) {
|
|
238
238
|
case "InvalidRequestException":
|
|
239
239
|
case "com.amazonaws.sso#InvalidRequestException":
|
|
240
|
-
throw await
|
|
240
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
241
241
|
case "TooManyRequestsException":
|
|
242
242
|
case "com.amazonaws.sso#TooManyRequestsException":
|
|
243
|
-
throw await
|
|
243
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
244
244
|
case "UnauthorizedException":
|
|
245
245
|
case "com.amazonaws.sso#UnauthorizedException":
|
|
246
|
-
throw await
|
|
246
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
247
247
|
default:
|
|
248
248
|
const parsedBody = parsedOutput.body;
|
|
249
249
|
throwDefaultError({
|
|
@@ -255,7 +255,7 @@ const deserializeAws_restJson1LogoutCommandError = async (output, context) => {
|
|
|
255
255
|
}
|
|
256
256
|
};
|
|
257
257
|
const map = __map;
|
|
258
|
-
const
|
|
258
|
+
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
259
259
|
const contents = map({});
|
|
260
260
|
const data = parsedOutput.body;
|
|
261
261
|
if (data.message != null) {
|
|
@@ -267,7 +267,7 @@ const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOut
|
|
|
267
267
|
});
|
|
268
268
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
269
269
|
};
|
|
270
|
-
const
|
|
270
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
271
271
|
const contents = map({});
|
|
272
272
|
const data = parsedOutput.body;
|
|
273
273
|
if (data.message != null) {
|
|
@@ -279,7 +279,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
279
279
|
});
|
|
280
280
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
281
281
|
};
|
|
282
|
-
const
|
|
282
|
+
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
283
283
|
const contents = map({});
|
|
284
284
|
const data = parsedOutput.body;
|
|
285
285
|
if (data.message != null) {
|
|
@@ -291,7 +291,7 @@ const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOu
|
|
|
291
291
|
});
|
|
292
292
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
293
293
|
};
|
|
294
|
-
const
|
|
294
|
+
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
295
295
|
const contents = map({});
|
|
296
296
|
const data = parsedOutput.body;
|
|
297
297
|
if (data.message != null) {
|
|
@@ -303,25 +303,25 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutpu
|
|
|
303
303
|
});
|
|
304
304
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
305
305
|
};
|
|
306
|
-
const
|
|
306
|
+
const de_AccountInfo = (output, context) => {
|
|
307
307
|
return {
|
|
308
308
|
accountId: __expectString(output.accountId),
|
|
309
309
|
accountName: __expectString(output.accountName),
|
|
310
310
|
emailAddress: __expectString(output.emailAddress),
|
|
311
311
|
};
|
|
312
312
|
};
|
|
313
|
-
const
|
|
313
|
+
const de_AccountListType = (output, context) => {
|
|
314
314
|
const retVal = (output || [])
|
|
315
315
|
.filter((e) => e != null)
|
|
316
316
|
.map((entry) => {
|
|
317
317
|
if (entry === null) {
|
|
318
318
|
return null;
|
|
319
319
|
}
|
|
320
|
-
return
|
|
320
|
+
return de_AccountInfo(entry, context);
|
|
321
321
|
});
|
|
322
322
|
return retVal;
|
|
323
323
|
};
|
|
324
|
-
const
|
|
324
|
+
const de_RoleCredentials = (output, context) => {
|
|
325
325
|
return {
|
|
326
326
|
accessKeyId: __expectString(output.accessKeyId),
|
|
327
327
|
expiration: __expectLong(output.expiration),
|
|
@@ -329,20 +329,20 @@ const deserializeAws_restJson1RoleCredentials = (output, context) => {
|
|
|
329
329
|
sessionToken: __expectString(output.sessionToken),
|
|
330
330
|
};
|
|
331
331
|
};
|
|
332
|
-
const
|
|
332
|
+
const de_RoleInfo = (output, context) => {
|
|
333
333
|
return {
|
|
334
334
|
accountId: __expectString(output.accountId),
|
|
335
335
|
roleName: __expectString(output.roleName),
|
|
336
336
|
};
|
|
337
337
|
};
|
|
338
|
-
const
|
|
338
|
+
const de_RoleListType = (output, context) => {
|
|
339
339
|
const retVal = (output || [])
|
|
340
340
|
.filter((e) => e != null)
|
|
341
341
|
.map((entry) => {
|
|
342
342
|
if (entry === null) {
|
|
343
343
|
return null;
|
|
344
344
|
}
|
|
345
|
-
return
|
|
345
|
+
return de_RoleInfo(entry, context);
|
|
346
346
|
});
|
|
347
347
|
return retVal;
|
|
348
348
|
};
|
|
@@ -4,11 +4,35 @@ import { GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput } from
|
|
|
4
4
|
import { ListAccountRolesCommandInput, ListAccountRolesCommandOutput } from "../commands/ListAccountRolesCommand";
|
|
5
5
|
import { ListAccountsCommandInput, ListAccountsCommandOutput } from "../commands/ListAccountsCommand";
|
|
6
6
|
import { LogoutCommandInput, LogoutCommandOutput } from "../commands/LogoutCommand";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export declare const
|
|
7
|
+
/**
|
|
8
|
+
* serializeAws_restJson1GetRoleCredentialsCommand
|
|
9
|
+
*/
|
|
10
|
+
export declare const se_GetRoleCredentialsCommand: (input: GetRoleCredentialsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
11
|
+
/**
|
|
12
|
+
* serializeAws_restJson1ListAccountRolesCommand
|
|
13
|
+
*/
|
|
14
|
+
export declare const se_ListAccountRolesCommand: (input: ListAccountRolesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
15
|
+
/**
|
|
16
|
+
* serializeAws_restJson1ListAccountsCommand
|
|
17
|
+
*/
|
|
18
|
+
export declare const se_ListAccountsCommand: (input: ListAccountsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
19
|
+
/**
|
|
20
|
+
* serializeAws_restJson1LogoutCommand
|
|
21
|
+
*/
|
|
22
|
+
export declare const se_LogoutCommand: (input: LogoutCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
23
|
+
/**
|
|
24
|
+
* deserializeAws_restJson1GetRoleCredentialsCommand
|
|
25
|
+
*/
|
|
26
|
+
export declare const de_GetRoleCredentialsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetRoleCredentialsCommandOutput>;
|
|
27
|
+
/**
|
|
28
|
+
* deserializeAws_restJson1ListAccountRolesCommand
|
|
29
|
+
*/
|
|
30
|
+
export declare const de_ListAccountRolesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListAccountRolesCommandOutput>;
|
|
31
|
+
/**
|
|
32
|
+
* deserializeAws_restJson1ListAccountsCommand
|
|
33
|
+
*/
|
|
34
|
+
export declare const de_ListAccountsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListAccountsCommandOutput>;
|
|
35
|
+
/**
|
|
36
|
+
* deserializeAws_restJson1LogoutCommand
|
|
37
|
+
*/
|
|
38
|
+
export declare const de_LogoutCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<LogoutCommandOutput>;
|
|
@@ -19,35 +19,35 @@ import {
|
|
|
19
19
|
LogoutCommandInput,
|
|
20
20
|
LogoutCommandOutput,
|
|
21
21
|
} from "../commands/LogoutCommand";
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const se_GetRoleCredentialsCommand: (
|
|
23
23
|
input: GetRoleCredentialsCommandInput,
|
|
24
24
|
context: __SerdeContext
|
|
25
25
|
) => Promise<__HttpRequest>;
|
|
26
|
-
export declare const
|
|
26
|
+
export declare const se_ListAccountRolesCommand: (
|
|
27
27
|
input: ListAccountRolesCommandInput,
|
|
28
28
|
context: __SerdeContext
|
|
29
29
|
) => Promise<__HttpRequest>;
|
|
30
|
-
export declare const
|
|
30
|
+
export declare const se_ListAccountsCommand: (
|
|
31
31
|
input: ListAccountsCommandInput,
|
|
32
32
|
context: __SerdeContext
|
|
33
33
|
) => Promise<__HttpRequest>;
|
|
34
|
-
export declare const
|
|
34
|
+
export declare const se_LogoutCommand: (
|
|
35
35
|
input: LogoutCommandInput,
|
|
36
36
|
context: __SerdeContext
|
|
37
37
|
) => Promise<__HttpRequest>;
|
|
38
|
-
export declare const
|
|
38
|
+
export declare const de_GetRoleCredentialsCommand: (
|
|
39
39
|
output: __HttpResponse,
|
|
40
40
|
context: __SerdeContext
|
|
41
41
|
) => Promise<GetRoleCredentialsCommandOutput>;
|
|
42
|
-
export declare const
|
|
42
|
+
export declare const de_ListAccountRolesCommand: (
|
|
43
43
|
output: __HttpResponse,
|
|
44
44
|
context: __SerdeContext
|
|
45
45
|
) => Promise<ListAccountRolesCommandOutput>;
|
|
46
|
-
export declare const
|
|
46
|
+
export declare const de_ListAccountsCommand: (
|
|
47
47
|
output: __HttpResponse,
|
|
48
48
|
context: __SerdeContext
|
|
49
49
|
) => Promise<ListAccountsCommandOutput>;
|
|
50
|
-
export declare const
|
|
50
|
+
export declare const de_LogoutCommand: (
|
|
51
51
|
output: __HttpResponse,
|
|
52
52
|
context: __SerdeContext
|
|
53
53
|
) => Promise<LogoutCommandOutput>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sso",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.310.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,39 +21,39 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/config-resolver": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
26
|
-
"@aws-sdk/hash-node": "3.
|
|
27
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
28
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
29
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-stack": "3.
|
|
36
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
37
|
-
"@aws-sdk/node-config-provider": "3.
|
|
38
|
-
"@aws-sdk/node-http-handler": "3.
|
|
39
|
-
"@aws-sdk/protocol-http": "3.
|
|
40
|
-
"@aws-sdk/smithy-client": "3.
|
|
41
|
-
"@aws-sdk/types": "3.
|
|
42
|
-
"@aws-sdk/url-parser": "3.
|
|
43
|
-
"@aws-sdk/util-base64": "3.
|
|
44
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
45
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-endpoints": "3.
|
|
49
|
-
"@aws-sdk/util-retry": "3.
|
|
50
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
51
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
52
|
-
"@aws-sdk/util-utf8": "3.
|
|
24
|
+
"@aws-sdk/config-resolver": "3.310.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.310.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.310.0",
|
|
29
|
+
"@aws-sdk/middleware-endpoint": "3.310.0",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "3.310.0",
|
|
31
|
+
"@aws-sdk/middleware-logger": "3.310.0",
|
|
32
|
+
"@aws-sdk/middleware-recursion-detection": "3.310.0",
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.310.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.310.0",
|
|
35
|
+
"@aws-sdk/middleware-stack": "3.310.0",
|
|
36
|
+
"@aws-sdk/middleware-user-agent": "3.310.0",
|
|
37
|
+
"@aws-sdk/node-config-provider": "3.310.0",
|
|
38
|
+
"@aws-sdk/node-http-handler": "3.310.0",
|
|
39
|
+
"@aws-sdk/protocol-http": "3.310.0",
|
|
40
|
+
"@aws-sdk/smithy-client": "3.310.0",
|
|
41
|
+
"@aws-sdk/types": "3.310.0",
|
|
42
|
+
"@aws-sdk/url-parser": "3.310.0",
|
|
43
|
+
"@aws-sdk/util-base64": "3.310.0",
|
|
44
|
+
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
45
|
+
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.310.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.310.0",
|
|
48
|
+
"@aws-sdk/util-endpoints": "3.310.0",
|
|
49
|
+
"@aws-sdk/util-retry": "3.310.0",
|
|
50
|
+
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
51
|
+
"@aws-sdk/util-user-agent-node": "3.310.0",
|
|
52
|
+
"@aws-sdk/util-utf8": "3.310.0",
|
|
53
53
|
"tslib": "^2.5.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
56
|
+
"@aws-sdk/service-client-documentation-generator": "3.310.0",
|
|
57
57
|
"@tsconfig/node14": "1.0.3",
|
|
58
58
|
"@types/node": "^14.14.31",
|
|
59
59
|
"concurrently": "7.0.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
"files": [
|
|
76
|
-
"dist
|
|
76
|
+
"dist-*/**"
|
|
77
77
|
],
|
|
78
78
|
"author": {
|
|
79
79
|
"name": "AWS SDK for JavaScript Team",
|