@aws-sdk/client-ssm 3.312.0 → 3.316.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/SSM.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SSM = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const AddTagsToResourceCommand_1 = require("./commands/AddTagsToResourceCommand");
5
6
  const AssociateOpsItemRelatedItemCommand_1 = require("./commands/AssociateOpsItemRelatedItemCommand");
6
7
  const CancelCommandCommand_1 = require("./commands/CancelCommandCommand");
@@ -140,1938 +141,147 @@ const UpdatePatchBaselineCommand_1 = require("./commands/UpdatePatchBaselineComm
140
141
  const UpdateResourceDataSyncCommand_1 = require("./commands/UpdateResourceDataSyncCommand");
141
142
  const UpdateServiceSettingCommand_1 = require("./commands/UpdateServiceSettingCommand");
142
143
  const SSMClient_1 = require("./SSMClient");
144
+ const commands = {
145
+ AddTagsToResourceCommand: AddTagsToResourceCommand_1.AddTagsToResourceCommand,
146
+ AssociateOpsItemRelatedItemCommand: AssociateOpsItemRelatedItemCommand_1.AssociateOpsItemRelatedItemCommand,
147
+ CancelCommandCommand: CancelCommandCommand_1.CancelCommandCommand,
148
+ CancelMaintenanceWindowExecutionCommand: CancelMaintenanceWindowExecutionCommand_1.CancelMaintenanceWindowExecutionCommand,
149
+ CreateActivationCommand: CreateActivationCommand_1.CreateActivationCommand,
150
+ CreateAssociationCommand: CreateAssociationCommand_1.CreateAssociationCommand,
151
+ CreateAssociationBatchCommand: CreateAssociationBatchCommand_1.CreateAssociationBatchCommand,
152
+ CreateDocumentCommand: CreateDocumentCommand_1.CreateDocumentCommand,
153
+ CreateMaintenanceWindowCommand: CreateMaintenanceWindowCommand_1.CreateMaintenanceWindowCommand,
154
+ CreateOpsItemCommand: CreateOpsItemCommand_1.CreateOpsItemCommand,
155
+ CreateOpsMetadataCommand: CreateOpsMetadataCommand_1.CreateOpsMetadataCommand,
156
+ CreatePatchBaselineCommand: CreatePatchBaselineCommand_1.CreatePatchBaselineCommand,
157
+ CreateResourceDataSyncCommand: CreateResourceDataSyncCommand_1.CreateResourceDataSyncCommand,
158
+ DeleteActivationCommand: DeleteActivationCommand_1.DeleteActivationCommand,
159
+ DeleteAssociationCommand: DeleteAssociationCommand_1.DeleteAssociationCommand,
160
+ DeleteDocumentCommand: DeleteDocumentCommand_1.DeleteDocumentCommand,
161
+ DeleteInventoryCommand: DeleteInventoryCommand_1.DeleteInventoryCommand,
162
+ DeleteMaintenanceWindowCommand: DeleteMaintenanceWindowCommand_1.DeleteMaintenanceWindowCommand,
163
+ DeleteOpsMetadataCommand: DeleteOpsMetadataCommand_1.DeleteOpsMetadataCommand,
164
+ DeleteParameterCommand: DeleteParameterCommand_1.DeleteParameterCommand,
165
+ DeleteParametersCommand: DeleteParametersCommand_1.DeleteParametersCommand,
166
+ DeletePatchBaselineCommand: DeletePatchBaselineCommand_1.DeletePatchBaselineCommand,
167
+ DeleteResourceDataSyncCommand: DeleteResourceDataSyncCommand_1.DeleteResourceDataSyncCommand,
168
+ DeleteResourcePolicyCommand: DeleteResourcePolicyCommand_1.DeleteResourcePolicyCommand,
169
+ DeregisterManagedInstanceCommand: DeregisterManagedInstanceCommand_1.DeregisterManagedInstanceCommand,
170
+ DeregisterPatchBaselineForPatchGroupCommand: DeregisterPatchBaselineForPatchGroupCommand_1.DeregisterPatchBaselineForPatchGroupCommand,
171
+ DeregisterTargetFromMaintenanceWindowCommand: DeregisterTargetFromMaintenanceWindowCommand_1.DeregisterTargetFromMaintenanceWindowCommand,
172
+ DeregisterTaskFromMaintenanceWindowCommand: DeregisterTaskFromMaintenanceWindowCommand_1.DeregisterTaskFromMaintenanceWindowCommand,
173
+ DescribeActivationsCommand: DescribeActivationsCommand_1.DescribeActivationsCommand,
174
+ DescribeAssociationCommand: DescribeAssociationCommand_1.DescribeAssociationCommand,
175
+ DescribeAssociationExecutionsCommand: DescribeAssociationExecutionsCommand_1.DescribeAssociationExecutionsCommand,
176
+ DescribeAssociationExecutionTargetsCommand: DescribeAssociationExecutionTargetsCommand_1.DescribeAssociationExecutionTargetsCommand,
177
+ DescribeAutomationExecutionsCommand: DescribeAutomationExecutionsCommand_1.DescribeAutomationExecutionsCommand,
178
+ DescribeAutomationStepExecutionsCommand: DescribeAutomationStepExecutionsCommand_1.DescribeAutomationStepExecutionsCommand,
179
+ DescribeAvailablePatchesCommand: DescribeAvailablePatchesCommand_1.DescribeAvailablePatchesCommand,
180
+ DescribeDocumentCommand: DescribeDocumentCommand_1.DescribeDocumentCommand,
181
+ DescribeDocumentPermissionCommand: DescribeDocumentPermissionCommand_1.DescribeDocumentPermissionCommand,
182
+ DescribeEffectiveInstanceAssociationsCommand: DescribeEffectiveInstanceAssociationsCommand_1.DescribeEffectiveInstanceAssociationsCommand,
183
+ DescribeEffectivePatchesForPatchBaselineCommand: DescribeEffectivePatchesForPatchBaselineCommand_1.DescribeEffectivePatchesForPatchBaselineCommand,
184
+ DescribeInstanceAssociationsStatusCommand: DescribeInstanceAssociationsStatusCommand_1.DescribeInstanceAssociationsStatusCommand,
185
+ DescribeInstanceInformationCommand: DescribeInstanceInformationCommand_1.DescribeInstanceInformationCommand,
186
+ DescribeInstancePatchesCommand: DescribeInstancePatchesCommand_1.DescribeInstancePatchesCommand,
187
+ DescribeInstancePatchStatesCommand: DescribeInstancePatchStatesCommand_1.DescribeInstancePatchStatesCommand,
188
+ DescribeInstancePatchStatesForPatchGroupCommand: DescribeInstancePatchStatesForPatchGroupCommand_1.DescribeInstancePatchStatesForPatchGroupCommand,
189
+ DescribeInventoryDeletionsCommand: DescribeInventoryDeletionsCommand_1.DescribeInventoryDeletionsCommand,
190
+ DescribeMaintenanceWindowExecutionsCommand: DescribeMaintenanceWindowExecutionsCommand_1.DescribeMaintenanceWindowExecutionsCommand,
191
+ DescribeMaintenanceWindowExecutionTaskInvocationsCommand: DescribeMaintenanceWindowExecutionTaskInvocationsCommand_1.DescribeMaintenanceWindowExecutionTaskInvocationsCommand,
192
+ DescribeMaintenanceWindowExecutionTasksCommand: DescribeMaintenanceWindowExecutionTasksCommand_1.DescribeMaintenanceWindowExecutionTasksCommand,
193
+ DescribeMaintenanceWindowsCommand: DescribeMaintenanceWindowsCommand_1.DescribeMaintenanceWindowsCommand,
194
+ DescribeMaintenanceWindowScheduleCommand: DescribeMaintenanceWindowScheduleCommand_1.DescribeMaintenanceWindowScheduleCommand,
195
+ DescribeMaintenanceWindowsForTargetCommand: DescribeMaintenanceWindowsForTargetCommand_1.DescribeMaintenanceWindowsForTargetCommand,
196
+ DescribeMaintenanceWindowTargetsCommand: DescribeMaintenanceWindowTargetsCommand_1.DescribeMaintenanceWindowTargetsCommand,
197
+ DescribeMaintenanceWindowTasksCommand: DescribeMaintenanceWindowTasksCommand_1.DescribeMaintenanceWindowTasksCommand,
198
+ DescribeOpsItemsCommand: DescribeOpsItemsCommand_1.DescribeOpsItemsCommand,
199
+ DescribeParametersCommand: DescribeParametersCommand_1.DescribeParametersCommand,
200
+ DescribePatchBaselinesCommand: DescribePatchBaselinesCommand_1.DescribePatchBaselinesCommand,
201
+ DescribePatchGroupsCommand: DescribePatchGroupsCommand_1.DescribePatchGroupsCommand,
202
+ DescribePatchGroupStateCommand: DescribePatchGroupStateCommand_1.DescribePatchGroupStateCommand,
203
+ DescribePatchPropertiesCommand: DescribePatchPropertiesCommand_1.DescribePatchPropertiesCommand,
204
+ DescribeSessionsCommand: DescribeSessionsCommand_1.DescribeSessionsCommand,
205
+ DisassociateOpsItemRelatedItemCommand: DisassociateOpsItemRelatedItemCommand_1.DisassociateOpsItemRelatedItemCommand,
206
+ GetAutomationExecutionCommand: GetAutomationExecutionCommand_1.GetAutomationExecutionCommand,
207
+ GetCalendarStateCommand: GetCalendarStateCommand_1.GetCalendarStateCommand,
208
+ GetCommandInvocationCommand: GetCommandInvocationCommand_1.GetCommandInvocationCommand,
209
+ GetConnectionStatusCommand: GetConnectionStatusCommand_1.GetConnectionStatusCommand,
210
+ GetDefaultPatchBaselineCommand: GetDefaultPatchBaselineCommand_1.GetDefaultPatchBaselineCommand,
211
+ GetDeployablePatchSnapshotForInstanceCommand: GetDeployablePatchSnapshotForInstanceCommand_1.GetDeployablePatchSnapshotForInstanceCommand,
212
+ GetDocumentCommand: GetDocumentCommand_1.GetDocumentCommand,
213
+ GetInventoryCommand: GetInventoryCommand_1.GetInventoryCommand,
214
+ GetInventorySchemaCommand: GetInventorySchemaCommand_1.GetInventorySchemaCommand,
215
+ GetMaintenanceWindowCommand: GetMaintenanceWindowCommand_1.GetMaintenanceWindowCommand,
216
+ GetMaintenanceWindowExecutionCommand: GetMaintenanceWindowExecutionCommand_1.GetMaintenanceWindowExecutionCommand,
217
+ GetMaintenanceWindowExecutionTaskCommand: GetMaintenanceWindowExecutionTaskCommand_1.GetMaintenanceWindowExecutionTaskCommand,
218
+ GetMaintenanceWindowExecutionTaskInvocationCommand: GetMaintenanceWindowExecutionTaskInvocationCommand_1.GetMaintenanceWindowExecutionTaskInvocationCommand,
219
+ GetMaintenanceWindowTaskCommand: GetMaintenanceWindowTaskCommand_1.GetMaintenanceWindowTaskCommand,
220
+ GetOpsItemCommand: GetOpsItemCommand_1.GetOpsItemCommand,
221
+ GetOpsMetadataCommand: GetOpsMetadataCommand_1.GetOpsMetadataCommand,
222
+ GetOpsSummaryCommand: GetOpsSummaryCommand_1.GetOpsSummaryCommand,
223
+ GetParameterCommand: GetParameterCommand_1.GetParameterCommand,
224
+ GetParameterHistoryCommand: GetParameterHistoryCommand_1.GetParameterHistoryCommand,
225
+ GetParametersCommand: GetParametersCommand_1.GetParametersCommand,
226
+ GetParametersByPathCommand: GetParametersByPathCommand_1.GetParametersByPathCommand,
227
+ GetPatchBaselineCommand: GetPatchBaselineCommand_1.GetPatchBaselineCommand,
228
+ GetPatchBaselineForPatchGroupCommand: GetPatchBaselineForPatchGroupCommand_1.GetPatchBaselineForPatchGroupCommand,
229
+ GetResourcePoliciesCommand: GetResourcePoliciesCommand_1.GetResourcePoliciesCommand,
230
+ GetServiceSettingCommand: GetServiceSettingCommand_1.GetServiceSettingCommand,
231
+ LabelParameterVersionCommand: LabelParameterVersionCommand_1.LabelParameterVersionCommand,
232
+ ListAssociationsCommand: ListAssociationsCommand_1.ListAssociationsCommand,
233
+ ListAssociationVersionsCommand: ListAssociationVersionsCommand_1.ListAssociationVersionsCommand,
234
+ ListCommandInvocationsCommand: ListCommandInvocationsCommand_1.ListCommandInvocationsCommand,
235
+ ListCommandsCommand: ListCommandsCommand_1.ListCommandsCommand,
236
+ ListComplianceItemsCommand: ListComplianceItemsCommand_1.ListComplianceItemsCommand,
237
+ ListComplianceSummariesCommand: ListComplianceSummariesCommand_1.ListComplianceSummariesCommand,
238
+ ListDocumentMetadataHistoryCommand: ListDocumentMetadataHistoryCommand_1.ListDocumentMetadataHistoryCommand,
239
+ ListDocumentsCommand: ListDocumentsCommand_1.ListDocumentsCommand,
240
+ ListDocumentVersionsCommand: ListDocumentVersionsCommand_1.ListDocumentVersionsCommand,
241
+ ListInventoryEntriesCommand: ListInventoryEntriesCommand_1.ListInventoryEntriesCommand,
242
+ ListOpsItemEventsCommand: ListOpsItemEventsCommand_1.ListOpsItemEventsCommand,
243
+ ListOpsItemRelatedItemsCommand: ListOpsItemRelatedItemsCommand_1.ListOpsItemRelatedItemsCommand,
244
+ ListOpsMetadataCommand: ListOpsMetadataCommand_1.ListOpsMetadataCommand,
245
+ ListResourceComplianceSummariesCommand: ListResourceComplianceSummariesCommand_1.ListResourceComplianceSummariesCommand,
246
+ ListResourceDataSyncCommand: ListResourceDataSyncCommand_1.ListResourceDataSyncCommand,
247
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
248
+ ModifyDocumentPermissionCommand: ModifyDocumentPermissionCommand_1.ModifyDocumentPermissionCommand,
249
+ PutComplianceItemsCommand: PutComplianceItemsCommand_1.PutComplianceItemsCommand,
250
+ PutInventoryCommand: PutInventoryCommand_1.PutInventoryCommand,
251
+ PutParameterCommand: PutParameterCommand_1.PutParameterCommand,
252
+ PutResourcePolicyCommand: PutResourcePolicyCommand_1.PutResourcePolicyCommand,
253
+ RegisterDefaultPatchBaselineCommand: RegisterDefaultPatchBaselineCommand_1.RegisterDefaultPatchBaselineCommand,
254
+ RegisterPatchBaselineForPatchGroupCommand: RegisterPatchBaselineForPatchGroupCommand_1.RegisterPatchBaselineForPatchGroupCommand,
255
+ RegisterTargetWithMaintenanceWindowCommand: RegisterTargetWithMaintenanceWindowCommand_1.RegisterTargetWithMaintenanceWindowCommand,
256
+ RegisterTaskWithMaintenanceWindowCommand: RegisterTaskWithMaintenanceWindowCommand_1.RegisterTaskWithMaintenanceWindowCommand,
257
+ RemoveTagsFromResourceCommand: RemoveTagsFromResourceCommand_1.RemoveTagsFromResourceCommand,
258
+ ResetServiceSettingCommand: ResetServiceSettingCommand_1.ResetServiceSettingCommand,
259
+ ResumeSessionCommand: ResumeSessionCommand_1.ResumeSessionCommand,
260
+ SendAutomationSignalCommand: SendAutomationSignalCommand_1.SendAutomationSignalCommand,
261
+ SendCommandCommand: SendCommandCommand_1.SendCommandCommand,
262
+ StartAssociationsOnceCommand: StartAssociationsOnceCommand_1.StartAssociationsOnceCommand,
263
+ StartAutomationExecutionCommand: StartAutomationExecutionCommand_1.StartAutomationExecutionCommand,
264
+ StartChangeRequestExecutionCommand: StartChangeRequestExecutionCommand_1.StartChangeRequestExecutionCommand,
265
+ StartSessionCommand: StartSessionCommand_1.StartSessionCommand,
266
+ StopAutomationExecutionCommand: StopAutomationExecutionCommand_1.StopAutomationExecutionCommand,
267
+ TerminateSessionCommand: TerminateSessionCommand_1.TerminateSessionCommand,
268
+ UnlabelParameterVersionCommand: UnlabelParameterVersionCommand_1.UnlabelParameterVersionCommand,
269
+ UpdateAssociationCommand: UpdateAssociationCommand_1.UpdateAssociationCommand,
270
+ UpdateAssociationStatusCommand: UpdateAssociationStatusCommand_1.UpdateAssociationStatusCommand,
271
+ UpdateDocumentCommand: UpdateDocumentCommand_1.UpdateDocumentCommand,
272
+ UpdateDocumentDefaultVersionCommand: UpdateDocumentDefaultVersionCommand_1.UpdateDocumentDefaultVersionCommand,
273
+ UpdateDocumentMetadataCommand: UpdateDocumentMetadataCommand_1.UpdateDocumentMetadataCommand,
274
+ UpdateMaintenanceWindowCommand: UpdateMaintenanceWindowCommand_1.UpdateMaintenanceWindowCommand,
275
+ UpdateMaintenanceWindowTargetCommand: UpdateMaintenanceWindowTargetCommand_1.UpdateMaintenanceWindowTargetCommand,
276
+ UpdateMaintenanceWindowTaskCommand: UpdateMaintenanceWindowTaskCommand_1.UpdateMaintenanceWindowTaskCommand,
277
+ UpdateManagedInstanceRoleCommand: UpdateManagedInstanceRoleCommand_1.UpdateManagedInstanceRoleCommand,
278
+ UpdateOpsItemCommand: UpdateOpsItemCommand_1.UpdateOpsItemCommand,
279
+ UpdateOpsMetadataCommand: UpdateOpsMetadataCommand_1.UpdateOpsMetadataCommand,
280
+ UpdatePatchBaselineCommand: UpdatePatchBaselineCommand_1.UpdatePatchBaselineCommand,
281
+ UpdateResourceDataSyncCommand: UpdateResourceDataSyncCommand_1.UpdateResourceDataSyncCommand,
282
+ UpdateServiceSettingCommand: UpdateServiceSettingCommand_1.UpdateServiceSettingCommand,
283
+ };
143
284
  class SSM extends SSMClient_1.SSMClient {
144
- addTagsToResource(args, optionsOrCb, cb) {
145
- const command = new AddTagsToResourceCommand_1.AddTagsToResourceCommand(args);
146
- if (typeof optionsOrCb === "function") {
147
- this.send(command, optionsOrCb);
148
- }
149
- else if (typeof cb === "function") {
150
- if (typeof optionsOrCb !== "object")
151
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
152
- this.send(command, optionsOrCb || {}, cb);
153
- }
154
- else {
155
- return this.send(command, optionsOrCb);
156
- }
157
- }
158
- associateOpsItemRelatedItem(args, optionsOrCb, cb) {
159
- const command = new AssociateOpsItemRelatedItemCommand_1.AssociateOpsItemRelatedItemCommand(args);
160
- if (typeof optionsOrCb === "function") {
161
- this.send(command, optionsOrCb);
162
- }
163
- else if (typeof cb === "function") {
164
- if (typeof optionsOrCb !== "object")
165
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
166
- this.send(command, optionsOrCb || {}, cb);
167
- }
168
- else {
169
- return this.send(command, optionsOrCb);
170
- }
171
- }
172
- cancelCommand(args, optionsOrCb, cb) {
173
- const command = new CancelCommandCommand_1.CancelCommandCommand(args);
174
- if (typeof optionsOrCb === "function") {
175
- this.send(command, optionsOrCb);
176
- }
177
- else if (typeof cb === "function") {
178
- if (typeof optionsOrCb !== "object")
179
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
180
- this.send(command, optionsOrCb || {}, cb);
181
- }
182
- else {
183
- return this.send(command, optionsOrCb);
184
- }
185
- }
186
- cancelMaintenanceWindowExecution(args, optionsOrCb, cb) {
187
- const command = new CancelMaintenanceWindowExecutionCommand_1.CancelMaintenanceWindowExecutionCommand(args);
188
- if (typeof optionsOrCb === "function") {
189
- this.send(command, optionsOrCb);
190
- }
191
- else if (typeof cb === "function") {
192
- if (typeof optionsOrCb !== "object")
193
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
194
- this.send(command, optionsOrCb || {}, cb);
195
- }
196
- else {
197
- return this.send(command, optionsOrCb);
198
- }
199
- }
200
- createActivation(args, optionsOrCb, cb) {
201
- const command = new CreateActivationCommand_1.CreateActivationCommand(args);
202
- if (typeof optionsOrCb === "function") {
203
- this.send(command, optionsOrCb);
204
- }
205
- else if (typeof cb === "function") {
206
- if (typeof optionsOrCb !== "object")
207
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
208
- this.send(command, optionsOrCb || {}, cb);
209
- }
210
- else {
211
- return this.send(command, optionsOrCb);
212
- }
213
- }
214
- createAssociation(args, optionsOrCb, cb) {
215
- const command = new CreateAssociationCommand_1.CreateAssociationCommand(args);
216
- if (typeof optionsOrCb === "function") {
217
- this.send(command, optionsOrCb);
218
- }
219
- else if (typeof cb === "function") {
220
- if (typeof optionsOrCb !== "object")
221
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
222
- this.send(command, optionsOrCb || {}, cb);
223
- }
224
- else {
225
- return this.send(command, optionsOrCb);
226
- }
227
- }
228
- createAssociationBatch(args, optionsOrCb, cb) {
229
- const command = new CreateAssociationBatchCommand_1.CreateAssociationBatchCommand(args);
230
- if (typeof optionsOrCb === "function") {
231
- this.send(command, optionsOrCb);
232
- }
233
- else if (typeof cb === "function") {
234
- if (typeof optionsOrCb !== "object")
235
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
236
- this.send(command, optionsOrCb || {}, cb);
237
- }
238
- else {
239
- return this.send(command, optionsOrCb);
240
- }
241
- }
242
- createDocument(args, optionsOrCb, cb) {
243
- const command = new CreateDocumentCommand_1.CreateDocumentCommand(args);
244
- if (typeof optionsOrCb === "function") {
245
- this.send(command, optionsOrCb);
246
- }
247
- else if (typeof cb === "function") {
248
- if (typeof optionsOrCb !== "object")
249
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
250
- this.send(command, optionsOrCb || {}, cb);
251
- }
252
- else {
253
- return this.send(command, optionsOrCb);
254
- }
255
- }
256
- createMaintenanceWindow(args, optionsOrCb, cb) {
257
- const command = new CreateMaintenanceWindowCommand_1.CreateMaintenanceWindowCommand(args);
258
- if (typeof optionsOrCb === "function") {
259
- this.send(command, optionsOrCb);
260
- }
261
- else if (typeof cb === "function") {
262
- if (typeof optionsOrCb !== "object")
263
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
264
- this.send(command, optionsOrCb || {}, cb);
265
- }
266
- else {
267
- return this.send(command, optionsOrCb);
268
- }
269
- }
270
- createOpsItem(args, optionsOrCb, cb) {
271
- const command = new CreateOpsItemCommand_1.CreateOpsItemCommand(args);
272
- if (typeof optionsOrCb === "function") {
273
- this.send(command, optionsOrCb);
274
- }
275
- else if (typeof cb === "function") {
276
- if (typeof optionsOrCb !== "object")
277
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
278
- this.send(command, optionsOrCb || {}, cb);
279
- }
280
- else {
281
- return this.send(command, optionsOrCb);
282
- }
283
- }
284
- createOpsMetadata(args, optionsOrCb, cb) {
285
- const command = new CreateOpsMetadataCommand_1.CreateOpsMetadataCommand(args);
286
- if (typeof optionsOrCb === "function") {
287
- this.send(command, optionsOrCb);
288
- }
289
- else if (typeof cb === "function") {
290
- if (typeof optionsOrCb !== "object")
291
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
292
- this.send(command, optionsOrCb || {}, cb);
293
- }
294
- else {
295
- return this.send(command, optionsOrCb);
296
- }
297
- }
298
- createPatchBaseline(args, optionsOrCb, cb) {
299
- const command = new CreatePatchBaselineCommand_1.CreatePatchBaselineCommand(args);
300
- if (typeof optionsOrCb === "function") {
301
- this.send(command, optionsOrCb);
302
- }
303
- else if (typeof cb === "function") {
304
- if (typeof optionsOrCb !== "object")
305
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
306
- this.send(command, optionsOrCb || {}, cb);
307
- }
308
- else {
309
- return this.send(command, optionsOrCb);
310
- }
311
- }
312
- createResourceDataSync(args, optionsOrCb, cb) {
313
- const command = new CreateResourceDataSyncCommand_1.CreateResourceDataSyncCommand(args);
314
- if (typeof optionsOrCb === "function") {
315
- this.send(command, optionsOrCb);
316
- }
317
- else if (typeof cb === "function") {
318
- if (typeof optionsOrCb !== "object")
319
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
320
- this.send(command, optionsOrCb || {}, cb);
321
- }
322
- else {
323
- return this.send(command, optionsOrCb);
324
- }
325
- }
326
- deleteActivation(args, optionsOrCb, cb) {
327
- const command = new DeleteActivationCommand_1.DeleteActivationCommand(args);
328
- if (typeof optionsOrCb === "function") {
329
- this.send(command, optionsOrCb);
330
- }
331
- else if (typeof cb === "function") {
332
- if (typeof optionsOrCb !== "object")
333
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
334
- this.send(command, optionsOrCb || {}, cb);
335
- }
336
- else {
337
- return this.send(command, optionsOrCb);
338
- }
339
- }
340
- deleteAssociation(args, optionsOrCb, cb) {
341
- const command = new DeleteAssociationCommand_1.DeleteAssociationCommand(args);
342
- if (typeof optionsOrCb === "function") {
343
- this.send(command, optionsOrCb);
344
- }
345
- else if (typeof cb === "function") {
346
- if (typeof optionsOrCb !== "object")
347
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
348
- this.send(command, optionsOrCb || {}, cb);
349
- }
350
- else {
351
- return this.send(command, optionsOrCb);
352
- }
353
- }
354
- deleteDocument(args, optionsOrCb, cb) {
355
- const command = new DeleteDocumentCommand_1.DeleteDocumentCommand(args);
356
- if (typeof optionsOrCb === "function") {
357
- this.send(command, optionsOrCb);
358
- }
359
- else if (typeof cb === "function") {
360
- if (typeof optionsOrCb !== "object")
361
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
362
- this.send(command, optionsOrCb || {}, cb);
363
- }
364
- else {
365
- return this.send(command, optionsOrCb);
366
- }
367
- }
368
- deleteInventory(args, optionsOrCb, cb) {
369
- const command = new DeleteInventoryCommand_1.DeleteInventoryCommand(args);
370
- if (typeof optionsOrCb === "function") {
371
- this.send(command, optionsOrCb);
372
- }
373
- else if (typeof cb === "function") {
374
- if (typeof optionsOrCb !== "object")
375
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
376
- this.send(command, optionsOrCb || {}, cb);
377
- }
378
- else {
379
- return this.send(command, optionsOrCb);
380
- }
381
- }
382
- deleteMaintenanceWindow(args, optionsOrCb, cb) {
383
- const command = new DeleteMaintenanceWindowCommand_1.DeleteMaintenanceWindowCommand(args);
384
- if (typeof optionsOrCb === "function") {
385
- this.send(command, optionsOrCb);
386
- }
387
- else if (typeof cb === "function") {
388
- if (typeof optionsOrCb !== "object")
389
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
390
- this.send(command, optionsOrCb || {}, cb);
391
- }
392
- else {
393
- return this.send(command, optionsOrCb);
394
- }
395
- }
396
- deleteOpsMetadata(args, optionsOrCb, cb) {
397
- const command = new DeleteOpsMetadataCommand_1.DeleteOpsMetadataCommand(args);
398
- if (typeof optionsOrCb === "function") {
399
- this.send(command, optionsOrCb);
400
- }
401
- else if (typeof cb === "function") {
402
- if (typeof optionsOrCb !== "object")
403
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
404
- this.send(command, optionsOrCb || {}, cb);
405
- }
406
- else {
407
- return this.send(command, optionsOrCb);
408
- }
409
- }
410
- deleteParameter(args, optionsOrCb, cb) {
411
- const command = new DeleteParameterCommand_1.DeleteParameterCommand(args);
412
- if (typeof optionsOrCb === "function") {
413
- this.send(command, optionsOrCb);
414
- }
415
- else if (typeof cb === "function") {
416
- if (typeof optionsOrCb !== "object")
417
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
418
- this.send(command, optionsOrCb || {}, cb);
419
- }
420
- else {
421
- return this.send(command, optionsOrCb);
422
- }
423
- }
424
- deleteParameters(args, optionsOrCb, cb) {
425
- const command = new DeleteParametersCommand_1.DeleteParametersCommand(args);
426
- if (typeof optionsOrCb === "function") {
427
- this.send(command, optionsOrCb);
428
- }
429
- else if (typeof cb === "function") {
430
- if (typeof optionsOrCb !== "object")
431
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
432
- this.send(command, optionsOrCb || {}, cb);
433
- }
434
- else {
435
- return this.send(command, optionsOrCb);
436
- }
437
- }
438
- deletePatchBaseline(args, optionsOrCb, cb) {
439
- const command = new DeletePatchBaselineCommand_1.DeletePatchBaselineCommand(args);
440
- if (typeof optionsOrCb === "function") {
441
- this.send(command, optionsOrCb);
442
- }
443
- else if (typeof cb === "function") {
444
- if (typeof optionsOrCb !== "object")
445
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
446
- this.send(command, optionsOrCb || {}, cb);
447
- }
448
- else {
449
- return this.send(command, optionsOrCb);
450
- }
451
- }
452
- deleteResourceDataSync(args, optionsOrCb, cb) {
453
- const command = new DeleteResourceDataSyncCommand_1.DeleteResourceDataSyncCommand(args);
454
- if (typeof optionsOrCb === "function") {
455
- this.send(command, optionsOrCb);
456
- }
457
- else if (typeof cb === "function") {
458
- if (typeof optionsOrCb !== "object")
459
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
460
- this.send(command, optionsOrCb || {}, cb);
461
- }
462
- else {
463
- return this.send(command, optionsOrCb);
464
- }
465
- }
466
- deleteResourcePolicy(args, optionsOrCb, cb) {
467
- const command = new DeleteResourcePolicyCommand_1.DeleteResourcePolicyCommand(args);
468
- if (typeof optionsOrCb === "function") {
469
- this.send(command, optionsOrCb);
470
- }
471
- else if (typeof cb === "function") {
472
- if (typeof optionsOrCb !== "object")
473
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
474
- this.send(command, optionsOrCb || {}, cb);
475
- }
476
- else {
477
- return this.send(command, optionsOrCb);
478
- }
479
- }
480
- deregisterManagedInstance(args, optionsOrCb, cb) {
481
- const command = new DeregisterManagedInstanceCommand_1.DeregisterManagedInstanceCommand(args);
482
- if (typeof optionsOrCb === "function") {
483
- this.send(command, optionsOrCb);
484
- }
485
- else if (typeof cb === "function") {
486
- if (typeof optionsOrCb !== "object")
487
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
488
- this.send(command, optionsOrCb || {}, cb);
489
- }
490
- else {
491
- return this.send(command, optionsOrCb);
492
- }
493
- }
494
- deregisterPatchBaselineForPatchGroup(args, optionsOrCb, cb) {
495
- const command = new DeregisterPatchBaselineForPatchGroupCommand_1.DeregisterPatchBaselineForPatchGroupCommand(args);
496
- if (typeof optionsOrCb === "function") {
497
- this.send(command, optionsOrCb);
498
- }
499
- else if (typeof cb === "function") {
500
- if (typeof optionsOrCb !== "object")
501
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
502
- this.send(command, optionsOrCb || {}, cb);
503
- }
504
- else {
505
- return this.send(command, optionsOrCb);
506
- }
507
- }
508
- deregisterTargetFromMaintenanceWindow(args, optionsOrCb, cb) {
509
- const command = new DeregisterTargetFromMaintenanceWindowCommand_1.DeregisterTargetFromMaintenanceWindowCommand(args);
510
- if (typeof optionsOrCb === "function") {
511
- this.send(command, optionsOrCb);
512
- }
513
- else if (typeof cb === "function") {
514
- if (typeof optionsOrCb !== "object")
515
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
516
- this.send(command, optionsOrCb || {}, cb);
517
- }
518
- else {
519
- return this.send(command, optionsOrCb);
520
- }
521
- }
522
- deregisterTaskFromMaintenanceWindow(args, optionsOrCb, cb) {
523
- const command = new DeregisterTaskFromMaintenanceWindowCommand_1.DeregisterTaskFromMaintenanceWindowCommand(args);
524
- if (typeof optionsOrCb === "function") {
525
- this.send(command, optionsOrCb);
526
- }
527
- else if (typeof cb === "function") {
528
- if (typeof optionsOrCb !== "object")
529
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
530
- this.send(command, optionsOrCb || {}, cb);
531
- }
532
- else {
533
- return this.send(command, optionsOrCb);
534
- }
535
- }
536
- describeActivations(args, optionsOrCb, cb) {
537
- const command = new DescribeActivationsCommand_1.DescribeActivationsCommand(args);
538
- if (typeof optionsOrCb === "function") {
539
- this.send(command, optionsOrCb);
540
- }
541
- else if (typeof cb === "function") {
542
- if (typeof optionsOrCb !== "object")
543
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
544
- this.send(command, optionsOrCb || {}, cb);
545
- }
546
- else {
547
- return this.send(command, optionsOrCb);
548
- }
549
- }
550
- describeAssociation(args, optionsOrCb, cb) {
551
- const command = new DescribeAssociationCommand_1.DescribeAssociationCommand(args);
552
- if (typeof optionsOrCb === "function") {
553
- this.send(command, optionsOrCb);
554
- }
555
- else if (typeof cb === "function") {
556
- if (typeof optionsOrCb !== "object")
557
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
558
- this.send(command, optionsOrCb || {}, cb);
559
- }
560
- else {
561
- return this.send(command, optionsOrCb);
562
- }
563
- }
564
- describeAssociationExecutions(args, optionsOrCb, cb) {
565
- const command = new DescribeAssociationExecutionsCommand_1.DescribeAssociationExecutionsCommand(args);
566
- if (typeof optionsOrCb === "function") {
567
- this.send(command, optionsOrCb);
568
- }
569
- else if (typeof cb === "function") {
570
- if (typeof optionsOrCb !== "object")
571
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
572
- this.send(command, optionsOrCb || {}, cb);
573
- }
574
- else {
575
- return this.send(command, optionsOrCb);
576
- }
577
- }
578
- describeAssociationExecutionTargets(args, optionsOrCb, cb) {
579
- const command = new DescribeAssociationExecutionTargetsCommand_1.DescribeAssociationExecutionTargetsCommand(args);
580
- if (typeof optionsOrCb === "function") {
581
- this.send(command, optionsOrCb);
582
- }
583
- else if (typeof cb === "function") {
584
- if (typeof optionsOrCb !== "object")
585
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
586
- this.send(command, optionsOrCb || {}, cb);
587
- }
588
- else {
589
- return this.send(command, optionsOrCb);
590
- }
591
- }
592
- describeAutomationExecutions(args, optionsOrCb, cb) {
593
- const command = new DescribeAutomationExecutionsCommand_1.DescribeAutomationExecutionsCommand(args);
594
- if (typeof optionsOrCb === "function") {
595
- this.send(command, optionsOrCb);
596
- }
597
- else if (typeof cb === "function") {
598
- if (typeof optionsOrCb !== "object")
599
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
600
- this.send(command, optionsOrCb || {}, cb);
601
- }
602
- else {
603
- return this.send(command, optionsOrCb);
604
- }
605
- }
606
- describeAutomationStepExecutions(args, optionsOrCb, cb) {
607
- const command = new DescribeAutomationStepExecutionsCommand_1.DescribeAutomationStepExecutionsCommand(args);
608
- if (typeof optionsOrCb === "function") {
609
- this.send(command, optionsOrCb);
610
- }
611
- else if (typeof cb === "function") {
612
- if (typeof optionsOrCb !== "object")
613
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
614
- this.send(command, optionsOrCb || {}, cb);
615
- }
616
- else {
617
- return this.send(command, optionsOrCb);
618
- }
619
- }
620
- describeAvailablePatches(args, optionsOrCb, cb) {
621
- const command = new DescribeAvailablePatchesCommand_1.DescribeAvailablePatchesCommand(args);
622
- if (typeof optionsOrCb === "function") {
623
- this.send(command, optionsOrCb);
624
- }
625
- else if (typeof cb === "function") {
626
- if (typeof optionsOrCb !== "object")
627
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
628
- this.send(command, optionsOrCb || {}, cb);
629
- }
630
- else {
631
- return this.send(command, optionsOrCb);
632
- }
633
- }
634
- describeDocument(args, optionsOrCb, cb) {
635
- const command = new DescribeDocumentCommand_1.DescribeDocumentCommand(args);
636
- if (typeof optionsOrCb === "function") {
637
- this.send(command, optionsOrCb);
638
- }
639
- else if (typeof cb === "function") {
640
- if (typeof optionsOrCb !== "object")
641
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
642
- this.send(command, optionsOrCb || {}, cb);
643
- }
644
- else {
645
- return this.send(command, optionsOrCb);
646
- }
647
- }
648
- describeDocumentPermission(args, optionsOrCb, cb) {
649
- const command = new DescribeDocumentPermissionCommand_1.DescribeDocumentPermissionCommand(args);
650
- if (typeof optionsOrCb === "function") {
651
- this.send(command, optionsOrCb);
652
- }
653
- else if (typeof cb === "function") {
654
- if (typeof optionsOrCb !== "object")
655
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
656
- this.send(command, optionsOrCb || {}, cb);
657
- }
658
- else {
659
- return this.send(command, optionsOrCb);
660
- }
661
- }
662
- describeEffectiveInstanceAssociations(args, optionsOrCb, cb) {
663
- const command = new DescribeEffectiveInstanceAssociationsCommand_1.DescribeEffectiveInstanceAssociationsCommand(args);
664
- if (typeof optionsOrCb === "function") {
665
- this.send(command, optionsOrCb);
666
- }
667
- else if (typeof cb === "function") {
668
- if (typeof optionsOrCb !== "object")
669
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
670
- this.send(command, optionsOrCb || {}, cb);
671
- }
672
- else {
673
- return this.send(command, optionsOrCb);
674
- }
675
- }
676
- describeEffectivePatchesForPatchBaseline(args, optionsOrCb, cb) {
677
- const command = new DescribeEffectivePatchesForPatchBaselineCommand_1.DescribeEffectivePatchesForPatchBaselineCommand(args);
678
- if (typeof optionsOrCb === "function") {
679
- this.send(command, optionsOrCb);
680
- }
681
- else if (typeof cb === "function") {
682
- if (typeof optionsOrCb !== "object")
683
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
684
- this.send(command, optionsOrCb || {}, cb);
685
- }
686
- else {
687
- return this.send(command, optionsOrCb);
688
- }
689
- }
690
- describeInstanceAssociationsStatus(args, optionsOrCb, cb) {
691
- const command = new DescribeInstanceAssociationsStatusCommand_1.DescribeInstanceAssociationsStatusCommand(args);
692
- if (typeof optionsOrCb === "function") {
693
- this.send(command, optionsOrCb);
694
- }
695
- else if (typeof cb === "function") {
696
- if (typeof optionsOrCb !== "object")
697
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
698
- this.send(command, optionsOrCb || {}, cb);
699
- }
700
- else {
701
- return this.send(command, optionsOrCb);
702
- }
703
- }
704
- describeInstanceInformation(args, optionsOrCb, cb) {
705
- const command = new DescribeInstanceInformationCommand_1.DescribeInstanceInformationCommand(args);
706
- if (typeof optionsOrCb === "function") {
707
- this.send(command, optionsOrCb);
708
- }
709
- else if (typeof cb === "function") {
710
- if (typeof optionsOrCb !== "object")
711
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
712
- this.send(command, optionsOrCb || {}, cb);
713
- }
714
- else {
715
- return this.send(command, optionsOrCb);
716
- }
717
- }
718
- describeInstancePatches(args, optionsOrCb, cb) {
719
- const command = new DescribeInstancePatchesCommand_1.DescribeInstancePatchesCommand(args);
720
- if (typeof optionsOrCb === "function") {
721
- this.send(command, optionsOrCb);
722
- }
723
- else if (typeof cb === "function") {
724
- if (typeof optionsOrCb !== "object")
725
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
726
- this.send(command, optionsOrCb || {}, cb);
727
- }
728
- else {
729
- return this.send(command, optionsOrCb);
730
- }
731
- }
732
- describeInstancePatchStates(args, optionsOrCb, cb) {
733
- const command = new DescribeInstancePatchStatesCommand_1.DescribeInstancePatchStatesCommand(args);
734
- if (typeof optionsOrCb === "function") {
735
- this.send(command, optionsOrCb);
736
- }
737
- else if (typeof cb === "function") {
738
- if (typeof optionsOrCb !== "object")
739
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
740
- this.send(command, optionsOrCb || {}, cb);
741
- }
742
- else {
743
- return this.send(command, optionsOrCb);
744
- }
745
- }
746
- describeInstancePatchStatesForPatchGroup(args, optionsOrCb, cb) {
747
- const command = new DescribeInstancePatchStatesForPatchGroupCommand_1.DescribeInstancePatchStatesForPatchGroupCommand(args);
748
- if (typeof optionsOrCb === "function") {
749
- this.send(command, optionsOrCb);
750
- }
751
- else if (typeof cb === "function") {
752
- if (typeof optionsOrCb !== "object")
753
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
754
- this.send(command, optionsOrCb || {}, cb);
755
- }
756
- else {
757
- return this.send(command, optionsOrCb);
758
- }
759
- }
760
- describeInventoryDeletions(args, optionsOrCb, cb) {
761
- const command = new DescribeInventoryDeletionsCommand_1.DescribeInventoryDeletionsCommand(args);
762
- if (typeof optionsOrCb === "function") {
763
- this.send(command, optionsOrCb);
764
- }
765
- else if (typeof cb === "function") {
766
- if (typeof optionsOrCb !== "object")
767
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
768
- this.send(command, optionsOrCb || {}, cb);
769
- }
770
- else {
771
- return this.send(command, optionsOrCb);
772
- }
773
- }
774
- describeMaintenanceWindowExecutions(args, optionsOrCb, cb) {
775
- const command = new DescribeMaintenanceWindowExecutionsCommand_1.DescribeMaintenanceWindowExecutionsCommand(args);
776
- if (typeof optionsOrCb === "function") {
777
- this.send(command, optionsOrCb);
778
- }
779
- else if (typeof cb === "function") {
780
- if (typeof optionsOrCb !== "object")
781
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
782
- this.send(command, optionsOrCb || {}, cb);
783
- }
784
- else {
785
- return this.send(command, optionsOrCb);
786
- }
787
- }
788
- describeMaintenanceWindowExecutionTaskInvocations(args, optionsOrCb, cb) {
789
- const command = new DescribeMaintenanceWindowExecutionTaskInvocationsCommand_1.DescribeMaintenanceWindowExecutionTaskInvocationsCommand(args);
790
- if (typeof optionsOrCb === "function") {
791
- this.send(command, optionsOrCb);
792
- }
793
- else if (typeof cb === "function") {
794
- if (typeof optionsOrCb !== "object")
795
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
796
- this.send(command, optionsOrCb || {}, cb);
797
- }
798
- else {
799
- return this.send(command, optionsOrCb);
800
- }
801
- }
802
- describeMaintenanceWindowExecutionTasks(args, optionsOrCb, cb) {
803
- const command = new DescribeMaintenanceWindowExecutionTasksCommand_1.DescribeMaintenanceWindowExecutionTasksCommand(args);
804
- if (typeof optionsOrCb === "function") {
805
- this.send(command, optionsOrCb);
806
- }
807
- else if (typeof cb === "function") {
808
- if (typeof optionsOrCb !== "object")
809
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
810
- this.send(command, optionsOrCb || {}, cb);
811
- }
812
- else {
813
- return this.send(command, optionsOrCb);
814
- }
815
- }
816
- describeMaintenanceWindows(args, optionsOrCb, cb) {
817
- const command = new DescribeMaintenanceWindowsCommand_1.DescribeMaintenanceWindowsCommand(args);
818
- if (typeof optionsOrCb === "function") {
819
- this.send(command, optionsOrCb);
820
- }
821
- else if (typeof cb === "function") {
822
- if (typeof optionsOrCb !== "object")
823
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
824
- this.send(command, optionsOrCb || {}, cb);
825
- }
826
- else {
827
- return this.send(command, optionsOrCb);
828
- }
829
- }
830
- describeMaintenanceWindowSchedule(args, optionsOrCb, cb) {
831
- const command = new DescribeMaintenanceWindowScheduleCommand_1.DescribeMaintenanceWindowScheduleCommand(args);
832
- if (typeof optionsOrCb === "function") {
833
- this.send(command, optionsOrCb);
834
- }
835
- else if (typeof cb === "function") {
836
- if (typeof optionsOrCb !== "object")
837
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
838
- this.send(command, optionsOrCb || {}, cb);
839
- }
840
- else {
841
- return this.send(command, optionsOrCb);
842
- }
843
- }
844
- describeMaintenanceWindowsForTarget(args, optionsOrCb, cb) {
845
- const command = new DescribeMaintenanceWindowsForTargetCommand_1.DescribeMaintenanceWindowsForTargetCommand(args);
846
- if (typeof optionsOrCb === "function") {
847
- this.send(command, optionsOrCb);
848
- }
849
- else if (typeof cb === "function") {
850
- if (typeof optionsOrCb !== "object")
851
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
852
- this.send(command, optionsOrCb || {}, cb);
853
- }
854
- else {
855
- return this.send(command, optionsOrCb);
856
- }
857
- }
858
- describeMaintenanceWindowTargets(args, optionsOrCb, cb) {
859
- const command = new DescribeMaintenanceWindowTargetsCommand_1.DescribeMaintenanceWindowTargetsCommand(args);
860
- if (typeof optionsOrCb === "function") {
861
- this.send(command, optionsOrCb);
862
- }
863
- else if (typeof cb === "function") {
864
- if (typeof optionsOrCb !== "object")
865
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
866
- this.send(command, optionsOrCb || {}, cb);
867
- }
868
- else {
869
- return this.send(command, optionsOrCb);
870
- }
871
- }
872
- describeMaintenanceWindowTasks(args, optionsOrCb, cb) {
873
- const command = new DescribeMaintenanceWindowTasksCommand_1.DescribeMaintenanceWindowTasksCommand(args);
874
- if (typeof optionsOrCb === "function") {
875
- this.send(command, optionsOrCb);
876
- }
877
- else if (typeof cb === "function") {
878
- if (typeof optionsOrCb !== "object")
879
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
880
- this.send(command, optionsOrCb || {}, cb);
881
- }
882
- else {
883
- return this.send(command, optionsOrCb);
884
- }
885
- }
886
- describeOpsItems(args, optionsOrCb, cb) {
887
- const command = new DescribeOpsItemsCommand_1.DescribeOpsItemsCommand(args);
888
- if (typeof optionsOrCb === "function") {
889
- this.send(command, optionsOrCb);
890
- }
891
- else if (typeof cb === "function") {
892
- if (typeof optionsOrCb !== "object")
893
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
894
- this.send(command, optionsOrCb || {}, cb);
895
- }
896
- else {
897
- return this.send(command, optionsOrCb);
898
- }
899
- }
900
- describeParameters(args, optionsOrCb, cb) {
901
- const command = new DescribeParametersCommand_1.DescribeParametersCommand(args);
902
- if (typeof optionsOrCb === "function") {
903
- this.send(command, optionsOrCb);
904
- }
905
- else if (typeof cb === "function") {
906
- if (typeof optionsOrCb !== "object")
907
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
908
- this.send(command, optionsOrCb || {}, cb);
909
- }
910
- else {
911
- return this.send(command, optionsOrCb);
912
- }
913
- }
914
- describePatchBaselines(args, optionsOrCb, cb) {
915
- const command = new DescribePatchBaselinesCommand_1.DescribePatchBaselinesCommand(args);
916
- if (typeof optionsOrCb === "function") {
917
- this.send(command, optionsOrCb);
918
- }
919
- else if (typeof cb === "function") {
920
- if (typeof optionsOrCb !== "object")
921
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
922
- this.send(command, optionsOrCb || {}, cb);
923
- }
924
- else {
925
- return this.send(command, optionsOrCb);
926
- }
927
- }
928
- describePatchGroups(args, optionsOrCb, cb) {
929
- const command = new DescribePatchGroupsCommand_1.DescribePatchGroupsCommand(args);
930
- if (typeof optionsOrCb === "function") {
931
- this.send(command, optionsOrCb);
932
- }
933
- else if (typeof cb === "function") {
934
- if (typeof optionsOrCb !== "object")
935
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
936
- this.send(command, optionsOrCb || {}, cb);
937
- }
938
- else {
939
- return this.send(command, optionsOrCb);
940
- }
941
- }
942
- describePatchGroupState(args, optionsOrCb, cb) {
943
- const command = new DescribePatchGroupStateCommand_1.DescribePatchGroupStateCommand(args);
944
- if (typeof optionsOrCb === "function") {
945
- this.send(command, optionsOrCb);
946
- }
947
- else if (typeof cb === "function") {
948
- if (typeof optionsOrCb !== "object")
949
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
950
- this.send(command, optionsOrCb || {}, cb);
951
- }
952
- else {
953
- return this.send(command, optionsOrCb);
954
- }
955
- }
956
- describePatchProperties(args, optionsOrCb, cb) {
957
- const command = new DescribePatchPropertiesCommand_1.DescribePatchPropertiesCommand(args);
958
- if (typeof optionsOrCb === "function") {
959
- this.send(command, optionsOrCb);
960
- }
961
- else if (typeof cb === "function") {
962
- if (typeof optionsOrCb !== "object")
963
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
964
- this.send(command, optionsOrCb || {}, cb);
965
- }
966
- else {
967
- return this.send(command, optionsOrCb);
968
- }
969
- }
970
- describeSessions(args, optionsOrCb, cb) {
971
- const command = new DescribeSessionsCommand_1.DescribeSessionsCommand(args);
972
- if (typeof optionsOrCb === "function") {
973
- this.send(command, optionsOrCb);
974
- }
975
- else if (typeof cb === "function") {
976
- if (typeof optionsOrCb !== "object")
977
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
978
- this.send(command, optionsOrCb || {}, cb);
979
- }
980
- else {
981
- return this.send(command, optionsOrCb);
982
- }
983
- }
984
- disassociateOpsItemRelatedItem(args, optionsOrCb, cb) {
985
- const command = new DisassociateOpsItemRelatedItemCommand_1.DisassociateOpsItemRelatedItemCommand(args);
986
- if (typeof optionsOrCb === "function") {
987
- this.send(command, optionsOrCb);
988
- }
989
- else if (typeof cb === "function") {
990
- if (typeof optionsOrCb !== "object")
991
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
992
- this.send(command, optionsOrCb || {}, cb);
993
- }
994
- else {
995
- return this.send(command, optionsOrCb);
996
- }
997
- }
998
- getAutomationExecution(args, optionsOrCb, cb) {
999
- const command = new GetAutomationExecutionCommand_1.GetAutomationExecutionCommand(args);
1000
- if (typeof optionsOrCb === "function") {
1001
- this.send(command, optionsOrCb);
1002
- }
1003
- else if (typeof cb === "function") {
1004
- if (typeof optionsOrCb !== "object")
1005
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1006
- this.send(command, optionsOrCb || {}, cb);
1007
- }
1008
- else {
1009
- return this.send(command, optionsOrCb);
1010
- }
1011
- }
1012
- getCalendarState(args, optionsOrCb, cb) {
1013
- const command = new GetCalendarStateCommand_1.GetCalendarStateCommand(args);
1014
- if (typeof optionsOrCb === "function") {
1015
- this.send(command, optionsOrCb);
1016
- }
1017
- else if (typeof cb === "function") {
1018
- if (typeof optionsOrCb !== "object")
1019
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1020
- this.send(command, optionsOrCb || {}, cb);
1021
- }
1022
- else {
1023
- return this.send(command, optionsOrCb);
1024
- }
1025
- }
1026
- getCommandInvocation(args, optionsOrCb, cb) {
1027
- const command = new GetCommandInvocationCommand_1.GetCommandInvocationCommand(args);
1028
- if (typeof optionsOrCb === "function") {
1029
- this.send(command, optionsOrCb);
1030
- }
1031
- else if (typeof cb === "function") {
1032
- if (typeof optionsOrCb !== "object")
1033
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1034
- this.send(command, optionsOrCb || {}, cb);
1035
- }
1036
- else {
1037
- return this.send(command, optionsOrCb);
1038
- }
1039
- }
1040
- getConnectionStatus(args, optionsOrCb, cb) {
1041
- const command = new GetConnectionStatusCommand_1.GetConnectionStatusCommand(args);
1042
- if (typeof optionsOrCb === "function") {
1043
- this.send(command, optionsOrCb);
1044
- }
1045
- else if (typeof cb === "function") {
1046
- if (typeof optionsOrCb !== "object")
1047
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1048
- this.send(command, optionsOrCb || {}, cb);
1049
- }
1050
- else {
1051
- return this.send(command, optionsOrCb);
1052
- }
1053
- }
1054
- getDefaultPatchBaseline(args, optionsOrCb, cb) {
1055
- const command = new GetDefaultPatchBaselineCommand_1.GetDefaultPatchBaselineCommand(args);
1056
- if (typeof optionsOrCb === "function") {
1057
- this.send(command, optionsOrCb);
1058
- }
1059
- else if (typeof cb === "function") {
1060
- if (typeof optionsOrCb !== "object")
1061
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1062
- this.send(command, optionsOrCb || {}, cb);
1063
- }
1064
- else {
1065
- return this.send(command, optionsOrCb);
1066
- }
1067
- }
1068
- getDeployablePatchSnapshotForInstance(args, optionsOrCb, cb) {
1069
- const command = new GetDeployablePatchSnapshotForInstanceCommand_1.GetDeployablePatchSnapshotForInstanceCommand(args);
1070
- if (typeof optionsOrCb === "function") {
1071
- this.send(command, optionsOrCb);
1072
- }
1073
- else if (typeof cb === "function") {
1074
- if (typeof optionsOrCb !== "object")
1075
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1076
- this.send(command, optionsOrCb || {}, cb);
1077
- }
1078
- else {
1079
- return this.send(command, optionsOrCb);
1080
- }
1081
- }
1082
- getDocument(args, optionsOrCb, cb) {
1083
- const command = new GetDocumentCommand_1.GetDocumentCommand(args);
1084
- if (typeof optionsOrCb === "function") {
1085
- this.send(command, optionsOrCb);
1086
- }
1087
- else if (typeof cb === "function") {
1088
- if (typeof optionsOrCb !== "object")
1089
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1090
- this.send(command, optionsOrCb || {}, cb);
1091
- }
1092
- else {
1093
- return this.send(command, optionsOrCb);
1094
- }
1095
- }
1096
- getInventory(args, optionsOrCb, cb) {
1097
- const command = new GetInventoryCommand_1.GetInventoryCommand(args);
1098
- if (typeof optionsOrCb === "function") {
1099
- this.send(command, optionsOrCb);
1100
- }
1101
- else if (typeof cb === "function") {
1102
- if (typeof optionsOrCb !== "object")
1103
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1104
- this.send(command, optionsOrCb || {}, cb);
1105
- }
1106
- else {
1107
- return this.send(command, optionsOrCb);
1108
- }
1109
- }
1110
- getInventorySchema(args, optionsOrCb, cb) {
1111
- const command = new GetInventorySchemaCommand_1.GetInventorySchemaCommand(args);
1112
- if (typeof optionsOrCb === "function") {
1113
- this.send(command, optionsOrCb);
1114
- }
1115
- else if (typeof cb === "function") {
1116
- if (typeof optionsOrCb !== "object")
1117
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1118
- this.send(command, optionsOrCb || {}, cb);
1119
- }
1120
- else {
1121
- return this.send(command, optionsOrCb);
1122
- }
1123
- }
1124
- getMaintenanceWindow(args, optionsOrCb, cb) {
1125
- const command = new GetMaintenanceWindowCommand_1.GetMaintenanceWindowCommand(args);
1126
- if (typeof optionsOrCb === "function") {
1127
- this.send(command, optionsOrCb);
1128
- }
1129
- else if (typeof cb === "function") {
1130
- if (typeof optionsOrCb !== "object")
1131
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1132
- this.send(command, optionsOrCb || {}, cb);
1133
- }
1134
- else {
1135
- return this.send(command, optionsOrCb);
1136
- }
1137
- }
1138
- getMaintenanceWindowExecution(args, optionsOrCb, cb) {
1139
- const command = new GetMaintenanceWindowExecutionCommand_1.GetMaintenanceWindowExecutionCommand(args);
1140
- if (typeof optionsOrCb === "function") {
1141
- this.send(command, optionsOrCb);
1142
- }
1143
- else if (typeof cb === "function") {
1144
- if (typeof optionsOrCb !== "object")
1145
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1146
- this.send(command, optionsOrCb || {}, cb);
1147
- }
1148
- else {
1149
- return this.send(command, optionsOrCb);
1150
- }
1151
- }
1152
- getMaintenanceWindowExecutionTask(args, optionsOrCb, cb) {
1153
- const command = new GetMaintenanceWindowExecutionTaskCommand_1.GetMaintenanceWindowExecutionTaskCommand(args);
1154
- if (typeof optionsOrCb === "function") {
1155
- this.send(command, optionsOrCb);
1156
- }
1157
- else if (typeof cb === "function") {
1158
- if (typeof optionsOrCb !== "object")
1159
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1160
- this.send(command, optionsOrCb || {}, cb);
1161
- }
1162
- else {
1163
- return this.send(command, optionsOrCb);
1164
- }
1165
- }
1166
- getMaintenanceWindowExecutionTaskInvocation(args, optionsOrCb, cb) {
1167
- const command = new GetMaintenanceWindowExecutionTaskInvocationCommand_1.GetMaintenanceWindowExecutionTaskInvocationCommand(args);
1168
- if (typeof optionsOrCb === "function") {
1169
- this.send(command, optionsOrCb);
1170
- }
1171
- else if (typeof cb === "function") {
1172
- if (typeof optionsOrCb !== "object")
1173
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1174
- this.send(command, optionsOrCb || {}, cb);
1175
- }
1176
- else {
1177
- return this.send(command, optionsOrCb);
1178
- }
1179
- }
1180
- getMaintenanceWindowTask(args, optionsOrCb, cb) {
1181
- const command = new GetMaintenanceWindowTaskCommand_1.GetMaintenanceWindowTaskCommand(args);
1182
- if (typeof optionsOrCb === "function") {
1183
- this.send(command, optionsOrCb);
1184
- }
1185
- else if (typeof cb === "function") {
1186
- if (typeof optionsOrCb !== "object")
1187
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1188
- this.send(command, optionsOrCb || {}, cb);
1189
- }
1190
- else {
1191
- return this.send(command, optionsOrCb);
1192
- }
1193
- }
1194
- getOpsItem(args, optionsOrCb, cb) {
1195
- const command = new GetOpsItemCommand_1.GetOpsItemCommand(args);
1196
- if (typeof optionsOrCb === "function") {
1197
- this.send(command, optionsOrCb);
1198
- }
1199
- else if (typeof cb === "function") {
1200
- if (typeof optionsOrCb !== "object")
1201
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1202
- this.send(command, optionsOrCb || {}, cb);
1203
- }
1204
- else {
1205
- return this.send(command, optionsOrCb);
1206
- }
1207
- }
1208
- getOpsMetadata(args, optionsOrCb, cb) {
1209
- const command = new GetOpsMetadataCommand_1.GetOpsMetadataCommand(args);
1210
- if (typeof optionsOrCb === "function") {
1211
- this.send(command, optionsOrCb);
1212
- }
1213
- else if (typeof cb === "function") {
1214
- if (typeof optionsOrCb !== "object")
1215
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1216
- this.send(command, optionsOrCb || {}, cb);
1217
- }
1218
- else {
1219
- return this.send(command, optionsOrCb);
1220
- }
1221
- }
1222
- getOpsSummary(args, optionsOrCb, cb) {
1223
- const command = new GetOpsSummaryCommand_1.GetOpsSummaryCommand(args);
1224
- if (typeof optionsOrCb === "function") {
1225
- this.send(command, optionsOrCb);
1226
- }
1227
- else if (typeof cb === "function") {
1228
- if (typeof optionsOrCb !== "object")
1229
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1230
- this.send(command, optionsOrCb || {}, cb);
1231
- }
1232
- else {
1233
- return this.send(command, optionsOrCb);
1234
- }
1235
- }
1236
- getParameter(args, optionsOrCb, cb) {
1237
- const command = new GetParameterCommand_1.GetParameterCommand(args);
1238
- if (typeof optionsOrCb === "function") {
1239
- this.send(command, optionsOrCb);
1240
- }
1241
- else if (typeof cb === "function") {
1242
- if (typeof optionsOrCb !== "object")
1243
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1244
- this.send(command, optionsOrCb || {}, cb);
1245
- }
1246
- else {
1247
- return this.send(command, optionsOrCb);
1248
- }
1249
- }
1250
- getParameterHistory(args, optionsOrCb, cb) {
1251
- const command = new GetParameterHistoryCommand_1.GetParameterHistoryCommand(args);
1252
- if (typeof optionsOrCb === "function") {
1253
- this.send(command, optionsOrCb);
1254
- }
1255
- else if (typeof cb === "function") {
1256
- if (typeof optionsOrCb !== "object")
1257
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1258
- this.send(command, optionsOrCb || {}, cb);
1259
- }
1260
- else {
1261
- return this.send(command, optionsOrCb);
1262
- }
1263
- }
1264
- getParameters(args, optionsOrCb, cb) {
1265
- const command = new GetParametersCommand_1.GetParametersCommand(args);
1266
- if (typeof optionsOrCb === "function") {
1267
- this.send(command, optionsOrCb);
1268
- }
1269
- else if (typeof cb === "function") {
1270
- if (typeof optionsOrCb !== "object")
1271
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1272
- this.send(command, optionsOrCb || {}, cb);
1273
- }
1274
- else {
1275
- return this.send(command, optionsOrCb);
1276
- }
1277
- }
1278
- getParametersByPath(args, optionsOrCb, cb) {
1279
- const command = new GetParametersByPathCommand_1.GetParametersByPathCommand(args);
1280
- if (typeof optionsOrCb === "function") {
1281
- this.send(command, optionsOrCb);
1282
- }
1283
- else if (typeof cb === "function") {
1284
- if (typeof optionsOrCb !== "object")
1285
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1286
- this.send(command, optionsOrCb || {}, cb);
1287
- }
1288
- else {
1289
- return this.send(command, optionsOrCb);
1290
- }
1291
- }
1292
- getPatchBaseline(args, optionsOrCb, cb) {
1293
- const command = new GetPatchBaselineCommand_1.GetPatchBaselineCommand(args);
1294
- if (typeof optionsOrCb === "function") {
1295
- this.send(command, optionsOrCb);
1296
- }
1297
- else if (typeof cb === "function") {
1298
- if (typeof optionsOrCb !== "object")
1299
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1300
- this.send(command, optionsOrCb || {}, cb);
1301
- }
1302
- else {
1303
- return this.send(command, optionsOrCb);
1304
- }
1305
- }
1306
- getPatchBaselineForPatchGroup(args, optionsOrCb, cb) {
1307
- const command = new GetPatchBaselineForPatchGroupCommand_1.GetPatchBaselineForPatchGroupCommand(args);
1308
- if (typeof optionsOrCb === "function") {
1309
- this.send(command, optionsOrCb);
1310
- }
1311
- else if (typeof cb === "function") {
1312
- if (typeof optionsOrCb !== "object")
1313
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1314
- this.send(command, optionsOrCb || {}, cb);
1315
- }
1316
- else {
1317
- return this.send(command, optionsOrCb);
1318
- }
1319
- }
1320
- getResourcePolicies(args, optionsOrCb, cb) {
1321
- const command = new GetResourcePoliciesCommand_1.GetResourcePoliciesCommand(args);
1322
- if (typeof optionsOrCb === "function") {
1323
- this.send(command, optionsOrCb);
1324
- }
1325
- else if (typeof cb === "function") {
1326
- if (typeof optionsOrCb !== "object")
1327
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1328
- this.send(command, optionsOrCb || {}, cb);
1329
- }
1330
- else {
1331
- return this.send(command, optionsOrCb);
1332
- }
1333
- }
1334
- getServiceSetting(args, optionsOrCb, cb) {
1335
- const command = new GetServiceSettingCommand_1.GetServiceSettingCommand(args);
1336
- if (typeof optionsOrCb === "function") {
1337
- this.send(command, optionsOrCb);
1338
- }
1339
- else if (typeof cb === "function") {
1340
- if (typeof optionsOrCb !== "object")
1341
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1342
- this.send(command, optionsOrCb || {}, cb);
1343
- }
1344
- else {
1345
- return this.send(command, optionsOrCb);
1346
- }
1347
- }
1348
- labelParameterVersion(args, optionsOrCb, cb) {
1349
- const command = new LabelParameterVersionCommand_1.LabelParameterVersionCommand(args);
1350
- if (typeof optionsOrCb === "function") {
1351
- this.send(command, optionsOrCb);
1352
- }
1353
- else if (typeof cb === "function") {
1354
- if (typeof optionsOrCb !== "object")
1355
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1356
- this.send(command, optionsOrCb || {}, cb);
1357
- }
1358
- else {
1359
- return this.send(command, optionsOrCb);
1360
- }
1361
- }
1362
- listAssociations(args, optionsOrCb, cb) {
1363
- const command = new ListAssociationsCommand_1.ListAssociationsCommand(args);
1364
- if (typeof optionsOrCb === "function") {
1365
- this.send(command, optionsOrCb);
1366
- }
1367
- else if (typeof cb === "function") {
1368
- if (typeof optionsOrCb !== "object")
1369
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1370
- this.send(command, optionsOrCb || {}, cb);
1371
- }
1372
- else {
1373
- return this.send(command, optionsOrCb);
1374
- }
1375
- }
1376
- listAssociationVersions(args, optionsOrCb, cb) {
1377
- const command = new ListAssociationVersionsCommand_1.ListAssociationVersionsCommand(args);
1378
- if (typeof optionsOrCb === "function") {
1379
- this.send(command, optionsOrCb);
1380
- }
1381
- else if (typeof cb === "function") {
1382
- if (typeof optionsOrCb !== "object")
1383
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1384
- this.send(command, optionsOrCb || {}, cb);
1385
- }
1386
- else {
1387
- return this.send(command, optionsOrCb);
1388
- }
1389
- }
1390
- listCommandInvocations(args, optionsOrCb, cb) {
1391
- const command = new ListCommandInvocationsCommand_1.ListCommandInvocationsCommand(args);
1392
- if (typeof optionsOrCb === "function") {
1393
- this.send(command, optionsOrCb);
1394
- }
1395
- else if (typeof cb === "function") {
1396
- if (typeof optionsOrCb !== "object")
1397
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1398
- this.send(command, optionsOrCb || {}, cb);
1399
- }
1400
- else {
1401
- return this.send(command, optionsOrCb);
1402
- }
1403
- }
1404
- listCommands(args, optionsOrCb, cb) {
1405
- const command = new ListCommandsCommand_1.ListCommandsCommand(args);
1406
- if (typeof optionsOrCb === "function") {
1407
- this.send(command, optionsOrCb);
1408
- }
1409
- else if (typeof cb === "function") {
1410
- if (typeof optionsOrCb !== "object")
1411
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1412
- this.send(command, optionsOrCb || {}, cb);
1413
- }
1414
- else {
1415
- return this.send(command, optionsOrCb);
1416
- }
1417
- }
1418
- listComplianceItems(args, optionsOrCb, cb) {
1419
- const command = new ListComplianceItemsCommand_1.ListComplianceItemsCommand(args);
1420
- if (typeof optionsOrCb === "function") {
1421
- this.send(command, optionsOrCb);
1422
- }
1423
- else if (typeof cb === "function") {
1424
- if (typeof optionsOrCb !== "object")
1425
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1426
- this.send(command, optionsOrCb || {}, cb);
1427
- }
1428
- else {
1429
- return this.send(command, optionsOrCb);
1430
- }
1431
- }
1432
- listComplianceSummaries(args, optionsOrCb, cb) {
1433
- const command = new ListComplianceSummariesCommand_1.ListComplianceSummariesCommand(args);
1434
- if (typeof optionsOrCb === "function") {
1435
- this.send(command, optionsOrCb);
1436
- }
1437
- else if (typeof cb === "function") {
1438
- if (typeof optionsOrCb !== "object")
1439
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1440
- this.send(command, optionsOrCb || {}, cb);
1441
- }
1442
- else {
1443
- return this.send(command, optionsOrCb);
1444
- }
1445
- }
1446
- listDocumentMetadataHistory(args, optionsOrCb, cb) {
1447
- const command = new ListDocumentMetadataHistoryCommand_1.ListDocumentMetadataHistoryCommand(args);
1448
- if (typeof optionsOrCb === "function") {
1449
- this.send(command, optionsOrCb);
1450
- }
1451
- else if (typeof cb === "function") {
1452
- if (typeof optionsOrCb !== "object")
1453
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1454
- this.send(command, optionsOrCb || {}, cb);
1455
- }
1456
- else {
1457
- return this.send(command, optionsOrCb);
1458
- }
1459
- }
1460
- listDocuments(args, optionsOrCb, cb) {
1461
- const command = new ListDocumentsCommand_1.ListDocumentsCommand(args);
1462
- if (typeof optionsOrCb === "function") {
1463
- this.send(command, optionsOrCb);
1464
- }
1465
- else if (typeof cb === "function") {
1466
- if (typeof optionsOrCb !== "object")
1467
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1468
- this.send(command, optionsOrCb || {}, cb);
1469
- }
1470
- else {
1471
- return this.send(command, optionsOrCb);
1472
- }
1473
- }
1474
- listDocumentVersions(args, optionsOrCb, cb) {
1475
- const command = new ListDocumentVersionsCommand_1.ListDocumentVersionsCommand(args);
1476
- if (typeof optionsOrCb === "function") {
1477
- this.send(command, optionsOrCb);
1478
- }
1479
- else if (typeof cb === "function") {
1480
- if (typeof optionsOrCb !== "object")
1481
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1482
- this.send(command, optionsOrCb || {}, cb);
1483
- }
1484
- else {
1485
- return this.send(command, optionsOrCb);
1486
- }
1487
- }
1488
- listInventoryEntries(args, optionsOrCb, cb) {
1489
- const command = new ListInventoryEntriesCommand_1.ListInventoryEntriesCommand(args);
1490
- if (typeof optionsOrCb === "function") {
1491
- this.send(command, optionsOrCb);
1492
- }
1493
- else if (typeof cb === "function") {
1494
- if (typeof optionsOrCb !== "object")
1495
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1496
- this.send(command, optionsOrCb || {}, cb);
1497
- }
1498
- else {
1499
- return this.send(command, optionsOrCb);
1500
- }
1501
- }
1502
- listOpsItemEvents(args, optionsOrCb, cb) {
1503
- const command = new ListOpsItemEventsCommand_1.ListOpsItemEventsCommand(args);
1504
- if (typeof optionsOrCb === "function") {
1505
- this.send(command, optionsOrCb);
1506
- }
1507
- else if (typeof cb === "function") {
1508
- if (typeof optionsOrCb !== "object")
1509
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1510
- this.send(command, optionsOrCb || {}, cb);
1511
- }
1512
- else {
1513
- return this.send(command, optionsOrCb);
1514
- }
1515
- }
1516
- listOpsItemRelatedItems(args, optionsOrCb, cb) {
1517
- const command = new ListOpsItemRelatedItemsCommand_1.ListOpsItemRelatedItemsCommand(args);
1518
- if (typeof optionsOrCb === "function") {
1519
- this.send(command, optionsOrCb);
1520
- }
1521
- else if (typeof cb === "function") {
1522
- if (typeof optionsOrCb !== "object")
1523
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1524
- this.send(command, optionsOrCb || {}, cb);
1525
- }
1526
- else {
1527
- return this.send(command, optionsOrCb);
1528
- }
1529
- }
1530
- listOpsMetadata(args, optionsOrCb, cb) {
1531
- const command = new ListOpsMetadataCommand_1.ListOpsMetadataCommand(args);
1532
- if (typeof optionsOrCb === "function") {
1533
- this.send(command, optionsOrCb);
1534
- }
1535
- else if (typeof cb === "function") {
1536
- if (typeof optionsOrCb !== "object")
1537
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1538
- this.send(command, optionsOrCb || {}, cb);
1539
- }
1540
- else {
1541
- return this.send(command, optionsOrCb);
1542
- }
1543
- }
1544
- listResourceComplianceSummaries(args, optionsOrCb, cb) {
1545
- const command = new ListResourceComplianceSummariesCommand_1.ListResourceComplianceSummariesCommand(args);
1546
- if (typeof optionsOrCb === "function") {
1547
- this.send(command, optionsOrCb);
1548
- }
1549
- else if (typeof cb === "function") {
1550
- if (typeof optionsOrCb !== "object")
1551
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1552
- this.send(command, optionsOrCb || {}, cb);
1553
- }
1554
- else {
1555
- return this.send(command, optionsOrCb);
1556
- }
1557
- }
1558
- listResourceDataSync(args, optionsOrCb, cb) {
1559
- const command = new ListResourceDataSyncCommand_1.ListResourceDataSyncCommand(args);
1560
- if (typeof optionsOrCb === "function") {
1561
- this.send(command, optionsOrCb);
1562
- }
1563
- else if (typeof cb === "function") {
1564
- if (typeof optionsOrCb !== "object")
1565
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1566
- this.send(command, optionsOrCb || {}, cb);
1567
- }
1568
- else {
1569
- return this.send(command, optionsOrCb);
1570
- }
1571
- }
1572
- listTagsForResource(args, optionsOrCb, cb) {
1573
- const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
1574
- if (typeof optionsOrCb === "function") {
1575
- this.send(command, optionsOrCb);
1576
- }
1577
- else if (typeof cb === "function") {
1578
- if (typeof optionsOrCb !== "object")
1579
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1580
- this.send(command, optionsOrCb || {}, cb);
1581
- }
1582
- else {
1583
- return this.send(command, optionsOrCb);
1584
- }
1585
- }
1586
- modifyDocumentPermission(args, optionsOrCb, cb) {
1587
- const command = new ModifyDocumentPermissionCommand_1.ModifyDocumentPermissionCommand(args);
1588
- if (typeof optionsOrCb === "function") {
1589
- this.send(command, optionsOrCb);
1590
- }
1591
- else if (typeof cb === "function") {
1592
- if (typeof optionsOrCb !== "object")
1593
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1594
- this.send(command, optionsOrCb || {}, cb);
1595
- }
1596
- else {
1597
- return this.send(command, optionsOrCb);
1598
- }
1599
- }
1600
- putComplianceItems(args, optionsOrCb, cb) {
1601
- const command = new PutComplianceItemsCommand_1.PutComplianceItemsCommand(args);
1602
- if (typeof optionsOrCb === "function") {
1603
- this.send(command, optionsOrCb);
1604
- }
1605
- else if (typeof cb === "function") {
1606
- if (typeof optionsOrCb !== "object")
1607
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1608
- this.send(command, optionsOrCb || {}, cb);
1609
- }
1610
- else {
1611
- return this.send(command, optionsOrCb);
1612
- }
1613
- }
1614
- putInventory(args, optionsOrCb, cb) {
1615
- const command = new PutInventoryCommand_1.PutInventoryCommand(args);
1616
- if (typeof optionsOrCb === "function") {
1617
- this.send(command, optionsOrCb);
1618
- }
1619
- else if (typeof cb === "function") {
1620
- if (typeof optionsOrCb !== "object")
1621
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1622
- this.send(command, optionsOrCb || {}, cb);
1623
- }
1624
- else {
1625
- return this.send(command, optionsOrCb);
1626
- }
1627
- }
1628
- putParameter(args, optionsOrCb, cb) {
1629
- const command = new PutParameterCommand_1.PutParameterCommand(args);
1630
- if (typeof optionsOrCb === "function") {
1631
- this.send(command, optionsOrCb);
1632
- }
1633
- else if (typeof cb === "function") {
1634
- if (typeof optionsOrCb !== "object")
1635
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1636
- this.send(command, optionsOrCb || {}, cb);
1637
- }
1638
- else {
1639
- return this.send(command, optionsOrCb);
1640
- }
1641
- }
1642
- putResourcePolicy(args, optionsOrCb, cb) {
1643
- const command = new PutResourcePolicyCommand_1.PutResourcePolicyCommand(args);
1644
- if (typeof optionsOrCb === "function") {
1645
- this.send(command, optionsOrCb);
1646
- }
1647
- else if (typeof cb === "function") {
1648
- if (typeof optionsOrCb !== "object")
1649
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1650
- this.send(command, optionsOrCb || {}, cb);
1651
- }
1652
- else {
1653
- return this.send(command, optionsOrCb);
1654
- }
1655
- }
1656
- registerDefaultPatchBaseline(args, optionsOrCb, cb) {
1657
- const command = new RegisterDefaultPatchBaselineCommand_1.RegisterDefaultPatchBaselineCommand(args);
1658
- if (typeof optionsOrCb === "function") {
1659
- this.send(command, optionsOrCb);
1660
- }
1661
- else if (typeof cb === "function") {
1662
- if (typeof optionsOrCb !== "object")
1663
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1664
- this.send(command, optionsOrCb || {}, cb);
1665
- }
1666
- else {
1667
- return this.send(command, optionsOrCb);
1668
- }
1669
- }
1670
- registerPatchBaselineForPatchGroup(args, optionsOrCb, cb) {
1671
- const command = new RegisterPatchBaselineForPatchGroupCommand_1.RegisterPatchBaselineForPatchGroupCommand(args);
1672
- if (typeof optionsOrCb === "function") {
1673
- this.send(command, optionsOrCb);
1674
- }
1675
- else if (typeof cb === "function") {
1676
- if (typeof optionsOrCb !== "object")
1677
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1678
- this.send(command, optionsOrCb || {}, cb);
1679
- }
1680
- else {
1681
- return this.send(command, optionsOrCb);
1682
- }
1683
- }
1684
- registerTargetWithMaintenanceWindow(args, optionsOrCb, cb) {
1685
- const command = new RegisterTargetWithMaintenanceWindowCommand_1.RegisterTargetWithMaintenanceWindowCommand(args);
1686
- if (typeof optionsOrCb === "function") {
1687
- this.send(command, optionsOrCb);
1688
- }
1689
- else if (typeof cb === "function") {
1690
- if (typeof optionsOrCb !== "object")
1691
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1692
- this.send(command, optionsOrCb || {}, cb);
1693
- }
1694
- else {
1695
- return this.send(command, optionsOrCb);
1696
- }
1697
- }
1698
- registerTaskWithMaintenanceWindow(args, optionsOrCb, cb) {
1699
- const command = new RegisterTaskWithMaintenanceWindowCommand_1.RegisterTaskWithMaintenanceWindowCommand(args);
1700
- if (typeof optionsOrCb === "function") {
1701
- this.send(command, optionsOrCb);
1702
- }
1703
- else if (typeof cb === "function") {
1704
- if (typeof optionsOrCb !== "object")
1705
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1706
- this.send(command, optionsOrCb || {}, cb);
1707
- }
1708
- else {
1709
- return this.send(command, optionsOrCb);
1710
- }
1711
- }
1712
- removeTagsFromResource(args, optionsOrCb, cb) {
1713
- const command = new RemoveTagsFromResourceCommand_1.RemoveTagsFromResourceCommand(args);
1714
- if (typeof optionsOrCb === "function") {
1715
- this.send(command, optionsOrCb);
1716
- }
1717
- else if (typeof cb === "function") {
1718
- if (typeof optionsOrCb !== "object")
1719
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1720
- this.send(command, optionsOrCb || {}, cb);
1721
- }
1722
- else {
1723
- return this.send(command, optionsOrCb);
1724
- }
1725
- }
1726
- resetServiceSetting(args, optionsOrCb, cb) {
1727
- const command = new ResetServiceSettingCommand_1.ResetServiceSettingCommand(args);
1728
- if (typeof optionsOrCb === "function") {
1729
- this.send(command, optionsOrCb);
1730
- }
1731
- else if (typeof cb === "function") {
1732
- if (typeof optionsOrCb !== "object")
1733
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1734
- this.send(command, optionsOrCb || {}, cb);
1735
- }
1736
- else {
1737
- return this.send(command, optionsOrCb);
1738
- }
1739
- }
1740
- resumeSession(args, optionsOrCb, cb) {
1741
- const command = new ResumeSessionCommand_1.ResumeSessionCommand(args);
1742
- if (typeof optionsOrCb === "function") {
1743
- this.send(command, optionsOrCb);
1744
- }
1745
- else if (typeof cb === "function") {
1746
- if (typeof optionsOrCb !== "object")
1747
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1748
- this.send(command, optionsOrCb || {}, cb);
1749
- }
1750
- else {
1751
- return this.send(command, optionsOrCb);
1752
- }
1753
- }
1754
- sendAutomationSignal(args, optionsOrCb, cb) {
1755
- const command = new SendAutomationSignalCommand_1.SendAutomationSignalCommand(args);
1756
- if (typeof optionsOrCb === "function") {
1757
- this.send(command, optionsOrCb);
1758
- }
1759
- else if (typeof cb === "function") {
1760
- if (typeof optionsOrCb !== "object")
1761
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1762
- this.send(command, optionsOrCb || {}, cb);
1763
- }
1764
- else {
1765
- return this.send(command, optionsOrCb);
1766
- }
1767
- }
1768
- sendCommand(args, optionsOrCb, cb) {
1769
- const command = new SendCommandCommand_1.SendCommandCommand(args);
1770
- if (typeof optionsOrCb === "function") {
1771
- this.send(command, optionsOrCb);
1772
- }
1773
- else if (typeof cb === "function") {
1774
- if (typeof optionsOrCb !== "object")
1775
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1776
- this.send(command, optionsOrCb || {}, cb);
1777
- }
1778
- else {
1779
- return this.send(command, optionsOrCb);
1780
- }
1781
- }
1782
- startAssociationsOnce(args, optionsOrCb, cb) {
1783
- const command = new StartAssociationsOnceCommand_1.StartAssociationsOnceCommand(args);
1784
- if (typeof optionsOrCb === "function") {
1785
- this.send(command, optionsOrCb);
1786
- }
1787
- else if (typeof cb === "function") {
1788
- if (typeof optionsOrCb !== "object")
1789
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1790
- this.send(command, optionsOrCb || {}, cb);
1791
- }
1792
- else {
1793
- return this.send(command, optionsOrCb);
1794
- }
1795
- }
1796
- startAutomationExecution(args, optionsOrCb, cb) {
1797
- const command = new StartAutomationExecutionCommand_1.StartAutomationExecutionCommand(args);
1798
- if (typeof optionsOrCb === "function") {
1799
- this.send(command, optionsOrCb);
1800
- }
1801
- else if (typeof cb === "function") {
1802
- if (typeof optionsOrCb !== "object")
1803
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1804
- this.send(command, optionsOrCb || {}, cb);
1805
- }
1806
- else {
1807
- return this.send(command, optionsOrCb);
1808
- }
1809
- }
1810
- startChangeRequestExecution(args, optionsOrCb, cb) {
1811
- const command = new StartChangeRequestExecutionCommand_1.StartChangeRequestExecutionCommand(args);
1812
- if (typeof optionsOrCb === "function") {
1813
- this.send(command, optionsOrCb);
1814
- }
1815
- else if (typeof cb === "function") {
1816
- if (typeof optionsOrCb !== "object")
1817
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1818
- this.send(command, optionsOrCb || {}, cb);
1819
- }
1820
- else {
1821
- return this.send(command, optionsOrCb);
1822
- }
1823
- }
1824
- startSession(args, optionsOrCb, cb) {
1825
- const command = new StartSessionCommand_1.StartSessionCommand(args);
1826
- if (typeof optionsOrCb === "function") {
1827
- this.send(command, optionsOrCb);
1828
- }
1829
- else if (typeof cb === "function") {
1830
- if (typeof optionsOrCb !== "object")
1831
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1832
- this.send(command, optionsOrCb || {}, cb);
1833
- }
1834
- else {
1835
- return this.send(command, optionsOrCb);
1836
- }
1837
- }
1838
- stopAutomationExecution(args, optionsOrCb, cb) {
1839
- const command = new StopAutomationExecutionCommand_1.StopAutomationExecutionCommand(args);
1840
- if (typeof optionsOrCb === "function") {
1841
- this.send(command, optionsOrCb);
1842
- }
1843
- else if (typeof cb === "function") {
1844
- if (typeof optionsOrCb !== "object")
1845
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1846
- this.send(command, optionsOrCb || {}, cb);
1847
- }
1848
- else {
1849
- return this.send(command, optionsOrCb);
1850
- }
1851
- }
1852
- terminateSession(args, optionsOrCb, cb) {
1853
- const command = new TerminateSessionCommand_1.TerminateSessionCommand(args);
1854
- if (typeof optionsOrCb === "function") {
1855
- this.send(command, optionsOrCb);
1856
- }
1857
- else if (typeof cb === "function") {
1858
- if (typeof optionsOrCb !== "object")
1859
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1860
- this.send(command, optionsOrCb || {}, cb);
1861
- }
1862
- else {
1863
- return this.send(command, optionsOrCb);
1864
- }
1865
- }
1866
- unlabelParameterVersion(args, optionsOrCb, cb) {
1867
- const command = new UnlabelParameterVersionCommand_1.UnlabelParameterVersionCommand(args);
1868
- if (typeof optionsOrCb === "function") {
1869
- this.send(command, optionsOrCb);
1870
- }
1871
- else if (typeof cb === "function") {
1872
- if (typeof optionsOrCb !== "object")
1873
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1874
- this.send(command, optionsOrCb || {}, cb);
1875
- }
1876
- else {
1877
- return this.send(command, optionsOrCb);
1878
- }
1879
- }
1880
- updateAssociation(args, optionsOrCb, cb) {
1881
- const command = new UpdateAssociationCommand_1.UpdateAssociationCommand(args);
1882
- if (typeof optionsOrCb === "function") {
1883
- this.send(command, optionsOrCb);
1884
- }
1885
- else if (typeof cb === "function") {
1886
- if (typeof optionsOrCb !== "object")
1887
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1888
- this.send(command, optionsOrCb || {}, cb);
1889
- }
1890
- else {
1891
- return this.send(command, optionsOrCb);
1892
- }
1893
- }
1894
- updateAssociationStatus(args, optionsOrCb, cb) {
1895
- const command = new UpdateAssociationStatusCommand_1.UpdateAssociationStatusCommand(args);
1896
- if (typeof optionsOrCb === "function") {
1897
- this.send(command, optionsOrCb);
1898
- }
1899
- else if (typeof cb === "function") {
1900
- if (typeof optionsOrCb !== "object")
1901
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1902
- this.send(command, optionsOrCb || {}, cb);
1903
- }
1904
- else {
1905
- return this.send(command, optionsOrCb);
1906
- }
1907
- }
1908
- updateDocument(args, optionsOrCb, cb) {
1909
- const command = new UpdateDocumentCommand_1.UpdateDocumentCommand(args);
1910
- if (typeof optionsOrCb === "function") {
1911
- this.send(command, optionsOrCb);
1912
- }
1913
- else if (typeof cb === "function") {
1914
- if (typeof optionsOrCb !== "object")
1915
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1916
- this.send(command, optionsOrCb || {}, cb);
1917
- }
1918
- else {
1919
- return this.send(command, optionsOrCb);
1920
- }
1921
- }
1922
- updateDocumentDefaultVersion(args, optionsOrCb, cb) {
1923
- const command = new UpdateDocumentDefaultVersionCommand_1.UpdateDocumentDefaultVersionCommand(args);
1924
- if (typeof optionsOrCb === "function") {
1925
- this.send(command, optionsOrCb);
1926
- }
1927
- else if (typeof cb === "function") {
1928
- if (typeof optionsOrCb !== "object")
1929
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1930
- this.send(command, optionsOrCb || {}, cb);
1931
- }
1932
- else {
1933
- return this.send(command, optionsOrCb);
1934
- }
1935
- }
1936
- updateDocumentMetadata(args, optionsOrCb, cb) {
1937
- const command = new UpdateDocumentMetadataCommand_1.UpdateDocumentMetadataCommand(args);
1938
- if (typeof optionsOrCb === "function") {
1939
- this.send(command, optionsOrCb);
1940
- }
1941
- else if (typeof cb === "function") {
1942
- if (typeof optionsOrCb !== "object")
1943
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1944
- this.send(command, optionsOrCb || {}, cb);
1945
- }
1946
- else {
1947
- return this.send(command, optionsOrCb);
1948
- }
1949
- }
1950
- updateMaintenanceWindow(args, optionsOrCb, cb) {
1951
- const command = new UpdateMaintenanceWindowCommand_1.UpdateMaintenanceWindowCommand(args);
1952
- if (typeof optionsOrCb === "function") {
1953
- this.send(command, optionsOrCb);
1954
- }
1955
- else if (typeof cb === "function") {
1956
- if (typeof optionsOrCb !== "object")
1957
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1958
- this.send(command, optionsOrCb || {}, cb);
1959
- }
1960
- else {
1961
- return this.send(command, optionsOrCb);
1962
- }
1963
- }
1964
- updateMaintenanceWindowTarget(args, optionsOrCb, cb) {
1965
- const command = new UpdateMaintenanceWindowTargetCommand_1.UpdateMaintenanceWindowTargetCommand(args);
1966
- if (typeof optionsOrCb === "function") {
1967
- this.send(command, optionsOrCb);
1968
- }
1969
- else if (typeof cb === "function") {
1970
- if (typeof optionsOrCb !== "object")
1971
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1972
- this.send(command, optionsOrCb || {}, cb);
1973
- }
1974
- else {
1975
- return this.send(command, optionsOrCb);
1976
- }
1977
- }
1978
- updateMaintenanceWindowTask(args, optionsOrCb, cb) {
1979
- const command = new UpdateMaintenanceWindowTaskCommand_1.UpdateMaintenanceWindowTaskCommand(args);
1980
- if (typeof optionsOrCb === "function") {
1981
- this.send(command, optionsOrCb);
1982
- }
1983
- else if (typeof cb === "function") {
1984
- if (typeof optionsOrCb !== "object")
1985
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1986
- this.send(command, optionsOrCb || {}, cb);
1987
- }
1988
- else {
1989
- return this.send(command, optionsOrCb);
1990
- }
1991
- }
1992
- updateManagedInstanceRole(args, optionsOrCb, cb) {
1993
- const command = new UpdateManagedInstanceRoleCommand_1.UpdateManagedInstanceRoleCommand(args);
1994
- if (typeof optionsOrCb === "function") {
1995
- this.send(command, optionsOrCb);
1996
- }
1997
- else if (typeof cb === "function") {
1998
- if (typeof optionsOrCb !== "object")
1999
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2000
- this.send(command, optionsOrCb || {}, cb);
2001
- }
2002
- else {
2003
- return this.send(command, optionsOrCb);
2004
- }
2005
- }
2006
- updateOpsItem(args, optionsOrCb, cb) {
2007
- const command = new UpdateOpsItemCommand_1.UpdateOpsItemCommand(args);
2008
- if (typeof optionsOrCb === "function") {
2009
- this.send(command, optionsOrCb);
2010
- }
2011
- else if (typeof cb === "function") {
2012
- if (typeof optionsOrCb !== "object")
2013
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2014
- this.send(command, optionsOrCb || {}, cb);
2015
- }
2016
- else {
2017
- return this.send(command, optionsOrCb);
2018
- }
2019
- }
2020
- updateOpsMetadata(args, optionsOrCb, cb) {
2021
- const command = new UpdateOpsMetadataCommand_1.UpdateOpsMetadataCommand(args);
2022
- if (typeof optionsOrCb === "function") {
2023
- this.send(command, optionsOrCb);
2024
- }
2025
- else if (typeof cb === "function") {
2026
- if (typeof optionsOrCb !== "object")
2027
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2028
- this.send(command, optionsOrCb || {}, cb);
2029
- }
2030
- else {
2031
- return this.send(command, optionsOrCb);
2032
- }
2033
- }
2034
- updatePatchBaseline(args, optionsOrCb, cb) {
2035
- const command = new UpdatePatchBaselineCommand_1.UpdatePatchBaselineCommand(args);
2036
- if (typeof optionsOrCb === "function") {
2037
- this.send(command, optionsOrCb);
2038
- }
2039
- else if (typeof cb === "function") {
2040
- if (typeof optionsOrCb !== "object")
2041
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2042
- this.send(command, optionsOrCb || {}, cb);
2043
- }
2044
- else {
2045
- return this.send(command, optionsOrCb);
2046
- }
2047
- }
2048
- updateResourceDataSync(args, optionsOrCb, cb) {
2049
- const command = new UpdateResourceDataSyncCommand_1.UpdateResourceDataSyncCommand(args);
2050
- if (typeof optionsOrCb === "function") {
2051
- this.send(command, optionsOrCb);
2052
- }
2053
- else if (typeof cb === "function") {
2054
- if (typeof optionsOrCb !== "object")
2055
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2056
- this.send(command, optionsOrCb || {}, cb);
2057
- }
2058
- else {
2059
- return this.send(command, optionsOrCb);
2060
- }
2061
- }
2062
- updateServiceSetting(args, optionsOrCb, cb) {
2063
- const command = new UpdateServiceSettingCommand_1.UpdateServiceSettingCommand(args);
2064
- if (typeof optionsOrCb === "function") {
2065
- this.send(command, optionsOrCb);
2066
- }
2067
- else if (typeof cb === "function") {
2068
- if (typeof optionsOrCb !== "object")
2069
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2070
- this.send(command, optionsOrCb || {}, cb);
2071
- }
2072
- else {
2073
- return this.send(command, optionsOrCb);
2074
- }
2075
- }
2076
285
  }
2077
286
  exports.SSM = SSM;
287
+ (0, smithy_client_1.createAggregatedClient)(commands, SSM);