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