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