@aws-sdk/client-greengrass 3.185.0 → 3.188.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 (104) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/Greengrass.js +370 -377
  3. package/dist-es/GreengrassClient.js +22 -28
  4. package/dist-es/commands/AssociateRoleToGroupCommand.js +21 -28
  5. package/dist-es/commands/AssociateServiceRoleToAccountCommand.js +21 -28
  6. package/dist-es/commands/CreateConnectorDefinitionCommand.js +21 -28
  7. package/dist-es/commands/CreateConnectorDefinitionVersionCommand.js +21 -28
  8. package/dist-es/commands/CreateCoreDefinitionCommand.js +21 -28
  9. package/dist-es/commands/CreateCoreDefinitionVersionCommand.js +21 -28
  10. package/dist-es/commands/CreateDeploymentCommand.js +21 -28
  11. package/dist-es/commands/CreateDeviceDefinitionCommand.js +21 -28
  12. package/dist-es/commands/CreateDeviceDefinitionVersionCommand.js +21 -28
  13. package/dist-es/commands/CreateFunctionDefinitionCommand.js +21 -28
  14. package/dist-es/commands/CreateFunctionDefinitionVersionCommand.js +21 -28
  15. package/dist-es/commands/CreateGroupCertificateAuthorityCommand.js +21 -28
  16. package/dist-es/commands/CreateGroupCommand.js +21 -28
  17. package/dist-es/commands/CreateGroupVersionCommand.js +21 -28
  18. package/dist-es/commands/CreateLoggerDefinitionCommand.js +21 -28
  19. package/dist-es/commands/CreateLoggerDefinitionVersionCommand.js +21 -28
  20. package/dist-es/commands/CreateResourceDefinitionCommand.js +21 -28
  21. package/dist-es/commands/CreateResourceDefinitionVersionCommand.js +21 -28
  22. package/dist-es/commands/CreateSoftwareUpdateJobCommand.js +21 -28
  23. package/dist-es/commands/CreateSubscriptionDefinitionCommand.js +21 -28
  24. package/dist-es/commands/CreateSubscriptionDefinitionVersionCommand.js +21 -28
  25. package/dist-es/commands/DeleteConnectorDefinitionCommand.js +21 -28
  26. package/dist-es/commands/DeleteCoreDefinitionCommand.js +21 -28
  27. package/dist-es/commands/DeleteDeviceDefinitionCommand.js +21 -28
  28. package/dist-es/commands/DeleteFunctionDefinitionCommand.js +21 -28
  29. package/dist-es/commands/DeleteGroupCommand.js +21 -28
  30. package/dist-es/commands/DeleteLoggerDefinitionCommand.js +21 -28
  31. package/dist-es/commands/DeleteResourceDefinitionCommand.js +21 -28
  32. package/dist-es/commands/DeleteSubscriptionDefinitionCommand.js +21 -28
  33. package/dist-es/commands/DisassociateRoleFromGroupCommand.js +21 -28
  34. package/dist-es/commands/DisassociateServiceRoleFromAccountCommand.js +21 -28
  35. package/dist-es/commands/GetAssociatedRoleCommand.js +21 -28
  36. package/dist-es/commands/GetBulkDeploymentStatusCommand.js +21 -28
  37. package/dist-es/commands/GetConnectivityInfoCommand.js +21 -28
  38. package/dist-es/commands/GetConnectorDefinitionCommand.js +21 -28
  39. package/dist-es/commands/GetConnectorDefinitionVersionCommand.js +21 -28
  40. package/dist-es/commands/GetCoreDefinitionCommand.js +21 -28
  41. package/dist-es/commands/GetCoreDefinitionVersionCommand.js +21 -28
  42. package/dist-es/commands/GetDeploymentStatusCommand.js +21 -28
  43. package/dist-es/commands/GetDeviceDefinitionCommand.js +21 -28
  44. package/dist-es/commands/GetDeviceDefinitionVersionCommand.js +21 -28
  45. package/dist-es/commands/GetFunctionDefinitionCommand.js +21 -28
  46. package/dist-es/commands/GetFunctionDefinitionVersionCommand.js +21 -28
  47. package/dist-es/commands/GetGroupCertificateAuthorityCommand.js +21 -28
  48. package/dist-es/commands/GetGroupCertificateConfigurationCommand.js +21 -28
  49. package/dist-es/commands/GetGroupCommand.js +21 -28
  50. package/dist-es/commands/GetGroupVersionCommand.js +21 -28
  51. package/dist-es/commands/GetLoggerDefinitionCommand.js +21 -28
  52. package/dist-es/commands/GetLoggerDefinitionVersionCommand.js +21 -28
  53. package/dist-es/commands/GetResourceDefinitionCommand.js +21 -28
  54. package/dist-es/commands/GetResourceDefinitionVersionCommand.js +21 -28
  55. package/dist-es/commands/GetServiceRoleForAccountCommand.js +21 -28
  56. package/dist-es/commands/GetSubscriptionDefinitionCommand.js +21 -28
  57. package/dist-es/commands/GetSubscriptionDefinitionVersionCommand.js +21 -28
  58. package/dist-es/commands/GetThingRuntimeConfigurationCommand.js +21 -28
  59. package/dist-es/commands/ListBulkDeploymentDetailedReportsCommand.js +21 -28
  60. package/dist-es/commands/ListBulkDeploymentsCommand.js +21 -28
  61. package/dist-es/commands/ListConnectorDefinitionVersionsCommand.js +21 -28
  62. package/dist-es/commands/ListConnectorDefinitionsCommand.js +21 -28
  63. package/dist-es/commands/ListCoreDefinitionVersionsCommand.js +21 -28
  64. package/dist-es/commands/ListCoreDefinitionsCommand.js +21 -28
  65. package/dist-es/commands/ListDeploymentsCommand.js +21 -28
  66. package/dist-es/commands/ListDeviceDefinitionVersionsCommand.js +21 -28
  67. package/dist-es/commands/ListDeviceDefinitionsCommand.js +21 -28
  68. package/dist-es/commands/ListFunctionDefinitionVersionsCommand.js +21 -28
  69. package/dist-es/commands/ListFunctionDefinitionsCommand.js +21 -28
  70. package/dist-es/commands/ListGroupCertificateAuthoritiesCommand.js +21 -28
  71. package/dist-es/commands/ListGroupVersionsCommand.js +21 -28
  72. package/dist-es/commands/ListGroupsCommand.js +21 -28
  73. package/dist-es/commands/ListLoggerDefinitionVersionsCommand.js +21 -28
  74. package/dist-es/commands/ListLoggerDefinitionsCommand.js +21 -28
  75. package/dist-es/commands/ListResourceDefinitionVersionsCommand.js +21 -28
  76. package/dist-es/commands/ListResourceDefinitionsCommand.js +21 -28
  77. package/dist-es/commands/ListSubscriptionDefinitionVersionsCommand.js +21 -28
  78. package/dist-es/commands/ListSubscriptionDefinitionsCommand.js +21 -28
  79. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  80. package/dist-es/commands/ResetDeploymentsCommand.js +21 -28
  81. package/dist-es/commands/StartBulkDeploymentCommand.js +21 -28
  82. package/dist-es/commands/StopBulkDeploymentCommand.js +21 -28
  83. package/dist-es/commands/TagResourceCommand.js +22 -29
  84. package/dist-es/commands/UntagResourceCommand.js +22 -29
  85. package/dist-es/commands/UpdateConnectivityInfoCommand.js +21 -28
  86. package/dist-es/commands/UpdateConnectorDefinitionCommand.js +21 -28
  87. package/dist-es/commands/UpdateCoreDefinitionCommand.js +21 -28
  88. package/dist-es/commands/UpdateDeviceDefinitionCommand.js +21 -28
  89. package/dist-es/commands/UpdateFunctionDefinitionCommand.js +21 -28
  90. package/dist-es/commands/UpdateGroupCertificateConfigurationCommand.js +21 -28
  91. package/dist-es/commands/UpdateGroupCommand.js +21 -28
  92. package/dist-es/commands/UpdateLoggerDefinitionCommand.js +21 -28
  93. package/dist-es/commands/UpdateResourceDefinitionCommand.js +21 -28
  94. package/dist-es/commands/UpdateSubscriptionDefinitionCommand.js +21 -28
  95. package/dist-es/commands/UpdateThingRuntimeConfigurationCommand.js +21 -28
  96. package/dist-es/endpoints.js +8 -8
  97. package/dist-es/models/GreengrassServiceException.js +5 -10
  98. package/dist-es/models/models_0.js +701 -252
  99. package/dist-es/protocols/Aws_restJson1.js +5793 -8198
  100. package/dist-es/runtimeConfig.browser.js +26 -12
  101. package/dist-es/runtimeConfig.js +30 -12
  102. package/dist-es/runtimeConfig.native.js +8 -5
  103. package/dist-es/runtimeConfig.shared.js +8 -11
  104. package/package.json +33 -33
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { AssociateRoleToGroupCommand, } from "./commands/AssociateRoleToGroupCommand";
3
2
  import { AssociateServiceRoleToAccountCommand, } from "./commands/AssociateServiceRoleToAccountCommand";
4
3
  import { CreateConnectorDefinitionCommand, } from "./commands/CreateConnectorDefinitionCommand";
@@ -92,1299 +91,1293 @@ import { UpdateResourceDefinitionCommand, } from "./commands/UpdateResourceDefin
92
91
  import { UpdateSubscriptionDefinitionCommand, } from "./commands/UpdateSubscriptionDefinitionCommand";
93
92
  import { UpdateThingRuntimeConfigurationCommand, } from "./commands/UpdateThingRuntimeConfigurationCommand";
94
93
  import { GreengrassClient } from "./GreengrassClient";
95
- var Greengrass = (function (_super) {
96
- __extends(Greengrass, _super);
97
- function Greengrass() {
98
- return _super !== null && _super.apply(this, arguments) || this;
99
- }
100
- Greengrass.prototype.associateRoleToGroup = function (args, optionsOrCb, cb) {
101
- var command = new AssociateRoleToGroupCommand(args);
94
+ export class Greengrass extends GreengrassClient {
95
+ associateRoleToGroup(args, optionsOrCb, cb) {
96
+ const command = new AssociateRoleToGroupCommand(args);
102
97
  if (typeof optionsOrCb === "function") {
103
98
  this.send(command, optionsOrCb);
104
99
  }
105
100
  else if (typeof cb === "function") {
106
101
  if (typeof optionsOrCb !== "object")
107
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
102
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
108
103
  this.send(command, optionsOrCb || {}, cb);
109
104
  }
110
105
  else {
111
106
  return this.send(command, optionsOrCb);
112
107
  }
113
- };
114
- Greengrass.prototype.associateServiceRoleToAccount = function (args, optionsOrCb, cb) {
115
- var command = new AssociateServiceRoleToAccountCommand(args);
108
+ }
109
+ associateServiceRoleToAccount(args, optionsOrCb, cb) {
110
+ const command = new AssociateServiceRoleToAccountCommand(args);
116
111
  if (typeof optionsOrCb === "function") {
117
112
  this.send(command, optionsOrCb);
118
113
  }
119
114
  else if (typeof cb === "function") {
120
115
  if (typeof optionsOrCb !== "object")
121
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
116
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
122
117
  this.send(command, optionsOrCb || {}, cb);
123
118
  }
124
119
  else {
125
120
  return this.send(command, optionsOrCb);
126
121
  }
127
- };
128
- Greengrass.prototype.createConnectorDefinition = function (args, optionsOrCb, cb) {
129
- var command = new CreateConnectorDefinitionCommand(args);
122
+ }
123
+ createConnectorDefinition(args, optionsOrCb, cb) {
124
+ const command = new CreateConnectorDefinitionCommand(args);
130
125
  if (typeof optionsOrCb === "function") {
131
126
  this.send(command, optionsOrCb);
132
127
  }
133
128
  else if (typeof cb === "function") {
134
129
  if (typeof optionsOrCb !== "object")
135
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
130
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
136
131
  this.send(command, optionsOrCb || {}, cb);
137
132
  }
138
133
  else {
139
134
  return this.send(command, optionsOrCb);
140
135
  }
141
- };
142
- Greengrass.prototype.createConnectorDefinitionVersion = function (args, optionsOrCb, cb) {
143
- var command = new CreateConnectorDefinitionVersionCommand(args);
136
+ }
137
+ createConnectorDefinitionVersion(args, optionsOrCb, cb) {
138
+ const command = new CreateConnectorDefinitionVersionCommand(args);
144
139
  if (typeof optionsOrCb === "function") {
145
140
  this.send(command, optionsOrCb);
146
141
  }
147
142
  else if (typeof cb === "function") {
148
143
  if (typeof optionsOrCb !== "object")
149
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
144
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
150
145
  this.send(command, optionsOrCb || {}, cb);
151
146
  }
152
147
  else {
153
148
  return this.send(command, optionsOrCb);
154
149
  }
155
- };
156
- Greengrass.prototype.createCoreDefinition = function (args, optionsOrCb, cb) {
157
- var command = new CreateCoreDefinitionCommand(args);
150
+ }
151
+ createCoreDefinition(args, optionsOrCb, cb) {
152
+ const command = new CreateCoreDefinitionCommand(args);
158
153
  if (typeof optionsOrCb === "function") {
159
154
  this.send(command, optionsOrCb);
160
155
  }
161
156
  else if (typeof cb === "function") {
162
157
  if (typeof optionsOrCb !== "object")
163
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
158
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
164
159
  this.send(command, optionsOrCb || {}, cb);
165
160
  }
166
161
  else {
167
162
  return this.send(command, optionsOrCb);
168
163
  }
169
- };
170
- Greengrass.prototype.createCoreDefinitionVersion = function (args, optionsOrCb, cb) {
171
- var command = new CreateCoreDefinitionVersionCommand(args);
164
+ }
165
+ createCoreDefinitionVersion(args, optionsOrCb, cb) {
166
+ const command = new CreateCoreDefinitionVersionCommand(args);
172
167
  if (typeof optionsOrCb === "function") {
173
168
  this.send(command, optionsOrCb);
174
169
  }
175
170
  else if (typeof cb === "function") {
176
171
  if (typeof optionsOrCb !== "object")
177
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
172
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
178
173
  this.send(command, optionsOrCb || {}, cb);
179
174
  }
180
175
  else {
181
176
  return this.send(command, optionsOrCb);
182
177
  }
183
- };
184
- Greengrass.prototype.createDeployment = function (args, optionsOrCb, cb) {
185
- var command = new CreateDeploymentCommand(args);
178
+ }
179
+ createDeployment(args, optionsOrCb, cb) {
180
+ const command = new CreateDeploymentCommand(args);
186
181
  if (typeof optionsOrCb === "function") {
187
182
  this.send(command, optionsOrCb);
188
183
  }
189
184
  else if (typeof cb === "function") {
190
185
  if (typeof optionsOrCb !== "object")
191
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
186
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
192
187
  this.send(command, optionsOrCb || {}, cb);
193
188
  }
194
189
  else {
195
190
  return this.send(command, optionsOrCb);
196
191
  }
197
- };
198
- Greengrass.prototype.createDeviceDefinition = function (args, optionsOrCb, cb) {
199
- var command = new CreateDeviceDefinitionCommand(args);
192
+ }
193
+ createDeviceDefinition(args, optionsOrCb, cb) {
194
+ const command = new CreateDeviceDefinitionCommand(args);
200
195
  if (typeof optionsOrCb === "function") {
201
196
  this.send(command, optionsOrCb);
202
197
  }
203
198
  else if (typeof cb === "function") {
204
199
  if (typeof optionsOrCb !== "object")
205
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
200
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
206
201
  this.send(command, optionsOrCb || {}, cb);
207
202
  }
208
203
  else {
209
204
  return this.send(command, optionsOrCb);
210
205
  }
211
- };
212
- Greengrass.prototype.createDeviceDefinitionVersion = function (args, optionsOrCb, cb) {
213
- var command = new CreateDeviceDefinitionVersionCommand(args);
206
+ }
207
+ createDeviceDefinitionVersion(args, optionsOrCb, cb) {
208
+ const command = new CreateDeviceDefinitionVersionCommand(args);
214
209
  if (typeof optionsOrCb === "function") {
215
210
  this.send(command, optionsOrCb);
216
211
  }
217
212
  else if (typeof cb === "function") {
218
213
  if (typeof optionsOrCb !== "object")
219
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
214
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
220
215
  this.send(command, optionsOrCb || {}, cb);
221
216
  }
222
217
  else {
223
218
  return this.send(command, optionsOrCb);
224
219
  }
225
- };
226
- Greengrass.prototype.createFunctionDefinition = function (args, optionsOrCb, cb) {
227
- var command = new CreateFunctionDefinitionCommand(args);
220
+ }
221
+ createFunctionDefinition(args, optionsOrCb, cb) {
222
+ const command = new CreateFunctionDefinitionCommand(args);
228
223
  if (typeof optionsOrCb === "function") {
229
224
  this.send(command, optionsOrCb);
230
225
  }
231
226
  else if (typeof cb === "function") {
232
227
  if (typeof optionsOrCb !== "object")
233
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
228
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
234
229
  this.send(command, optionsOrCb || {}, cb);
235
230
  }
236
231
  else {
237
232
  return this.send(command, optionsOrCb);
238
233
  }
239
- };
240
- Greengrass.prototype.createFunctionDefinitionVersion = function (args, optionsOrCb, cb) {
241
- var command = new CreateFunctionDefinitionVersionCommand(args);
234
+ }
235
+ createFunctionDefinitionVersion(args, optionsOrCb, cb) {
236
+ const command = new CreateFunctionDefinitionVersionCommand(args);
242
237
  if (typeof optionsOrCb === "function") {
243
238
  this.send(command, optionsOrCb);
244
239
  }
245
240
  else if (typeof cb === "function") {
246
241
  if (typeof optionsOrCb !== "object")
247
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
242
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
248
243
  this.send(command, optionsOrCb || {}, cb);
249
244
  }
250
245
  else {
251
246
  return this.send(command, optionsOrCb);
252
247
  }
253
- };
254
- Greengrass.prototype.createGroup = function (args, optionsOrCb, cb) {
255
- var command = new CreateGroupCommand(args);
248
+ }
249
+ createGroup(args, optionsOrCb, cb) {
250
+ const command = new CreateGroupCommand(args);
256
251
  if (typeof optionsOrCb === "function") {
257
252
  this.send(command, optionsOrCb);
258
253
  }
259
254
  else if (typeof cb === "function") {
260
255
  if (typeof optionsOrCb !== "object")
261
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
256
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
262
257
  this.send(command, optionsOrCb || {}, cb);
263
258
  }
264
259
  else {
265
260
  return this.send(command, optionsOrCb);
266
261
  }
267
- };
268
- Greengrass.prototype.createGroupCertificateAuthority = function (args, optionsOrCb, cb) {
269
- var command = new CreateGroupCertificateAuthorityCommand(args);
262
+ }
263
+ createGroupCertificateAuthority(args, optionsOrCb, cb) {
264
+ const command = new CreateGroupCertificateAuthorityCommand(args);
270
265
  if (typeof optionsOrCb === "function") {
271
266
  this.send(command, optionsOrCb);
272
267
  }
273
268
  else if (typeof cb === "function") {
274
269
  if (typeof optionsOrCb !== "object")
275
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
270
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
276
271
  this.send(command, optionsOrCb || {}, cb);
277
272
  }
278
273
  else {
279
274
  return this.send(command, optionsOrCb);
280
275
  }
281
- };
282
- Greengrass.prototype.createGroupVersion = function (args, optionsOrCb, cb) {
283
- var command = new CreateGroupVersionCommand(args);
276
+ }
277
+ createGroupVersion(args, optionsOrCb, cb) {
278
+ const command = new CreateGroupVersionCommand(args);
284
279
  if (typeof optionsOrCb === "function") {
285
280
  this.send(command, optionsOrCb);
286
281
  }
287
282
  else if (typeof cb === "function") {
288
283
  if (typeof optionsOrCb !== "object")
289
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
284
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
290
285
  this.send(command, optionsOrCb || {}, cb);
291
286
  }
292
287
  else {
293
288
  return this.send(command, optionsOrCb);
294
289
  }
295
- };
296
- Greengrass.prototype.createLoggerDefinition = function (args, optionsOrCb, cb) {
297
- var command = new CreateLoggerDefinitionCommand(args);
290
+ }
291
+ createLoggerDefinition(args, optionsOrCb, cb) {
292
+ const command = new CreateLoggerDefinitionCommand(args);
298
293
  if (typeof optionsOrCb === "function") {
299
294
  this.send(command, optionsOrCb);
300
295
  }
301
296
  else if (typeof cb === "function") {
302
297
  if (typeof optionsOrCb !== "object")
303
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
298
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
304
299
  this.send(command, optionsOrCb || {}, cb);
305
300
  }
306
301
  else {
307
302
  return this.send(command, optionsOrCb);
308
303
  }
309
- };
310
- Greengrass.prototype.createLoggerDefinitionVersion = function (args, optionsOrCb, cb) {
311
- var command = new CreateLoggerDefinitionVersionCommand(args);
304
+ }
305
+ createLoggerDefinitionVersion(args, optionsOrCb, cb) {
306
+ const command = new CreateLoggerDefinitionVersionCommand(args);
312
307
  if (typeof optionsOrCb === "function") {
313
308
  this.send(command, optionsOrCb);
314
309
  }
315
310
  else if (typeof cb === "function") {
316
311
  if (typeof optionsOrCb !== "object")
317
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
312
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
318
313
  this.send(command, optionsOrCb || {}, cb);
319
314
  }
320
315
  else {
321
316
  return this.send(command, optionsOrCb);
322
317
  }
323
- };
324
- Greengrass.prototype.createResourceDefinition = function (args, optionsOrCb, cb) {
325
- var command = new CreateResourceDefinitionCommand(args);
318
+ }
319
+ createResourceDefinition(args, optionsOrCb, cb) {
320
+ const command = new CreateResourceDefinitionCommand(args);
326
321
  if (typeof optionsOrCb === "function") {
327
322
  this.send(command, optionsOrCb);
328
323
  }
329
324
  else if (typeof cb === "function") {
330
325
  if (typeof optionsOrCb !== "object")
331
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
326
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
332
327
  this.send(command, optionsOrCb || {}, cb);
333
328
  }
334
329
  else {
335
330
  return this.send(command, optionsOrCb);
336
331
  }
337
- };
338
- Greengrass.prototype.createResourceDefinitionVersion = function (args, optionsOrCb, cb) {
339
- var command = new CreateResourceDefinitionVersionCommand(args);
332
+ }
333
+ createResourceDefinitionVersion(args, optionsOrCb, cb) {
334
+ const command = new CreateResourceDefinitionVersionCommand(args);
340
335
  if (typeof optionsOrCb === "function") {
341
336
  this.send(command, optionsOrCb);
342
337
  }
343
338
  else if (typeof cb === "function") {
344
339
  if (typeof optionsOrCb !== "object")
345
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
340
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
346
341
  this.send(command, optionsOrCb || {}, cb);
347
342
  }
348
343
  else {
349
344
  return this.send(command, optionsOrCb);
350
345
  }
351
- };
352
- Greengrass.prototype.createSoftwareUpdateJob = function (args, optionsOrCb, cb) {
353
- var command = new CreateSoftwareUpdateJobCommand(args);
346
+ }
347
+ createSoftwareUpdateJob(args, optionsOrCb, cb) {
348
+ const command = new CreateSoftwareUpdateJobCommand(args);
354
349
  if (typeof optionsOrCb === "function") {
355
350
  this.send(command, optionsOrCb);
356
351
  }
357
352
  else if (typeof cb === "function") {
358
353
  if (typeof optionsOrCb !== "object")
359
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
354
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
360
355
  this.send(command, optionsOrCb || {}, cb);
361
356
  }
362
357
  else {
363
358
  return this.send(command, optionsOrCb);
364
359
  }
365
- };
366
- Greengrass.prototype.createSubscriptionDefinition = function (args, optionsOrCb, cb) {
367
- var command = new CreateSubscriptionDefinitionCommand(args);
360
+ }
361
+ createSubscriptionDefinition(args, optionsOrCb, cb) {
362
+ const command = new CreateSubscriptionDefinitionCommand(args);
368
363
  if (typeof optionsOrCb === "function") {
369
364
  this.send(command, optionsOrCb);
370
365
  }
371
366
  else if (typeof cb === "function") {
372
367
  if (typeof optionsOrCb !== "object")
373
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
368
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
374
369
  this.send(command, optionsOrCb || {}, cb);
375
370
  }
376
371
  else {
377
372
  return this.send(command, optionsOrCb);
378
373
  }
379
- };
380
- Greengrass.prototype.createSubscriptionDefinitionVersion = function (args, optionsOrCb, cb) {
381
- var command = new CreateSubscriptionDefinitionVersionCommand(args);
374
+ }
375
+ createSubscriptionDefinitionVersion(args, optionsOrCb, cb) {
376
+ const command = new CreateSubscriptionDefinitionVersionCommand(args);
382
377
  if (typeof optionsOrCb === "function") {
383
378
  this.send(command, optionsOrCb);
384
379
  }
385
380
  else if (typeof cb === "function") {
386
381
  if (typeof optionsOrCb !== "object")
387
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
382
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
388
383
  this.send(command, optionsOrCb || {}, cb);
389
384
  }
390
385
  else {
391
386
  return this.send(command, optionsOrCb);
392
387
  }
393
- };
394
- Greengrass.prototype.deleteConnectorDefinition = function (args, optionsOrCb, cb) {
395
- var command = new DeleteConnectorDefinitionCommand(args);
388
+ }
389
+ deleteConnectorDefinition(args, optionsOrCb, cb) {
390
+ const command = new DeleteConnectorDefinitionCommand(args);
396
391
  if (typeof optionsOrCb === "function") {
397
392
  this.send(command, optionsOrCb);
398
393
  }
399
394
  else if (typeof cb === "function") {
400
395
  if (typeof optionsOrCb !== "object")
401
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
396
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
402
397
  this.send(command, optionsOrCb || {}, cb);
403
398
  }
404
399
  else {
405
400
  return this.send(command, optionsOrCb);
406
401
  }
407
- };
408
- Greengrass.prototype.deleteCoreDefinition = function (args, optionsOrCb, cb) {
409
- var command = new DeleteCoreDefinitionCommand(args);
402
+ }
403
+ deleteCoreDefinition(args, optionsOrCb, cb) {
404
+ const command = new DeleteCoreDefinitionCommand(args);
410
405
  if (typeof optionsOrCb === "function") {
411
406
  this.send(command, optionsOrCb);
412
407
  }
413
408
  else if (typeof cb === "function") {
414
409
  if (typeof optionsOrCb !== "object")
415
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
410
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
416
411
  this.send(command, optionsOrCb || {}, cb);
417
412
  }
418
413
  else {
419
414
  return this.send(command, optionsOrCb);
420
415
  }
421
- };
422
- Greengrass.prototype.deleteDeviceDefinition = function (args, optionsOrCb, cb) {
423
- var command = new DeleteDeviceDefinitionCommand(args);
416
+ }
417
+ deleteDeviceDefinition(args, optionsOrCb, cb) {
418
+ const command = new DeleteDeviceDefinitionCommand(args);
424
419
  if (typeof optionsOrCb === "function") {
425
420
  this.send(command, optionsOrCb);
426
421
  }
427
422
  else if (typeof cb === "function") {
428
423
  if (typeof optionsOrCb !== "object")
429
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
424
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
430
425
  this.send(command, optionsOrCb || {}, cb);
431
426
  }
432
427
  else {
433
428
  return this.send(command, optionsOrCb);
434
429
  }
435
- };
436
- Greengrass.prototype.deleteFunctionDefinition = function (args, optionsOrCb, cb) {
437
- var command = new DeleteFunctionDefinitionCommand(args);
430
+ }
431
+ deleteFunctionDefinition(args, optionsOrCb, cb) {
432
+ const command = new DeleteFunctionDefinitionCommand(args);
438
433
  if (typeof optionsOrCb === "function") {
439
434
  this.send(command, optionsOrCb);
440
435
  }
441
436
  else if (typeof cb === "function") {
442
437
  if (typeof optionsOrCb !== "object")
443
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
438
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
444
439
  this.send(command, optionsOrCb || {}, cb);
445
440
  }
446
441
  else {
447
442
  return this.send(command, optionsOrCb);
448
443
  }
449
- };
450
- Greengrass.prototype.deleteGroup = function (args, optionsOrCb, cb) {
451
- var command = new DeleteGroupCommand(args);
444
+ }
445
+ deleteGroup(args, optionsOrCb, cb) {
446
+ const command = new DeleteGroupCommand(args);
452
447
  if (typeof optionsOrCb === "function") {
453
448
  this.send(command, optionsOrCb);
454
449
  }
455
450
  else if (typeof cb === "function") {
456
451
  if (typeof optionsOrCb !== "object")
457
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
452
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
458
453
  this.send(command, optionsOrCb || {}, cb);
459
454
  }
460
455
  else {
461
456
  return this.send(command, optionsOrCb);
462
457
  }
463
- };
464
- Greengrass.prototype.deleteLoggerDefinition = function (args, optionsOrCb, cb) {
465
- var command = new DeleteLoggerDefinitionCommand(args);
458
+ }
459
+ deleteLoggerDefinition(args, optionsOrCb, cb) {
460
+ const command = new DeleteLoggerDefinitionCommand(args);
466
461
  if (typeof optionsOrCb === "function") {
467
462
  this.send(command, optionsOrCb);
468
463
  }
469
464
  else if (typeof cb === "function") {
470
465
  if (typeof optionsOrCb !== "object")
471
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
466
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
472
467
  this.send(command, optionsOrCb || {}, cb);
473
468
  }
474
469
  else {
475
470
  return this.send(command, optionsOrCb);
476
471
  }
477
- };
478
- Greengrass.prototype.deleteResourceDefinition = function (args, optionsOrCb, cb) {
479
- var command = new DeleteResourceDefinitionCommand(args);
472
+ }
473
+ deleteResourceDefinition(args, optionsOrCb, cb) {
474
+ const command = new DeleteResourceDefinitionCommand(args);
480
475
  if (typeof optionsOrCb === "function") {
481
476
  this.send(command, optionsOrCb);
482
477
  }
483
478
  else if (typeof cb === "function") {
484
479
  if (typeof optionsOrCb !== "object")
485
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
480
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
486
481
  this.send(command, optionsOrCb || {}, cb);
487
482
  }
488
483
  else {
489
484
  return this.send(command, optionsOrCb);
490
485
  }
491
- };
492
- Greengrass.prototype.deleteSubscriptionDefinition = function (args, optionsOrCb, cb) {
493
- var command = new DeleteSubscriptionDefinitionCommand(args);
486
+ }
487
+ deleteSubscriptionDefinition(args, optionsOrCb, cb) {
488
+ const command = new DeleteSubscriptionDefinitionCommand(args);
494
489
  if (typeof optionsOrCb === "function") {
495
490
  this.send(command, optionsOrCb);
496
491
  }
497
492
  else if (typeof cb === "function") {
498
493
  if (typeof optionsOrCb !== "object")
499
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
494
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
500
495
  this.send(command, optionsOrCb || {}, cb);
501
496
  }
502
497
  else {
503
498
  return this.send(command, optionsOrCb);
504
499
  }
505
- };
506
- Greengrass.prototype.disassociateRoleFromGroup = function (args, optionsOrCb, cb) {
507
- var command = new DisassociateRoleFromGroupCommand(args);
500
+ }
501
+ disassociateRoleFromGroup(args, optionsOrCb, cb) {
502
+ const command = new DisassociateRoleFromGroupCommand(args);
508
503
  if (typeof optionsOrCb === "function") {
509
504
  this.send(command, optionsOrCb);
510
505
  }
511
506
  else if (typeof cb === "function") {
512
507
  if (typeof optionsOrCb !== "object")
513
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
508
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
514
509
  this.send(command, optionsOrCb || {}, cb);
515
510
  }
516
511
  else {
517
512
  return this.send(command, optionsOrCb);
518
513
  }
519
- };
520
- Greengrass.prototype.disassociateServiceRoleFromAccount = function (args, optionsOrCb, cb) {
521
- var command = new DisassociateServiceRoleFromAccountCommand(args);
514
+ }
515
+ disassociateServiceRoleFromAccount(args, optionsOrCb, cb) {
516
+ const command = new DisassociateServiceRoleFromAccountCommand(args);
522
517
  if (typeof optionsOrCb === "function") {
523
518
  this.send(command, optionsOrCb);
524
519
  }
525
520
  else if (typeof cb === "function") {
526
521
  if (typeof optionsOrCb !== "object")
527
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
522
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
528
523
  this.send(command, optionsOrCb || {}, cb);
529
524
  }
530
525
  else {
531
526
  return this.send(command, optionsOrCb);
532
527
  }
533
- };
534
- Greengrass.prototype.getAssociatedRole = function (args, optionsOrCb, cb) {
535
- var command = new GetAssociatedRoleCommand(args);
528
+ }
529
+ getAssociatedRole(args, optionsOrCb, cb) {
530
+ const command = new GetAssociatedRoleCommand(args);
536
531
  if (typeof optionsOrCb === "function") {
537
532
  this.send(command, optionsOrCb);
538
533
  }
539
534
  else if (typeof cb === "function") {
540
535
  if (typeof optionsOrCb !== "object")
541
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
536
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
542
537
  this.send(command, optionsOrCb || {}, cb);
543
538
  }
544
539
  else {
545
540
  return this.send(command, optionsOrCb);
546
541
  }
547
- };
548
- Greengrass.prototype.getBulkDeploymentStatus = function (args, optionsOrCb, cb) {
549
- var command = new GetBulkDeploymentStatusCommand(args);
542
+ }
543
+ getBulkDeploymentStatus(args, optionsOrCb, cb) {
544
+ const command = new GetBulkDeploymentStatusCommand(args);
550
545
  if (typeof optionsOrCb === "function") {
551
546
  this.send(command, optionsOrCb);
552
547
  }
553
548
  else if (typeof cb === "function") {
554
549
  if (typeof optionsOrCb !== "object")
555
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
550
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
556
551
  this.send(command, optionsOrCb || {}, cb);
557
552
  }
558
553
  else {
559
554
  return this.send(command, optionsOrCb);
560
555
  }
561
- };
562
- Greengrass.prototype.getConnectivityInfo = function (args, optionsOrCb, cb) {
563
- var command = new GetConnectivityInfoCommand(args);
556
+ }
557
+ getConnectivityInfo(args, optionsOrCb, cb) {
558
+ const command = new GetConnectivityInfoCommand(args);
564
559
  if (typeof optionsOrCb === "function") {
565
560
  this.send(command, optionsOrCb);
566
561
  }
567
562
  else if (typeof cb === "function") {
568
563
  if (typeof optionsOrCb !== "object")
569
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
564
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
570
565
  this.send(command, optionsOrCb || {}, cb);
571
566
  }
572
567
  else {
573
568
  return this.send(command, optionsOrCb);
574
569
  }
575
- };
576
- Greengrass.prototype.getConnectorDefinition = function (args, optionsOrCb, cb) {
577
- var command = new GetConnectorDefinitionCommand(args);
570
+ }
571
+ getConnectorDefinition(args, optionsOrCb, cb) {
572
+ const command = new GetConnectorDefinitionCommand(args);
578
573
  if (typeof optionsOrCb === "function") {
579
574
  this.send(command, optionsOrCb);
580
575
  }
581
576
  else if (typeof cb === "function") {
582
577
  if (typeof optionsOrCb !== "object")
583
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
578
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
584
579
  this.send(command, optionsOrCb || {}, cb);
585
580
  }
586
581
  else {
587
582
  return this.send(command, optionsOrCb);
588
583
  }
589
- };
590
- Greengrass.prototype.getConnectorDefinitionVersion = function (args, optionsOrCb, cb) {
591
- var command = new GetConnectorDefinitionVersionCommand(args);
584
+ }
585
+ getConnectorDefinitionVersion(args, optionsOrCb, cb) {
586
+ const command = new GetConnectorDefinitionVersionCommand(args);
592
587
  if (typeof optionsOrCb === "function") {
593
588
  this.send(command, optionsOrCb);
594
589
  }
595
590
  else if (typeof cb === "function") {
596
591
  if (typeof optionsOrCb !== "object")
597
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
592
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
598
593
  this.send(command, optionsOrCb || {}, cb);
599
594
  }
600
595
  else {
601
596
  return this.send(command, optionsOrCb);
602
597
  }
603
- };
604
- Greengrass.prototype.getCoreDefinition = function (args, optionsOrCb, cb) {
605
- var command = new GetCoreDefinitionCommand(args);
598
+ }
599
+ getCoreDefinition(args, optionsOrCb, cb) {
600
+ const command = new GetCoreDefinitionCommand(args);
606
601
  if (typeof optionsOrCb === "function") {
607
602
  this.send(command, optionsOrCb);
608
603
  }
609
604
  else if (typeof cb === "function") {
610
605
  if (typeof optionsOrCb !== "object")
611
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
606
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
612
607
  this.send(command, optionsOrCb || {}, cb);
613
608
  }
614
609
  else {
615
610
  return this.send(command, optionsOrCb);
616
611
  }
617
- };
618
- Greengrass.prototype.getCoreDefinitionVersion = function (args, optionsOrCb, cb) {
619
- var command = new GetCoreDefinitionVersionCommand(args);
612
+ }
613
+ getCoreDefinitionVersion(args, optionsOrCb, cb) {
614
+ const command = new GetCoreDefinitionVersionCommand(args);
620
615
  if (typeof optionsOrCb === "function") {
621
616
  this.send(command, optionsOrCb);
622
617
  }
623
618
  else if (typeof cb === "function") {
624
619
  if (typeof optionsOrCb !== "object")
625
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
620
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
626
621
  this.send(command, optionsOrCb || {}, cb);
627
622
  }
628
623
  else {
629
624
  return this.send(command, optionsOrCb);
630
625
  }
631
- };
632
- Greengrass.prototype.getDeploymentStatus = function (args, optionsOrCb, cb) {
633
- var command = new GetDeploymentStatusCommand(args);
626
+ }
627
+ getDeploymentStatus(args, optionsOrCb, cb) {
628
+ const command = new GetDeploymentStatusCommand(args);
634
629
  if (typeof optionsOrCb === "function") {
635
630
  this.send(command, optionsOrCb);
636
631
  }
637
632
  else if (typeof cb === "function") {
638
633
  if (typeof optionsOrCb !== "object")
639
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
634
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
640
635
  this.send(command, optionsOrCb || {}, cb);
641
636
  }
642
637
  else {
643
638
  return this.send(command, optionsOrCb);
644
639
  }
645
- };
646
- Greengrass.prototype.getDeviceDefinition = function (args, optionsOrCb, cb) {
647
- var command = new GetDeviceDefinitionCommand(args);
640
+ }
641
+ getDeviceDefinition(args, optionsOrCb, cb) {
642
+ const command = new GetDeviceDefinitionCommand(args);
648
643
  if (typeof optionsOrCb === "function") {
649
644
  this.send(command, optionsOrCb);
650
645
  }
651
646
  else if (typeof cb === "function") {
652
647
  if (typeof optionsOrCb !== "object")
653
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
648
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
654
649
  this.send(command, optionsOrCb || {}, cb);
655
650
  }
656
651
  else {
657
652
  return this.send(command, optionsOrCb);
658
653
  }
659
- };
660
- Greengrass.prototype.getDeviceDefinitionVersion = function (args, optionsOrCb, cb) {
661
- var command = new GetDeviceDefinitionVersionCommand(args);
654
+ }
655
+ getDeviceDefinitionVersion(args, optionsOrCb, cb) {
656
+ const command = new GetDeviceDefinitionVersionCommand(args);
662
657
  if (typeof optionsOrCb === "function") {
663
658
  this.send(command, optionsOrCb);
664
659
  }
665
660
  else if (typeof cb === "function") {
666
661
  if (typeof optionsOrCb !== "object")
667
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
662
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
668
663
  this.send(command, optionsOrCb || {}, cb);
669
664
  }
670
665
  else {
671
666
  return this.send(command, optionsOrCb);
672
667
  }
673
- };
674
- Greengrass.prototype.getFunctionDefinition = function (args, optionsOrCb, cb) {
675
- var command = new GetFunctionDefinitionCommand(args);
668
+ }
669
+ getFunctionDefinition(args, optionsOrCb, cb) {
670
+ const command = new GetFunctionDefinitionCommand(args);
676
671
  if (typeof optionsOrCb === "function") {
677
672
  this.send(command, optionsOrCb);
678
673
  }
679
674
  else if (typeof cb === "function") {
680
675
  if (typeof optionsOrCb !== "object")
681
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
676
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
682
677
  this.send(command, optionsOrCb || {}, cb);
683
678
  }
684
679
  else {
685
680
  return this.send(command, optionsOrCb);
686
681
  }
687
- };
688
- Greengrass.prototype.getFunctionDefinitionVersion = function (args, optionsOrCb, cb) {
689
- var command = new GetFunctionDefinitionVersionCommand(args);
682
+ }
683
+ getFunctionDefinitionVersion(args, optionsOrCb, cb) {
684
+ const command = new GetFunctionDefinitionVersionCommand(args);
690
685
  if (typeof optionsOrCb === "function") {
691
686
  this.send(command, optionsOrCb);
692
687
  }
693
688
  else if (typeof cb === "function") {
694
689
  if (typeof optionsOrCb !== "object")
695
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
690
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
696
691
  this.send(command, optionsOrCb || {}, cb);
697
692
  }
698
693
  else {
699
694
  return this.send(command, optionsOrCb);
700
695
  }
701
- };
702
- Greengrass.prototype.getGroup = function (args, optionsOrCb, cb) {
703
- var command = new GetGroupCommand(args);
696
+ }
697
+ getGroup(args, optionsOrCb, cb) {
698
+ const command = new GetGroupCommand(args);
704
699
  if (typeof optionsOrCb === "function") {
705
700
  this.send(command, optionsOrCb);
706
701
  }
707
702
  else if (typeof cb === "function") {
708
703
  if (typeof optionsOrCb !== "object")
709
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
704
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
710
705
  this.send(command, optionsOrCb || {}, cb);
711
706
  }
712
707
  else {
713
708
  return this.send(command, optionsOrCb);
714
709
  }
715
- };
716
- Greengrass.prototype.getGroupCertificateAuthority = function (args, optionsOrCb, cb) {
717
- var command = new GetGroupCertificateAuthorityCommand(args);
710
+ }
711
+ getGroupCertificateAuthority(args, optionsOrCb, cb) {
712
+ const command = new GetGroupCertificateAuthorityCommand(args);
718
713
  if (typeof optionsOrCb === "function") {
719
714
  this.send(command, optionsOrCb);
720
715
  }
721
716
  else if (typeof cb === "function") {
722
717
  if (typeof optionsOrCb !== "object")
723
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
718
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
724
719
  this.send(command, optionsOrCb || {}, cb);
725
720
  }
726
721
  else {
727
722
  return this.send(command, optionsOrCb);
728
723
  }
729
- };
730
- Greengrass.prototype.getGroupCertificateConfiguration = function (args, optionsOrCb, cb) {
731
- var command = new GetGroupCertificateConfigurationCommand(args);
724
+ }
725
+ getGroupCertificateConfiguration(args, optionsOrCb, cb) {
726
+ const command = new GetGroupCertificateConfigurationCommand(args);
732
727
  if (typeof optionsOrCb === "function") {
733
728
  this.send(command, optionsOrCb);
734
729
  }
735
730
  else if (typeof cb === "function") {
736
731
  if (typeof optionsOrCb !== "object")
737
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
732
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
738
733
  this.send(command, optionsOrCb || {}, cb);
739
734
  }
740
735
  else {
741
736
  return this.send(command, optionsOrCb);
742
737
  }
743
- };
744
- Greengrass.prototype.getGroupVersion = function (args, optionsOrCb, cb) {
745
- var command = new GetGroupVersionCommand(args);
738
+ }
739
+ getGroupVersion(args, optionsOrCb, cb) {
740
+ const command = new GetGroupVersionCommand(args);
746
741
  if (typeof optionsOrCb === "function") {
747
742
  this.send(command, optionsOrCb);
748
743
  }
749
744
  else if (typeof cb === "function") {
750
745
  if (typeof optionsOrCb !== "object")
751
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
746
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
752
747
  this.send(command, optionsOrCb || {}, cb);
753
748
  }
754
749
  else {
755
750
  return this.send(command, optionsOrCb);
756
751
  }
757
- };
758
- Greengrass.prototype.getLoggerDefinition = function (args, optionsOrCb, cb) {
759
- var command = new GetLoggerDefinitionCommand(args);
752
+ }
753
+ getLoggerDefinition(args, optionsOrCb, cb) {
754
+ const command = new GetLoggerDefinitionCommand(args);
760
755
  if (typeof optionsOrCb === "function") {
761
756
  this.send(command, optionsOrCb);
762
757
  }
763
758
  else if (typeof cb === "function") {
764
759
  if (typeof optionsOrCb !== "object")
765
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
760
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
766
761
  this.send(command, optionsOrCb || {}, cb);
767
762
  }
768
763
  else {
769
764
  return this.send(command, optionsOrCb);
770
765
  }
771
- };
772
- Greengrass.prototype.getLoggerDefinitionVersion = function (args, optionsOrCb, cb) {
773
- var command = new GetLoggerDefinitionVersionCommand(args);
766
+ }
767
+ getLoggerDefinitionVersion(args, optionsOrCb, cb) {
768
+ const command = new GetLoggerDefinitionVersionCommand(args);
774
769
  if (typeof optionsOrCb === "function") {
775
770
  this.send(command, optionsOrCb);
776
771
  }
777
772
  else if (typeof cb === "function") {
778
773
  if (typeof optionsOrCb !== "object")
779
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
774
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
780
775
  this.send(command, optionsOrCb || {}, cb);
781
776
  }
782
777
  else {
783
778
  return this.send(command, optionsOrCb);
784
779
  }
785
- };
786
- Greengrass.prototype.getResourceDefinition = function (args, optionsOrCb, cb) {
787
- var command = new GetResourceDefinitionCommand(args);
780
+ }
781
+ getResourceDefinition(args, optionsOrCb, cb) {
782
+ const command = new GetResourceDefinitionCommand(args);
788
783
  if (typeof optionsOrCb === "function") {
789
784
  this.send(command, optionsOrCb);
790
785
  }
791
786
  else if (typeof cb === "function") {
792
787
  if (typeof optionsOrCb !== "object")
793
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
788
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
794
789
  this.send(command, optionsOrCb || {}, cb);
795
790
  }
796
791
  else {
797
792
  return this.send(command, optionsOrCb);
798
793
  }
799
- };
800
- Greengrass.prototype.getResourceDefinitionVersion = function (args, optionsOrCb, cb) {
801
- var command = new GetResourceDefinitionVersionCommand(args);
794
+ }
795
+ getResourceDefinitionVersion(args, optionsOrCb, cb) {
796
+ const command = new GetResourceDefinitionVersionCommand(args);
802
797
  if (typeof optionsOrCb === "function") {
803
798
  this.send(command, optionsOrCb);
804
799
  }
805
800
  else if (typeof cb === "function") {
806
801
  if (typeof optionsOrCb !== "object")
807
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
802
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
808
803
  this.send(command, optionsOrCb || {}, cb);
809
804
  }
810
805
  else {
811
806
  return this.send(command, optionsOrCb);
812
807
  }
813
- };
814
- Greengrass.prototype.getServiceRoleForAccount = function (args, optionsOrCb, cb) {
815
- var command = new GetServiceRoleForAccountCommand(args);
808
+ }
809
+ getServiceRoleForAccount(args, optionsOrCb, cb) {
810
+ const command = new GetServiceRoleForAccountCommand(args);
816
811
  if (typeof optionsOrCb === "function") {
817
812
  this.send(command, optionsOrCb);
818
813
  }
819
814
  else if (typeof cb === "function") {
820
815
  if (typeof optionsOrCb !== "object")
821
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
816
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
822
817
  this.send(command, optionsOrCb || {}, cb);
823
818
  }
824
819
  else {
825
820
  return this.send(command, optionsOrCb);
826
821
  }
827
- };
828
- Greengrass.prototype.getSubscriptionDefinition = function (args, optionsOrCb, cb) {
829
- var command = new GetSubscriptionDefinitionCommand(args);
822
+ }
823
+ getSubscriptionDefinition(args, optionsOrCb, cb) {
824
+ const command = new GetSubscriptionDefinitionCommand(args);
830
825
  if (typeof optionsOrCb === "function") {
831
826
  this.send(command, optionsOrCb);
832
827
  }
833
828
  else if (typeof cb === "function") {
834
829
  if (typeof optionsOrCb !== "object")
835
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
830
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
836
831
  this.send(command, optionsOrCb || {}, cb);
837
832
  }
838
833
  else {
839
834
  return this.send(command, optionsOrCb);
840
835
  }
841
- };
842
- Greengrass.prototype.getSubscriptionDefinitionVersion = function (args, optionsOrCb, cb) {
843
- var command = new GetSubscriptionDefinitionVersionCommand(args);
836
+ }
837
+ getSubscriptionDefinitionVersion(args, optionsOrCb, cb) {
838
+ const command = new GetSubscriptionDefinitionVersionCommand(args);
844
839
  if (typeof optionsOrCb === "function") {
845
840
  this.send(command, optionsOrCb);
846
841
  }
847
842
  else if (typeof cb === "function") {
848
843
  if (typeof optionsOrCb !== "object")
849
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
844
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
850
845
  this.send(command, optionsOrCb || {}, cb);
851
846
  }
852
847
  else {
853
848
  return this.send(command, optionsOrCb);
854
849
  }
855
- };
856
- Greengrass.prototype.getThingRuntimeConfiguration = function (args, optionsOrCb, cb) {
857
- var command = new GetThingRuntimeConfigurationCommand(args);
850
+ }
851
+ getThingRuntimeConfiguration(args, optionsOrCb, cb) {
852
+ const command = new GetThingRuntimeConfigurationCommand(args);
858
853
  if (typeof optionsOrCb === "function") {
859
854
  this.send(command, optionsOrCb);
860
855
  }
861
856
  else if (typeof cb === "function") {
862
857
  if (typeof optionsOrCb !== "object")
863
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
858
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
864
859
  this.send(command, optionsOrCb || {}, cb);
865
860
  }
866
861
  else {
867
862
  return this.send(command, optionsOrCb);
868
863
  }
869
- };
870
- Greengrass.prototype.listBulkDeploymentDetailedReports = function (args, optionsOrCb, cb) {
871
- var command = new ListBulkDeploymentDetailedReportsCommand(args);
864
+ }
865
+ listBulkDeploymentDetailedReports(args, optionsOrCb, cb) {
866
+ const command = new ListBulkDeploymentDetailedReportsCommand(args);
872
867
  if (typeof optionsOrCb === "function") {
873
868
  this.send(command, optionsOrCb);
874
869
  }
875
870
  else if (typeof cb === "function") {
876
871
  if (typeof optionsOrCb !== "object")
877
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
872
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
878
873
  this.send(command, optionsOrCb || {}, cb);
879
874
  }
880
875
  else {
881
876
  return this.send(command, optionsOrCb);
882
877
  }
883
- };
884
- Greengrass.prototype.listBulkDeployments = function (args, optionsOrCb, cb) {
885
- var command = new ListBulkDeploymentsCommand(args);
878
+ }
879
+ listBulkDeployments(args, optionsOrCb, cb) {
880
+ const command = new ListBulkDeploymentsCommand(args);
886
881
  if (typeof optionsOrCb === "function") {
887
882
  this.send(command, optionsOrCb);
888
883
  }
889
884
  else if (typeof cb === "function") {
890
885
  if (typeof optionsOrCb !== "object")
891
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
886
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
892
887
  this.send(command, optionsOrCb || {}, cb);
893
888
  }
894
889
  else {
895
890
  return this.send(command, optionsOrCb);
896
891
  }
897
- };
898
- Greengrass.prototype.listConnectorDefinitions = function (args, optionsOrCb, cb) {
899
- var command = new ListConnectorDefinitionsCommand(args);
892
+ }
893
+ listConnectorDefinitions(args, optionsOrCb, cb) {
894
+ const command = new ListConnectorDefinitionsCommand(args);
900
895
  if (typeof optionsOrCb === "function") {
901
896
  this.send(command, optionsOrCb);
902
897
  }
903
898
  else if (typeof cb === "function") {
904
899
  if (typeof optionsOrCb !== "object")
905
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
900
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
906
901
  this.send(command, optionsOrCb || {}, cb);
907
902
  }
908
903
  else {
909
904
  return this.send(command, optionsOrCb);
910
905
  }
911
- };
912
- Greengrass.prototype.listConnectorDefinitionVersions = function (args, optionsOrCb, cb) {
913
- var command = new ListConnectorDefinitionVersionsCommand(args);
906
+ }
907
+ listConnectorDefinitionVersions(args, optionsOrCb, cb) {
908
+ const command = new ListConnectorDefinitionVersionsCommand(args);
914
909
  if (typeof optionsOrCb === "function") {
915
910
  this.send(command, optionsOrCb);
916
911
  }
917
912
  else if (typeof cb === "function") {
918
913
  if (typeof optionsOrCb !== "object")
919
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
914
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
920
915
  this.send(command, optionsOrCb || {}, cb);
921
916
  }
922
917
  else {
923
918
  return this.send(command, optionsOrCb);
924
919
  }
925
- };
926
- Greengrass.prototype.listCoreDefinitions = function (args, optionsOrCb, cb) {
927
- var command = new ListCoreDefinitionsCommand(args);
920
+ }
921
+ listCoreDefinitions(args, optionsOrCb, cb) {
922
+ const command = new ListCoreDefinitionsCommand(args);
928
923
  if (typeof optionsOrCb === "function") {
929
924
  this.send(command, optionsOrCb);
930
925
  }
931
926
  else if (typeof cb === "function") {
932
927
  if (typeof optionsOrCb !== "object")
933
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
928
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
934
929
  this.send(command, optionsOrCb || {}, cb);
935
930
  }
936
931
  else {
937
932
  return this.send(command, optionsOrCb);
938
933
  }
939
- };
940
- Greengrass.prototype.listCoreDefinitionVersions = function (args, optionsOrCb, cb) {
941
- var command = new ListCoreDefinitionVersionsCommand(args);
934
+ }
935
+ listCoreDefinitionVersions(args, optionsOrCb, cb) {
936
+ const command = new ListCoreDefinitionVersionsCommand(args);
942
937
  if (typeof optionsOrCb === "function") {
943
938
  this.send(command, optionsOrCb);
944
939
  }
945
940
  else if (typeof cb === "function") {
946
941
  if (typeof optionsOrCb !== "object")
947
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
942
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
948
943
  this.send(command, optionsOrCb || {}, cb);
949
944
  }
950
945
  else {
951
946
  return this.send(command, optionsOrCb);
952
947
  }
953
- };
954
- Greengrass.prototype.listDeployments = function (args, optionsOrCb, cb) {
955
- var command = new ListDeploymentsCommand(args);
948
+ }
949
+ listDeployments(args, optionsOrCb, cb) {
950
+ const command = new ListDeploymentsCommand(args);
956
951
  if (typeof optionsOrCb === "function") {
957
952
  this.send(command, optionsOrCb);
958
953
  }
959
954
  else if (typeof cb === "function") {
960
955
  if (typeof optionsOrCb !== "object")
961
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
956
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
962
957
  this.send(command, optionsOrCb || {}, cb);
963
958
  }
964
959
  else {
965
960
  return this.send(command, optionsOrCb);
966
961
  }
967
- };
968
- Greengrass.prototype.listDeviceDefinitions = function (args, optionsOrCb, cb) {
969
- var command = new ListDeviceDefinitionsCommand(args);
962
+ }
963
+ listDeviceDefinitions(args, optionsOrCb, cb) {
964
+ const command = new ListDeviceDefinitionsCommand(args);
970
965
  if (typeof optionsOrCb === "function") {
971
966
  this.send(command, optionsOrCb);
972
967
  }
973
968
  else if (typeof cb === "function") {
974
969
  if (typeof optionsOrCb !== "object")
975
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
970
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
976
971
  this.send(command, optionsOrCb || {}, cb);
977
972
  }
978
973
  else {
979
974
  return this.send(command, optionsOrCb);
980
975
  }
981
- };
982
- Greengrass.prototype.listDeviceDefinitionVersions = function (args, optionsOrCb, cb) {
983
- var command = new ListDeviceDefinitionVersionsCommand(args);
976
+ }
977
+ listDeviceDefinitionVersions(args, optionsOrCb, cb) {
978
+ const command = new ListDeviceDefinitionVersionsCommand(args);
984
979
  if (typeof optionsOrCb === "function") {
985
980
  this.send(command, optionsOrCb);
986
981
  }
987
982
  else if (typeof cb === "function") {
988
983
  if (typeof optionsOrCb !== "object")
989
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
984
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
990
985
  this.send(command, optionsOrCb || {}, cb);
991
986
  }
992
987
  else {
993
988
  return this.send(command, optionsOrCb);
994
989
  }
995
- };
996
- Greengrass.prototype.listFunctionDefinitions = function (args, optionsOrCb, cb) {
997
- var command = new ListFunctionDefinitionsCommand(args);
990
+ }
991
+ listFunctionDefinitions(args, optionsOrCb, cb) {
992
+ const command = new ListFunctionDefinitionsCommand(args);
998
993
  if (typeof optionsOrCb === "function") {
999
994
  this.send(command, optionsOrCb);
1000
995
  }
1001
996
  else if (typeof cb === "function") {
1002
997
  if (typeof optionsOrCb !== "object")
1003
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
998
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1004
999
  this.send(command, optionsOrCb || {}, cb);
1005
1000
  }
1006
1001
  else {
1007
1002
  return this.send(command, optionsOrCb);
1008
1003
  }
1009
- };
1010
- Greengrass.prototype.listFunctionDefinitionVersions = function (args, optionsOrCb, cb) {
1011
- var command = new ListFunctionDefinitionVersionsCommand(args);
1004
+ }
1005
+ listFunctionDefinitionVersions(args, optionsOrCb, cb) {
1006
+ const command = new ListFunctionDefinitionVersionsCommand(args);
1012
1007
  if (typeof optionsOrCb === "function") {
1013
1008
  this.send(command, optionsOrCb);
1014
1009
  }
1015
1010
  else if (typeof cb === "function") {
1016
1011
  if (typeof optionsOrCb !== "object")
1017
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1012
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1018
1013
  this.send(command, optionsOrCb || {}, cb);
1019
1014
  }
1020
1015
  else {
1021
1016
  return this.send(command, optionsOrCb);
1022
1017
  }
1023
- };
1024
- Greengrass.prototype.listGroupCertificateAuthorities = function (args, optionsOrCb, cb) {
1025
- var command = new ListGroupCertificateAuthoritiesCommand(args);
1018
+ }
1019
+ listGroupCertificateAuthorities(args, optionsOrCb, cb) {
1020
+ const command = new ListGroupCertificateAuthoritiesCommand(args);
1026
1021
  if (typeof optionsOrCb === "function") {
1027
1022
  this.send(command, optionsOrCb);
1028
1023
  }
1029
1024
  else if (typeof cb === "function") {
1030
1025
  if (typeof optionsOrCb !== "object")
1031
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1026
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1032
1027
  this.send(command, optionsOrCb || {}, cb);
1033
1028
  }
1034
1029
  else {
1035
1030
  return this.send(command, optionsOrCb);
1036
1031
  }
1037
- };
1038
- Greengrass.prototype.listGroups = function (args, optionsOrCb, cb) {
1039
- var command = new ListGroupsCommand(args);
1032
+ }
1033
+ listGroups(args, optionsOrCb, cb) {
1034
+ const command = new ListGroupsCommand(args);
1040
1035
  if (typeof optionsOrCb === "function") {
1041
1036
  this.send(command, optionsOrCb);
1042
1037
  }
1043
1038
  else if (typeof cb === "function") {
1044
1039
  if (typeof optionsOrCb !== "object")
1045
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1040
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1046
1041
  this.send(command, optionsOrCb || {}, cb);
1047
1042
  }
1048
1043
  else {
1049
1044
  return this.send(command, optionsOrCb);
1050
1045
  }
1051
- };
1052
- Greengrass.prototype.listGroupVersions = function (args, optionsOrCb, cb) {
1053
- var command = new ListGroupVersionsCommand(args);
1046
+ }
1047
+ listGroupVersions(args, optionsOrCb, cb) {
1048
+ const command = new ListGroupVersionsCommand(args);
1054
1049
  if (typeof optionsOrCb === "function") {
1055
1050
  this.send(command, optionsOrCb);
1056
1051
  }
1057
1052
  else if (typeof cb === "function") {
1058
1053
  if (typeof optionsOrCb !== "object")
1059
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1054
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1060
1055
  this.send(command, optionsOrCb || {}, cb);
1061
1056
  }
1062
1057
  else {
1063
1058
  return this.send(command, optionsOrCb);
1064
1059
  }
1065
- };
1066
- Greengrass.prototype.listLoggerDefinitions = function (args, optionsOrCb, cb) {
1067
- var command = new ListLoggerDefinitionsCommand(args);
1060
+ }
1061
+ listLoggerDefinitions(args, optionsOrCb, cb) {
1062
+ const command = new ListLoggerDefinitionsCommand(args);
1068
1063
  if (typeof optionsOrCb === "function") {
1069
1064
  this.send(command, optionsOrCb);
1070
1065
  }
1071
1066
  else if (typeof cb === "function") {
1072
1067
  if (typeof optionsOrCb !== "object")
1073
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1068
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1074
1069
  this.send(command, optionsOrCb || {}, cb);
1075
1070
  }
1076
1071
  else {
1077
1072
  return this.send(command, optionsOrCb);
1078
1073
  }
1079
- };
1080
- Greengrass.prototype.listLoggerDefinitionVersions = function (args, optionsOrCb, cb) {
1081
- var command = new ListLoggerDefinitionVersionsCommand(args);
1074
+ }
1075
+ listLoggerDefinitionVersions(args, optionsOrCb, cb) {
1076
+ const command = new ListLoggerDefinitionVersionsCommand(args);
1082
1077
  if (typeof optionsOrCb === "function") {
1083
1078
  this.send(command, optionsOrCb);
1084
1079
  }
1085
1080
  else if (typeof cb === "function") {
1086
1081
  if (typeof optionsOrCb !== "object")
1087
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1082
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1088
1083
  this.send(command, optionsOrCb || {}, cb);
1089
1084
  }
1090
1085
  else {
1091
1086
  return this.send(command, optionsOrCb);
1092
1087
  }
1093
- };
1094
- Greengrass.prototype.listResourceDefinitions = function (args, optionsOrCb, cb) {
1095
- var command = new ListResourceDefinitionsCommand(args);
1088
+ }
1089
+ listResourceDefinitions(args, optionsOrCb, cb) {
1090
+ const command = new ListResourceDefinitionsCommand(args);
1096
1091
  if (typeof optionsOrCb === "function") {
1097
1092
  this.send(command, optionsOrCb);
1098
1093
  }
1099
1094
  else if (typeof cb === "function") {
1100
1095
  if (typeof optionsOrCb !== "object")
1101
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1096
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1102
1097
  this.send(command, optionsOrCb || {}, cb);
1103
1098
  }
1104
1099
  else {
1105
1100
  return this.send(command, optionsOrCb);
1106
1101
  }
1107
- };
1108
- Greengrass.prototype.listResourceDefinitionVersions = function (args, optionsOrCb, cb) {
1109
- var command = new ListResourceDefinitionVersionsCommand(args);
1102
+ }
1103
+ listResourceDefinitionVersions(args, optionsOrCb, cb) {
1104
+ const command = new ListResourceDefinitionVersionsCommand(args);
1110
1105
  if (typeof optionsOrCb === "function") {
1111
1106
  this.send(command, optionsOrCb);
1112
1107
  }
1113
1108
  else if (typeof cb === "function") {
1114
1109
  if (typeof optionsOrCb !== "object")
1115
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1110
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1116
1111
  this.send(command, optionsOrCb || {}, cb);
1117
1112
  }
1118
1113
  else {
1119
1114
  return this.send(command, optionsOrCb);
1120
1115
  }
1121
- };
1122
- Greengrass.prototype.listSubscriptionDefinitions = function (args, optionsOrCb, cb) {
1123
- var command = new ListSubscriptionDefinitionsCommand(args);
1116
+ }
1117
+ listSubscriptionDefinitions(args, optionsOrCb, cb) {
1118
+ const command = new ListSubscriptionDefinitionsCommand(args);
1124
1119
  if (typeof optionsOrCb === "function") {
1125
1120
  this.send(command, optionsOrCb);
1126
1121
  }
1127
1122
  else if (typeof cb === "function") {
1128
1123
  if (typeof optionsOrCb !== "object")
1129
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1124
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1130
1125
  this.send(command, optionsOrCb || {}, cb);
1131
1126
  }
1132
1127
  else {
1133
1128
  return this.send(command, optionsOrCb);
1134
1129
  }
1135
- };
1136
- Greengrass.prototype.listSubscriptionDefinitionVersions = function (args, optionsOrCb, cb) {
1137
- var command = new ListSubscriptionDefinitionVersionsCommand(args);
1130
+ }
1131
+ listSubscriptionDefinitionVersions(args, optionsOrCb, cb) {
1132
+ const command = new ListSubscriptionDefinitionVersionsCommand(args);
1138
1133
  if (typeof optionsOrCb === "function") {
1139
1134
  this.send(command, optionsOrCb);
1140
1135
  }
1141
1136
  else if (typeof cb === "function") {
1142
1137
  if (typeof optionsOrCb !== "object")
1143
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1138
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1144
1139
  this.send(command, optionsOrCb || {}, cb);
1145
1140
  }
1146
1141
  else {
1147
1142
  return this.send(command, optionsOrCb);
1148
1143
  }
1149
- };
1150
- Greengrass.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
1151
- var command = new ListTagsForResourceCommand(args);
1144
+ }
1145
+ listTagsForResource(args, optionsOrCb, cb) {
1146
+ const command = new ListTagsForResourceCommand(args);
1152
1147
  if (typeof optionsOrCb === "function") {
1153
1148
  this.send(command, optionsOrCb);
1154
1149
  }
1155
1150
  else if (typeof cb === "function") {
1156
1151
  if (typeof optionsOrCb !== "object")
1157
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1152
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1158
1153
  this.send(command, optionsOrCb || {}, cb);
1159
1154
  }
1160
1155
  else {
1161
1156
  return this.send(command, optionsOrCb);
1162
1157
  }
1163
- };
1164
- Greengrass.prototype.resetDeployments = function (args, optionsOrCb, cb) {
1165
- var command = new ResetDeploymentsCommand(args);
1158
+ }
1159
+ resetDeployments(args, optionsOrCb, cb) {
1160
+ const command = new ResetDeploymentsCommand(args);
1166
1161
  if (typeof optionsOrCb === "function") {
1167
1162
  this.send(command, optionsOrCb);
1168
1163
  }
1169
1164
  else if (typeof cb === "function") {
1170
1165
  if (typeof optionsOrCb !== "object")
1171
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1166
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1172
1167
  this.send(command, optionsOrCb || {}, cb);
1173
1168
  }
1174
1169
  else {
1175
1170
  return this.send(command, optionsOrCb);
1176
1171
  }
1177
- };
1178
- Greengrass.prototype.startBulkDeployment = function (args, optionsOrCb, cb) {
1179
- var command = new StartBulkDeploymentCommand(args);
1172
+ }
1173
+ startBulkDeployment(args, optionsOrCb, cb) {
1174
+ const command = new StartBulkDeploymentCommand(args);
1180
1175
  if (typeof optionsOrCb === "function") {
1181
1176
  this.send(command, optionsOrCb);
1182
1177
  }
1183
1178
  else if (typeof cb === "function") {
1184
1179
  if (typeof optionsOrCb !== "object")
1185
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1180
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1186
1181
  this.send(command, optionsOrCb || {}, cb);
1187
1182
  }
1188
1183
  else {
1189
1184
  return this.send(command, optionsOrCb);
1190
1185
  }
1191
- };
1192
- Greengrass.prototype.stopBulkDeployment = function (args, optionsOrCb, cb) {
1193
- var command = new StopBulkDeploymentCommand(args);
1186
+ }
1187
+ stopBulkDeployment(args, optionsOrCb, cb) {
1188
+ const command = new StopBulkDeploymentCommand(args);
1194
1189
  if (typeof optionsOrCb === "function") {
1195
1190
  this.send(command, optionsOrCb);
1196
1191
  }
1197
1192
  else if (typeof cb === "function") {
1198
1193
  if (typeof optionsOrCb !== "object")
1199
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1194
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1200
1195
  this.send(command, optionsOrCb || {}, cb);
1201
1196
  }
1202
1197
  else {
1203
1198
  return this.send(command, optionsOrCb);
1204
1199
  }
1205
- };
1206
- Greengrass.prototype.tagResource = function (args, optionsOrCb, cb) {
1207
- var command = new TagResourceCommand(args);
1200
+ }
1201
+ tagResource(args, optionsOrCb, cb) {
1202
+ const command = new TagResourceCommand(args);
1208
1203
  if (typeof optionsOrCb === "function") {
1209
1204
  this.send(command, optionsOrCb);
1210
1205
  }
1211
1206
  else if (typeof cb === "function") {
1212
1207
  if (typeof optionsOrCb !== "object")
1213
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1208
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1214
1209
  this.send(command, optionsOrCb || {}, cb);
1215
1210
  }
1216
1211
  else {
1217
1212
  return this.send(command, optionsOrCb);
1218
1213
  }
1219
- };
1220
- Greengrass.prototype.untagResource = function (args, optionsOrCb, cb) {
1221
- var command = new UntagResourceCommand(args);
1214
+ }
1215
+ untagResource(args, optionsOrCb, cb) {
1216
+ const command = new UntagResourceCommand(args);
1222
1217
  if (typeof optionsOrCb === "function") {
1223
1218
  this.send(command, optionsOrCb);
1224
1219
  }
1225
1220
  else if (typeof cb === "function") {
1226
1221
  if (typeof optionsOrCb !== "object")
1227
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1222
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1228
1223
  this.send(command, optionsOrCb || {}, cb);
1229
1224
  }
1230
1225
  else {
1231
1226
  return this.send(command, optionsOrCb);
1232
1227
  }
1233
- };
1234
- Greengrass.prototype.updateConnectivityInfo = function (args, optionsOrCb, cb) {
1235
- var command = new UpdateConnectivityInfoCommand(args);
1228
+ }
1229
+ updateConnectivityInfo(args, optionsOrCb, cb) {
1230
+ const command = new UpdateConnectivityInfoCommand(args);
1236
1231
  if (typeof optionsOrCb === "function") {
1237
1232
  this.send(command, optionsOrCb);
1238
1233
  }
1239
1234
  else if (typeof cb === "function") {
1240
1235
  if (typeof optionsOrCb !== "object")
1241
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1236
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1242
1237
  this.send(command, optionsOrCb || {}, cb);
1243
1238
  }
1244
1239
  else {
1245
1240
  return this.send(command, optionsOrCb);
1246
1241
  }
1247
- };
1248
- Greengrass.prototype.updateConnectorDefinition = function (args, optionsOrCb, cb) {
1249
- var command = new UpdateConnectorDefinitionCommand(args);
1242
+ }
1243
+ updateConnectorDefinition(args, optionsOrCb, cb) {
1244
+ const command = new UpdateConnectorDefinitionCommand(args);
1250
1245
  if (typeof optionsOrCb === "function") {
1251
1246
  this.send(command, optionsOrCb);
1252
1247
  }
1253
1248
  else if (typeof cb === "function") {
1254
1249
  if (typeof optionsOrCb !== "object")
1255
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1250
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1256
1251
  this.send(command, optionsOrCb || {}, cb);
1257
1252
  }
1258
1253
  else {
1259
1254
  return this.send(command, optionsOrCb);
1260
1255
  }
1261
- };
1262
- Greengrass.prototype.updateCoreDefinition = function (args, optionsOrCb, cb) {
1263
- var command = new UpdateCoreDefinitionCommand(args);
1256
+ }
1257
+ updateCoreDefinition(args, optionsOrCb, cb) {
1258
+ const command = new UpdateCoreDefinitionCommand(args);
1264
1259
  if (typeof optionsOrCb === "function") {
1265
1260
  this.send(command, optionsOrCb);
1266
1261
  }
1267
1262
  else if (typeof cb === "function") {
1268
1263
  if (typeof optionsOrCb !== "object")
1269
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1264
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1270
1265
  this.send(command, optionsOrCb || {}, cb);
1271
1266
  }
1272
1267
  else {
1273
1268
  return this.send(command, optionsOrCb);
1274
1269
  }
1275
- };
1276
- Greengrass.prototype.updateDeviceDefinition = function (args, optionsOrCb, cb) {
1277
- var command = new UpdateDeviceDefinitionCommand(args);
1270
+ }
1271
+ updateDeviceDefinition(args, optionsOrCb, cb) {
1272
+ const command = new UpdateDeviceDefinitionCommand(args);
1278
1273
  if (typeof optionsOrCb === "function") {
1279
1274
  this.send(command, optionsOrCb);
1280
1275
  }
1281
1276
  else if (typeof cb === "function") {
1282
1277
  if (typeof optionsOrCb !== "object")
1283
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1278
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1284
1279
  this.send(command, optionsOrCb || {}, cb);
1285
1280
  }
1286
1281
  else {
1287
1282
  return this.send(command, optionsOrCb);
1288
1283
  }
1289
- };
1290
- Greengrass.prototype.updateFunctionDefinition = function (args, optionsOrCb, cb) {
1291
- var command = new UpdateFunctionDefinitionCommand(args);
1284
+ }
1285
+ updateFunctionDefinition(args, optionsOrCb, cb) {
1286
+ const command = new UpdateFunctionDefinitionCommand(args);
1292
1287
  if (typeof optionsOrCb === "function") {
1293
1288
  this.send(command, optionsOrCb);
1294
1289
  }
1295
1290
  else if (typeof cb === "function") {
1296
1291
  if (typeof optionsOrCb !== "object")
1297
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1292
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1298
1293
  this.send(command, optionsOrCb || {}, cb);
1299
1294
  }
1300
1295
  else {
1301
1296
  return this.send(command, optionsOrCb);
1302
1297
  }
1303
- };
1304
- Greengrass.prototype.updateGroup = function (args, optionsOrCb, cb) {
1305
- var command = new UpdateGroupCommand(args);
1298
+ }
1299
+ updateGroup(args, optionsOrCb, cb) {
1300
+ const command = new UpdateGroupCommand(args);
1306
1301
  if (typeof optionsOrCb === "function") {
1307
1302
  this.send(command, optionsOrCb);
1308
1303
  }
1309
1304
  else if (typeof cb === "function") {
1310
1305
  if (typeof optionsOrCb !== "object")
1311
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1306
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1312
1307
  this.send(command, optionsOrCb || {}, cb);
1313
1308
  }
1314
1309
  else {
1315
1310
  return this.send(command, optionsOrCb);
1316
1311
  }
1317
- };
1318
- Greengrass.prototype.updateGroupCertificateConfiguration = function (args, optionsOrCb, cb) {
1319
- var command = new UpdateGroupCertificateConfigurationCommand(args);
1312
+ }
1313
+ updateGroupCertificateConfiguration(args, optionsOrCb, cb) {
1314
+ const command = new UpdateGroupCertificateConfigurationCommand(args);
1320
1315
  if (typeof optionsOrCb === "function") {
1321
1316
  this.send(command, optionsOrCb);
1322
1317
  }
1323
1318
  else if (typeof cb === "function") {
1324
1319
  if (typeof optionsOrCb !== "object")
1325
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1320
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1326
1321
  this.send(command, optionsOrCb || {}, cb);
1327
1322
  }
1328
1323
  else {
1329
1324
  return this.send(command, optionsOrCb);
1330
1325
  }
1331
- };
1332
- Greengrass.prototype.updateLoggerDefinition = function (args, optionsOrCb, cb) {
1333
- var command = new UpdateLoggerDefinitionCommand(args);
1326
+ }
1327
+ updateLoggerDefinition(args, optionsOrCb, cb) {
1328
+ const command = new UpdateLoggerDefinitionCommand(args);
1334
1329
  if (typeof optionsOrCb === "function") {
1335
1330
  this.send(command, optionsOrCb);
1336
1331
  }
1337
1332
  else if (typeof cb === "function") {
1338
1333
  if (typeof optionsOrCb !== "object")
1339
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1334
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1340
1335
  this.send(command, optionsOrCb || {}, cb);
1341
1336
  }
1342
1337
  else {
1343
1338
  return this.send(command, optionsOrCb);
1344
1339
  }
1345
- };
1346
- Greengrass.prototype.updateResourceDefinition = function (args, optionsOrCb, cb) {
1347
- var command = new UpdateResourceDefinitionCommand(args);
1340
+ }
1341
+ updateResourceDefinition(args, optionsOrCb, cb) {
1342
+ const command = new UpdateResourceDefinitionCommand(args);
1348
1343
  if (typeof optionsOrCb === "function") {
1349
1344
  this.send(command, optionsOrCb);
1350
1345
  }
1351
1346
  else if (typeof cb === "function") {
1352
1347
  if (typeof optionsOrCb !== "object")
1353
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1348
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1354
1349
  this.send(command, optionsOrCb || {}, cb);
1355
1350
  }
1356
1351
  else {
1357
1352
  return this.send(command, optionsOrCb);
1358
1353
  }
1359
- };
1360
- Greengrass.prototype.updateSubscriptionDefinition = function (args, optionsOrCb, cb) {
1361
- var command = new UpdateSubscriptionDefinitionCommand(args);
1354
+ }
1355
+ updateSubscriptionDefinition(args, optionsOrCb, cb) {
1356
+ const command = new UpdateSubscriptionDefinitionCommand(args);
1362
1357
  if (typeof optionsOrCb === "function") {
1363
1358
  this.send(command, optionsOrCb);
1364
1359
  }
1365
1360
  else if (typeof cb === "function") {
1366
1361
  if (typeof optionsOrCb !== "object")
1367
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1362
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1368
1363
  this.send(command, optionsOrCb || {}, cb);
1369
1364
  }
1370
1365
  else {
1371
1366
  return this.send(command, optionsOrCb);
1372
1367
  }
1373
- };
1374
- Greengrass.prototype.updateThingRuntimeConfiguration = function (args, optionsOrCb, cb) {
1375
- var command = new UpdateThingRuntimeConfigurationCommand(args);
1368
+ }
1369
+ updateThingRuntimeConfiguration(args, optionsOrCb, cb) {
1370
+ const command = new UpdateThingRuntimeConfigurationCommand(args);
1376
1371
  if (typeof optionsOrCb === "function") {
1377
1372
  this.send(command, optionsOrCb);
1378
1373
  }
1379
1374
  else if (typeof cb === "function") {
1380
1375
  if (typeof optionsOrCb !== "object")
1381
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1376
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1382
1377
  this.send(command, optionsOrCb || {}, cb);
1383
1378
  }
1384
1379
  else {
1385
1380
  return this.send(command, optionsOrCb);
1386
1381
  }
1387
- };
1388
- return Greengrass;
1389
- }(GreengrassClient));
1390
- export { Greengrass };
1382
+ }
1383
+ }