@aws-sdk/client-detective 3.121.0 → 3.130.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +40 -49
- package/dist-es/protocols/Aws_restJson1.js +27 -36
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-detective
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-detective
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -13,7 +13,7 @@ const serializeAws_restJson1AcceptInvitationCommand = async (input, context) =>
|
|
|
13
13
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/invitation";
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify({
|
|
16
|
-
...(input.GraphArn
|
|
16
|
+
...(input.GraphArn != null && { GraphArn: input.GraphArn }),
|
|
17
17
|
});
|
|
18
18
|
return new protocol_http_1.HttpRequest({
|
|
19
19
|
protocol,
|
|
@@ -34,7 +34,7 @@ const serializeAws_restJson1CreateGraphCommand = async (input, context) => {
|
|
|
34
34
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/graph";
|
|
35
35
|
let body;
|
|
36
36
|
body = JSON.stringify({
|
|
37
|
-
...(input.Tags
|
|
37
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
38
38
|
});
|
|
39
39
|
return new protocol_http_1.HttpRequest({
|
|
40
40
|
protocol,
|
|
@@ -55,12 +55,10 @@ const serializeAws_restJson1CreateMembersCommand = async (input, context) => {
|
|
|
55
55
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/graph/members";
|
|
56
56
|
let body;
|
|
57
57
|
body = JSON.stringify({
|
|
58
|
-
...(input.Accounts
|
|
59
|
-
|
|
60
|
-
...(input.
|
|
61
|
-
|
|
62
|
-
...(input.GraphArn !== undefined && input.GraphArn !== null && { GraphArn: input.GraphArn }),
|
|
63
|
-
...(input.Message !== undefined && input.Message !== null && { Message: input.Message }),
|
|
58
|
+
...(input.Accounts != null && { Accounts: serializeAws_restJson1AccountList(input.Accounts, context) }),
|
|
59
|
+
...(input.DisableEmailNotification != null && { DisableEmailNotification: input.DisableEmailNotification }),
|
|
60
|
+
...(input.GraphArn != null && { GraphArn: input.GraphArn }),
|
|
61
|
+
...(input.Message != null && { Message: input.Message }),
|
|
64
62
|
});
|
|
65
63
|
return new protocol_http_1.HttpRequest({
|
|
66
64
|
protocol,
|
|
@@ -81,7 +79,7 @@ const serializeAws_restJson1DeleteGraphCommand = async (input, context) => {
|
|
|
81
79
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/graph/removal";
|
|
82
80
|
let body;
|
|
83
81
|
body = JSON.stringify({
|
|
84
|
-
...(input.GraphArn
|
|
82
|
+
...(input.GraphArn != null && { GraphArn: input.GraphArn }),
|
|
85
83
|
});
|
|
86
84
|
return new protocol_http_1.HttpRequest({
|
|
87
85
|
protocol,
|
|
@@ -102,9 +100,8 @@ const serializeAws_restJson1DeleteMembersCommand = async (input, context) => {
|
|
|
102
100
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/graph/members/removal";
|
|
103
101
|
let body;
|
|
104
102
|
body = JSON.stringify({
|
|
105
|
-
...(input.AccountIds
|
|
106
|
-
|
|
107
|
-
...(input.GraphArn !== undefined && input.GraphArn !== null && { GraphArn: input.GraphArn }),
|
|
103
|
+
...(input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) }),
|
|
104
|
+
...(input.GraphArn != null && { GraphArn: input.GraphArn }),
|
|
108
105
|
});
|
|
109
106
|
return new protocol_http_1.HttpRequest({
|
|
110
107
|
protocol,
|
|
@@ -125,7 +122,7 @@ const serializeAws_restJson1DescribeOrganizationConfigurationCommand = async (in
|
|
|
125
122
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/orgs/describeOrganizationConfiguration";
|
|
126
123
|
let body;
|
|
127
124
|
body = JSON.stringify({
|
|
128
|
-
...(input.GraphArn
|
|
125
|
+
...(input.GraphArn != null && { GraphArn: input.GraphArn }),
|
|
129
126
|
});
|
|
130
127
|
return new protocol_http_1.HttpRequest({
|
|
131
128
|
protocol,
|
|
@@ -165,7 +162,7 @@ const serializeAws_restJson1DisassociateMembershipCommand = async (input, contex
|
|
|
165
162
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/membership/removal";
|
|
166
163
|
let body;
|
|
167
164
|
body = JSON.stringify({
|
|
168
|
-
...(input.GraphArn
|
|
165
|
+
...(input.GraphArn != null && { GraphArn: input.GraphArn }),
|
|
169
166
|
});
|
|
170
167
|
return new protocol_http_1.HttpRequest({
|
|
171
168
|
protocol,
|
|
@@ -186,7 +183,7 @@ const serializeAws_restJson1EnableOrganizationAdminAccountCommand = async (input
|
|
|
186
183
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/orgs/enableAdminAccount";
|
|
187
184
|
let body;
|
|
188
185
|
body = JSON.stringify({
|
|
189
|
-
...(input.AccountId
|
|
186
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
190
187
|
});
|
|
191
188
|
return new protocol_http_1.HttpRequest({
|
|
192
189
|
protocol,
|
|
@@ -207,9 +204,8 @@ const serializeAws_restJson1GetMembersCommand = async (input, context) => {
|
|
|
207
204
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/graph/members/get";
|
|
208
205
|
let body;
|
|
209
206
|
body = JSON.stringify({
|
|
210
|
-
...(input.AccountIds
|
|
211
|
-
|
|
212
|
-
...(input.GraphArn !== undefined && input.GraphArn !== null && { GraphArn: input.GraphArn }),
|
|
207
|
+
...(input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) }),
|
|
208
|
+
...(input.GraphArn != null && { GraphArn: input.GraphArn }),
|
|
213
209
|
});
|
|
214
210
|
return new protocol_http_1.HttpRequest({
|
|
215
211
|
protocol,
|
|
@@ -230,8 +226,8 @@ const serializeAws_restJson1ListGraphsCommand = async (input, context) => {
|
|
|
230
226
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/graphs/list";
|
|
231
227
|
let body;
|
|
232
228
|
body = JSON.stringify({
|
|
233
|
-
...(input.MaxResults
|
|
234
|
-
...(input.NextToken
|
|
229
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
230
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
235
231
|
});
|
|
236
232
|
return new protocol_http_1.HttpRequest({
|
|
237
233
|
protocol,
|
|
@@ -252,8 +248,8 @@ const serializeAws_restJson1ListInvitationsCommand = async (input, context) => {
|
|
|
252
248
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/invitations/list";
|
|
253
249
|
let body;
|
|
254
250
|
body = JSON.stringify({
|
|
255
|
-
...(input.MaxResults
|
|
256
|
-
...(input.NextToken
|
|
251
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
252
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
257
253
|
});
|
|
258
254
|
return new protocol_http_1.HttpRequest({
|
|
259
255
|
protocol,
|
|
@@ -274,9 +270,9 @@ const serializeAws_restJson1ListMembersCommand = async (input, context) => {
|
|
|
274
270
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/graph/members/list";
|
|
275
271
|
let body;
|
|
276
272
|
body = JSON.stringify({
|
|
277
|
-
...(input.GraphArn
|
|
278
|
-
...(input.MaxResults
|
|
279
|
-
...(input.NextToken
|
|
273
|
+
...(input.GraphArn != null && { GraphArn: input.GraphArn }),
|
|
274
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
275
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
280
276
|
});
|
|
281
277
|
return new protocol_http_1.HttpRequest({
|
|
282
278
|
protocol,
|
|
@@ -297,8 +293,8 @@ const serializeAws_restJson1ListOrganizationAdminAccountsCommand = async (input,
|
|
|
297
293
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/orgs/adminAccountslist";
|
|
298
294
|
let body;
|
|
299
295
|
body = JSON.stringify({
|
|
300
|
-
...(input.MaxResults
|
|
301
|
-
...(input.NextToken
|
|
296
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
297
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
302
298
|
});
|
|
303
299
|
return new protocol_http_1.HttpRequest({
|
|
304
300
|
protocol,
|
|
@@ -345,7 +341,7 @@ const serializeAws_restJson1RejectInvitationCommand = async (input, context) =>
|
|
|
345
341
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/invitation/removal";
|
|
346
342
|
let body;
|
|
347
343
|
body = JSON.stringify({
|
|
348
|
-
...(input.GraphArn
|
|
344
|
+
...(input.GraphArn != null && { GraphArn: input.GraphArn }),
|
|
349
345
|
});
|
|
350
346
|
return new protocol_http_1.HttpRequest({
|
|
351
347
|
protocol,
|
|
@@ -366,8 +362,8 @@ const serializeAws_restJson1StartMonitoringMemberCommand = async (input, context
|
|
|
366
362
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/graph/member/monitoringstate";
|
|
367
363
|
let body;
|
|
368
364
|
body = JSON.stringify({
|
|
369
|
-
...(input.AccountId
|
|
370
|
-
...(input.GraphArn
|
|
365
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
366
|
+
...(input.GraphArn != null && { GraphArn: input.GraphArn }),
|
|
371
367
|
});
|
|
372
368
|
return new protocol_http_1.HttpRequest({
|
|
373
369
|
protocol,
|
|
@@ -398,7 +394,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
398
394
|
}
|
|
399
395
|
let body;
|
|
400
396
|
body = JSON.stringify({
|
|
401
|
-
...(input.Tags
|
|
397
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
402
398
|
});
|
|
403
399
|
return new protocol_http_1.HttpRequest({
|
|
404
400
|
protocol,
|
|
@@ -449,8 +445,8 @@ const serializeAws_restJson1UpdateOrganizationConfigurationCommand = async (inpu
|
|
|
449
445
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/orgs/updateOrganizationConfiguration";
|
|
450
446
|
let body;
|
|
451
447
|
body = JSON.stringify({
|
|
452
|
-
...(input.AutoEnable
|
|
453
|
-
...(input.GraphArn
|
|
448
|
+
...(input.AutoEnable != null && { AutoEnable: input.AutoEnable }),
|
|
449
|
+
...(input.GraphArn != null && { GraphArn: input.GraphArn }),
|
|
454
450
|
});
|
|
455
451
|
return new protocol_http_1.HttpRequest({
|
|
456
452
|
protocol,
|
|
@@ -1420,8 +1416,8 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1420
1416
|
};
|
|
1421
1417
|
const serializeAws_restJson1Account = (input, context) => {
|
|
1422
1418
|
return {
|
|
1423
|
-
...(input.AccountId
|
|
1424
|
-
...(input.EmailAddress
|
|
1419
|
+
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1420
|
+
...(input.EmailAddress != null && { EmailAddress: input.EmailAddress }),
|
|
1425
1421
|
};
|
|
1426
1422
|
};
|
|
1427
1423
|
const serializeAws_restJson1AccountIdList = (input, context) => {
|
|
@@ -1469,9 +1465,7 @@ const deserializeAws_restJson1AccountIdList = (output, context) => {
|
|
|
1469
1465
|
const deserializeAws_restJson1Administrator = (output, context) => {
|
|
1470
1466
|
return {
|
|
1471
1467
|
AccountId: (0, smithy_client_1.expectString)(output.AccountId),
|
|
1472
|
-
DelegationTime: output.DelegationTime
|
|
1473
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.DelegationTime))
|
|
1474
|
-
: undefined,
|
|
1468
|
+
DelegationTime: output.DelegationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.DelegationTime)) : undefined,
|
|
1475
1469
|
GraphArn: (0, smithy_client_1.expectString)(output.GraphArn),
|
|
1476
1470
|
};
|
|
1477
1471
|
};
|
|
@@ -1489,9 +1483,7 @@ const deserializeAws_restJson1AdministratorList = (output, context) => {
|
|
|
1489
1483
|
const deserializeAws_restJson1Graph = (output, context) => {
|
|
1490
1484
|
return {
|
|
1491
1485
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1492
|
-
CreatedTime: output.CreatedTime
|
|
1493
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTime))
|
|
1494
|
-
: undefined,
|
|
1486
|
+
CreatedTime: output.CreatedTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTime)) : undefined,
|
|
1495
1487
|
};
|
|
1496
1488
|
};
|
|
1497
1489
|
const deserializeAws_restJson1GraphList = (output, context) => {
|
|
@@ -1513,20 +1505,16 @@ const deserializeAws_restJson1MemberDetail = (output, context) => {
|
|
|
1513
1505
|
EmailAddress: (0, smithy_client_1.expectString)(output.EmailAddress),
|
|
1514
1506
|
GraphArn: (0, smithy_client_1.expectString)(output.GraphArn),
|
|
1515
1507
|
InvitationType: (0, smithy_client_1.expectString)(output.InvitationType),
|
|
1516
|
-
InvitedTime: output.InvitedTime
|
|
1517
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.InvitedTime))
|
|
1518
|
-
: undefined,
|
|
1508
|
+
InvitedTime: output.InvitedTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.InvitedTime)) : undefined,
|
|
1519
1509
|
MasterId: (0, smithy_client_1.expectString)(output.MasterId),
|
|
1520
1510
|
PercentOfGraphUtilization: (0, smithy_client_1.limitedParseDouble)(output.PercentOfGraphUtilization),
|
|
1521
|
-
PercentOfGraphUtilizationUpdatedTime: output.PercentOfGraphUtilizationUpdatedTime
|
|
1511
|
+
PercentOfGraphUtilizationUpdatedTime: output.PercentOfGraphUtilizationUpdatedTime != null
|
|
1522
1512
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.PercentOfGraphUtilizationUpdatedTime))
|
|
1523
1513
|
: undefined,
|
|
1524
1514
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1525
|
-
UpdatedTime: output.UpdatedTime
|
|
1526
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTime))
|
|
1527
|
-
: undefined,
|
|
1515
|
+
UpdatedTime: output.UpdatedTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTime)) : undefined,
|
|
1528
1516
|
VolumeUsageInBytes: (0, smithy_client_1.expectLong)(output.VolumeUsageInBytes),
|
|
1529
|
-
VolumeUsageUpdatedTime: output.VolumeUsageUpdatedTime
|
|
1517
|
+
VolumeUsageUpdatedTime: output.VolumeUsageUpdatedTime != null
|
|
1530
1518
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.VolumeUsageUpdatedTime))
|
|
1531
1519
|
: undefined,
|
|
1532
1520
|
};
|
|
@@ -1601,6 +1589,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1601
1589
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1602
1590
|
const sanitizeErrorCode = (rawValue) => {
|
|
1603
1591
|
let cleanValue = rawValue;
|
|
1592
|
+
if (typeof cleanValue === "number") {
|
|
1593
|
+
cleanValue = cleanValue.toString();
|
|
1594
|
+
}
|
|
1604
1595
|
if (cleanValue.indexOf(":") >= 0) {
|
|
1605
1596
|
cleanValue = cleanValue.split(":")[0];
|
|
1606
1597
|
}
|
|
@@ -14,7 +14,7 @@ export var serializeAws_restJson1AcceptInvitationCommand = function (input, cont
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitation";
|
|
17
|
-
body = JSON.stringify(__assign({}, (input.GraphArn
|
|
17
|
+
body = JSON.stringify(__assign({}, (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
18
18
|
return [2, new __HttpRequest({
|
|
19
19
|
protocol: protocol,
|
|
20
20
|
hostname: hostname,
|
|
@@ -38,7 +38,7 @@ export var serializeAws_restJson1CreateGraphCommand = function (input, context)
|
|
|
38
38
|
"content-type": "application/json",
|
|
39
39
|
};
|
|
40
40
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph";
|
|
41
|
-
body = JSON.stringify(__assign({}, (input.Tags
|
|
41
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
42
42
|
return [2, new __HttpRequest({
|
|
43
43
|
protocol: protocol,
|
|
44
44
|
hostname: hostname,
|
|
@@ -62,9 +62,7 @@ export var serializeAws_restJson1CreateMembersCommand = function (input, context
|
|
|
62
62
|
"content-type": "application/json",
|
|
63
63
|
};
|
|
64
64
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/members";
|
|
65
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Accounts
|
|
66
|
-
input.Accounts !== null && { Accounts: serializeAws_restJson1AccountList(input.Accounts, context) })), (input.DisableEmailNotification !== undefined &&
|
|
67
|
-
input.DisableEmailNotification !== null && { DisableEmailNotification: input.DisableEmailNotification })), (input.GraphArn !== undefined && input.GraphArn !== null && { GraphArn: input.GraphArn })), (input.Message !== undefined && input.Message !== null && { Message: input.Message })));
|
|
65
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Accounts != null && { Accounts: serializeAws_restJson1AccountList(input.Accounts, context) })), (input.DisableEmailNotification != null && { DisableEmailNotification: input.DisableEmailNotification })), (input.GraphArn != null && { GraphArn: input.GraphArn })), (input.Message != null && { Message: input.Message })));
|
|
68
66
|
return [2, new __HttpRequest({
|
|
69
67
|
protocol: protocol,
|
|
70
68
|
hostname: hostname,
|
|
@@ -88,7 +86,7 @@ export var serializeAws_restJson1DeleteGraphCommand = function (input, context)
|
|
|
88
86
|
"content-type": "application/json",
|
|
89
87
|
};
|
|
90
88
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/removal";
|
|
91
|
-
body = JSON.stringify(__assign({}, (input.GraphArn
|
|
89
|
+
body = JSON.stringify(__assign({}, (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
92
90
|
return [2, new __HttpRequest({
|
|
93
91
|
protocol: protocol,
|
|
94
92
|
hostname: hostname,
|
|
@@ -112,8 +110,7 @@ export var serializeAws_restJson1DeleteMembersCommand = function (input, context
|
|
|
112
110
|
"content-type": "application/json",
|
|
113
111
|
};
|
|
114
112
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/members/removal";
|
|
115
|
-
body = JSON.stringify(__assign(__assign({}, (input.AccountIds
|
|
116
|
-
input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.GraphArn !== undefined && input.GraphArn !== null && { GraphArn: input.GraphArn })));
|
|
113
|
+
body = JSON.stringify(__assign(__assign({}, (input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
117
114
|
return [2, new __HttpRequest({
|
|
118
115
|
protocol: protocol,
|
|
119
116
|
hostname: hostname,
|
|
@@ -137,7 +134,7 @@ export var serializeAws_restJson1DescribeOrganizationConfigurationCommand = func
|
|
|
137
134
|
"content-type": "application/json",
|
|
138
135
|
};
|
|
139
136
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/orgs/describeOrganizationConfiguration";
|
|
140
|
-
body = JSON.stringify(__assign({}, (input.GraphArn
|
|
137
|
+
body = JSON.stringify(__assign({}, (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
141
138
|
return [2, new __HttpRequest({
|
|
142
139
|
protocol: protocol,
|
|
143
140
|
hostname: hostname,
|
|
@@ -185,7 +182,7 @@ export var serializeAws_restJson1DisassociateMembershipCommand = function (input
|
|
|
185
182
|
"content-type": "application/json",
|
|
186
183
|
};
|
|
187
184
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/membership/removal";
|
|
188
|
-
body = JSON.stringify(__assign({}, (input.GraphArn
|
|
185
|
+
body = JSON.stringify(__assign({}, (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
189
186
|
return [2, new __HttpRequest({
|
|
190
187
|
protocol: protocol,
|
|
191
188
|
hostname: hostname,
|
|
@@ -209,7 +206,7 @@ export var serializeAws_restJson1EnableOrganizationAdminAccountCommand = functio
|
|
|
209
206
|
"content-type": "application/json",
|
|
210
207
|
};
|
|
211
208
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/orgs/enableAdminAccount";
|
|
212
|
-
body = JSON.stringify(__assign({}, (input.AccountId
|
|
209
|
+
body = JSON.stringify(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })));
|
|
213
210
|
return [2, new __HttpRequest({
|
|
214
211
|
protocol: protocol,
|
|
215
212
|
hostname: hostname,
|
|
@@ -233,8 +230,7 @@ export var serializeAws_restJson1GetMembersCommand = function (input, context) {
|
|
|
233
230
|
"content-type": "application/json",
|
|
234
231
|
};
|
|
235
232
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/members/get";
|
|
236
|
-
body = JSON.stringify(__assign(__assign({}, (input.AccountIds
|
|
237
|
-
input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.GraphArn !== undefined && input.GraphArn !== null && { GraphArn: input.GraphArn })));
|
|
233
|
+
body = JSON.stringify(__assign(__assign({}, (input.AccountIds != null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
238
234
|
return [2, new __HttpRequest({
|
|
239
235
|
protocol: protocol,
|
|
240
236
|
hostname: hostname,
|
|
@@ -258,7 +254,7 @@ export var serializeAws_restJson1ListGraphsCommand = function (input, context) {
|
|
|
258
254
|
"content-type": "application/json",
|
|
259
255
|
};
|
|
260
256
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graphs/list";
|
|
261
|
-
body = JSON.stringify(__assign(__assign({}, (input.MaxResults
|
|
257
|
+
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
262
258
|
return [2, new __HttpRequest({
|
|
263
259
|
protocol: protocol,
|
|
264
260
|
hostname: hostname,
|
|
@@ -282,7 +278,7 @@ export var serializeAws_restJson1ListInvitationsCommand = function (input, conte
|
|
|
282
278
|
"content-type": "application/json",
|
|
283
279
|
};
|
|
284
280
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitations/list";
|
|
285
|
-
body = JSON.stringify(__assign(__assign({}, (input.MaxResults
|
|
281
|
+
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
286
282
|
return [2, new __HttpRequest({
|
|
287
283
|
protocol: protocol,
|
|
288
284
|
hostname: hostname,
|
|
@@ -306,7 +302,7 @@ export var serializeAws_restJson1ListMembersCommand = function (input, context)
|
|
|
306
302
|
"content-type": "application/json",
|
|
307
303
|
};
|
|
308
304
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/members/list";
|
|
309
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.GraphArn
|
|
305
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.GraphArn != null && { GraphArn: input.GraphArn })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
310
306
|
return [2, new __HttpRequest({
|
|
311
307
|
protocol: protocol,
|
|
312
308
|
hostname: hostname,
|
|
@@ -330,7 +326,7 @@ export var serializeAws_restJson1ListOrganizationAdminAccountsCommand = function
|
|
|
330
326
|
"content-type": "application/json",
|
|
331
327
|
};
|
|
332
328
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/orgs/adminAccountslist";
|
|
333
|
-
body = JSON.stringify(__assign(__assign({}, (input.MaxResults
|
|
329
|
+
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
334
330
|
return [2, new __HttpRequest({
|
|
335
331
|
protocol: protocol,
|
|
336
332
|
hostname: hostname,
|
|
@@ -385,7 +381,7 @@ export var serializeAws_restJson1RejectInvitationCommand = function (input, cont
|
|
|
385
381
|
"content-type": "application/json",
|
|
386
382
|
};
|
|
387
383
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitation/removal";
|
|
388
|
-
body = JSON.stringify(__assign({}, (input.GraphArn
|
|
384
|
+
body = JSON.stringify(__assign({}, (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
389
385
|
return [2, new __HttpRequest({
|
|
390
386
|
protocol: protocol,
|
|
391
387
|
hostname: hostname,
|
|
@@ -409,7 +405,7 @@ export var serializeAws_restJson1StartMonitoringMemberCommand = function (input,
|
|
|
409
405
|
"content-type": "application/json",
|
|
410
406
|
};
|
|
411
407
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/member/monitoringstate";
|
|
412
|
-
body = JSON.stringify(__assign(__assign({}, (input.AccountId
|
|
408
|
+
body = JSON.stringify(__assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
413
409
|
return [2, new __HttpRequest({
|
|
414
410
|
protocol: protocol,
|
|
415
411
|
hostname: hostname,
|
|
@@ -443,7 +439,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
443
439
|
else {
|
|
444
440
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
445
441
|
}
|
|
446
|
-
body = JSON.stringify(__assign({}, (input.Tags
|
|
442
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
447
443
|
return [2, new __HttpRequest({
|
|
448
444
|
protocol: protocol,
|
|
449
445
|
hostname: hostname,
|
|
@@ -500,7 +496,7 @@ export var serializeAws_restJson1UpdateOrganizationConfigurationCommand = functi
|
|
|
500
496
|
"content-type": "application/json",
|
|
501
497
|
};
|
|
502
498
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/orgs/updateOrganizationConfiguration";
|
|
503
|
-
body = JSON.stringify(__assign(__assign({}, (input.AutoEnable
|
|
499
|
+
body = JSON.stringify(__assign(__assign({}, (input.AutoEnable != null && { AutoEnable: input.AutoEnable })), (input.GraphArn != null && { GraphArn: input.GraphArn })));
|
|
504
500
|
return [2, new __HttpRequest({
|
|
505
501
|
protocol: protocol,
|
|
506
502
|
hostname: hostname,
|
|
@@ -1874,7 +1870,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
1874
1870
|
});
|
|
1875
1871
|
}); };
|
|
1876
1872
|
var serializeAws_restJson1Account = function (input, context) {
|
|
1877
|
-
return __assign(__assign({}, (input.AccountId
|
|
1873
|
+
return __assign(__assign({}, (input.AccountId != null && { AccountId: input.AccountId })), (input.EmailAddress != null && { EmailAddress: input.EmailAddress }));
|
|
1878
1874
|
};
|
|
1879
1875
|
var serializeAws_restJson1AccountIdList = function (input, context) {
|
|
1880
1876
|
return input
|
|
@@ -1920,9 +1916,7 @@ var deserializeAws_restJson1AccountIdList = function (output, context) {
|
|
|
1920
1916
|
var deserializeAws_restJson1Administrator = function (output, context) {
|
|
1921
1917
|
return {
|
|
1922
1918
|
AccountId: __expectString(output.AccountId),
|
|
1923
|
-
DelegationTime: output.DelegationTime
|
|
1924
|
-
? __expectNonNull(__parseRfc3339DateTime(output.DelegationTime))
|
|
1925
|
-
: undefined,
|
|
1919
|
+
DelegationTime: output.DelegationTime != null ? __expectNonNull(__parseRfc3339DateTime(output.DelegationTime)) : undefined,
|
|
1926
1920
|
GraphArn: __expectString(output.GraphArn),
|
|
1927
1921
|
};
|
|
1928
1922
|
};
|
|
@@ -1940,9 +1934,7 @@ var deserializeAws_restJson1AdministratorList = function (output, context) {
|
|
|
1940
1934
|
var deserializeAws_restJson1Graph = function (output, context) {
|
|
1941
1935
|
return {
|
|
1942
1936
|
Arn: __expectString(output.Arn),
|
|
1943
|
-
CreatedTime: output.CreatedTime
|
|
1944
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CreatedTime))
|
|
1945
|
-
: undefined,
|
|
1937
|
+
CreatedTime: output.CreatedTime != null ? __expectNonNull(__parseRfc3339DateTime(output.CreatedTime)) : undefined,
|
|
1946
1938
|
};
|
|
1947
1939
|
};
|
|
1948
1940
|
var deserializeAws_restJson1GraphList = function (output, context) {
|
|
@@ -1964,20 +1956,16 @@ var deserializeAws_restJson1MemberDetail = function (output, context) {
|
|
|
1964
1956
|
EmailAddress: __expectString(output.EmailAddress),
|
|
1965
1957
|
GraphArn: __expectString(output.GraphArn),
|
|
1966
1958
|
InvitationType: __expectString(output.InvitationType),
|
|
1967
|
-
InvitedTime: output.InvitedTime
|
|
1968
|
-
? __expectNonNull(__parseRfc3339DateTime(output.InvitedTime))
|
|
1969
|
-
: undefined,
|
|
1959
|
+
InvitedTime: output.InvitedTime != null ? __expectNonNull(__parseRfc3339DateTime(output.InvitedTime)) : undefined,
|
|
1970
1960
|
MasterId: __expectString(output.MasterId),
|
|
1971
1961
|
PercentOfGraphUtilization: __limitedParseDouble(output.PercentOfGraphUtilization),
|
|
1972
|
-
PercentOfGraphUtilizationUpdatedTime: output.PercentOfGraphUtilizationUpdatedTime
|
|
1962
|
+
PercentOfGraphUtilizationUpdatedTime: output.PercentOfGraphUtilizationUpdatedTime != null
|
|
1973
1963
|
? __expectNonNull(__parseRfc3339DateTime(output.PercentOfGraphUtilizationUpdatedTime))
|
|
1974
1964
|
: undefined,
|
|
1975
1965
|
Status: __expectString(output.Status),
|
|
1976
|
-
UpdatedTime: output.UpdatedTime
|
|
1977
|
-
? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTime))
|
|
1978
|
-
: undefined,
|
|
1966
|
+
UpdatedTime: output.UpdatedTime != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedTime)) : undefined,
|
|
1979
1967
|
VolumeUsageInBytes: __expectLong(output.VolumeUsageInBytes),
|
|
1980
|
-
VolumeUsageUpdatedTime: output.VolumeUsageUpdatedTime
|
|
1968
|
+
VolumeUsageUpdatedTime: output.VolumeUsageUpdatedTime != null
|
|
1981
1969
|
? __expectNonNull(__parseRfc3339DateTime(output.VolumeUsageUpdatedTime))
|
|
1982
1970
|
: undefined,
|
|
1983
1971
|
};
|
|
@@ -2058,6 +2046,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2058
2046
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2059
2047
|
var sanitizeErrorCode = function (rawValue) {
|
|
2060
2048
|
var cleanValue = rawValue;
|
|
2049
|
+
if (typeof cleanValue === "number") {
|
|
2050
|
+
cleanValue = cleanValue.toString();
|
|
2051
|
+
}
|
|
2061
2052
|
if (cleanValue.indexOf(":") >= 0) {
|
|
2062
2053
|
cleanValue = cleanValue.split(":")[0];
|
|
2063
2054
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-detective",
|
|
3
3
|
"description": "AWS SDK for JavaScript Detective Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.130.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",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.130.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.130.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.130.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.130.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|