@aws-sdk/client-cloudfront 3.150.0 → 3.159.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 (71) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/CloudFront.js +90 -0
  3. package/dist-cjs/commands/CreateOriginAccessControlCommand.js +36 -0
  4. package/dist-cjs/commands/DeleteCloudFrontOriginAccessIdentityCommand.js +2 -2
  5. package/dist-cjs/commands/DeleteDistributionCommand.js +2 -2
  6. package/dist-cjs/commands/DeleteFieldLevelEncryptionConfigCommand.js +2 -2
  7. package/dist-cjs/commands/DeleteFieldLevelEncryptionProfileCommand.js +2 -2
  8. package/dist-cjs/commands/DeleteFunctionCommand.js +2 -2
  9. package/dist-cjs/commands/DeleteKeyGroupCommand.js +2 -2
  10. package/dist-cjs/commands/DeleteOriginAccessControlCommand.js +36 -0
  11. package/dist-cjs/commands/GetOriginAccessControlCommand.js +36 -0
  12. package/dist-cjs/commands/GetOriginAccessControlConfigCommand.js +36 -0
  13. package/dist-cjs/commands/ListOriginAccessControlsCommand.js +36 -0
  14. package/dist-cjs/commands/UpdateOriginAccessControlCommand.js +36 -0
  15. package/dist-cjs/commands/index.js +6 -0
  16. package/dist-cjs/models/models_0.js +134 -142
  17. package/dist-cjs/models/models_1.js +226 -4
  18. package/dist-cjs/protocols/Aws_restXml.js +697 -20
  19. package/dist-es/CloudFront.js +90 -0
  20. package/dist-es/commands/CreateOriginAccessControlCommand.js +39 -0
  21. package/dist-es/commands/DeleteCloudFrontOriginAccessIdentityCommand.js +1 -1
  22. package/dist-es/commands/DeleteDistributionCommand.js +1 -1
  23. package/dist-es/commands/DeleteFieldLevelEncryptionConfigCommand.js +1 -1
  24. package/dist-es/commands/DeleteFieldLevelEncryptionProfileCommand.js +1 -1
  25. package/dist-es/commands/DeleteFunctionCommand.js +1 -1
  26. package/dist-es/commands/DeleteKeyGroupCommand.js +1 -1
  27. package/dist-es/commands/DeleteOriginAccessControlCommand.js +39 -0
  28. package/dist-es/commands/GetOriginAccessControlCommand.js +39 -0
  29. package/dist-es/commands/GetOriginAccessControlConfigCommand.js +39 -0
  30. package/dist-es/commands/ListOriginAccessControlsCommand.js +39 -0
  31. package/dist-es/commands/UpdateOriginAccessControlCommand.js +39 -0
  32. package/dist-es/commands/index.js +6 -0
  33. package/dist-es/models/models_0.js +109 -110
  34. package/dist-es/models/models_1.js +160 -0
  35. package/dist-es/protocols/Aws_restXml.js +1488 -629
  36. package/dist-types/CloudFront.d.ts +56 -0
  37. package/dist-types/CloudFrontClient.d.ts +8 -2
  38. package/dist-types/commands/CreateOriginAccessControlCommand.d.ts +41 -0
  39. package/dist-types/commands/DeleteCloudFrontOriginAccessIdentityCommand.d.ts +1 -1
  40. package/dist-types/commands/DeleteDistributionCommand.d.ts +1 -1
  41. package/dist-types/commands/DeleteFieldLevelEncryptionConfigCommand.d.ts +1 -1
  42. package/dist-types/commands/DeleteFieldLevelEncryptionProfileCommand.d.ts +1 -1
  43. package/dist-types/commands/DeleteFunctionCommand.d.ts +1 -1
  44. package/dist-types/commands/DeleteKeyGroupCommand.d.ts +1 -1
  45. package/dist-types/commands/DeleteOriginAccessControlCommand.d.ts +38 -0
  46. package/dist-types/commands/GetOriginAccessControlCommand.d.ts +35 -0
  47. package/dist-types/commands/GetOriginAccessControlConfigCommand.d.ts +35 -0
  48. package/dist-types/commands/ListOriginAccessControlsCommand.d.ts +40 -0
  49. package/dist-types/commands/UpdateOriginAccessControlCommand.d.ts +35 -0
  50. package/dist-types/commands/index.d.ts +6 -0
  51. package/dist-types/models/models_0.d.ts +217 -246
  52. package/dist-types/models/models_1.d.ts +494 -1
  53. package/dist-types/protocols/Aws_restXml.d.ts +18 -0
  54. package/dist-types/ts3.4/CloudFront.d.ts +30 -0
  55. package/dist-types/ts3.4/CloudFrontClient.d.ts +8 -2
  56. package/dist-types/ts3.4/commands/CreateOriginAccessControlCommand.d.ts +17 -0
  57. package/dist-types/ts3.4/commands/DeleteCloudFrontOriginAccessIdentityCommand.d.ts +1 -1
  58. package/dist-types/ts3.4/commands/DeleteDistributionCommand.d.ts +1 -1
  59. package/dist-types/ts3.4/commands/DeleteFieldLevelEncryptionConfigCommand.d.ts +1 -1
  60. package/dist-types/ts3.4/commands/DeleteFieldLevelEncryptionProfileCommand.d.ts +1 -1
  61. package/dist-types/ts3.4/commands/DeleteFunctionCommand.d.ts +1 -1
  62. package/dist-types/ts3.4/commands/DeleteKeyGroupCommand.d.ts +1 -1
  63. package/dist-types/ts3.4/commands/DeleteOriginAccessControlCommand.d.ts +17 -0
  64. package/dist-types/ts3.4/commands/GetOriginAccessControlCommand.d.ts +17 -0
  65. package/dist-types/ts3.4/commands/GetOriginAccessControlConfigCommand.d.ts +17 -0
  66. package/dist-types/ts3.4/commands/ListOriginAccessControlsCommand.d.ts +17 -0
  67. package/dist-types/ts3.4/commands/UpdateOriginAccessControlCommand.d.ts +17 -0
  68. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  69. package/dist-types/ts3.4/models/models_1.d.ts +241 -1
  70. package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +18 -0
  71. package/package.json +28 -28
@@ -11,6 +11,7 @@ import { CreateFunctionCommand, } from "./commands/CreateFunctionCommand";
11
11
  import { CreateInvalidationCommand, } from "./commands/CreateInvalidationCommand";
12
12
  import { CreateKeyGroupCommand, } from "./commands/CreateKeyGroupCommand";
13
13
  import { CreateMonitoringSubscriptionCommand, } from "./commands/CreateMonitoringSubscriptionCommand";
14
+ import { CreateOriginAccessControlCommand, } from "./commands/CreateOriginAccessControlCommand";
14
15
  import { CreateOriginRequestPolicyCommand, } from "./commands/CreateOriginRequestPolicyCommand";
15
16
  import { CreatePublicKeyCommand, } from "./commands/CreatePublicKeyCommand";
16
17
  import { CreateRealtimeLogConfigCommand, } from "./commands/CreateRealtimeLogConfigCommand";
@@ -25,6 +26,7 @@ import { DeleteFieldLevelEncryptionProfileCommand, } from "./commands/DeleteFiel
25
26
  import { DeleteFunctionCommand, } from "./commands/DeleteFunctionCommand";
26
27
  import { DeleteKeyGroupCommand, } from "./commands/DeleteKeyGroupCommand";
27
28
  import { DeleteMonitoringSubscriptionCommand, } from "./commands/DeleteMonitoringSubscriptionCommand";
29
+ import { DeleteOriginAccessControlCommand, } from "./commands/DeleteOriginAccessControlCommand";
28
30
  import { DeleteOriginRequestPolicyCommand, } from "./commands/DeleteOriginRequestPolicyCommand";
29
31
  import { DeletePublicKeyCommand, } from "./commands/DeletePublicKeyCommand";
30
32
  import { DeleteRealtimeLogConfigCommand, } from "./commands/DeleteRealtimeLogConfigCommand";
@@ -46,6 +48,8 @@ import { GetInvalidationCommand, } from "./commands/GetInvalidationCommand";
46
48
  import { GetKeyGroupCommand } from "./commands/GetKeyGroupCommand";
47
49
  import { GetKeyGroupConfigCommand, } from "./commands/GetKeyGroupConfigCommand";
48
50
  import { GetMonitoringSubscriptionCommand, } from "./commands/GetMonitoringSubscriptionCommand";
51
+ import { GetOriginAccessControlCommand, } from "./commands/GetOriginAccessControlCommand";
52
+ import { GetOriginAccessControlConfigCommand, } from "./commands/GetOriginAccessControlConfigCommand";
49
53
  import { GetOriginRequestPolicyCommand, } from "./commands/GetOriginRequestPolicyCommand";
50
54
  import { GetOriginRequestPolicyConfigCommand, } from "./commands/GetOriginRequestPolicyConfigCommand";
51
55
  import { GetPublicKeyCommand, } from "./commands/GetPublicKeyCommand";
@@ -70,6 +74,7 @@ import { ListFieldLevelEncryptionProfilesCommand, } from "./commands/ListFieldLe
70
74
  import { ListFunctionsCommand, } from "./commands/ListFunctionsCommand";
71
75
  import { ListInvalidationsCommand, } from "./commands/ListInvalidationsCommand";
72
76
  import { ListKeyGroupsCommand, } from "./commands/ListKeyGroupsCommand";
77
+ import { ListOriginAccessControlsCommand, } from "./commands/ListOriginAccessControlsCommand";
73
78
  import { ListOriginRequestPoliciesCommand, } from "./commands/ListOriginRequestPoliciesCommand";
74
79
  import { ListPublicKeysCommand, } from "./commands/ListPublicKeysCommand";
75
80
  import { ListRealtimeLogConfigsCommand, } from "./commands/ListRealtimeLogConfigsCommand";
@@ -87,6 +92,7 @@ import { UpdateFieldLevelEncryptionConfigCommand, } from "./commands/UpdateField
87
92
  import { UpdateFieldLevelEncryptionProfileCommand, } from "./commands/UpdateFieldLevelEncryptionProfileCommand";
88
93
  import { UpdateFunctionCommand, } from "./commands/UpdateFunctionCommand";
89
94
  import { UpdateKeyGroupCommand, } from "./commands/UpdateKeyGroupCommand";
95
+ import { UpdateOriginAccessControlCommand, } from "./commands/UpdateOriginAccessControlCommand";
90
96
  import { UpdateOriginRequestPolicyCommand, } from "./commands/UpdateOriginRequestPolicyCommand";
91
97
  import { UpdatePublicKeyCommand, } from "./commands/UpdatePublicKeyCommand";
92
98
  import { UpdateRealtimeLogConfigCommand, } from "./commands/UpdateRealtimeLogConfigCommand";
@@ -251,6 +257,20 @@ var CloudFront = (function (_super) {
251
257
  return this.send(command, optionsOrCb);
252
258
  }
253
259
  };
260
+ CloudFront.prototype.createOriginAccessControl = function (args, optionsOrCb, cb) {
261
+ var command = new CreateOriginAccessControlCommand(args);
262
+ if (typeof optionsOrCb === "function") {
263
+ this.send(command, optionsOrCb);
264
+ }
265
+ else if (typeof cb === "function") {
266
+ if (typeof optionsOrCb !== "object")
267
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
268
+ this.send(command, optionsOrCb || {}, cb);
269
+ }
270
+ else {
271
+ return this.send(command, optionsOrCb);
272
+ }
273
+ };
254
274
  CloudFront.prototype.createOriginRequestPolicy = function (args, optionsOrCb, cb) {
255
275
  var command = new CreateOriginRequestPolicyCommand(args);
256
276
  if (typeof optionsOrCb === "function") {
@@ -447,6 +467,20 @@ var CloudFront = (function (_super) {
447
467
  return this.send(command, optionsOrCb);
448
468
  }
449
469
  };
470
+ CloudFront.prototype.deleteOriginAccessControl = function (args, optionsOrCb, cb) {
471
+ var command = new DeleteOriginAccessControlCommand(args);
472
+ if (typeof optionsOrCb === "function") {
473
+ this.send(command, optionsOrCb);
474
+ }
475
+ else if (typeof cb === "function") {
476
+ if (typeof optionsOrCb !== "object")
477
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
478
+ this.send(command, optionsOrCb || {}, cb);
479
+ }
480
+ else {
481
+ return this.send(command, optionsOrCb);
482
+ }
483
+ };
450
484
  CloudFront.prototype.deleteOriginRequestPolicy = function (args, optionsOrCb, cb) {
451
485
  var command = new DeleteOriginRequestPolicyCommand(args);
452
486
  if (typeof optionsOrCb === "function") {
@@ -741,6 +775,34 @@ var CloudFront = (function (_super) {
741
775
  return this.send(command, optionsOrCb);
742
776
  }
743
777
  };
778
+ CloudFront.prototype.getOriginAccessControl = function (args, optionsOrCb, cb) {
779
+ var command = new GetOriginAccessControlCommand(args);
780
+ if (typeof optionsOrCb === "function") {
781
+ this.send(command, optionsOrCb);
782
+ }
783
+ else if (typeof cb === "function") {
784
+ if (typeof optionsOrCb !== "object")
785
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
786
+ this.send(command, optionsOrCb || {}, cb);
787
+ }
788
+ else {
789
+ return this.send(command, optionsOrCb);
790
+ }
791
+ };
792
+ CloudFront.prototype.getOriginAccessControlConfig = function (args, optionsOrCb, cb) {
793
+ var command = new GetOriginAccessControlConfigCommand(args);
794
+ if (typeof optionsOrCb === "function") {
795
+ this.send(command, optionsOrCb);
796
+ }
797
+ else if (typeof cb === "function") {
798
+ if (typeof optionsOrCb !== "object")
799
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
800
+ this.send(command, optionsOrCb || {}, cb);
801
+ }
802
+ else {
803
+ return this.send(command, optionsOrCb);
804
+ }
805
+ };
744
806
  CloudFront.prototype.getOriginRequestPolicy = function (args, optionsOrCb, cb) {
745
807
  var command = new GetOriginRequestPolicyCommand(args);
746
808
  if (typeof optionsOrCb === "function") {
@@ -1077,6 +1139,20 @@ var CloudFront = (function (_super) {
1077
1139
  return this.send(command, optionsOrCb);
1078
1140
  }
1079
1141
  };
1142
+ CloudFront.prototype.listOriginAccessControls = function (args, optionsOrCb, cb) {
1143
+ var command = new ListOriginAccessControlsCommand(args);
1144
+ if (typeof optionsOrCb === "function") {
1145
+ this.send(command, optionsOrCb);
1146
+ }
1147
+ else if (typeof cb === "function") {
1148
+ if (typeof optionsOrCb !== "object")
1149
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1150
+ this.send(command, optionsOrCb || {}, cb);
1151
+ }
1152
+ else {
1153
+ return this.send(command, optionsOrCb);
1154
+ }
1155
+ };
1080
1156
  CloudFront.prototype.listOriginRequestPolicies = function (args, optionsOrCb, cb) {
1081
1157
  var command = new ListOriginRequestPoliciesCommand(args);
1082
1158
  if (typeof optionsOrCb === "function") {
@@ -1315,6 +1391,20 @@ var CloudFront = (function (_super) {
1315
1391
  return this.send(command, optionsOrCb);
1316
1392
  }
1317
1393
  };
1394
+ CloudFront.prototype.updateOriginAccessControl = function (args, optionsOrCb, cb) {
1395
+ var command = new UpdateOriginAccessControlCommand(args);
1396
+ if (typeof optionsOrCb === "function") {
1397
+ this.send(command, optionsOrCb);
1398
+ }
1399
+ else if (typeof cb === "function") {
1400
+ if (typeof optionsOrCb !== "object")
1401
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1402
+ this.send(command, optionsOrCb || {}, cb);
1403
+ }
1404
+ else {
1405
+ return this.send(command, optionsOrCb);
1406
+ }
1407
+ };
1318
1408
  CloudFront.prototype.updateOriginRequestPolicy = function (args, optionsOrCb, cb) {
1319
1409
  var command = new UpdateOriginRequestPolicyCommand(args);
1320
1410
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CreateOriginAccessControlRequestFilterSensitiveLog, CreateOriginAccessControlResultFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restXmlCreateOriginAccessControlCommand, serializeAws_restXmlCreateOriginAccessControlCommand, } from "../protocols/Aws_restXml";
6
+ var CreateOriginAccessControlCommand = (function (_super) {
7
+ __extends(CreateOriginAccessControlCommand, _super);
8
+ function CreateOriginAccessControlCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ CreateOriginAccessControlCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudFrontClient";
18
+ var commandName = "CreateOriginAccessControlCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: CreateOriginAccessControlRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: CreateOriginAccessControlResultFilterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateOriginAccessControlCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restXmlCreateOriginAccessControlCommand(input, context);
33
+ };
34
+ CreateOriginAccessControlCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restXmlCreateOriginAccessControlCommand(output, context);
36
+ };
37
+ return CreateOriginAccessControlCommand;
38
+ }($Command));
39
+ export { CreateOriginAccessControlCommand };
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DeleteCloudFrontOriginAccessIdentityRequestFilterSensitiveLog, } from "../models/models_0";
4
+ import { DeleteCloudFrontOriginAccessIdentityRequestFilterSensitiveLog, } from "../models/models_1";
5
5
  import { deserializeAws_restXmlDeleteCloudFrontOriginAccessIdentityCommand, serializeAws_restXmlDeleteCloudFrontOriginAccessIdentityCommand, } from "../protocols/Aws_restXml";
6
6
  var DeleteCloudFrontOriginAccessIdentityCommand = (function (_super) {
7
7
  __extends(DeleteCloudFrontOriginAccessIdentityCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DeleteDistributionRequestFilterSensitiveLog } from "../models/models_0";
4
+ import { DeleteDistributionRequestFilterSensitiveLog } from "../models/models_1";
5
5
  import { deserializeAws_restXmlDeleteDistributionCommand, serializeAws_restXmlDeleteDistributionCommand, } from "../protocols/Aws_restXml";
6
6
  var DeleteDistributionCommand = (function (_super) {
7
7
  __extends(DeleteDistributionCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DeleteFieldLevelEncryptionConfigRequestFilterSensitiveLog, } from "../models/models_0";
4
+ import { DeleteFieldLevelEncryptionConfigRequestFilterSensitiveLog, } from "../models/models_1";
5
5
  import { deserializeAws_restXmlDeleteFieldLevelEncryptionConfigCommand, serializeAws_restXmlDeleteFieldLevelEncryptionConfigCommand, } from "../protocols/Aws_restXml";
6
6
  var DeleteFieldLevelEncryptionConfigCommand = (function (_super) {
7
7
  __extends(DeleteFieldLevelEncryptionConfigCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DeleteFieldLevelEncryptionProfileRequestFilterSensitiveLog, } from "../models/models_0";
4
+ import { DeleteFieldLevelEncryptionProfileRequestFilterSensitiveLog, } from "../models/models_1";
5
5
  import { deserializeAws_restXmlDeleteFieldLevelEncryptionProfileCommand, serializeAws_restXmlDeleteFieldLevelEncryptionProfileCommand, } from "../protocols/Aws_restXml";
6
6
  var DeleteFieldLevelEncryptionProfileCommand = (function (_super) {
7
7
  __extends(DeleteFieldLevelEncryptionProfileCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DeleteFunctionRequestFilterSensitiveLog } from "../models/models_0";
4
+ import { DeleteFunctionRequestFilterSensitiveLog } from "../models/models_1";
5
5
  import { deserializeAws_restXmlDeleteFunctionCommand, serializeAws_restXmlDeleteFunctionCommand, } from "../protocols/Aws_restXml";
6
6
  var DeleteFunctionCommand = (function (_super) {
7
7
  __extends(DeleteFunctionCommand, _super);
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DeleteKeyGroupRequestFilterSensitiveLog } from "../models/models_0";
4
+ import { DeleteKeyGroupRequestFilterSensitiveLog } from "../models/models_1";
5
5
  import { deserializeAws_restXmlDeleteKeyGroupCommand, serializeAws_restXmlDeleteKeyGroupCommand, } from "../protocols/Aws_restXml";
6
6
  var DeleteKeyGroupCommand = (function (_super) {
7
7
  __extends(DeleteKeyGroupCommand, _super);
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DeleteOriginAccessControlRequestFilterSensitiveLog, } from "../models/models_1";
5
+ import { deserializeAws_restXmlDeleteOriginAccessControlCommand, serializeAws_restXmlDeleteOriginAccessControlCommand, } from "../protocols/Aws_restXml";
6
+ var DeleteOriginAccessControlCommand = (function (_super) {
7
+ __extends(DeleteOriginAccessControlCommand, _super);
8
+ function DeleteOriginAccessControlCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DeleteOriginAccessControlCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudFrontClient";
18
+ var commandName = "DeleteOriginAccessControlCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DeleteOriginAccessControlRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: function (output) { return output; },
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteOriginAccessControlCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restXmlDeleteOriginAccessControlCommand(input, context);
33
+ };
34
+ DeleteOriginAccessControlCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restXmlDeleteOriginAccessControlCommand(output, context);
36
+ };
37
+ return DeleteOriginAccessControlCommand;
38
+ }($Command));
39
+ export { DeleteOriginAccessControlCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetOriginAccessControlRequestFilterSensitiveLog, GetOriginAccessControlResultFilterSensitiveLog, } from "../models/models_1";
5
+ import { deserializeAws_restXmlGetOriginAccessControlCommand, serializeAws_restXmlGetOriginAccessControlCommand, } from "../protocols/Aws_restXml";
6
+ var GetOriginAccessControlCommand = (function (_super) {
7
+ __extends(GetOriginAccessControlCommand, _super);
8
+ function GetOriginAccessControlCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ GetOriginAccessControlCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudFrontClient";
18
+ var commandName = "GetOriginAccessControlCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: GetOriginAccessControlRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: GetOriginAccessControlResultFilterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetOriginAccessControlCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restXmlGetOriginAccessControlCommand(input, context);
33
+ };
34
+ GetOriginAccessControlCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restXmlGetOriginAccessControlCommand(output, context);
36
+ };
37
+ return GetOriginAccessControlCommand;
38
+ }($Command));
39
+ export { GetOriginAccessControlCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetOriginAccessControlConfigRequestFilterSensitiveLog, GetOriginAccessControlConfigResultFilterSensitiveLog, } from "../models/models_1";
5
+ import { deserializeAws_restXmlGetOriginAccessControlConfigCommand, serializeAws_restXmlGetOriginAccessControlConfigCommand, } from "../protocols/Aws_restXml";
6
+ var GetOriginAccessControlConfigCommand = (function (_super) {
7
+ __extends(GetOriginAccessControlConfigCommand, _super);
8
+ function GetOriginAccessControlConfigCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ GetOriginAccessControlConfigCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudFrontClient";
18
+ var commandName = "GetOriginAccessControlConfigCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: GetOriginAccessControlConfigRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: GetOriginAccessControlConfigResultFilterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetOriginAccessControlConfigCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restXmlGetOriginAccessControlConfigCommand(input, context);
33
+ };
34
+ GetOriginAccessControlConfigCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restXmlGetOriginAccessControlConfigCommand(output, context);
36
+ };
37
+ return GetOriginAccessControlConfigCommand;
38
+ }($Command));
39
+ export { GetOriginAccessControlConfigCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListOriginAccessControlsRequestFilterSensitiveLog, ListOriginAccessControlsResultFilterSensitiveLog, } from "../models/models_1";
5
+ import { deserializeAws_restXmlListOriginAccessControlsCommand, serializeAws_restXmlListOriginAccessControlsCommand, } from "../protocols/Aws_restXml";
6
+ var ListOriginAccessControlsCommand = (function (_super) {
7
+ __extends(ListOriginAccessControlsCommand, _super);
8
+ function ListOriginAccessControlsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListOriginAccessControlsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudFrontClient";
18
+ var commandName = "ListOriginAccessControlsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListOriginAccessControlsRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: ListOriginAccessControlsResultFilterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListOriginAccessControlsCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restXmlListOriginAccessControlsCommand(input, context);
33
+ };
34
+ ListOriginAccessControlsCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restXmlListOriginAccessControlsCommand(output, context);
36
+ };
37
+ return ListOriginAccessControlsCommand;
38
+ }($Command));
39
+ export { ListOriginAccessControlsCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateOriginAccessControlRequestFilterSensitiveLog, UpdateOriginAccessControlResultFilterSensitiveLog, } from "../models/models_1";
5
+ import { deserializeAws_restXmlUpdateOriginAccessControlCommand, serializeAws_restXmlUpdateOriginAccessControlCommand, } from "../protocols/Aws_restXml";
6
+ var UpdateOriginAccessControlCommand = (function (_super) {
7
+ __extends(UpdateOriginAccessControlCommand, _super);
8
+ function UpdateOriginAccessControlCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ UpdateOriginAccessControlCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "CloudFrontClient";
18
+ var commandName = "UpdateOriginAccessControlCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: UpdateOriginAccessControlRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: UpdateOriginAccessControlResultFilterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateOriginAccessControlCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restXmlUpdateOriginAccessControlCommand(input, context);
33
+ };
34
+ UpdateOriginAccessControlCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restXmlUpdateOriginAccessControlCommand(output, context);
36
+ };
37
+ return UpdateOriginAccessControlCommand;
38
+ }($Command));
39
+ export { UpdateOriginAccessControlCommand };
@@ -9,6 +9,7 @@ export * from "./CreateFunctionCommand";
9
9
  export * from "./CreateInvalidationCommand";
10
10
  export * from "./CreateKeyGroupCommand";
11
11
  export * from "./CreateMonitoringSubscriptionCommand";
12
+ export * from "./CreateOriginAccessControlCommand";
12
13
  export * from "./CreateOriginRequestPolicyCommand";
13
14
  export * from "./CreatePublicKeyCommand";
14
15
  export * from "./CreateRealtimeLogConfigCommand";
@@ -23,6 +24,7 @@ export * from "./DeleteFieldLevelEncryptionProfileCommand";
23
24
  export * from "./DeleteFunctionCommand";
24
25
  export * from "./DeleteKeyGroupCommand";
25
26
  export * from "./DeleteMonitoringSubscriptionCommand";
27
+ export * from "./DeleteOriginAccessControlCommand";
26
28
  export * from "./DeleteOriginRequestPolicyCommand";
27
29
  export * from "./DeletePublicKeyCommand";
28
30
  export * from "./DeleteRealtimeLogConfigCommand";
@@ -44,6 +46,8 @@ export * from "./GetInvalidationCommand";
44
46
  export * from "./GetKeyGroupCommand";
45
47
  export * from "./GetKeyGroupConfigCommand";
46
48
  export * from "./GetMonitoringSubscriptionCommand";
49
+ export * from "./GetOriginAccessControlCommand";
50
+ export * from "./GetOriginAccessControlConfigCommand";
47
51
  export * from "./GetOriginRequestPolicyCommand";
48
52
  export * from "./GetOriginRequestPolicyConfigCommand";
49
53
  export * from "./GetPublicKeyCommand";
@@ -68,6 +72,7 @@ export * from "./ListFieldLevelEncryptionProfilesCommand";
68
72
  export * from "./ListFunctionsCommand";
69
73
  export * from "./ListInvalidationsCommand";
70
74
  export * from "./ListKeyGroupsCommand";
75
+ export * from "./ListOriginAccessControlsCommand";
71
76
  export * from "./ListOriginRequestPoliciesCommand";
72
77
  export * from "./ListPublicKeysCommand";
73
78
  export * from "./ListRealtimeLogConfigsCommand";
@@ -85,6 +90,7 @@ export * from "./UpdateFieldLevelEncryptionConfigCommand";
85
90
  export * from "./UpdateFieldLevelEncryptionProfileCommand";
86
91
  export * from "./UpdateFunctionCommand";
87
92
  export * from "./UpdateKeyGroupCommand";
93
+ export * from "./UpdateOriginAccessControlCommand";
88
94
  export * from "./UpdateOriginRequestPolicyCommand";
89
95
  export * from "./UpdatePublicKeyCommand";
90
96
  export * from "./UpdateRealtimeLogConfigCommand";