@aws-sdk/client-detective 3.54.1 → 3.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/DetectiveClient.js +13 -13
  3. package/dist-cjs/commands/AcceptInvitationCommand.js +3 -3
  4. package/dist-cjs/commands/CreateGraphCommand.js +3 -3
  5. package/dist-cjs/commands/CreateMembersCommand.js +3 -3
  6. package/dist-cjs/commands/DeleteGraphCommand.js +3 -3
  7. package/dist-cjs/commands/DeleteMembersCommand.js +3 -3
  8. package/dist-cjs/commands/DescribeOrganizationConfigurationCommand.js +3 -3
  9. package/dist-cjs/commands/DisableOrganizationAdminAccountCommand.js +3 -3
  10. package/dist-cjs/commands/DisassociateMembershipCommand.js +3 -3
  11. package/dist-cjs/commands/EnableOrganizationAdminAccountCommand.js +3 -3
  12. package/dist-cjs/commands/GetMembersCommand.js +3 -3
  13. package/dist-cjs/commands/ListGraphsCommand.js +3 -3
  14. package/dist-cjs/commands/ListInvitationsCommand.js +3 -3
  15. package/dist-cjs/commands/ListMembersCommand.js +3 -3
  16. package/dist-cjs/commands/ListOrganizationAdminAccountsCommand.js +3 -3
  17. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  18. package/dist-cjs/commands/RejectInvitationCommand.js +3 -3
  19. package/dist-cjs/commands/StartMonitoringMemberCommand.js +3 -3
  20. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  21. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  22. package/dist-cjs/commands/UpdateOrganizationConfigurationCommand.js +3 -3
  23. package/dist-cjs/endpoints.js +1 -1
  24. package/dist-cjs/protocols/Aws_restJson1.js +74 -74
  25. package/dist-cjs/runtimeConfig.browser.js +4 -4
  26. package/dist-cjs/runtimeConfig.js +9 -9
  27. package/dist-cjs/runtimeConfig.native.js +1 -1
  28. package/dist-es/Detective.js +20 -20
  29. package/dist-es/pagination/ListGraphsPaginator.js +4 -4
  30. package/dist-es/pagination/ListInvitationsPaginator.js +4 -4
  31. package/dist-es/pagination/ListMembersPaginator.js +4 -4
  32. package/dist-es/pagination/ListOrganizationAdminAccountsPaginator.js +4 -4
  33. package/dist-es/protocols/Aws_restJson1.js +20 -20
  34. package/dist-types/runtimeConfig.native.d.ts +2 -2
  35. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  36. package/package.json +34 -34
@@ -32,7 +32,7 @@ var Detective = (function (_super) {
32
32
  }
33
33
  else if (typeof cb === "function") {
34
34
  if (typeof optionsOrCb !== "object")
35
- throw new Error("Expect http options but get " + typeof optionsOrCb);
35
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
36
36
  this.send(command, optionsOrCb || {}, cb);
37
37
  }
38
38
  else {
@@ -46,7 +46,7 @@ var Detective = (function (_super) {
46
46
  }
47
47
  else if (typeof cb === "function") {
48
48
  if (typeof optionsOrCb !== "object")
49
- throw new Error("Expect http options but get " + typeof optionsOrCb);
49
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
50
50
  this.send(command, optionsOrCb || {}, cb);
51
51
  }
52
52
  else {
@@ -60,7 +60,7 @@ var Detective = (function (_super) {
60
60
  }
61
61
  else if (typeof cb === "function") {
62
62
  if (typeof optionsOrCb !== "object")
63
- throw new Error("Expect http options but get " + typeof optionsOrCb);
63
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
64
64
  this.send(command, optionsOrCb || {}, cb);
65
65
  }
66
66
  else {
@@ -74,7 +74,7 @@ var Detective = (function (_super) {
74
74
  }
75
75
  else if (typeof cb === "function") {
76
76
  if (typeof optionsOrCb !== "object")
77
- throw new Error("Expect http options but get " + typeof optionsOrCb);
77
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
78
78
  this.send(command, optionsOrCb || {}, cb);
79
79
  }
80
80
  else {
@@ -88,7 +88,7 @@ var Detective = (function (_super) {
88
88
  }
89
89
  else if (typeof cb === "function") {
90
90
  if (typeof optionsOrCb !== "object")
91
- throw new Error("Expect http options but get " + typeof optionsOrCb);
91
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
92
92
  this.send(command, optionsOrCb || {}, cb);
93
93
  }
94
94
  else {
@@ -102,7 +102,7 @@ var Detective = (function (_super) {
102
102
  }
103
103
  else if (typeof cb === "function") {
104
104
  if (typeof optionsOrCb !== "object")
105
- throw new Error("Expect http options but get " + typeof optionsOrCb);
105
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
106
106
  this.send(command, optionsOrCb || {}, cb);
107
107
  }
108
108
  else {
@@ -116,7 +116,7 @@ var Detective = (function (_super) {
116
116
  }
117
117
  else if (typeof cb === "function") {
118
118
  if (typeof optionsOrCb !== "object")
119
- throw new Error("Expect http options but get " + typeof optionsOrCb);
119
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
120
120
  this.send(command, optionsOrCb || {}, cb);
121
121
  }
122
122
  else {
@@ -130,7 +130,7 @@ var Detective = (function (_super) {
130
130
  }
131
131
  else if (typeof cb === "function") {
132
132
  if (typeof optionsOrCb !== "object")
133
- throw new Error("Expect http options but get " + typeof optionsOrCb);
133
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
134
134
  this.send(command, optionsOrCb || {}, cb);
135
135
  }
136
136
  else {
@@ -144,7 +144,7 @@ var Detective = (function (_super) {
144
144
  }
145
145
  else if (typeof cb === "function") {
146
146
  if (typeof optionsOrCb !== "object")
147
- throw new Error("Expect http options but get " + typeof optionsOrCb);
147
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
148
148
  this.send(command, optionsOrCb || {}, cb);
149
149
  }
150
150
  else {
@@ -158,7 +158,7 @@ var Detective = (function (_super) {
158
158
  }
159
159
  else if (typeof cb === "function") {
160
160
  if (typeof optionsOrCb !== "object")
161
- throw new Error("Expect http options but get " + typeof optionsOrCb);
161
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
162
162
  this.send(command, optionsOrCb || {}, cb);
163
163
  }
164
164
  else {
@@ -172,7 +172,7 @@ var Detective = (function (_super) {
172
172
  }
173
173
  else if (typeof cb === "function") {
174
174
  if (typeof optionsOrCb !== "object")
175
- throw new Error("Expect http options but get " + typeof optionsOrCb);
175
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
176
176
  this.send(command, optionsOrCb || {}, cb);
177
177
  }
178
178
  else {
@@ -186,7 +186,7 @@ var Detective = (function (_super) {
186
186
  }
187
187
  else if (typeof cb === "function") {
188
188
  if (typeof optionsOrCb !== "object")
189
- throw new Error("Expect http options but get " + typeof optionsOrCb);
189
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
190
190
  this.send(command, optionsOrCb || {}, cb);
191
191
  }
192
192
  else {
@@ -200,7 +200,7 @@ var Detective = (function (_super) {
200
200
  }
201
201
  else if (typeof cb === "function") {
202
202
  if (typeof optionsOrCb !== "object")
203
- throw new Error("Expect http options but get " + typeof optionsOrCb);
203
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
204
204
  this.send(command, optionsOrCb || {}, cb);
205
205
  }
206
206
  else {
@@ -214,7 +214,7 @@ var Detective = (function (_super) {
214
214
  }
215
215
  else if (typeof cb === "function") {
216
216
  if (typeof optionsOrCb !== "object")
217
- throw new Error("Expect http options but get " + typeof optionsOrCb);
217
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
218
218
  this.send(command, optionsOrCb || {}, cb);
219
219
  }
220
220
  else {
@@ -228,7 +228,7 @@ var Detective = (function (_super) {
228
228
  }
229
229
  else if (typeof cb === "function") {
230
230
  if (typeof optionsOrCb !== "object")
231
- throw new Error("Expect http options but get " + typeof optionsOrCb);
231
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
232
232
  this.send(command, optionsOrCb || {}, cb);
233
233
  }
234
234
  else {
@@ -242,7 +242,7 @@ var Detective = (function (_super) {
242
242
  }
243
243
  else if (typeof cb === "function") {
244
244
  if (typeof optionsOrCb !== "object")
245
- throw new Error("Expect http options but get " + typeof optionsOrCb);
245
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
246
246
  this.send(command, optionsOrCb || {}, cb);
247
247
  }
248
248
  else {
@@ -256,7 +256,7 @@ var Detective = (function (_super) {
256
256
  }
257
257
  else if (typeof cb === "function") {
258
258
  if (typeof optionsOrCb !== "object")
259
- throw new Error("Expect http options but get " + typeof optionsOrCb);
259
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
260
260
  this.send(command, optionsOrCb || {}, cb);
261
261
  }
262
262
  else {
@@ -270,7 +270,7 @@ var Detective = (function (_super) {
270
270
  }
271
271
  else if (typeof cb === "function") {
272
272
  if (typeof optionsOrCb !== "object")
273
- throw new Error("Expect http options but get " + typeof optionsOrCb);
273
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
274
274
  this.send(command, optionsOrCb || {}, cb);
275
275
  }
276
276
  else {
@@ -284,7 +284,7 @@ var Detective = (function (_super) {
284
284
  }
285
285
  else if (typeof cb === "function") {
286
286
  if (typeof optionsOrCb !== "object")
287
- throw new Error("Expect http options but get " + typeof optionsOrCb);
287
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
288
288
  this.send(command, optionsOrCb || {}, cb);
289
289
  }
290
290
  else {
@@ -298,7 +298,7 @@ var Detective = (function (_super) {
298
298
  }
299
299
  else if (typeof cb === "function") {
300
300
  if (typeof optionsOrCb !== "object")
301
- throw new Error("Expect http options but get " + typeof optionsOrCb);
301
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
302
302
  this.send(command, optionsOrCb || {}, cb);
303
303
  }
304
304
  else {
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
10
10
  return __awaiter(void 0, void 0, void 0, function () {
11
11
  return __generator(this, function (_a) {
12
12
  switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new ListGraphsCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListGraphsCommand(input)], __read(args), false))];
14
14
  case 1: return [2, _a.sent()];
15
15
  }
16
16
  });
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
24
24
  return __awaiter(void 0, void 0, void 0, function () {
25
25
  return __generator(this, function (_a) {
26
26
  switch (_a.label) {
27
- case 0: return [4, client.listGraphs.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.listGraphs.apply(client, __spreadArray([input], __read(args), false))];
28
28
  case 1: return [2, _a.sent()];
29
29
  }
30
30
  });
@@ -48,13 +48,13 @@ export function paginateListGraphs(config, input) {
48
48
  input.NextToken = token;
49
49
  input["MaxResults"] = config.pageSize;
50
50
  if (!(config.client instanceof Detective)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
52
  case 2:
53
53
  page = _a.sent();
54
54
  return [3, 6];
55
55
  case 3:
56
56
  if (!(config.client instanceof DetectiveClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
58
  case 4:
59
59
  page = _a.sent();
60
60
  return [3, 6];
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
10
10
  return __awaiter(void 0, void 0, void 0, function () {
11
11
  return __generator(this, function (_a) {
12
12
  switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new ListInvitationsCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListInvitationsCommand(input)], __read(args), false))];
14
14
  case 1: return [2, _a.sent()];
15
15
  }
16
16
  });
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
24
24
  return __awaiter(void 0, void 0, void 0, function () {
25
25
  return __generator(this, function (_a) {
26
26
  switch (_a.label) {
27
- case 0: return [4, client.listInvitations.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.listInvitations.apply(client, __spreadArray([input], __read(args), false))];
28
28
  case 1: return [2, _a.sent()];
29
29
  }
30
30
  });
@@ -48,13 +48,13 @@ export function paginateListInvitations(config, input) {
48
48
  input.NextToken = token;
49
49
  input["MaxResults"] = config.pageSize;
50
50
  if (!(config.client instanceof Detective)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
52
  case 2:
53
53
  page = _a.sent();
54
54
  return [3, 6];
55
55
  case 3:
56
56
  if (!(config.client instanceof DetectiveClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
58
  case 4:
59
59
  page = _a.sent();
60
60
  return [3, 6];
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
10
10
  return __awaiter(void 0, void 0, void 0, function () {
11
11
  return __generator(this, function (_a) {
12
12
  switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new ListMembersCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListMembersCommand(input)], __read(args), false))];
14
14
  case 1: return [2, _a.sent()];
15
15
  }
16
16
  });
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
24
24
  return __awaiter(void 0, void 0, void 0, function () {
25
25
  return __generator(this, function (_a) {
26
26
  switch (_a.label) {
27
- case 0: return [4, client.listMembers.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.listMembers.apply(client, __spreadArray([input], __read(args), false))];
28
28
  case 1: return [2, _a.sent()];
29
29
  }
30
30
  });
@@ -48,13 +48,13 @@ export function paginateListMembers(config, input) {
48
48
  input.NextToken = token;
49
49
  input["MaxResults"] = config.pageSize;
50
50
  if (!(config.client instanceof Detective)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
52
  case 2:
53
53
  page = _a.sent();
54
54
  return [3, 6];
55
55
  case 3:
56
56
  if (!(config.client instanceof DetectiveClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
58
  case 4:
59
59
  page = _a.sent();
60
60
  return [3, 6];
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
10
10
  return __awaiter(void 0, void 0, void 0, function () {
11
11
  return __generator(this, function (_a) {
12
12
  switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new ListOrganizationAdminAccountsCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListOrganizationAdminAccountsCommand(input)], __read(args), false))];
14
14
  case 1: return [2, _a.sent()];
15
15
  }
16
16
  });
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
24
24
  return __awaiter(void 0, void 0, void 0, function () {
25
25
  return __generator(this, function (_a) {
26
26
  switch (_a.label) {
27
- case 0: return [4, client.listOrganizationAdminAccounts.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.listOrganizationAdminAccounts.apply(client, __spreadArray([input], __read(args), false))];
28
28
  case 1: return [2, _a.sent()];
29
29
  }
30
30
  });
@@ -48,13 +48,13 @@ export function paginateListOrganizationAdminAccounts(config, input) {
48
48
  input.NextToken = token;
49
49
  input["MaxResults"] = config.pageSize;
50
50
  if (!(config.client instanceof Detective)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
52
  case 2:
53
53
  page = _a.sent();
54
54
  return [3, 6];
55
55
  case 3:
56
56
  if (!(config.client instanceof DetectiveClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
58
  case 4:
59
59
  page = _a.sent();
60
60
  return [3, 6];
@@ -13,7 +13,7 @@ export var serializeAws_restJson1AcceptInvitationCommand = function (input, cont
13
13
  headers = {
14
14
  "content-type": "application/json",
15
15
  };
16
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitation";
16
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitation";
17
17
  body = JSON.stringify(__assign({}, (input.GraphArn !== undefined && input.GraphArn !== null && { GraphArn: input.GraphArn })));
18
18
  return [2, new __HttpRequest({
19
19
  protocol: protocol,
@@ -37,7 +37,7 @@ export var serializeAws_restJson1CreateGraphCommand = function (input, context)
37
37
  headers = {
38
38
  "content-type": "application/json",
39
39
  };
40
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph";
40
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph";
41
41
  body = JSON.stringify(__assign({}, (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
42
42
  return [2, new __HttpRequest({
43
43
  protocol: protocol,
@@ -61,7 +61,7 @@ export var serializeAws_restJson1CreateMembersCommand = function (input, context
61
61
  headers = {
62
62
  "content-type": "application/json",
63
63
  };
64
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/members";
64
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/members";
65
65
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Accounts !== undefined &&
66
66
  input.Accounts !== null && { Accounts: serializeAws_restJson1AccountList(input.Accounts, context) })), (input.DisableEmailNotification !== undefined &&
67
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 })));
@@ -87,7 +87,7 @@ export var serializeAws_restJson1DeleteGraphCommand = function (input, context)
87
87
  headers = {
88
88
  "content-type": "application/json",
89
89
  };
90
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/removal";
90
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/removal";
91
91
  body = JSON.stringify(__assign({}, (input.GraphArn !== undefined && input.GraphArn !== null && { GraphArn: input.GraphArn })));
92
92
  return [2, new __HttpRequest({
93
93
  protocol: protocol,
@@ -111,7 +111,7 @@ export var serializeAws_restJson1DeleteMembersCommand = function (input, context
111
111
  headers = {
112
112
  "content-type": "application/json",
113
113
  };
114
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/members/removal";
114
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/members/removal";
115
115
  body = JSON.stringify(__assign(__assign({}, (input.AccountIds !== undefined &&
116
116
  input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.GraphArn !== undefined && input.GraphArn !== null && { GraphArn: input.GraphArn })));
117
117
  return [2, new __HttpRequest({
@@ -136,7 +136,7 @@ export var serializeAws_restJson1DescribeOrganizationConfigurationCommand = func
136
136
  headers = {
137
137
  "content-type": "application/json",
138
138
  };
139
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/orgs/describeOrganizationConfiguration";
139
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/orgs/describeOrganizationConfiguration";
140
140
  body = JSON.stringify(__assign({}, (input.GraphArn !== undefined && input.GraphArn !== null && { GraphArn: input.GraphArn })));
141
141
  return [2, new __HttpRequest({
142
142
  protocol: protocol,
@@ -160,7 +160,7 @@ export var serializeAws_restJson1DisableOrganizationAdminAccountCommand = functi
160
160
  headers = {
161
161
  "content-type": "application/json",
162
162
  };
163
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/orgs/disableAdminAccount";
163
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/orgs/disableAdminAccount";
164
164
  body = "";
165
165
  return [2, new __HttpRequest({
166
166
  protocol: protocol,
@@ -184,7 +184,7 @@ export var serializeAws_restJson1DisassociateMembershipCommand = function (input
184
184
  headers = {
185
185
  "content-type": "application/json",
186
186
  };
187
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/membership/removal";
187
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/membership/removal";
188
188
  body = JSON.stringify(__assign({}, (input.GraphArn !== undefined && input.GraphArn !== null && { GraphArn: input.GraphArn })));
189
189
  return [2, new __HttpRequest({
190
190
  protocol: protocol,
@@ -208,7 +208,7 @@ export var serializeAws_restJson1EnableOrganizationAdminAccountCommand = functio
208
208
  headers = {
209
209
  "content-type": "application/json",
210
210
  };
211
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/orgs/enableAdminAccount";
211
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/orgs/enableAdminAccount";
212
212
  body = JSON.stringify(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })));
213
213
  return [2, new __HttpRequest({
214
214
  protocol: protocol,
@@ -232,7 +232,7 @@ export var serializeAws_restJson1GetMembersCommand = function (input, context) {
232
232
  headers = {
233
233
  "content-type": "application/json",
234
234
  };
235
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/members/get";
235
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/members/get";
236
236
  body = JSON.stringify(__assign(__assign({}, (input.AccountIds !== undefined &&
237
237
  input.AccountIds !== null && { AccountIds: serializeAws_restJson1AccountIdList(input.AccountIds, context) })), (input.GraphArn !== undefined && input.GraphArn !== null && { GraphArn: input.GraphArn })));
238
238
  return [2, new __HttpRequest({
@@ -257,7 +257,7 @@ export var serializeAws_restJson1ListGraphsCommand = function (input, context) {
257
257
  headers = {
258
258
  "content-type": "application/json",
259
259
  };
260
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graphs/list";
260
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graphs/list";
261
261
  body = JSON.stringify(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
262
262
  return [2, new __HttpRequest({
263
263
  protocol: protocol,
@@ -281,7 +281,7 @@ export var serializeAws_restJson1ListInvitationsCommand = function (input, conte
281
281
  headers = {
282
282
  "content-type": "application/json",
283
283
  };
284
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitations/list";
284
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitations/list";
285
285
  body = JSON.stringify(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
286
286
  return [2, new __HttpRequest({
287
287
  protocol: protocol,
@@ -305,7 +305,7 @@ export var serializeAws_restJson1ListMembersCommand = function (input, context)
305
305
  headers = {
306
306
  "content-type": "application/json",
307
307
  };
308
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/members/list";
308
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/members/list";
309
309
  body = JSON.stringify(__assign(__assign(__assign({}, (input.GraphArn !== undefined && input.GraphArn !== null && { GraphArn: input.GraphArn })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
310
310
  return [2, new __HttpRequest({
311
311
  protocol: protocol,
@@ -329,7 +329,7 @@ export var serializeAws_restJson1ListOrganizationAdminAccountsCommand = function
329
329
  headers = {
330
330
  "content-type": "application/json",
331
331
  };
332
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/orgs/adminAccountslist";
332
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/orgs/adminAccountslist";
333
333
  body = JSON.stringify(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
334
334
  return [2, new __HttpRequest({
335
335
  protocol: protocol,
@@ -351,7 +351,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
351
351
  case 1:
352
352
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
353
353
  headers = {};
354
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
354
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
355
355
  if (input.ResourceArn !== undefined) {
356
356
  labelValue = input.ResourceArn;
357
357
  if (labelValue.length <= 0) {
@@ -384,7 +384,7 @@ export var serializeAws_restJson1RejectInvitationCommand = function (input, cont
384
384
  headers = {
385
385
  "content-type": "application/json",
386
386
  };
387
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitation/removal";
387
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/invitation/removal";
388
388
  body = JSON.stringify(__assign({}, (input.GraphArn !== undefined && input.GraphArn !== null && { GraphArn: input.GraphArn })));
389
389
  return [2, new __HttpRequest({
390
390
  protocol: protocol,
@@ -408,7 +408,7 @@ export var serializeAws_restJson1StartMonitoringMemberCommand = function (input,
408
408
  headers = {
409
409
  "content-type": "application/json",
410
410
  };
411
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/member/monitoringstate";
411
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/graph/member/monitoringstate";
412
412
  body = JSON.stringify(__assign(__assign({}, (input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId })), (input.GraphArn !== undefined && input.GraphArn !== null && { GraphArn: input.GraphArn })));
413
413
  return [2, new __HttpRequest({
414
414
  protocol: protocol,
@@ -432,7 +432,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
432
432
  headers = {
433
433
  "content-type": "application/json",
434
434
  };
435
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
435
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
436
436
  if (input.ResourceArn !== undefined) {
437
437
  labelValue = input.ResourceArn;
438
438
  if (labelValue.length <= 0) {
@@ -464,7 +464,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
464
464
  case 1:
465
465
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
466
466
  headers = {};
467
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
467
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
468
468
  if (input.ResourceArn !== undefined) {
469
469
  labelValue = input.ResourceArn;
470
470
  if (labelValue.length <= 0) {
@@ -499,7 +499,7 @@ export var serializeAws_restJson1UpdateOrganizationConfigurationCommand = functi
499
499
  headers = {
500
500
  "content-type": "application/json",
501
501
  };
502
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/orgs/updateOrganizationConfiguration";
502
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/orgs/updateOrganizationConfiguration";
503
503
  body = JSON.stringify(__assign(__assign({}, (input.AutoEnable !== undefined && input.AutoEnable !== null && { AutoEnable: input.AutoEnable })), (input.GraphArn !== undefined && input.GraphArn !== null && { GraphArn: input.GraphArn })));
504
504
  return [2, new __HttpRequest({
505
505
  protocol: protocol,
@@ -21,11 +21,11 @@ export declare const getRuntimeConfig: (config: DetectiveClientConfig) => {
21
21
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
22
22
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
23
23
  serviceId: string;
24
- region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
24
+ region: string | import("@aws-sdk/types").Provider<any>;
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
- defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
28
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
29
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
30
30
  tls?: boolean | undefined;
31
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -19,11 +19,11 @@ export declare const getRuntimeConfig: (config: DetectiveClientConfig) => {
19
19
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
20
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
21
21
  serviceId: string;
22
- region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
22
+ region: string | import("@aws-sdk/types").Provider<any>;
23
23
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
24
24
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
25
25
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
26
- defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
26
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
27
27
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
28
28
  tls?: boolean | undefined;
29
29
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
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.54.1",
4
+ "version": "3.58.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,47 +18,47 @@
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.54.1",
22
- "@aws-sdk/config-resolver": "3.54.1",
23
- "@aws-sdk/credential-provider-node": "3.54.1",
24
- "@aws-sdk/fetch-http-handler": "3.54.1",
25
- "@aws-sdk/hash-node": "3.54.1",
26
- "@aws-sdk/invalid-dependency": "3.54.1",
27
- "@aws-sdk/middleware-content-length": "3.54.1",
28
- "@aws-sdk/middleware-host-header": "3.54.1",
29
- "@aws-sdk/middleware-logger": "3.54.1",
30
- "@aws-sdk/middleware-retry": "3.54.1",
31
- "@aws-sdk/middleware-serde": "3.54.1",
32
- "@aws-sdk/middleware-signing": "3.54.1",
33
- "@aws-sdk/middleware-stack": "3.54.1",
34
- "@aws-sdk/middleware-user-agent": "3.54.1",
35
- "@aws-sdk/node-config-provider": "3.54.1",
36
- "@aws-sdk/node-http-handler": "3.54.1",
37
- "@aws-sdk/protocol-http": "3.54.1",
38
- "@aws-sdk/smithy-client": "3.54.1",
39
- "@aws-sdk/types": "3.54.1",
40
- "@aws-sdk/url-parser": "3.54.1",
41
- "@aws-sdk/util-base64-browser": "3.52.0",
42
- "@aws-sdk/util-base64-node": "3.52.0",
43
- "@aws-sdk/util-body-length-browser": "3.54.0",
44
- "@aws-sdk/util-body-length-node": "3.54.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.54.1",
46
- "@aws-sdk/util-defaults-mode-node": "3.54.1",
47
- "@aws-sdk/util-user-agent-browser": "3.54.1",
48
- "@aws-sdk/util-user-agent-node": "3.54.1",
49
- "@aws-sdk/util-utf8-browser": "3.52.0",
50
- "@aws-sdk/util-utf8-node": "3.52.0",
51
- "tslib": "^2.3.0"
21
+ "@aws-sdk/client-sts": "3.58.0",
22
+ "@aws-sdk/config-resolver": "3.58.0",
23
+ "@aws-sdk/credential-provider-node": "3.58.0",
24
+ "@aws-sdk/fetch-http-handler": "3.58.0",
25
+ "@aws-sdk/hash-node": "3.55.0",
26
+ "@aws-sdk/invalid-dependency": "3.55.0",
27
+ "@aws-sdk/middleware-content-length": "3.58.0",
28
+ "@aws-sdk/middleware-host-header": "3.58.0",
29
+ "@aws-sdk/middleware-logger": "3.55.0",
30
+ "@aws-sdk/middleware-retry": "3.58.0",
31
+ "@aws-sdk/middleware-serde": "3.55.0",
32
+ "@aws-sdk/middleware-signing": "3.58.0",
33
+ "@aws-sdk/middleware-stack": "3.55.0",
34
+ "@aws-sdk/middleware-user-agent": "3.58.0",
35
+ "@aws-sdk/node-config-provider": "3.58.0",
36
+ "@aws-sdk/node-http-handler": "3.58.0",
37
+ "@aws-sdk/protocol-http": "3.58.0",
38
+ "@aws-sdk/smithy-client": "3.55.0",
39
+ "@aws-sdk/types": "3.55.0",
40
+ "@aws-sdk/url-parser": "3.55.0",
41
+ "@aws-sdk/util-base64-browser": "3.58.0",
42
+ "@aws-sdk/util-base64-node": "3.55.0",
43
+ "@aws-sdk/util-body-length-browser": "3.55.0",
44
+ "@aws-sdk/util-body-length-node": "3.55.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.55.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.58.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.58.0",
48
+ "@aws-sdk/util-user-agent-node": "3.58.0",
49
+ "@aws-sdk/util-utf8-browser": "3.55.0",
50
+ "@aws-sdk/util-utf8-node": "3.55.0",
51
+ "tslib": "^2.3.1"
52
52
  },
53
53
  "devDependencies": {
54
- "@aws-sdk/service-client-documentation-generator": "3.52.0",
54
+ "@aws-sdk/service-client-documentation-generator": "3.58.0",
55
55
  "@tsconfig/recommended": "1.0.1",
56
56
  "@types/node": "^12.7.5",
57
57
  "concurrently": "7.0.0",
58
58
  "downlevel-dts": "0.7.0",
59
59
  "rimraf": "3.0.2",
60
60
  "typedoc": "0.19.2",
61
- "typescript": "~4.3.5"
61
+ "typescript": "~4.6.2"
62
62
  },
63
63
  "engines": {
64
64
  "node": ">=12.0.0"