@aws-sdk/client-resource-groups 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 (31) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/ResourceGroupsClient.js +13 -13
  3. package/dist-cjs/commands/CreateGroupCommand.js +3 -3
  4. package/dist-cjs/commands/DeleteGroupCommand.js +3 -3
  5. package/dist-cjs/commands/GetGroupCommand.js +3 -3
  6. package/dist-cjs/commands/GetGroupConfigurationCommand.js +3 -3
  7. package/dist-cjs/commands/GetGroupQueryCommand.js +3 -3
  8. package/dist-cjs/commands/GetTagsCommand.js +3 -3
  9. package/dist-cjs/commands/GroupResourcesCommand.js +3 -3
  10. package/dist-cjs/commands/ListGroupResourcesCommand.js +3 -3
  11. package/dist-cjs/commands/ListGroupsCommand.js +3 -3
  12. package/dist-cjs/commands/PutGroupConfigurationCommand.js +3 -3
  13. package/dist-cjs/commands/SearchResourcesCommand.js +3 -3
  14. package/dist-cjs/commands/TagCommand.js +3 -3
  15. package/dist-cjs/commands/UngroupResourcesCommand.js +3 -3
  16. package/dist-cjs/commands/UntagCommand.js +3 -3
  17. package/dist-cjs/commands/UpdateGroupCommand.js +3 -3
  18. package/dist-cjs/commands/UpdateGroupQueryCommand.js +3 -3
  19. package/dist-cjs/endpoints.js +1 -1
  20. package/dist-cjs/protocols/Aws_restJson1.js +79 -79
  21. package/dist-cjs/runtimeConfig.browser.js +4 -4
  22. package/dist-cjs/runtimeConfig.js +9 -9
  23. package/dist-cjs/runtimeConfig.native.js +1 -1
  24. package/dist-es/ResourceGroups.js +16 -16
  25. package/dist-es/pagination/ListGroupResourcesPaginator.js +4 -4
  26. package/dist-es/pagination/ListGroupsPaginator.js +4 -4
  27. package/dist-es/pagination/SearchResourcesPaginator.js +4 -4
  28. package/dist-es/protocols/Aws_restJson1.js +16 -16
  29. package/dist-types/runtimeConfig.native.d.ts +2 -2
  30. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  31. package/package.json +34 -34
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
6
  const getRuntimeConfig = (config) => {
7
7
  var _a;
8
- const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
8
+ const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
9
9
  return {
10
10
  ...browserDefaults,
11
11
  ...config,
@@ -28,7 +28,7 @@ var ResourceGroups = (function (_super) {
28
28
  }
29
29
  else if (typeof cb === "function") {
30
30
  if (typeof optionsOrCb !== "object")
31
- throw new Error("Expect http options but get " + typeof optionsOrCb);
31
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
32
32
  this.send(command, optionsOrCb || {}, cb);
33
33
  }
34
34
  else {
@@ -42,7 +42,7 @@ var ResourceGroups = (function (_super) {
42
42
  }
43
43
  else if (typeof cb === "function") {
44
44
  if (typeof optionsOrCb !== "object")
45
- throw new Error("Expect http options but get " + typeof optionsOrCb);
45
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
46
46
  this.send(command, optionsOrCb || {}, cb);
47
47
  }
48
48
  else {
@@ -56,7 +56,7 @@ var ResourceGroups = (function (_super) {
56
56
  }
57
57
  else if (typeof cb === "function") {
58
58
  if (typeof optionsOrCb !== "object")
59
- throw new Error("Expect http options but get " + typeof optionsOrCb);
59
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
60
60
  this.send(command, optionsOrCb || {}, cb);
61
61
  }
62
62
  else {
@@ -70,7 +70,7 @@ var ResourceGroups = (function (_super) {
70
70
  }
71
71
  else if (typeof cb === "function") {
72
72
  if (typeof optionsOrCb !== "object")
73
- throw new Error("Expect http options but get " + typeof optionsOrCb);
73
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
74
74
  this.send(command, optionsOrCb || {}, cb);
75
75
  }
76
76
  else {
@@ -84,7 +84,7 @@ var ResourceGroups = (function (_super) {
84
84
  }
85
85
  else if (typeof cb === "function") {
86
86
  if (typeof optionsOrCb !== "object")
87
- throw new Error("Expect http options but get " + typeof optionsOrCb);
87
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
88
88
  this.send(command, optionsOrCb || {}, cb);
89
89
  }
90
90
  else {
@@ -98,7 +98,7 @@ var ResourceGroups = (function (_super) {
98
98
  }
99
99
  else if (typeof cb === "function") {
100
100
  if (typeof optionsOrCb !== "object")
101
- throw new Error("Expect http options but get " + typeof optionsOrCb);
101
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
102
102
  this.send(command, optionsOrCb || {}, cb);
103
103
  }
104
104
  else {
@@ -112,7 +112,7 @@ var ResourceGroups = (function (_super) {
112
112
  }
113
113
  else if (typeof cb === "function") {
114
114
  if (typeof optionsOrCb !== "object")
115
- throw new Error("Expect http options but get " + typeof optionsOrCb);
115
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
116
116
  this.send(command, optionsOrCb || {}, cb);
117
117
  }
118
118
  else {
@@ -126,7 +126,7 @@ var ResourceGroups = (function (_super) {
126
126
  }
127
127
  else if (typeof cb === "function") {
128
128
  if (typeof optionsOrCb !== "object")
129
- throw new Error("Expect http options but get " + typeof optionsOrCb);
129
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
130
130
  this.send(command, optionsOrCb || {}, cb);
131
131
  }
132
132
  else {
@@ -140,7 +140,7 @@ var ResourceGroups = (function (_super) {
140
140
  }
141
141
  else if (typeof cb === "function") {
142
142
  if (typeof optionsOrCb !== "object")
143
- throw new Error("Expect http options but get " + typeof optionsOrCb);
143
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
144
144
  this.send(command, optionsOrCb || {}, cb);
145
145
  }
146
146
  else {
@@ -154,7 +154,7 @@ var ResourceGroups = (function (_super) {
154
154
  }
155
155
  else if (typeof cb === "function") {
156
156
  if (typeof optionsOrCb !== "object")
157
- throw new Error("Expect http options but get " + typeof optionsOrCb);
157
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
158
158
  this.send(command, optionsOrCb || {}, cb);
159
159
  }
160
160
  else {
@@ -168,7 +168,7 @@ var ResourceGroups = (function (_super) {
168
168
  }
169
169
  else if (typeof cb === "function") {
170
170
  if (typeof optionsOrCb !== "object")
171
- throw new Error("Expect http options but get " + typeof optionsOrCb);
171
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
172
172
  this.send(command, optionsOrCb || {}, cb);
173
173
  }
174
174
  else {
@@ -182,7 +182,7 @@ var ResourceGroups = (function (_super) {
182
182
  }
183
183
  else if (typeof cb === "function") {
184
184
  if (typeof optionsOrCb !== "object")
185
- throw new Error("Expect http options but get " + typeof optionsOrCb);
185
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
186
186
  this.send(command, optionsOrCb || {}, cb);
187
187
  }
188
188
  else {
@@ -196,7 +196,7 @@ var ResourceGroups = (function (_super) {
196
196
  }
197
197
  else if (typeof cb === "function") {
198
198
  if (typeof optionsOrCb !== "object")
199
- throw new Error("Expect http options but get " + typeof optionsOrCb);
199
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
200
200
  this.send(command, optionsOrCb || {}, cb);
201
201
  }
202
202
  else {
@@ -210,7 +210,7 @@ var ResourceGroups = (function (_super) {
210
210
  }
211
211
  else if (typeof cb === "function") {
212
212
  if (typeof optionsOrCb !== "object")
213
- throw new Error("Expect http options but get " + typeof optionsOrCb);
213
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
214
214
  this.send(command, optionsOrCb || {}, cb);
215
215
  }
216
216
  else {
@@ -224,7 +224,7 @@ var ResourceGroups = (function (_super) {
224
224
  }
225
225
  else if (typeof cb === "function") {
226
226
  if (typeof optionsOrCb !== "object")
227
- throw new Error("Expect http options but get " + typeof optionsOrCb);
227
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
228
228
  this.send(command, optionsOrCb || {}, cb);
229
229
  }
230
230
  else {
@@ -238,7 +238,7 @@ var ResourceGroups = (function (_super) {
238
238
  }
239
239
  else if (typeof cb === "function") {
240
240
  if (typeof optionsOrCb !== "object")
241
- throw new Error("Expect http options but get " + typeof optionsOrCb);
241
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
242
242
  this.send(command, optionsOrCb || {}, cb);
243
243
  }
244
244
  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 ListGroupResourcesCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListGroupResourcesCommand(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.listGroupResources.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.listGroupResources.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 paginateListGroupResources(config, input) {
48
48
  input.NextToken = token;
49
49
  input["MaxResults"] = config.pageSize;
50
50
  if (!(config.client instanceof ResourceGroups)) 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 ResourceGroupsClient)) 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 ListGroupsCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListGroupsCommand(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.listGroups.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.listGroups.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 paginateListGroups(config, input) {
48
48
  input.NextToken = token;
49
49
  input["MaxResults"] = config.pageSize;
50
50
  if (!(config.client instanceof ResourceGroups)) 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 ResourceGroupsClient)) 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 SearchResourcesCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new SearchResourcesCommand(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.searchResources.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.searchResources.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 paginateSearchResources(config, input) {
48
48
  input.NextToken = token;
49
49
  input["MaxResults"] = config.pageSize;
50
50
  if (!(config.client instanceof ResourceGroups)) 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 ResourceGroupsClient)) 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_restJson1CreateGroupCommand = function (input, context)
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 || "") + "/groups";
16
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/groups";
17
17
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Configuration !== undefined &&
18
18
  input.Configuration !== null && {
19
19
  Configuration: serializeAws_restJson1GroupConfigurationList(input.Configuration, context),
@@ -43,7 +43,7 @@ export var serializeAws_restJson1DeleteGroupCommand = function (input, context)
43
43
  headers = {
44
44
  "content-type": "application/json",
45
45
  };
46
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/delete-group";
46
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/delete-group";
47
47
  body = JSON.stringify(__assign(__assign({}, (input.Group !== undefined && input.Group !== null && { Group: input.Group })), (input.GroupName !== undefined && input.GroupName !== null && { GroupName: input.GroupName })));
48
48
  return [2, new __HttpRequest({
49
49
  protocol: protocol,
@@ -67,7 +67,7 @@ export var serializeAws_restJson1GetGroupCommand = function (input, context) { r
67
67
  headers = {
68
68
  "content-type": "application/json",
69
69
  };
70
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/get-group";
70
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/get-group";
71
71
  body = JSON.stringify(__assign(__assign({}, (input.Group !== undefined && input.Group !== null && { Group: input.Group })), (input.GroupName !== undefined && input.GroupName !== null && { GroupName: input.GroupName })));
72
72
  return [2, new __HttpRequest({
73
73
  protocol: protocol,
@@ -91,7 +91,7 @@ export var serializeAws_restJson1GetGroupConfigurationCommand = function (input,
91
91
  headers = {
92
92
  "content-type": "application/json",
93
93
  };
94
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/get-group-configuration";
94
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/get-group-configuration";
95
95
  body = JSON.stringify(__assign({}, (input.Group !== undefined && input.Group !== null && { Group: input.Group })));
96
96
  return [2, new __HttpRequest({
97
97
  protocol: protocol,
@@ -115,7 +115,7 @@ export var serializeAws_restJson1GetGroupQueryCommand = function (input, context
115
115
  headers = {
116
116
  "content-type": "application/json",
117
117
  };
118
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/get-group-query";
118
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/get-group-query";
119
119
  body = JSON.stringify(__assign(__assign({}, (input.Group !== undefined && input.Group !== null && { Group: input.Group })), (input.GroupName !== undefined && input.GroupName !== null && { GroupName: input.GroupName })));
120
120
  return [2, new __HttpRequest({
121
121
  protocol: protocol,
@@ -137,7 +137,7 @@ export var serializeAws_restJson1GetTagsCommand = function (input, context) { re
137
137
  case 1:
138
138
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
139
139
  headers = {};
140
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/resources/{Arn}/tags";
140
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/resources/{Arn}/tags";
141
141
  if (input.Arn !== undefined) {
142
142
  labelValue = input.Arn;
143
143
  if (labelValue.length <= 0) {
@@ -170,7 +170,7 @@ export var serializeAws_restJson1GroupResourcesCommand = function (input, contex
170
170
  headers = {
171
171
  "content-type": "application/json",
172
172
  };
173
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/group-resources";
173
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/group-resources";
174
174
  body = JSON.stringify(__assign(__assign({}, (input.Group !== undefined && input.Group !== null && { Group: input.Group })), (input.ResourceArns !== undefined &&
175
175
  input.ResourceArns !== null && {
176
176
  ResourceArns: serializeAws_restJson1ResourceArnList(input.ResourceArns, context),
@@ -197,7 +197,7 @@ export var serializeAws_restJson1ListGroupResourcesCommand = function (input, co
197
197
  headers = {
198
198
  "content-type": "application/json",
199
199
  };
200
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-group-resources";
200
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/list-group-resources";
201
201
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Filters !== undefined &&
202
202
  input.Filters !== null && { Filters: serializeAws_restJson1ResourceFilterList(input.Filters, context) })), (input.Group !== undefined && input.Group !== null && { Group: input.Group })), (input.GroupName !== undefined && input.GroupName !== null && { GroupName: input.GroupName })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
203
203
  return [2, new __HttpRequest({
@@ -222,7 +222,7 @@ export var serializeAws_restJson1ListGroupsCommand = function (input, context) {
222
222
  headers = {
223
223
  "content-type": "application/json",
224
224
  };
225
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/groups-list";
225
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/groups-list";
226
226
  query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
227
227
  body = JSON.stringify(__assign({}, (input.Filters !== undefined &&
228
228
  input.Filters !== null && { Filters: serializeAws_restJson1GroupFilterList(input.Filters, context) })));
@@ -249,7 +249,7 @@ export var serializeAws_restJson1PutGroupConfigurationCommand = function (input,
249
249
  headers = {
250
250
  "content-type": "application/json",
251
251
  };
252
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/put-group-configuration";
252
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/put-group-configuration";
253
253
  body = JSON.stringify(__assign(__assign({}, (input.Configuration !== undefined &&
254
254
  input.Configuration !== null && {
255
255
  Configuration: serializeAws_restJson1GroupConfigurationList(input.Configuration, context),
@@ -276,7 +276,7 @@ export var serializeAws_restJson1SearchResourcesCommand = function (input, conte
276
276
  headers = {
277
277
  "content-type": "application/json",
278
278
  };
279
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/resources/search";
279
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/resources/search";
280
280
  body = JSON.stringify(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ResourceQuery !== undefined &&
281
281
  input.ResourceQuery !== null && {
282
282
  ResourceQuery: serializeAws_restJson1ResourceQuery(input.ResourceQuery, context),
@@ -303,7 +303,7 @@ export var serializeAws_restJson1TagCommand = function (input, context) { return
303
303
  headers = {
304
304
  "content-type": "application/json",
305
305
  };
306
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/resources/{Arn}/tags";
306
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/resources/{Arn}/tags";
307
307
  if (input.Arn !== undefined) {
308
308
  labelValue = input.Arn;
309
309
  if (labelValue.length <= 0) {
@@ -337,7 +337,7 @@ export var serializeAws_restJson1UngroupResourcesCommand = function (input, cont
337
337
  headers = {
338
338
  "content-type": "application/json",
339
339
  };
340
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ungroup-resources";
340
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ungroup-resources";
341
341
  body = JSON.stringify(__assign(__assign({}, (input.Group !== undefined && input.Group !== null && { Group: input.Group })), (input.ResourceArns !== undefined &&
342
342
  input.ResourceArns !== null && {
343
343
  ResourceArns: serializeAws_restJson1ResourceArnList(input.ResourceArns, context),
@@ -364,7 +364,7 @@ export var serializeAws_restJson1UntagCommand = function (input, context) { retu
364
364
  headers = {
365
365
  "content-type": "application/json",
366
366
  };
367
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/resources/{Arn}/tags";
367
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/resources/{Arn}/tags";
368
368
  if (input.Arn !== undefined) {
369
369
  labelValue = input.Arn;
370
370
  if (labelValue.length <= 0) {
@@ -399,7 +399,7 @@ export var serializeAws_restJson1UpdateGroupCommand = function (input, context)
399
399
  headers = {
400
400
  "content-type": "application/json",
401
401
  };
402
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/update-group";
402
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/update-group";
403
403
  body = JSON.stringify(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Group !== undefined && input.Group !== null && { Group: input.Group })), (input.GroupName !== undefined && input.GroupName !== null && { GroupName: input.GroupName })));
404
404
  return [2, new __HttpRequest({
405
405
  protocol: protocol,
@@ -423,7 +423,7 @@ export var serializeAws_restJson1UpdateGroupQueryCommand = function (input, cont
423
423
  headers = {
424
424
  "content-type": "application/json",
425
425
  };
426
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/update-group-query";
426
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/update-group-query";
427
427
  body = JSON.stringify(__assign(__assign(__assign({}, (input.Group !== undefined && input.Group !== null && { Group: input.Group })), (input.GroupName !== undefined && input.GroupName !== null && { GroupName: input.GroupName })), (input.ResourceQuery !== undefined &&
428
428
  input.ResourceQuery !== null && {
429
429
  ResourceQuery: serializeAws_restJson1ResourceQuery(input.ResourceQuery, context),
@@ -21,11 +21,11 @@ export declare const getRuntimeConfig: (config: ResourceGroupsClientConfig) => {
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: ResourceGroupsClientConfig) => {
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-resource-groups",
3
3
  "description": "AWS SDK for JavaScript Resource Groups 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"