@aws-sdk/client-cloudfront 3.183.0 → 3.185.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 (119) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_restXml.js +2 -2
  3. package/dist-es/CloudFront.js +401 -394
  4. package/dist-es/CloudFrontClient.js +28 -22
  5. package/dist-es/commands/AssociateAliasCommand.js +29 -22
  6. package/dist-es/commands/CreateCachePolicyCommand.js +28 -21
  7. package/dist-es/commands/CreateCloudFrontOriginAccessIdentityCommand.js +28 -21
  8. package/dist-es/commands/CreateDistributionCommand.js +28 -21
  9. package/dist-es/commands/CreateDistributionWithTagsCommand.js +28 -21
  10. package/dist-es/commands/CreateFieldLevelEncryptionConfigCommand.js +28 -21
  11. package/dist-es/commands/CreateFieldLevelEncryptionProfileCommand.js +28 -21
  12. package/dist-es/commands/CreateFunctionCommand.js +28 -21
  13. package/dist-es/commands/CreateInvalidationCommand.js +28 -21
  14. package/dist-es/commands/CreateKeyGroupCommand.js +28 -21
  15. package/dist-es/commands/CreateMonitoringSubscriptionCommand.js +28 -21
  16. package/dist-es/commands/CreateOriginAccessControlCommand.js +28 -21
  17. package/dist-es/commands/CreateOriginRequestPolicyCommand.js +28 -21
  18. package/dist-es/commands/CreatePublicKeyCommand.js +28 -21
  19. package/dist-es/commands/CreateRealtimeLogConfigCommand.js +28 -21
  20. package/dist-es/commands/CreateResponseHeadersPolicyCommand.js +28 -21
  21. package/dist-es/commands/CreateStreamingDistributionCommand.js +28 -21
  22. package/dist-es/commands/CreateStreamingDistributionWithTagsCommand.js +28 -21
  23. package/dist-es/commands/DeleteCachePolicyCommand.js +29 -22
  24. package/dist-es/commands/DeleteCloudFrontOriginAccessIdentityCommand.js +29 -22
  25. package/dist-es/commands/DeleteDistributionCommand.js +29 -22
  26. package/dist-es/commands/DeleteFieldLevelEncryptionConfigCommand.js +29 -22
  27. package/dist-es/commands/DeleteFieldLevelEncryptionProfileCommand.js +29 -22
  28. package/dist-es/commands/DeleteFunctionCommand.js +29 -22
  29. package/dist-es/commands/DeleteKeyGroupCommand.js +29 -22
  30. package/dist-es/commands/DeleteMonitoringSubscriptionCommand.js +28 -21
  31. package/dist-es/commands/DeleteOriginAccessControlCommand.js +29 -22
  32. package/dist-es/commands/DeleteOriginRequestPolicyCommand.js +29 -22
  33. package/dist-es/commands/DeletePublicKeyCommand.js +29 -22
  34. package/dist-es/commands/DeleteRealtimeLogConfigCommand.js +29 -22
  35. package/dist-es/commands/DeleteResponseHeadersPolicyCommand.js +29 -22
  36. package/dist-es/commands/DeleteStreamingDistributionCommand.js +29 -22
  37. package/dist-es/commands/DescribeFunctionCommand.js +28 -21
  38. package/dist-es/commands/GetCachePolicyCommand.js +28 -21
  39. package/dist-es/commands/GetCachePolicyConfigCommand.js +28 -21
  40. package/dist-es/commands/GetCloudFrontOriginAccessIdentityCommand.js +28 -21
  41. package/dist-es/commands/GetCloudFrontOriginAccessIdentityConfigCommand.js +28 -21
  42. package/dist-es/commands/GetDistributionCommand.js +28 -21
  43. package/dist-es/commands/GetDistributionConfigCommand.js +28 -21
  44. package/dist-es/commands/GetFieldLevelEncryptionCommand.js +28 -21
  45. package/dist-es/commands/GetFieldLevelEncryptionConfigCommand.js +28 -21
  46. package/dist-es/commands/GetFieldLevelEncryptionProfileCommand.js +28 -21
  47. package/dist-es/commands/GetFieldLevelEncryptionProfileConfigCommand.js +28 -21
  48. package/dist-es/commands/GetFunctionCommand.js +28 -21
  49. package/dist-es/commands/GetInvalidationCommand.js +28 -21
  50. package/dist-es/commands/GetKeyGroupCommand.js +28 -21
  51. package/dist-es/commands/GetKeyGroupConfigCommand.js +28 -21
  52. package/dist-es/commands/GetMonitoringSubscriptionCommand.js +28 -21
  53. package/dist-es/commands/GetOriginAccessControlCommand.js +28 -21
  54. package/dist-es/commands/GetOriginAccessControlConfigCommand.js +28 -21
  55. package/dist-es/commands/GetOriginRequestPolicyCommand.js +28 -21
  56. package/dist-es/commands/GetOriginRequestPolicyConfigCommand.js +28 -21
  57. package/dist-es/commands/GetPublicKeyCommand.js +28 -21
  58. package/dist-es/commands/GetPublicKeyConfigCommand.js +28 -21
  59. package/dist-es/commands/GetRealtimeLogConfigCommand.js +28 -21
  60. package/dist-es/commands/GetResponseHeadersPolicyCommand.js +28 -21
  61. package/dist-es/commands/GetResponseHeadersPolicyConfigCommand.js +28 -21
  62. package/dist-es/commands/GetStreamingDistributionCommand.js +28 -21
  63. package/dist-es/commands/GetStreamingDistributionConfigCommand.js +28 -21
  64. package/dist-es/commands/ListCachePoliciesCommand.js +28 -21
  65. package/dist-es/commands/ListCloudFrontOriginAccessIdentitiesCommand.js +28 -21
  66. package/dist-es/commands/ListConflictingAliasesCommand.js +28 -21
  67. package/dist-es/commands/ListDistributionsByCachePolicyIdCommand.js +28 -21
  68. package/dist-es/commands/ListDistributionsByKeyGroupCommand.js +28 -21
  69. package/dist-es/commands/ListDistributionsByOriginRequestPolicyIdCommand.js +28 -21
  70. package/dist-es/commands/ListDistributionsByRealtimeLogConfigCommand.js +28 -21
  71. package/dist-es/commands/ListDistributionsByResponseHeadersPolicyIdCommand.js +28 -21
  72. package/dist-es/commands/ListDistributionsByWebACLIdCommand.js +28 -21
  73. package/dist-es/commands/ListDistributionsCommand.js +28 -21
  74. package/dist-es/commands/ListFieldLevelEncryptionConfigsCommand.js +28 -21
  75. package/dist-es/commands/ListFieldLevelEncryptionProfilesCommand.js +28 -21
  76. package/dist-es/commands/ListFunctionsCommand.js +28 -21
  77. package/dist-es/commands/ListInvalidationsCommand.js +28 -21
  78. package/dist-es/commands/ListKeyGroupsCommand.js +28 -21
  79. package/dist-es/commands/ListOriginAccessControlsCommand.js +28 -21
  80. package/dist-es/commands/ListOriginRequestPoliciesCommand.js +28 -21
  81. package/dist-es/commands/ListPublicKeysCommand.js +28 -21
  82. package/dist-es/commands/ListRealtimeLogConfigsCommand.js +28 -21
  83. package/dist-es/commands/ListResponseHeadersPoliciesCommand.js +28 -21
  84. package/dist-es/commands/ListStreamingDistributionsCommand.js +28 -21
  85. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  86. package/dist-es/commands/PublishFunctionCommand.js +28 -21
  87. package/dist-es/commands/TagResourceCommand.js +29 -22
  88. package/dist-es/commands/TestFunctionCommand.js +28 -21
  89. package/dist-es/commands/UntagResourceCommand.js +29 -22
  90. package/dist-es/commands/UpdateCachePolicyCommand.js +28 -21
  91. package/dist-es/commands/UpdateCloudFrontOriginAccessIdentityCommand.js +28 -21
  92. package/dist-es/commands/UpdateDistributionCommand.js +28 -21
  93. package/dist-es/commands/UpdateFieldLevelEncryptionConfigCommand.js +28 -21
  94. package/dist-es/commands/UpdateFieldLevelEncryptionProfileCommand.js +28 -21
  95. package/dist-es/commands/UpdateFunctionCommand.js +28 -21
  96. package/dist-es/commands/UpdateKeyGroupCommand.js +28 -21
  97. package/dist-es/commands/UpdateOriginAccessControlCommand.js +28 -21
  98. package/dist-es/commands/UpdateOriginRequestPolicyCommand.js +28 -21
  99. package/dist-es/commands/UpdatePublicKeyCommand.js +28 -21
  100. package/dist-es/commands/UpdateRealtimeLogConfigCommand.js +28 -21
  101. package/dist-es/commands/UpdateResponseHeadersPolicyCommand.js +28 -21
  102. package/dist-es/commands/UpdateStreamingDistributionCommand.js +28 -21
  103. package/dist-es/endpoints.js +8 -8
  104. package/dist-es/models/CloudFrontServiceException.js +10 -5
  105. package/dist-es/models/models_0.js +1689 -2003
  106. package/dist-es/models/models_1.js +414 -770
  107. package/dist-es/pagination/ListCloudFrontOriginAccessIdentitiesPaginator.js +68 -25
  108. package/dist-es/pagination/ListDistributionsPaginator.js +68 -25
  109. package/dist-es/pagination/ListInvalidationsPaginator.js +68 -25
  110. package/dist-es/pagination/ListStreamingDistributionsPaginator.js +68 -25
  111. package/dist-es/protocols/Aws_restXml.js +12767 -9557
  112. package/dist-es/runtimeConfig.browser.js +12 -26
  113. package/dist-es/runtimeConfig.js +12 -30
  114. package/dist-es/runtimeConfig.native.js +5 -8
  115. package/dist-es/runtimeConfig.shared.js +11 -8
  116. package/dist-es/waiters/waitForDistributionDeployed.js +48 -28
  117. package/dist-es/waiters/waitForInvalidationCompleted.js +48 -28
  118. package/dist-es/waiters/waitForStreamingDistributionDeployed.js +48 -28
  119. package/package.json +5 -5
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { CloudFrontClient } from "./CloudFrontClient";
2
3
  import { AssociateAliasCommand, } from "./commands/AssociateAliasCommand";
3
4
  import { CreateCachePolicyCommand, } from "./commands/CreateCachePolicyCommand";
@@ -97,1377 +98,1383 @@ import { UpdatePublicKeyCommand, } from "./commands/UpdatePublicKeyCommand";
97
98
  import { UpdateRealtimeLogConfigCommand, } from "./commands/UpdateRealtimeLogConfigCommand";
98
99
  import { UpdateResponseHeadersPolicyCommand, } from "./commands/UpdateResponseHeadersPolicyCommand";
99
100
  import { UpdateStreamingDistributionCommand, } from "./commands/UpdateStreamingDistributionCommand";
100
- export class CloudFront extends CloudFrontClient {
101
- associateAlias(args, optionsOrCb, cb) {
102
- const command = new AssociateAliasCommand(args);
101
+ var CloudFront = (function (_super) {
102
+ __extends(CloudFront, _super);
103
+ function CloudFront() {
104
+ return _super !== null && _super.apply(this, arguments) || this;
105
+ }
106
+ CloudFront.prototype.associateAlias = function (args, optionsOrCb, cb) {
107
+ var command = new AssociateAliasCommand(args);
103
108
  if (typeof optionsOrCb === "function") {
104
109
  this.send(command, optionsOrCb);
105
110
  }
106
111
  else if (typeof cb === "function") {
107
112
  if (typeof optionsOrCb !== "object")
108
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
113
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
109
114
  this.send(command, optionsOrCb || {}, cb);
110
115
  }
111
116
  else {
112
117
  return this.send(command, optionsOrCb);
113
118
  }
114
- }
115
- createCachePolicy(args, optionsOrCb, cb) {
116
- const command = new CreateCachePolicyCommand(args);
119
+ };
120
+ CloudFront.prototype.createCachePolicy = function (args, optionsOrCb, cb) {
121
+ var command = new CreateCachePolicyCommand(args);
117
122
  if (typeof optionsOrCb === "function") {
118
123
  this.send(command, optionsOrCb);
119
124
  }
120
125
  else if (typeof cb === "function") {
121
126
  if (typeof optionsOrCb !== "object")
122
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
127
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
123
128
  this.send(command, optionsOrCb || {}, cb);
124
129
  }
125
130
  else {
126
131
  return this.send(command, optionsOrCb);
127
132
  }
128
- }
129
- createCloudFrontOriginAccessIdentity(args, optionsOrCb, cb) {
130
- const command = new CreateCloudFrontOriginAccessIdentityCommand(args);
133
+ };
134
+ CloudFront.prototype.createCloudFrontOriginAccessIdentity = function (args, optionsOrCb, cb) {
135
+ var command = new CreateCloudFrontOriginAccessIdentityCommand(args);
131
136
  if (typeof optionsOrCb === "function") {
132
137
  this.send(command, optionsOrCb);
133
138
  }
134
139
  else if (typeof cb === "function") {
135
140
  if (typeof optionsOrCb !== "object")
136
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
141
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
137
142
  this.send(command, optionsOrCb || {}, cb);
138
143
  }
139
144
  else {
140
145
  return this.send(command, optionsOrCb);
141
146
  }
142
- }
143
- createDistribution(args, optionsOrCb, cb) {
144
- const command = new CreateDistributionCommand(args);
147
+ };
148
+ CloudFront.prototype.createDistribution = function (args, optionsOrCb, cb) {
149
+ var command = new CreateDistributionCommand(args);
145
150
  if (typeof optionsOrCb === "function") {
146
151
  this.send(command, optionsOrCb);
147
152
  }
148
153
  else if (typeof cb === "function") {
149
154
  if (typeof optionsOrCb !== "object")
150
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
155
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
151
156
  this.send(command, optionsOrCb || {}, cb);
152
157
  }
153
158
  else {
154
159
  return this.send(command, optionsOrCb);
155
160
  }
156
- }
157
- createDistributionWithTags(args, optionsOrCb, cb) {
158
- const command = new CreateDistributionWithTagsCommand(args);
161
+ };
162
+ CloudFront.prototype.createDistributionWithTags = function (args, optionsOrCb, cb) {
163
+ var command = new CreateDistributionWithTagsCommand(args);
159
164
  if (typeof optionsOrCb === "function") {
160
165
  this.send(command, optionsOrCb);
161
166
  }
162
167
  else if (typeof cb === "function") {
163
168
  if (typeof optionsOrCb !== "object")
164
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
169
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
165
170
  this.send(command, optionsOrCb || {}, cb);
166
171
  }
167
172
  else {
168
173
  return this.send(command, optionsOrCb);
169
174
  }
170
- }
171
- createFieldLevelEncryptionConfig(args, optionsOrCb, cb) {
172
- const command = new CreateFieldLevelEncryptionConfigCommand(args);
175
+ };
176
+ CloudFront.prototype.createFieldLevelEncryptionConfig = function (args, optionsOrCb, cb) {
177
+ var command = new CreateFieldLevelEncryptionConfigCommand(args);
173
178
  if (typeof optionsOrCb === "function") {
174
179
  this.send(command, optionsOrCb);
175
180
  }
176
181
  else if (typeof cb === "function") {
177
182
  if (typeof optionsOrCb !== "object")
178
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
183
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
179
184
  this.send(command, optionsOrCb || {}, cb);
180
185
  }
181
186
  else {
182
187
  return this.send(command, optionsOrCb);
183
188
  }
184
- }
185
- createFieldLevelEncryptionProfile(args, optionsOrCb, cb) {
186
- const command = new CreateFieldLevelEncryptionProfileCommand(args);
189
+ };
190
+ CloudFront.prototype.createFieldLevelEncryptionProfile = function (args, optionsOrCb, cb) {
191
+ var command = new CreateFieldLevelEncryptionProfileCommand(args);
187
192
  if (typeof optionsOrCb === "function") {
188
193
  this.send(command, optionsOrCb);
189
194
  }
190
195
  else if (typeof cb === "function") {
191
196
  if (typeof optionsOrCb !== "object")
192
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
197
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
193
198
  this.send(command, optionsOrCb || {}, cb);
194
199
  }
195
200
  else {
196
201
  return this.send(command, optionsOrCb);
197
202
  }
198
- }
199
- createFunction(args, optionsOrCb, cb) {
200
- const command = new CreateFunctionCommand(args);
203
+ };
204
+ CloudFront.prototype.createFunction = function (args, optionsOrCb, cb) {
205
+ var command = new CreateFunctionCommand(args);
201
206
  if (typeof optionsOrCb === "function") {
202
207
  this.send(command, optionsOrCb);
203
208
  }
204
209
  else if (typeof cb === "function") {
205
210
  if (typeof optionsOrCb !== "object")
206
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
211
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
207
212
  this.send(command, optionsOrCb || {}, cb);
208
213
  }
209
214
  else {
210
215
  return this.send(command, optionsOrCb);
211
216
  }
212
- }
213
- createInvalidation(args, optionsOrCb, cb) {
214
- const command = new CreateInvalidationCommand(args);
217
+ };
218
+ CloudFront.prototype.createInvalidation = function (args, optionsOrCb, cb) {
219
+ var command = new CreateInvalidationCommand(args);
215
220
  if (typeof optionsOrCb === "function") {
216
221
  this.send(command, optionsOrCb);
217
222
  }
218
223
  else if (typeof cb === "function") {
219
224
  if (typeof optionsOrCb !== "object")
220
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
225
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
221
226
  this.send(command, optionsOrCb || {}, cb);
222
227
  }
223
228
  else {
224
229
  return this.send(command, optionsOrCb);
225
230
  }
226
- }
227
- createKeyGroup(args, optionsOrCb, cb) {
228
- const command = new CreateKeyGroupCommand(args);
231
+ };
232
+ CloudFront.prototype.createKeyGroup = function (args, optionsOrCb, cb) {
233
+ var command = new CreateKeyGroupCommand(args);
229
234
  if (typeof optionsOrCb === "function") {
230
235
  this.send(command, optionsOrCb);
231
236
  }
232
237
  else if (typeof cb === "function") {
233
238
  if (typeof optionsOrCb !== "object")
234
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
239
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
235
240
  this.send(command, optionsOrCb || {}, cb);
236
241
  }
237
242
  else {
238
243
  return this.send(command, optionsOrCb);
239
244
  }
240
- }
241
- createMonitoringSubscription(args, optionsOrCb, cb) {
242
- const command = new CreateMonitoringSubscriptionCommand(args);
245
+ };
246
+ CloudFront.prototype.createMonitoringSubscription = function (args, optionsOrCb, cb) {
247
+ var command = new CreateMonitoringSubscriptionCommand(args);
243
248
  if (typeof optionsOrCb === "function") {
244
249
  this.send(command, optionsOrCb);
245
250
  }
246
251
  else if (typeof cb === "function") {
247
252
  if (typeof optionsOrCb !== "object")
248
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
253
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
249
254
  this.send(command, optionsOrCb || {}, cb);
250
255
  }
251
256
  else {
252
257
  return this.send(command, optionsOrCb);
253
258
  }
254
- }
255
- createOriginAccessControl(args, optionsOrCb, cb) {
256
- const command = new CreateOriginAccessControlCommand(args);
259
+ };
260
+ CloudFront.prototype.createOriginAccessControl = function (args, optionsOrCb, cb) {
261
+ var command = new CreateOriginAccessControlCommand(args);
257
262
  if (typeof optionsOrCb === "function") {
258
263
  this.send(command, optionsOrCb);
259
264
  }
260
265
  else if (typeof cb === "function") {
261
266
  if (typeof optionsOrCb !== "object")
262
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
267
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
263
268
  this.send(command, optionsOrCb || {}, cb);
264
269
  }
265
270
  else {
266
271
  return this.send(command, optionsOrCb);
267
272
  }
268
- }
269
- createOriginRequestPolicy(args, optionsOrCb, cb) {
270
- const command = new CreateOriginRequestPolicyCommand(args);
273
+ };
274
+ CloudFront.prototype.createOriginRequestPolicy = function (args, optionsOrCb, cb) {
275
+ var command = new CreateOriginRequestPolicyCommand(args);
271
276
  if (typeof optionsOrCb === "function") {
272
277
  this.send(command, optionsOrCb);
273
278
  }
274
279
  else if (typeof cb === "function") {
275
280
  if (typeof optionsOrCb !== "object")
276
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
281
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
277
282
  this.send(command, optionsOrCb || {}, cb);
278
283
  }
279
284
  else {
280
285
  return this.send(command, optionsOrCb);
281
286
  }
282
- }
283
- createPublicKey(args, optionsOrCb, cb) {
284
- const command = new CreatePublicKeyCommand(args);
287
+ };
288
+ CloudFront.prototype.createPublicKey = function (args, optionsOrCb, cb) {
289
+ var command = new CreatePublicKeyCommand(args);
285
290
  if (typeof optionsOrCb === "function") {
286
291
  this.send(command, optionsOrCb);
287
292
  }
288
293
  else if (typeof cb === "function") {
289
294
  if (typeof optionsOrCb !== "object")
290
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
295
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
291
296
  this.send(command, optionsOrCb || {}, cb);
292
297
  }
293
298
  else {
294
299
  return this.send(command, optionsOrCb);
295
300
  }
296
- }
297
- createRealtimeLogConfig(args, optionsOrCb, cb) {
298
- const command = new CreateRealtimeLogConfigCommand(args);
301
+ };
302
+ CloudFront.prototype.createRealtimeLogConfig = function (args, optionsOrCb, cb) {
303
+ var command = new CreateRealtimeLogConfigCommand(args);
299
304
  if (typeof optionsOrCb === "function") {
300
305
  this.send(command, optionsOrCb);
301
306
  }
302
307
  else if (typeof cb === "function") {
303
308
  if (typeof optionsOrCb !== "object")
304
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
309
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
305
310
  this.send(command, optionsOrCb || {}, cb);
306
311
  }
307
312
  else {
308
313
  return this.send(command, optionsOrCb);
309
314
  }
310
- }
311
- createResponseHeadersPolicy(args, optionsOrCb, cb) {
312
- const command = new CreateResponseHeadersPolicyCommand(args);
315
+ };
316
+ CloudFront.prototype.createResponseHeadersPolicy = function (args, optionsOrCb, cb) {
317
+ var command = new CreateResponseHeadersPolicyCommand(args);
313
318
  if (typeof optionsOrCb === "function") {
314
319
  this.send(command, optionsOrCb);
315
320
  }
316
321
  else if (typeof cb === "function") {
317
322
  if (typeof optionsOrCb !== "object")
318
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
323
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
319
324
  this.send(command, optionsOrCb || {}, cb);
320
325
  }
321
326
  else {
322
327
  return this.send(command, optionsOrCb);
323
328
  }
324
- }
325
- createStreamingDistribution(args, optionsOrCb, cb) {
326
- const command = new CreateStreamingDistributionCommand(args);
329
+ };
330
+ CloudFront.prototype.createStreamingDistribution = function (args, optionsOrCb, cb) {
331
+ var command = new CreateStreamingDistributionCommand(args);
327
332
  if (typeof optionsOrCb === "function") {
328
333
  this.send(command, optionsOrCb);
329
334
  }
330
335
  else if (typeof cb === "function") {
331
336
  if (typeof optionsOrCb !== "object")
332
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
337
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
333
338
  this.send(command, optionsOrCb || {}, cb);
334
339
  }
335
340
  else {
336
341
  return this.send(command, optionsOrCb);
337
342
  }
338
- }
339
- createStreamingDistributionWithTags(args, optionsOrCb, cb) {
340
- const command = new CreateStreamingDistributionWithTagsCommand(args);
343
+ };
344
+ CloudFront.prototype.createStreamingDistributionWithTags = function (args, optionsOrCb, cb) {
345
+ var command = new CreateStreamingDistributionWithTagsCommand(args);
341
346
  if (typeof optionsOrCb === "function") {
342
347
  this.send(command, optionsOrCb);
343
348
  }
344
349
  else if (typeof cb === "function") {
345
350
  if (typeof optionsOrCb !== "object")
346
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
351
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
347
352
  this.send(command, optionsOrCb || {}, cb);
348
353
  }
349
354
  else {
350
355
  return this.send(command, optionsOrCb);
351
356
  }
352
- }
353
- deleteCachePolicy(args, optionsOrCb, cb) {
354
- const command = new DeleteCachePolicyCommand(args);
357
+ };
358
+ CloudFront.prototype.deleteCachePolicy = function (args, optionsOrCb, cb) {
359
+ var command = new DeleteCachePolicyCommand(args);
355
360
  if (typeof optionsOrCb === "function") {
356
361
  this.send(command, optionsOrCb);
357
362
  }
358
363
  else if (typeof cb === "function") {
359
364
  if (typeof optionsOrCb !== "object")
360
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
365
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
361
366
  this.send(command, optionsOrCb || {}, cb);
362
367
  }
363
368
  else {
364
369
  return this.send(command, optionsOrCb);
365
370
  }
366
- }
367
- deleteCloudFrontOriginAccessIdentity(args, optionsOrCb, cb) {
368
- const command = new DeleteCloudFrontOriginAccessIdentityCommand(args);
371
+ };
372
+ CloudFront.prototype.deleteCloudFrontOriginAccessIdentity = function (args, optionsOrCb, cb) {
373
+ var command = new DeleteCloudFrontOriginAccessIdentityCommand(args);
369
374
  if (typeof optionsOrCb === "function") {
370
375
  this.send(command, optionsOrCb);
371
376
  }
372
377
  else if (typeof cb === "function") {
373
378
  if (typeof optionsOrCb !== "object")
374
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
379
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
375
380
  this.send(command, optionsOrCb || {}, cb);
376
381
  }
377
382
  else {
378
383
  return this.send(command, optionsOrCb);
379
384
  }
380
- }
381
- deleteDistribution(args, optionsOrCb, cb) {
382
- const command = new DeleteDistributionCommand(args);
385
+ };
386
+ CloudFront.prototype.deleteDistribution = function (args, optionsOrCb, cb) {
387
+ var command = new DeleteDistributionCommand(args);
383
388
  if (typeof optionsOrCb === "function") {
384
389
  this.send(command, optionsOrCb);
385
390
  }
386
391
  else if (typeof cb === "function") {
387
392
  if (typeof optionsOrCb !== "object")
388
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
393
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
389
394
  this.send(command, optionsOrCb || {}, cb);
390
395
  }
391
396
  else {
392
397
  return this.send(command, optionsOrCb);
393
398
  }
394
- }
395
- deleteFieldLevelEncryptionConfig(args, optionsOrCb, cb) {
396
- const command = new DeleteFieldLevelEncryptionConfigCommand(args);
399
+ };
400
+ CloudFront.prototype.deleteFieldLevelEncryptionConfig = function (args, optionsOrCb, cb) {
401
+ var command = new DeleteFieldLevelEncryptionConfigCommand(args);
397
402
  if (typeof optionsOrCb === "function") {
398
403
  this.send(command, optionsOrCb);
399
404
  }
400
405
  else if (typeof cb === "function") {
401
406
  if (typeof optionsOrCb !== "object")
402
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
407
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
403
408
  this.send(command, optionsOrCb || {}, cb);
404
409
  }
405
410
  else {
406
411
  return this.send(command, optionsOrCb);
407
412
  }
408
- }
409
- deleteFieldLevelEncryptionProfile(args, optionsOrCb, cb) {
410
- const command = new DeleteFieldLevelEncryptionProfileCommand(args);
413
+ };
414
+ CloudFront.prototype.deleteFieldLevelEncryptionProfile = function (args, optionsOrCb, cb) {
415
+ var command = new DeleteFieldLevelEncryptionProfileCommand(args);
411
416
  if (typeof optionsOrCb === "function") {
412
417
  this.send(command, optionsOrCb);
413
418
  }
414
419
  else if (typeof cb === "function") {
415
420
  if (typeof optionsOrCb !== "object")
416
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
421
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
417
422
  this.send(command, optionsOrCb || {}, cb);
418
423
  }
419
424
  else {
420
425
  return this.send(command, optionsOrCb);
421
426
  }
422
- }
423
- deleteFunction(args, optionsOrCb, cb) {
424
- const command = new DeleteFunctionCommand(args);
427
+ };
428
+ CloudFront.prototype.deleteFunction = function (args, optionsOrCb, cb) {
429
+ var command = new DeleteFunctionCommand(args);
425
430
  if (typeof optionsOrCb === "function") {
426
431
  this.send(command, optionsOrCb);
427
432
  }
428
433
  else if (typeof cb === "function") {
429
434
  if (typeof optionsOrCb !== "object")
430
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
435
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
431
436
  this.send(command, optionsOrCb || {}, cb);
432
437
  }
433
438
  else {
434
439
  return this.send(command, optionsOrCb);
435
440
  }
436
- }
437
- deleteKeyGroup(args, optionsOrCb, cb) {
438
- const command = new DeleteKeyGroupCommand(args);
441
+ };
442
+ CloudFront.prototype.deleteKeyGroup = function (args, optionsOrCb, cb) {
443
+ var command = new DeleteKeyGroupCommand(args);
439
444
  if (typeof optionsOrCb === "function") {
440
445
  this.send(command, optionsOrCb);
441
446
  }
442
447
  else if (typeof cb === "function") {
443
448
  if (typeof optionsOrCb !== "object")
444
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
449
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
445
450
  this.send(command, optionsOrCb || {}, cb);
446
451
  }
447
452
  else {
448
453
  return this.send(command, optionsOrCb);
449
454
  }
450
- }
451
- deleteMonitoringSubscription(args, optionsOrCb, cb) {
452
- const command = new DeleteMonitoringSubscriptionCommand(args);
455
+ };
456
+ CloudFront.prototype.deleteMonitoringSubscription = function (args, optionsOrCb, cb) {
457
+ var command = new DeleteMonitoringSubscriptionCommand(args);
453
458
  if (typeof optionsOrCb === "function") {
454
459
  this.send(command, optionsOrCb);
455
460
  }
456
461
  else if (typeof cb === "function") {
457
462
  if (typeof optionsOrCb !== "object")
458
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
463
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
459
464
  this.send(command, optionsOrCb || {}, cb);
460
465
  }
461
466
  else {
462
467
  return this.send(command, optionsOrCb);
463
468
  }
464
- }
465
- deleteOriginAccessControl(args, optionsOrCb, cb) {
466
- const command = new DeleteOriginAccessControlCommand(args);
469
+ };
470
+ CloudFront.prototype.deleteOriginAccessControl = function (args, optionsOrCb, cb) {
471
+ var command = new DeleteOriginAccessControlCommand(args);
467
472
  if (typeof optionsOrCb === "function") {
468
473
  this.send(command, optionsOrCb);
469
474
  }
470
475
  else if (typeof cb === "function") {
471
476
  if (typeof optionsOrCb !== "object")
472
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
477
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
473
478
  this.send(command, optionsOrCb || {}, cb);
474
479
  }
475
480
  else {
476
481
  return this.send(command, optionsOrCb);
477
482
  }
478
- }
479
- deleteOriginRequestPolicy(args, optionsOrCb, cb) {
480
- const command = new DeleteOriginRequestPolicyCommand(args);
483
+ };
484
+ CloudFront.prototype.deleteOriginRequestPolicy = function (args, optionsOrCb, cb) {
485
+ var command = new DeleteOriginRequestPolicyCommand(args);
481
486
  if (typeof optionsOrCb === "function") {
482
487
  this.send(command, optionsOrCb);
483
488
  }
484
489
  else if (typeof cb === "function") {
485
490
  if (typeof optionsOrCb !== "object")
486
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
491
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
487
492
  this.send(command, optionsOrCb || {}, cb);
488
493
  }
489
494
  else {
490
495
  return this.send(command, optionsOrCb);
491
496
  }
492
- }
493
- deletePublicKey(args, optionsOrCb, cb) {
494
- const command = new DeletePublicKeyCommand(args);
497
+ };
498
+ CloudFront.prototype.deletePublicKey = function (args, optionsOrCb, cb) {
499
+ var command = new DeletePublicKeyCommand(args);
495
500
  if (typeof optionsOrCb === "function") {
496
501
  this.send(command, optionsOrCb);
497
502
  }
498
503
  else if (typeof cb === "function") {
499
504
  if (typeof optionsOrCb !== "object")
500
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
505
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
501
506
  this.send(command, optionsOrCb || {}, cb);
502
507
  }
503
508
  else {
504
509
  return this.send(command, optionsOrCb);
505
510
  }
506
- }
507
- deleteRealtimeLogConfig(args, optionsOrCb, cb) {
508
- const command = new DeleteRealtimeLogConfigCommand(args);
511
+ };
512
+ CloudFront.prototype.deleteRealtimeLogConfig = function (args, optionsOrCb, cb) {
513
+ var command = new DeleteRealtimeLogConfigCommand(args);
509
514
  if (typeof optionsOrCb === "function") {
510
515
  this.send(command, optionsOrCb);
511
516
  }
512
517
  else if (typeof cb === "function") {
513
518
  if (typeof optionsOrCb !== "object")
514
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
519
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
515
520
  this.send(command, optionsOrCb || {}, cb);
516
521
  }
517
522
  else {
518
523
  return this.send(command, optionsOrCb);
519
524
  }
520
- }
521
- deleteResponseHeadersPolicy(args, optionsOrCb, cb) {
522
- const command = new DeleteResponseHeadersPolicyCommand(args);
525
+ };
526
+ CloudFront.prototype.deleteResponseHeadersPolicy = function (args, optionsOrCb, cb) {
527
+ var command = new DeleteResponseHeadersPolicyCommand(args);
523
528
  if (typeof optionsOrCb === "function") {
524
529
  this.send(command, optionsOrCb);
525
530
  }
526
531
  else if (typeof cb === "function") {
527
532
  if (typeof optionsOrCb !== "object")
528
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
533
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
529
534
  this.send(command, optionsOrCb || {}, cb);
530
535
  }
531
536
  else {
532
537
  return this.send(command, optionsOrCb);
533
538
  }
534
- }
535
- deleteStreamingDistribution(args, optionsOrCb, cb) {
536
- const command = new DeleteStreamingDistributionCommand(args);
539
+ };
540
+ CloudFront.prototype.deleteStreamingDistribution = function (args, optionsOrCb, cb) {
541
+ var command = new DeleteStreamingDistributionCommand(args);
537
542
  if (typeof optionsOrCb === "function") {
538
543
  this.send(command, optionsOrCb);
539
544
  }
540
545
  else if (typeof cb === "function") {
541
546
  if (typeof optionsOrCb !== "object")
542
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
547
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
543
548
  this.send(command, optionsOrCb || {}, cb);
544
549
  }
545
550
  else {
546
551
  return this.send(command, optionsOrCb);
547
552
  }
548
- }
549
- describeFunction(args, optionsOrCb, cb) {
550
- const command = new DescribeFunctionCommand(args);
553
+ };
554
+ CloudFront.prototype.describeFunction = function (args, optionsOrCb, cb) {
555
+ var command = new DescribeFunctionCommand(args);
551
556
  if (typeof optionsOrCb === "function") {
552
557
  this.send(command, optionsOrCb);
553
558
  }
554
559
  else if (typeof cb === "function") {
555
560
  if (typeof optionsOrCb !== "object")
556
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
561
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
557
562
  this.send(command, optionsOrCb || {}, cb);
558
563
  }
559
564
  else {
560
565
  return this.send(command, optionsOrCb);
561
566
  }
562
- }
563
- getCachePolicy(args, optionsOrCb, cb) {
564
- const command = new GetCachePolicyCommand(args);
567
+ };
568
+ CloudFront.prototype.getCachePolicy = function (args, optionsOrCb, cb) {
569
+ var command = new GetCachePolicyCommand(args);
565
570
  if (typeof optionsOrCb === "function") {
566
571
  this.send(command, optionsOrCb);
567
572
  }
568
573
  else if (typeof cb === "function") {
569
574
  if (typeof optionsOrCb !== "object")
570
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
575
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
571
576
  this.send(command, optionsOrCb || {}, cb);
572
577
  }
573
578
  else {
574
579
  return this.send(command, optionsOrCb);
575
580
  }
576
- }
577
- getCachePolicyConfig(args, optionsOrCb, cb) {
578
- const command = new GetCachePolicyConfigCommand(args);
581
+ };
582
+ CloudFront.prototype.getCachePolicyConfig = function (args, optionsOrCb, cb) {
583
+ var command = new GetCachePolicyConfigCommand(args);
579
584
  if (typeof optionsOrCb === "function") {
580
585
  this.send(command, optionsOrCb);
581
586
  }
582
587
  else if (typeof cb === "function") {
583
588
  if (typeof optionsOrCb !== "object")
584
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
589
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
585
590
  this.send(command, optionsOrCb || {}, cb);
586
591
  }
587
592
  else {
588
593
  return this.send(command, optionsOrCb);
589
594
  }
590
- }
591
- getCloudFrontOriginAccessIdentity(args, optionsOrCb, cb) {
592
- const command = new GetCloudFrontOriginAccessIdentityCommand(args);
595
+ };
596
+ CloudFront.prototype.getCloudFrontOriginAccessIdentity = function (args, optionsOrCb, cb) {
597
+ var command = new GetCloudFrontOriginAccessIdentityCommand(args);
593
598
  if (typeof optionsOrCb === "function") {
594
599
  this.send(command, optionsOrCb);
595
600
  }
596
601
  else if (typeof cb === "function") {
597
602
  if (typeof optionsOrCb !== "object")
598
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
603
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
599
604
  this.send(command, optionsOrCb || {}, cb);
600
605
  }
601
606
  else {
602
607
  return this.send(command, optionsOrCb);
603
608
  }
604
- }
605
- getCloudFrontOriginAccessIdentityConfig(args, optionsOrCb, cb) {
606
- const command = new GetCloudFrontOriginAccessIdentityConfigCommand(args);
609
+ };
610
+ CloudFront.prototype.getCloudFrontOriginAccessIdentityConfig = function (args, optionsOrCb, cb) {
611
+ var command = new GetCloudFrontOriginAccessIdentityConfigCommand(args);
607
612
  if (typeof optionsOrCb === "function") {
608
613
  this.send(command, optionsOrCb);
609
614
  }
610
615
  else if (typeof cb === "function") {
611
616
  if (typeof optionsOrCb !== "object")
612
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
617
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
613
618
  this.send(command, optionsOrCb || {}, cb);
614
619
  }
615
620
  else {
616
621
  return this.send(command, optionsOrCb);
617
622
  }
618
- }
619
- getDistribution(args, optionsOrCb, cb) {
620
- const command = new GetDistributionCommand(args);
623
+ };
624
+ CloudFront.prototype.getDistribution = function (args, optionsOrCb, cb) {
625
+ var command = new GetDistributionCommand(args);
621
626
  if (typeof optionsOrCb === "function") {
622
627
  this.send(command, optionsOrCb);
623
628
  }
624
629
  else if (typeof cb === "function") {
625
630
  if (typeof optionsOrCb !== "object")
626
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
631
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
627
632
  this.send(command, optionsOrCb || {}, cb);
628
633
  }
629
634
  else {
630
635
  return this.send(command, optionsOrCb);
631
636
  }
632
- }
633
- getDistributionConfig(args, optionsOrCb, cb) {
634
- const command = new GetDistributionConfigCommand(args);
637
+ };
638
+ CloudFront.prototype.getDistributionConfig = function (args, optionsOrCb, cb) {
639
+ var command = new GetDistributionConfigCommand(args);
635
640
  if (typeof optionsOrCb === "function") {
636
641
  this.send(command, optionsOrCb);
637
642
  }
638
643
  else if (typeof cb === "function") {
639
644
  if (typeof optionsOrCb !== "object")
640
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
645
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
641
646
  this.send(command, optionsOrCb || {}, cb);
642
647
  }
643
648
  else {
644
649
  return this.send(command, optionsOrCb);
645
650
  }
646
- }
647
- getFieldLevelEncryption(args, optionsOrCb, cb) {
648
- const command = new GetFieldLevelEncryptionCommand(args);
651
+ };
652
+ CloudFront.prototype.getFieldLevelEncryption = function (args, optionsOrCb, cb) {
653
+ var command = new GetFieldLevelEncryptionCommand(args);
649
654
  if (typeof optionsOrCb === "function") {
650
655
  this.send(command, optionsOrCb);
651
656
  }
652
657
  else if (typeof cb === "function") {
653
658
  if (typeof optionsOrCb !== "object")
654
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
659
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
655
660
  this.send(command, optionsOrCb || {}, cb);
656
661
  }
657
662
  else {
658
663
  return this.send(command, optionsOrCb);
659
664
  }
660
- }
661
- getFieldLevelEncryptionConfig(args, optionsOrCb, cb) {
662
- const command = new GetFieldLevelEncryptionConfigCommand(args);
665
+ };
666
+ CloudFront.prototype.getFieldLevelEncryptionConfig = function (args, optionsOrCb, cb) {
667
+ var command = new GetFieldLevelEncryptionConfigCommand(args);
663
668
  if (typeof optionsOrCb === "function") {
664
669
  this.send(command, optionsOrCb);
665
670
  }
666
671
  else if (typeof cb === "function") {
667
672
  if (typeof optionsOrCb !== "object")
668
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
673
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
669
674
  this.send(command, optionsOrCb || {}, cb);
670
675
  }
671
676
  else {
672
677
  return this.send(command, optionsOrCb);
673
678
  }
674
- }
675
- getFieldLevelEncryptionProfile(args, optionsOrCb, cb) {
676
- const command = new GetFieldLevelEncryptionProfileCommand(args);
679
+ };
680
+ CloudFront.prototype.getFieldLevelEncryptionProfile = function (args, optionsOrCb, cb) {
681
+ var command = new GetFieldLevelEncryptionProfileCommand(args);
677
682
  if (typeof optionsOrCb === "function") {
678
683
  this.send(command, optionsOrCb);
679
684
  }
680
685
  else if (typeof cb === "function") {
681
686
  if (typeof optionsOrCb !== "object")
682
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
687
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
683
688
  this.send(command, optionsOrCb || {}, cb);
684
689
  }
685
690
  else {
686
691
  return this.send(command, optionsOrCb);
687
692
  }
688
- }
689
- getFieldLevelEncryptionProfileConfig(args, optionsOrCb, cb) {
690
- const command = new GetFieldLevelEncryptionProfileConfigCommand(args);
693
+ };
694
+ CloudFront.prototype.getFieldLevelEncryptionProfileConfig = function (args, optionsOrCb, cb) {
695
+ var command = new GetFieldLevelEncryptionProfileConfigCommand(args);
691
696
  if (typeof optionsOrCb === "function") {
692
697
  this.send(command, optionsOrCb);
693
698
  }
694
699
  else if (typeof cb === "function") {
695
700
  if (typeof optionsOrCb !== "object")
696
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
701
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
697
702
  this.send(command, optionsOrCb || {}, cb);
698
703
  }
699
704
  else {
700
705
  return this.send(command, optionsOrCb);
701
706
  }
702
- }
703
- getFunction(args, optionsOrCb, cb) {
704
- const command = new GetFunctionCommand(args);
707
+ };
708
+ CloudFront.prototype.getFunction = function (args, optionsOrCb, cb) {
709
+ var command = new GetFunctionCommand(args);
705
710
  if (typeof optionsOrCb === "function") {
706
711
  this.send(command, optionsOrCb);
707
712
  }
708
713
  else if (typeof cb === "function") {
709
714
  if (typeof optionsOrCb !== "object")
710
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
715
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
711
716
  this.send(command, optionsOrCb || {}, cb);
712
717
  }
713
718
  else {
714
719
  return this.send(command, optionsOrCb);
715
720
  }
716
- }
717
- getInvalidation(args, optionsOrCb, cb) {
718
- const command = new GetInvalidationCommand(args);
721
+ };
722
+ CloudFront.prototype.getInvalidation = function (args, optionsOrCb, cb) {
723
+ var command = new GetInvalidationCommand(args);
719
724
  if (typeof optionsOrCb === "function") {
720
725
  this.send(command, optionsOrCb);
721
726
  }
722
727
  else if (typeof cb === "function") {
723
728
  if (typeof optionsOrCb !== "object")
724
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
729
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
725
730
  this.send(command, optionsOrCb || {}, cb);
726
731
  }
727
732
  else {
728
733
  return this.send(command, optionsOrCb);
729
734
  }
730
- }
731
- getKeyGroup(args, optionsOrCb, cb) {
732
- const command = new GetKeyGroupCommand(args);
735
+ };
736
+ CloudFront.prototype.getKeyGroup = function (args, optionsOrCb, cb) {
737
+ var command = new GetKeyGroupCommand(args);
733
738
  if (typeof optionsOrCb === "function") {
734
739
  this.send(command, optionsOrCb);
735
740
  }
736
741
  else if (typeof cb === "function") {
737
742
  if (typeof optionsOrCb !== "object")
738
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
743
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
739
744
  this.send(command, optionsOrCb || {}, cb);
740
745
  }
741
746
  else {
742
747
  return this.send(command, optionsOrCb);
743
748
  }
744
- }
745
- getKeyGroupConfig(args, optionsOrCb, cb) {
746
- const command = new GetKeyGroupConfigCommand(args);
749
+ };
750
+ CloudFront.prototype.getKeyGroupConfig = function (args, optionsOrCb, cb) {
751
+ var command = new GetKeyGroupConfigCommand(args);
747
752
  if (typeof optionsOrCb === "function") {
748
753
  this.send(command, optionsOrCb);
749
754
  }
750
755
  else if (typeof cb === "function") {
751
756
  if (typeof optionsOrCb !== "object")
752
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
757
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
753
758
  this.send(command, optionsOrCb || {}, cb);
754
759
  }
755
760
  else {
756
761
  return this.send(command, optionsOrCb);
757
762
  }
758
- }
759
- getMonitoringSubscription(args, optionsOrCb, cb) {
760
- const command = new GetMonitoringSubscriptionCommand(args);
763
+ };
764
+ CloudFront.prototype.getMonitoringSubscription = function (args, optionsOrCb, cb) {
765
+ var command = new GetMonitoringSubscriptionCommand(args);
761
766
  if (typeof optionsOrCb === "function") {
762
767
  this.send(command, optionsOrCb);
763
768
  }
764
769
  else if (typeof cb === "function") {
765
770
  if (typeof optionsOrCb !== "object")
766
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
771
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
767
772
  this.send(command, optionsOrCb || {}, cb);
768
773
  }
769
774
  else {
770
775
  return this.send(command, optionsOrCb);
771
776
  }
772
- }
773
- getOriginAccessControl(args, optionsOrCb, cb) {
774
- const command = new GetOriginAccessControlCommand(args);
777
+ };
778
+ CloudFront.prototype.getOriginAccessControl = function (args, optionsOrCb, cb) {
779
+ var command = new GetOriginAccessControlCommand(args);
775
780
  if (typeof optionsOrCb === "function") {
776
781
  this.send(command, optionsOrCb);
777
782
  }
778
783
  else if (typeof cb === "function") {
779
784
  if (typeof optionsOrCb !== "object")
780
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
785
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
781
786
  this.send(command, optionsOrCb || {}, cb);
782
787
  }
783
788
  else {
784
789
  return this.send(command, optionsOrCb);
785
790
  }
786
- }
787
- getOriginAccessControlConfig(args, optionsOrCb, cb) {
788
- const command = new GetOriginAccessControlConfigCommand(args);
791
+ };
792
+ CloudFront.prototype.getOriginAccessControlConfig = function (args, optionsOrCb, cb) {
793
+ var command = new GetOriginAccessControlConfigCommand(args);
789
794
  if (typeof optionsOrCb === "function") {
790
795
  this.send(command, optionsOrCb);
791
796
  }
792
797
  else if (typeof cb === "function") {
793
798
  if (typeof optionsOrCb !== "object")
794
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
799
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
795
800
  this.send(command, optionsOrCb || {}, cb);
796
801
  }
797
802
  else {
798
803
  return this.send(command, optionsOrCb);
799
804
  }
800
- }
801
- getOriginRequestPolicy(args, optionsOrCb, cb) {
802
- const command = new GetOriginRequestPolicyCommand(args);
805
+ };
806
+ CloudFront.prototype.getOriginRequestPolicy = function (args, optionsOrCb, cb) {
807
+ var command = new GetOriginRequestPolicyCommand(args);
803
808
  if (typeof optionsOrCb === "function") {
804
809
  this.send(command, optionsOrCb);
805
810
  }
806
811
  else if (typeof cb === "function") {
807
812
  if (typeof optionsOrCb !== "object")
808
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
813
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
809
814
  this.send(command, optionsOrCb || {}, cb);
810
815
  }
811
816
  else {
812
817
  return this.send(command, optionsOrCb);
813
818
  }
814
- }
815
- getOriginRequestPolicyConfig(args, optionsOrCb, cb) {
816
- const command = new GetOriginRequestPolicyConfigCommand(args);
819
+ };
820
+ CloudFront.prototype.getOriginRequestPolicyConfig = function (args, optionsOrCb, cb) {
821
+ var command = new GetOriginRequestPolicyConfigCommand(args);
817
822
  if (typeof optionsOrCb === "function") {
818
823
  this.send(command, optionsOrCb);
819
824
  }
820
825
  else if (typeof cb === "function") {
821
826
  if (typeof optionsOrCb !== "object")
822
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
827
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
823
828
  this.send(command, optionsOrCb || {}, cb);
824
829
  }
825
830
  else {
826
831
  return this.send(command, optionsOrCb);
827
832
  }
828
- }
829
- getPublicKey(args, optionsOrCb, cb) {
830
- const command = new GetPublicKeyCommand(args);
833
+ };
834
+ CloudFront.prototype.getPublicKey = function (args, optionsOrCb, cb) {
835
+ var command = new GetPublicKeyCommand(args);
831
836
  if (typeof optionsOrCb === "function") {
832
837
  this.send(command, optionsOrCb);
833
838
  }
834
839
  else if (typeof cb === "function") {
835
840
  if (typeof optionsOrCb !== "object")
836
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
841
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
837
842
  this.send(command, optionsOrCb || {}, cb);
838
843
  }
839
844
  else {
840
845
  return this.send(command, optionsOrCb);
841
846
  }
842
- }
843
- getPublicKeyConfig(args, optionsOrCb, cb) {
844
- const command = new GetPublicKeyConfigCommand(args);
847
+ };
848
+ CloudFront.prototype.getPublicKeyConfig = function (args, optionsOrCb, cb) {
849
+ var command = new GetPublicKeyConfigCommand(args);
845
850
  if (typeof optionsOrCb === "function") {
846
851
  this.send(command, optionsOrCb);
847
852
  }
848
853
  else if (typeof cb === "function") {
849
854
  if (typeof optionsOrCb !== "object")
850
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
855
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
851
856
  this.send(command, optionsOrCb || {}, cb);
852
857
  }
853
858
  else {
854
859
  return this.send(command, optionsOrCb);
855
860
  }
856
- }
857
- getRealtimeLogConfig(args, optionsOrCb, cb) {
858
- const command = new GetRealtimeLogConfigCommand(args);
861
+ };
862
+ CloudFront.prototype.getRealtimeLogConfig = function (args, optionsOrCb, cb) {
863
+ var command = new GetRealtimeLogConfigCommand(args);
859
864
  if (typeof optionsOrCb === "function") {
860
865
  this.send(command, optionsOrCb);
861
866
  }
862
867
  else if (typeof cb === "function") {
863
868
  if (typeof optionsOrCb !== "object")
864
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
869
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
865
870
  this.send(command, optionsOrCb || {}, cb);
866
871
  }
867
872
  else {
868
873
  return this.send(command, optionsOrCb);
869
874
  }
870
- }
871
- getResponseHeadersPolicy(args, optionsOrCb, cb) {
872
- const command = new GetResponseHeadersPolicyCommand(args);
875
+ };
876
+ CloudFront.prototype.getResponseHeadersPolicy = function (args, optionsOrCb, cb) {
877
+ var command = new GetResponseHeadersPolicyCommand(args);
873
878
  if (typeof optionsOrCb === "function") {
874
879
  this.send(command, optionsOrCb);
875
880
  }
876
881
  else if (typeof cb === "function") {
877
882
  if (typeof optionsOrCb !== "object")
878
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
883
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
879
884
  this.send(command, optionsOrCb || {}, cb);
880
885
  }
881
886
  else {
882
887
  return this.send(command, optionsOrCb);
883
888
  }
884
- }
885
- getResponseHeadersPolicyConfig(args, optionsOrCb, cb) {
886
- const command = new GetResponseHeadersPolicyConfigCommand(args);
889
+ };
890
+ CloudFront.prototype.getResponseHeadersPolicyConfig = function (args, optionsOrCb, cb) {
891
+ var command = new GetResponseHeadersPolicyConfigCommand(args);
887
892
  if (typeof optionsOrCb === "function") {
888
893
  this.send(command, optionsOrCb);
889
894
  }
890
895
  else if (typeof cb === "function") {
891
896
  if (typeof optionsOrCb !== "object")
892
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
897
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
893
898
  this.send(command, optionsOrCb || {}, cb);
894
899
  }
895
900
  else {
896
901
  return this.send(command, optionsOrCb);
897
902
  }
898
- }
899
- getStreamingDistribution(args, optionsOrCb, cb) {
900
- const command = new GetStreamingDistributionCommand(args);
903
+ };
904
+ CloudFront.prototype.getStreamingDistribution = function (args, optionsOrCb, cb) {
905
+ var command = new GetStreamingDistributionCommand(args);
901
906
  if (typeof optionsOrCb === "function") {
902
907
  this.send(command, optionsOrCb);
903
908
  }
904
909
  else if (typeof cb === "function") {
905
910
  if (typeof optionsOrCb !== "object")
906
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
911
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
907
912
  this.send(command, optionsOrCb || {}, cb);
908
913
  }
909
914
  else {
910
915
  return this.send(command, optionsOrCb);
911
916
  }
912
- }
913
- getStreamingDistributionConfig(args, optionsOrCb, cb) {
914
- const command = new GetStreamingDistributionConfigCommand(args);
917
+ };
918
+ CloudFront.prototype.getStreamingDistributionConfig = function (args, optionsOrCb, cb) {
919
+ var command = new GetStreamingDistributionConfigCommand(args);
915
920
  if (typeof optionsOrCb === "function") {
916
921
  this.send(command, optionsOrCb);
917
922
  }
918
923
  else if (typeof cb === "function") {
919
924
  if (typeof optionsOrCb !== "object")
920
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
925
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
921
926
  this.send(command, optionsOrCb || {}, cb);
922
927
  }
923
928
  else {
924
929
  return this.send(command, optionsOrCb);
925
930
  }
926
- }
927
- listCachePolicies(args, optionsOrCb, cb) {
928
- const command = new ListCachePoliciesCommand(args);
931
+ };
932
+ CloudFront.prototype.listCachePolicies = function (args, optionsOrCb, cb) {
933
+ var command = new ListCachePoliciesCommand(args);
929
934
  if (typeof optionsOrCb === "function") {
930
935
  this.send(command, optionsOrCb);
931
936
  }
932
937
  else if (typeof cb === "function") {
933
938
  if (typeof optionsOrCb !== "object")
934
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
939
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
935
940
  this.send(command, optionsOrCb || {}, cb);
936
941
  }
937
942
  else {
938
943
  return this.send(command, optionsOrCb);
939
944
  }
940
- }
941
- listCloudFrontOriginAccessIdentities(args, optionsOrCb, cb) {
942
- const command = new ListCloudFrontOriginAccessIdentitiesCommand(args);
945
+ };
946
+ CloudFront.prototype.listCloudFrontOriginAccessIdentities = function (args, optionsOrCb, cb) {
947
+ var command = new ListCloudFrontOriginAccessIdentitiesCommand(args);
943
948
  if (typeof optionsOrCb === "function") {
944
949
  this.send(command, optionsOrCb);
945
950
  }
946
951
  else if (typeof cb === "function") {
947
952
  if (typeof optionsOrCb !== "object")
948
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
953
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
949
954
  this.send(command, optionsOrCb || {}, cb);
950
955
  }
951
956
  else {
952
957
  return this.send(command, optionsOrCb);
953
958
  }
954
- }
955
- listConflictingAliases(args, optionsOrCb, cb) {
956
- const command = new ListConflictingAliasesCommand(args);
959
+ };
960
+ CloudFront.prototype.listConflictingAliases = function (args, optionsOrCb, cb) {
961
+ var command = new ListConflictingAliasesCommand(args);
957
962
  if (typeof optionsOrCb === "function") {
958
963
  this.send(command, optionsOrCb);
959
964
  }
960
965
  else if (typeof cb === "function") {
961
966
  if (typeof optionsOrCb !== "object")
962
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
967
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
963
968
  this.send(command, optionsOrCb || {}, cb);
964
969
  }
965
970
  else {
966
971
  return this.send(command, optionsOrCb);
967
972
  }
968
- }
969
- listDistributions(args, optionsOrCb, cb) {
970
- const command = new ListDistributionsCommand(args);
973
+ };
974
+ CloudFront.prototype.listDistributions = function (args, optionsOrCb, cb) {
975
+ var command = new ListDistributionsCommand(args);
971
976
  if (typeof optionsOrCb === "function") {
972
977
  this.send(command, optionsOrCb);
973
978
  }
974
979
  else if (typeof cb === "function") {
975
980
  if (typeof optionsOrCb !== "object")
976
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
981
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
977
982
  this.send(command, optionsOrCb || {}, cb);
978
983
  }
979
984
  else {
980
985
  return this.send(command, optionsOrCb);
981
986
  }
982
- }
983
- listDistributionsByCachePolicyId(args, optionsOrCb, cb) {
984
- const command = new ListDistributionsByCachePolicyIdCommand(args);
987
+ };
988
+ CloudFront.prototype.listDistributionsByCachePolicyId = function (args, optionsOrCb, cb) {
989
+ var command = new ListDistributionsByCachePolicyIdCommand(args);
985
990
  if (typeof optionsOrCb === "function") {
986
991
  this.send(command, optionsOrCb);
987
992
  }
988
993
  else if (typeof cb === "function") {
989
994
  if (typeof optionsOrCb !== "object")
990
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
995
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
991
996
  this.send(command, optionsOrCb || {}, cb);
992
997
  }
993
998
  else {
994
999
  return this.send(command, optionsOrCb);
995
1000
  }
996
- }
997
- listDistributionsByKeyGroup(args, optionsOrCb, cb) {
998
- const command = new ListDistributionsByKeyGroupCommand(args);
1001
+ };
1002
+ CloudFront.prototype.listDistributionsByKeyGroup = function (args, optionsOrCb, cb) {
1003
+ var command = new ListDistributionsByKeyGroupCommand(args);
999
1004
  if (typeof optionsOrCb === "function") {
1000
1005
  this.send(command, optionsOrCb);
1001
1006
  }
1002
1007
  else if (typeof cb === "function") {
1003
1008
  if (typeof optionsOrCb !== "object")
1004
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1009
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1005
1010
  this.send(command, optionsOrCb || {}, cb);
1006
1011
  }
1007
1012
  else {
1008
1013
  return this.send(command, optionsOrCb);
1009
1014
  }
1010
- }
1011
- listDistributionsByOriginRequestPolicyId(args, optionsOrCb, cb) {
1012
- const command = new ListDistributionsByOriginRequestPolicyIdCommand(args);
1015
+ };
1016
+ CloudFront.prototype.listDistributionsByOriginRequestPolicyId = function (args, optionsOrCb, cb) {
1017
+ var command = new ListDistributionsByOriginRequestPolicyIdCommand(args);
1013
1018
  if (typeof optionsOrCb === "function") {
1014
1019
  this.send(command, optionsOrCb);
1015
1020
  }
1016
1021
  else if (typeof cb === "function") {
1017
1022
  if (typeof optionsOrCb !== "object")
1018
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1023
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1019
1024
  this.send(command, optionsOrCb || {}, cb);
1020
1025
  }
1021
1026
  else {
1022
1027
  return this.send(command, optionsOrCb);
1023
1028
  }
1024
- }
1025
- listDistributionsByRealtimeLogConfig(args, optionsOrCb, cb) {
1026
- const command = new ListDistributionsByRealtimeLogConfigCommand(args);
1029
+ };
1030
+ CloudFront.prototype.listDistributionsByRealtimeLogConfig = function (args, optionsOrCb, cb) {
1031
+ var command = new ListDistributionsByRealtimeLogConfigCommand(args);
1027
1032
  if (typeof optionsOrCb === "function") {
1028
1033
  this.send(command, optionsOrCb);
1029
1034
  }
1030
1035
  else if (typeof cb === "function") {
1031
1036
  if (typeof optionsOrCb !== "object")
1032
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1037
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1033
1038
  this.send(command, optionsOrCb || {}, cb);
1034
1039
  }
1035
1040
  else {
1036
1041
  return this.send(command, optionsOrCb);
1037
1042
  }
1038
- }
1039
- listDistributionsByResponseHeadersPolicyId(args, optionsOrCb, cb) {
1040
- const command = new ListDistributionsByResponseHeadersPolicyIdCommand(args);
1043
+ };
1044
+ CloudFront.prototype.listDistributionsByResponseHeadersPolicyId = function (args, optionsOrCb, cb) {
1045
+ var command = new ListDistributionsByResponseHeadersPolicyIdCommand(args);
1041
1046
  if (typeof optionsOrCb === "function") {
1042
1047
  this.send(command, optionsOrCb);
1043
1048
  }
1044
1049
  else if (typeof cb === "function") {
1045
1050
  if (typeof optionsOrCb !== "object")
1046
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1051
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1047
1052
  this.send(command, optionsOrCb || {}, cb);
1048
1053
  }
1049
1054
  else {
1050
1055
  return this.send(command, optionsOrCb);
1051
1056
  }
1052
- }
1053
- listDistributionsByWebACLId(args, optionsOrCb, cb) {
1054
- const command = new ListDistributionsByWebACLIdCommand(args);
1057
+ };
1058
+ CloudFront.prototype.listDistributionsByWebACLId = function (args, optionsOrCb, cb) {
1059
+ var command = new ListDistributionsByWebACLIdCommand(args);
1055
1060
  if (typeof optionsOrCb === "function") {
1056
1061
  this.send(command, optionsOrCb);
1057
1062
  }
1058
1063
  else if (typeof cb === "function") {
1059
1064
  if (typeof optionsOrCb !== "object")
1060
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1065
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1061
1066
  this.send(command, optionsOrCb || {}, cb);
1062
1067
  }
1063
1068
  else {
1064
1069
  return this.send(command, optionsOrCb);
1065
1070
  }
1066
- }
1067
- listFieldLevelEncryptionConfigs(args, optionsOrCb, cb) {
1068
- const command = new ListFieldLevelEncryptionConfigsCommand(args);
1071
+ };
1072
+ CloudFront.prototype.listFieldLevelEncryptionConfigs = function (args, optionsOrCb, cb) {
1073
+ var command = new ListFieldLevelEncryptionConfigsCommand(args);
1069
1074
  if (typeof optionsOrCb === "function") {
1070
1075
  this.send(command, optionsOrCb);
1071
1076
  }
1072
1077
  else if (typeof cb === "function") {
1073
1078
  if (typeof optionsOrCb !== "object")
1074
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1079
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1075
1080
  this.send(command, optionsOrCb || {}, cb);
1076
1081
  }
1077
1082
  else {
1078
1083
  return this.send(command, optionsOrCb);
1079
1084
  }
1080
- }
1081
- listFieldLevelEncryptionProfiles(args, optionsOrCb, cb) {
1082
- const command = new ListFieldLevelEncryptionProfilesCommand(args);
1085
+ };
1086
+ CloudFront.prototype.listFieldLevelEncryptionProfiles = function (args, optionsOrCb, cb) {
1087
+ var command = new ListFieldLevelEncryptionProfilesCommand(args);
1083
1088
  if (typeof optionsOrCb === "function") {
1084
1089
  this.send(command, optionsOrCb);
1085
1090
  }
1086
1091
  else if (typeof cb === "function") {
1087
1092
  if (typeof optionsOrCb !== "object")
1088
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1093
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1089
1094
  this.send(command, optionsOrCb || {}, cb);
1090
1095
  }
1091
1096
  else {
1092
1097
  return this.send(command, optionsOrCb);
1093
1098
  }
1094
- }
1095
- listFunctions(args, optionsOrCb, cb) {
1096
- const command = new ListFunctionsCommand(args);
1099
+ };
1100
+ CloudFront.prototype.listFunctions = function (args, optionsOrCb, cb) {
1101
+ var command = new ListFunctionsCommand(args);
1097
1102
  if (typeof optionsOrCb === "function") {
1098
1103
  this.send(command, optionsOrCb);
1099
1104
  }
1100
1105
  else if (typeof cb === "function") {
1101
1106
  if (typeof optionsOrCb !== "object")
1102
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1107
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1103
1108
  this.send(command, optionsOrCb || {}, cb);
1104
1109
  }
1105
1110
  else {
1106
1111
  return this.send(command, optionsOrCb);
1107
1112
  }
1108
- }
1109
- listInvalidations(args, optionsOrCb, cb) {
1110
- const command = new ListInvalidationsCommand(args);
1113
+ };
1114
+ CloudFront.prototype.listInvalidations = function (args, optionsOrCb, cb) {
1115
+ var command = new ListInvalidationsCommand(args);
1111
1116
  if (typeof optionsOrCb === "function") {
1112
1117
  this.send(command, optionsOrCb);
1113
1118
  }
1114
1119
  else if (typeof cb === "function") {
1115
1120
  if (typeof optionsOrCb !== "object")
1116
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1121
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1117
1122
  this.send(command, optionsOrCb || {}, cb);
1118
1123
  }
1119
1124
  else {
1120
1125
  return this.send(command, optionsOrCb);
1121
1126
  }
1122
- }
1123
- listKeyGroups(args, optionsOrCb, cb) {
1124
- const command = new ListKeyGroupsCommand(args);
1127
+ };
1128
+ CloudFront.prototype.listKeyGroups = function (args, optionsOrCb, cb) {
1129
+ var command = new ListKeyGroupsCommand(args);
1125
1130
  if (typeof optionsOrCb === "function") {
1126
1131
  this.send(command, optionsOrCb);
1127
1132
  }
1128
1133
  else if (typeof cb === "function") {
1129
1134
  if (typeof optionsOrCb !== "object")
1130
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1135
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1131
1136
  this.send(command, optionsOrCb || {}, cb);
1132
1137
  }
1133
1138
  else {
1134
1139
  return this.send(command, optionsOrCb);
1135
1140
  }
1136
- }
1137
- listOriginAccessControls(args, optionsOrCb, cb) {
1138
- const command = new ListOriginAccessControlsCommand(args);
1141
+ };
1142
+ CloudFront.prototype.listOriginAccessControls = function (args, optionsOrCb, cb) {
1143
+ var command = new ListOriginAccessControlsCommand(args);
1139
1144
  if (typeof optionsOrCb === "function") {
1140
1145
  this.send(command, optionsOrCb);
1141
1146
  }
1142
1147
  else if (typeof cb === "function") {
1143
1148
  if (typeof optionsOrCb !== "object")
1144
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1149
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1145
1150
  this.send(command, optionsOrCb || {}, cb);
1146
1151
  }
1147
1152
  else {
1148
1153
  return this.send(command, optionsOrCb);
1149
1154
  }
1150
- }
1151
- listOriginRequestPolicies(args, optionsOrCb, cb) {
1152
- const command = new ListOriginRequestPoliciesCommand(args);
1155
+ };
1156
+ CloudFront.prototype.listOriginRequestPolicies = function (args, optionsOrCb, cb) {
1157
+ var command = new ListOriginRequestPoliciesCommand(args);
1153
1158
  if (typeof optionsOrCb === "function") {
1154
1159
  this.send(command, optionsOrCb);
1155
1160
  }
1156
1161
  else if (typeof cb === "function") {
1157
1162
  if (typeof optionsOrCb !== "object")
1158
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1163
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1159
1164
  this.send(command, optionsOrCb || {}, cb);
1160
1165
  }
1161
1166
  else {
1162
1167
  return this.send(command, optionsOrCb);
1163
1168
  }
1164
- }
1165
- listPublicKeys(args, optionsOrCb, cb) {
1166
- const command = new ListPublicKeysCommand(args);
1169
+ };
1170
+ CloudFront.prototype.listPublicKeys = function (args, optionsOrCb, cb) {
1171
+ var command = new ListPublicKeysCommand(args);
1167
1172
  if (typeof optionsOrCb === "function") {
1168
1173
  this.send(command, optionsOrCb);
1169
1174
  }
1170
1175
  else if (typeof cb === "function") {
1171
1176
  if (typeof optionsOrCb !== "object")
1172
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1177
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1173
1178
  this.send(command, optionsOrCb || {}, cb);
1174
1179
  }
1175
1180
  else {
1176
1181
  return this.send(command, optionsOrCb);
1177
1182
  }
1178
- }
1179
- listRealtimeLogConfigs(args, optionsOrCb, cb) {
1180
- const command = new ListRealtimeLogConfigsCommand(args);
1183
+ };
1184
+ CloudFront.prototype.listRealtimeLogConfigs = function (args, optionsOrCb, cb) {
1185
+ var command = new ListRealtimeLogConfigsCommand(args);
1181
1186
  if (typeof optionsOrCb === "function") {
1182
1187
  this.send(command, optionsOrCb);
1183
1188
  }
1184
1189
  else if (typeof cb === "function") {
1185
1190
  if (typeof optionsOrCb !== "object")
1186
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1191
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1187
1192
  this.send(command, optionsOrCb || {}, cb);
1188
1193
  }
1189
1194
  else {
1190
1195
  return this.send(command, optionsOrCb);
1191
1196
  }
1192
- }
1193
- listResponseHeadersPolicies(args, optionsOrCb, cb) {
1194
- const command = new ListResponseHeadersPoliciesCommand(args);
1197
+ };
1198
+ CloudFront.prototype.listResponseHeadersPolicies = function (args, optionsOrCb, cb) {
1199
+ var command = new ListResponseHeadersPoliciesCommand(args);
1195
1200
  if (typeof optionsOrCb === "function") {
1196
1201
  this.send(command, optionsOrCb);
1197
1202
  }
1198
1203
  else if (typeof cb === "function") {
1199
1204
  if (typeof optionsOrCb !== "object")
1200
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1205
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1201
1206
  this.send(command, optionsOrCb || {}, cb);
1202
1207
  }
1203
1208
  else {
1204
1209
  return this.send(command, optionsOrCb);
1205
1210
  }
1206
- }
1207
- listStreamingDistributions(args, optionsOrCb, cb) {
1208
- const command = new ListStreamingDistributionsCommand(args);
1211
+ };
1212
+ CloudFront.prototype.listStreamingDistributions = function (args, optionsOrCb, cb) {
1213
+ var command = new ListStreamingDistributionsCommand(args);
1209
1214
  if (typeof optionsOrCb === "function") {
1210
1215
  this.send(command, optionsOrCb);
1211
1216
  }
1212
1217
  else if (typeof cb === "function") {
1213
1218
  if (typeof optionsOrCb !== "object")
1214
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1219
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1215
1220
  this.send(command, optionsOrCb || {}, cb);
1216
1221
  }
1217
1222
  else {
1218
1223
  return this.send(command, optionsOrCb);
1219
1224
  }
1220
- }
1221
- listTagsForResource(args, optionsOrCb, cb) {
1222
- const command = new ListTagsForResourceCommand(args);
1225
+ };
1226
+ CloudFront.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
1227
+ var command = new ListTagsForResourceCommand(args);
1223
1228
  if (typeof optionsOrCb === "function") {
1224
1229
  this.send(command, optionsOrCb);
1225
1230
  }
1226
1231
  else if (typeof cb === "function") {
1227
1232
  if (typeof optionsOrCb !== "object")
1228
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1233
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1229
1234
  this.send(command, optionsOrCb || {}, cb);
1230
1235
  }
1231
1236
  else {
1232
1237
  return this.send(command, optionsOrCb);
1233
1238
  }
1234
- }
1235
- publishFunction(args, optionsOrCb, cb) {
1236
- const command = new PublishFunctionCommand(args);
1239
+ };
1240
+ CloudFront.prototype.publishFunction = function (args, optionsOrCb, cb) {
1241
+ var command = new PublishFunctionCommand(args);
1237
1242
  if (typeof optionsOrCb === "function") {
1238
1243
  this.send(command, optionsOrCb);
1239
1244
  }
1240
1245
  else if (typeof cb === "function") {
1241
1246
  if (typeof optionsOrCb !== "object")
1242
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1247
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1243
1248
  this.send(command, optionsOrCb || {}, cb);
1244
1249
  }
1245
1250
  else {
1246
1251
  return this.send(command, optionsOrCb);
1247
1252
  }
1248
- }
1249
- tagResource(args, optionsOrCb, cb) {
1250
- const command = new TagResourceCommand(args);
1253
+ };
1254
+ CloudFront.prototype.tagResource = function (args, optionsOrCb, cb) {
1255
+ var command = new TagResourceCommand(args);
1251
1256
  if (typeof optionsOrCb === "function") {
1252
1257
  this.send(command, optionsOrCb);
1253
1258
  }
1254
1259
  else if (typeof cb === "function") {
1255
1260
  if (typeof optionsOrCb !== "object")
1256
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1261
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1257
1262
  this.send(command, optionsOrCb || {}, cb);
1258
1263
  }
1259
1264
  else {
1260
1265
  return this.send(command, optionsOrCb);
1261
1266
  }
1262
- }
1263
- testFunction(args, optionsOrCb, cb) {
1264
- const command = new TestFunctionCommand(args);
1267
+ };
1268
+ CloudFront.prototype.testFunction = function (args, optionsOrCb, cb) {
1269
+ var command = new TestFunctionCommand(args);
1265
1270
  if (typeof optionsOrCb === "function") {
1266
1271
  this.send(command, optionsOrCb);
1267
1272
  }
1268
1273
  else if (typeof cb === "function") {
1269
1274
  if (typeof optionsOrCb !== "object")
1270
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1275
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1271
1276
  this.send(command, optionsOrCb || {}, cb);
1272
1277
  }
1273
1278
  else {
1274
1279
  return this.send(command, optionsOrCb);
1275
1280
  }
1276
- }
1277
- untagResource(args, optionsOrCb, cb) {
1278
- const command = new UntagResourceCommand(args);
1281
+ };
1282
+ CloudFront.prototype.untagResource = function (args, optionsOrCb, cb) {
1283
+ var command = new UntagResourceCommand(args);
1279
1284
  if (typeof optionsOrCb === "function") {
1280
1285
  this.send(command, optionsOrCb);
1281
1286
  }
1282
1287
  else if (typeof cb === "function") {
1283
1288
  if (typeof optionsOrCb !== "object")
1284
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1289
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1285
1290
  this.send(command, optionsOrCb || {}, cb);
1286
1291
  }
1287
1292
  else {
1288
1293
  return this.send(command, optionsOrCb);
1289
1294
  }
1290
- }
1291
- updateCachePolicy(args, optionsOrCb, cb) {
1292
- const command = new UpdateCachePolicyCommand(args);
1295
+ };
1296
+ CloudFront.prototype.updateCachePolicy = function (args, optionsOrCb, cb) {
1297
+ var command = new UpdateCachePolicyCommand(args);
1293
1298
  if (typeof optionsOrCb === "function") {
1294
1299
  this.send(command, optionsOrCb);
1295
1300
  }
1296
1301
  else if (typeof cb === "function") {
1297
1302
  if (typeof optionsOrCb !== "object")
1298
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1303
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1299
1304
  this.send(command, optionsOrCb || {}, cb);
1300
1305
  }
1301
1306
  else {
1302
1307
  return this.send(command, optionsOrCb);
1303
1308
  }
1304
- }
1305
- updateCloudFrontOriginAccessIdentity(args, optionsOrCb, cb) {
1306
- const command = new UpdateCloudFrontOriginAccessIdentityCommand(args);
1309
+ };
1310
+ CloudFront.prototype.updateCloudFrontOriginAccessIdentity = function (args, optionsOrCb, cb) {
1311
+ var command = new UpdateCloudFrontOriginAccessIdentityCommand(args);
1307
1312
  if (typeof optionsOrCb === "function") {
1308
1313
  this.send(command, optionsOrCb);
1309
1314
  }
1310
1315
  else if (typeof cb === "function") {
1311
1316
  if (typeof optionsOrCb !== "object")
1312
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1317
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1313
1318
  this.send(command, optionsOrCb || {}, cb);
1314
1319
  }
1315
1320
  else {
1316
1321
  return this.send(command, optionsOrCb);
1317
1322
  }
1318
- }
1319
- updateDistribution(args, optionsOrCb, cb) {
1320
- const command = new UpdateDistributionCommand(args);
1323
+ };
1324
+ CloudFront.prototype.updateDistribution = function (args, optionsOrCb, cb) {
1325
+ var command = new UpdateDistributionCommand(args);
1321
1326
  if (typeof optionsOrCb === "function") {
1322
1327
  this.send(command, optionsOrCb);
1323
1328
  }
1324
1329
  else if (typeof cb === "function") {
1325
1330
  if (typeof optionsOrCb !== "object")
1326
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1331
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1327
1332
  this.send(command, optionsOrCb || {}, cb);
1328
1333
  }
1329
1334
  else {
1330
1335
  return this.send(command, optionsOrCb);
1331
1336
  }
1332
- }
1333
- updateFieldLevelEncryptionConfig(args, optionsOrCb, cb) {
1334
- const command = new UpdateFieldLevelEncryptionConfigCommand(args);
1337
+ };
1338
+ CloudFront.prototype.updateFieldLevelEncryptionConfig = function (args, optionsOrCb, cb) {
1339
+ var command = new UpdateFieldLevelEncryptionConfigCommand(args);
1335
1340
  if (typeof optionsOrCb === "function") {
1336
1341
  this.send(command, optionsOrCb);
1337
1342
  }
1338
1343
  else if (typeof cb === "function") {
1339
1344
  if (typeof optionsOrCb !== "object")
1340
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1345
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1341
1346
  this.send(command, optionsOrCb || {}, cb);
1342
1347
  }
1343
1348
  else {
1344
1349
  return this.send(command, optionsOrCb);
1345
1350
  }
1346
- }
1347
- updateFieldLevelEncryptionProfile(args, optionsOrCb, cb) {
1348
- const command = new UpdateFieldLevelEncryptionProfileCommand(args);
1351
+ };
1352
+ CloudFront.prototype.updateFieldLevelEncryptionProfile = function (args, optionsOrCb, cb) {
1353
+ var command = new UpdateFieldLevelEncryptionProfileCommand(args);
1349
1354
  if (typeof optionsOrCb === "function") {
1350
1355
  this.send(command, optionsOrCb);
1351
1356
  }
1352
1357
  else if (typeof cb === "function") {
1353
1358
  if (typeof optionsOrCb !== "object")
1354
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1359
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1355
1360
  this.send(command, optionsOrCb || {}, cb);
1356
1361
  }
1357
1362
  else {
1358
1363
  return this.send(command, optionsOrCb);
1359
1364
  }
1360
- }
1361
- updateFunction(args, optionsOrCb, cb) {
1362
- const command = new UpdateFunctionCommand(args);
1365
+ };
1366
+ CloudFront.prototype.updateFunction = function (args, optionsOrCb, cb) {
1367
+ var command = new UpdateFunctionCommand(args);
1363
1368
  if (typeof optionsOrCb === "function") {
1364
1369
  this.send(command, optionsOrCb);
1365
1370
  }
1366
1371
  else if (typeof cb === "function") {
1367
1372
  if (typeof optionsOrCb !== "object")
1368
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1373
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1369
1374
  this.send(command, optionsOrCb || {}, cb);
1370
1375
  }
1371
1376
  else {
1372
1377
  return this.send(command, optionsOrCb);
1373
1378
  }
1374
- }
1375
- updateKeyGroup(args, optionsOrCb, cb) {
1376
- const command = new UpdateKeyGroupCommand(args);
1379
+ };
1380
+ CloudFront.prototype.updateKeyGroup = function (args, optionsOrCb, cb) {
1381
+ var command = new UpdateKeyGroupCommand(args);
1377
1382
  if (typeof optionsOrCb === "function") {
1378
1383
  this.send(command, optionsOrCb);
1379
1384
  }
1380
1385
  else if (typeof cb === "function") {
1381
1386
  if (typeof optionsOrCb !== "object")
1382
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1387
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1383
1388
  this.send(command, optionsOrCb || {}, cb);
1384
1389
  }
1385
1390
  else {
1386
1391
  return this.send(command, optionsOrCb);
1387
1392
  }
1388
- }
1389
- updateOriginAccessControl(args, optionsOrCb, cb) {
1390
- const command = new UpdateOriginAccessControlCommand(args);
1393
+ };
1394
+ CloudFront.prototype.updateOriginAccessControl = function (args, optionsOrCb, cb) {
1395
+ var command = new UpdateOriginAccessControlCommand(args);
1391
1396
  if (typeof optionsOrCb === "function") {
1392
1397
  this.send(command, optionsOrCb);
1393
1398
  }
1394
1399
  else if (typeof cb === "function") {
1395
1400
  if (typeof optionsOrCb !== "object")
1396
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1401
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1397
1402
  this.send(command, optionsOrCb || {}, cb);
1398
1403
  }
1399
1404
  else {
1400
1405
  return this.send(command, optionsOrCb);
1401
1406
  }
1402
- }
1403
- updateOriginRequestPolicy(args, optionsOrCb, cb) {
1404
- const command = new UpdateOriginRequestPolicyCommand(args);
1407
+ };
1408
+ CloudFront.prototype.updateOriginRequestPolicy = function (args, optionsOrCb, cb) {
1409
+ var command = new UpdateOriginRequestPolicyCommand(args);
1405
1410
  if (typeof optionsOrCb === "function") {
1406
1411
  this.send(command, optionsOrCb);
1407
1412
  }
1408
1413
  else if (typeof cb === "function") {
1409
1414
  if (typeof optionsOrCb !== "object")
1410
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1415
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1411
1416
  this.send(command, optionsOrCb || {}, cb);
1412
1417
  }
1413
1418
  else {
1414
1419
  return this.send(command, optionsOrCb);
1415
1420
  }
1416
- }
1417
- updatePublicKey(args, optionsOrCb, cb) {
1418
- const command = new UpdatePublicKeyCommand(args);
1421
+ };
1422
+ CloudFront.prototype.updatePublicKey = function (args, optionsOrCb, cb) {
1423
+ var command = new UpdatePublicKeyCommand(args);
1419
1424
  if (typeof optionsOrCb === "function") {
1420
1425
  this.send(command, optionsOrCb);
1421
1426
  }
1422
1427
  else if (typeof cb === "function") {
1423
1428
  if (typeof optionsOrCb !== "object")
1424
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1429
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1425
1430
  this.send(command, optionsOrCb || {}, cb);
1426
1431
  }
1427
1432
  else {
1428
1433
  return this.send(command, optionsOrCb);
1429
1434
  }
1430
- }
1431
- updateRealtimeLogConfig(args, optionsOrCb, cb) {
1432
- const command = new UpdateRealtimeLogConfigCommand(args);
1435
+ };
1436
+ CloudFront.prototype.updateRealtimeLogConfig = function (args, optionsOrCb, cb) {
1437
+ var command = new UpdateRealtimeLogConfigCommand(args);
1433
1438
  if (typeof optionsOrCb === "function") {
1434
1439
  this.send(command, optionsOrCb);
1435
1440
  }
1436
1441
  else if (typeof cb === "function") {
1437
1442
  if (typeof optionsOrCb !== "object")
1438
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1443
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1439
1444
  this.send(command, optionsOrCb || {}, cb);
1440
1445
  }
1441
1446
  else {
1442
1447
  return this.send(command, optionsOrCb);
1443
1448
  }
1444
- }
1445
- updateResponseHeadersPolicy(args, optionsOrCb, cb) {
1446
- const command = new UpdateResponseHeadersPolicyCommand(args);
1449
+ };
1450
+ CloudFront.prototype.updateResponseHeadersPolicy = function (args, optionsOrCb, cb) {
1451
+ var command = new UpdateResponseHeadersPolicyCommand(args);
1447
1452
  if (typeof optionsOrCb === "function") {
1448
1453
  this.send(command, optionsOrCb);
1449
1454
  }
1450
1455
  else if (typeof cb === "function") {
1451
1456
  if (typeof optionsOrCb !== "object")
1452
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1457
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1453
1458
  this.send(command, optionsOrCb || {}, cb);
1454
1459
  }
1455
1460
  else {
1456
1461
  return this.send(command, optionsOrCb);
1457
1462
  }
1458
- }
1459
- updateStreamingDistribution(args, optionsOrCb, cb) {
1460
- const command = new UpdateStreamingDistributionCommand(args);
1463
+ };
1464
+ CloudFront.prototype.updateStreamingDistribution = function (args, optionsOrCb, cb) {
1465
+ var command = new UpdateStreamingDistributionCommand(args);
1461
1466
  if (typeof optionsOrCb === "function") {
1462
1467
  this.send(command, optionsOrCb);
1463
1468
  }
1464
1469
  else if (typeof cb === "function") {
1465
1470
  if (typeof optionsOrCb !== "object")
1466
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1471
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1467
1472
  this.send(command, optionsOrCb || {}, cb);
1468
1473
  }
1469
1474
  else {
1470
1475
  return this.send(command, optionsOrCb);
1471
1476
  }
1472
- }
1473
- }
1477
+ };
1478
+ return CloudFront;
1479
+ }(CloudFrontClient));
1480
+ export { CloudFront };