@aws-sdk/client-cloudfront 3.145.0 → 3.157.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 +30 -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 +228 -255
  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 +4 -4
package/CHANGELOG.md CHANGED
@@ -3,6 +3,36 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.157.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.156.0...v3.157.0) (2022-08-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * **client-cloudfront:** Adds support for CloudFront origin access control (OAC), making it possible to restrict public access to S3 bucket origins in all AWS Regions, those with SSE-KMS, and more. ([b36c500](https://github.com/aws/aws-sdk-js-v3/commit/b36c500e445cf51505e1269fbf1e1ba8300ebd92))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.154.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.153.0...v3.154.0) (2022-08-19)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-cloudfront
20
+
21
+
22
+
23
+
24
+
25
+ # [3.150.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.149.0...v3.150.0) (2022-08-15)
26
+
27
+
28
+ ### Features
29
+
30
+ * **client-cloudfront:** Adds Http 3 support to distributions ([0f250fe](https://github.com/aws/aws-sdk-js-v3/commit/0f250fe532116c548bcee919174ec0896601cc5f))
31
+
32
+
33
+
34
+
35
+
6
36
  # [3.145.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.144.0...v3.145.0) (2022-08-08)
7
37
 
8
38
  **Note:** Version bump only for package @aws-sdk/client-cloudfront
@@ -13,6 +13,7 @@ const CreateFunctionCommand_1 = require("./commands/CreateFunctionCommand");
13
13
  const CreateInvalidationCommand_1 = require("./commands/CreateInvalidationCommand");
14
14
  const CreateKeyGroupCommand_1 = require("./commands/CreateKeyGroupCommand");
15
15
  const CreateMonitoringSubscriptionCommand_1 = require("./commands/CreateMonitoringSubscriptionCommand");
16
+ const CreateOriginAccessControlCommand_1 = require("./commands/CreateOriginAccessControlCommand");
16
17
  const CreateOriginRequestPolicyCommand_1 = require("./commands/CreateOriginRequestPolicyCommand");
17
18
  const CreatePublicKeyCommand_1 = require("./commands/CreatePublicKeyCommand");
18
19
  const CreateRealtimeLogConfigCommand_1 = require("./commands/CreateRealtimeLogConfigCommand");
@@ -27,6 +28,7 @@ const DeleteFieldLevelEncryptionProfileCommand_1 = require("./commands/DeleteFie
27
28
  const DeleteFunctionCommand_1 = require("./commands/DeleteFunctionCommand");
28
29
  const DeleteKeyGroupCommand_1 = require("./commands/DeleteKeyGroupCommand");
29
30
  const DeleteMonitoringSubscriptionCommand_1 = require("./commands/DeleteMonitoringSubscriptionCommand");
31
+ const DeleteOriginAccessControlCommand_1 = require("./commands/DeleteOriginAccessControlCommand");
30
32
  const DeleteOriginRequestPolicyCommand_1 = require("./commands/DeleteOriginRequestPolicyCommand");
31
33
  const DeletePublicKeyCommand_1 = require("./commands/DeletePublicKeyCommand");
32
34
  const DeleteRealtimeLogConfigCommand_1 = require("./commands/DeleteRealtimeLogConfigCommand");
@@ -48,6 +50,8 @@ const GetInvalidationCommand_1 = require("./commands/GetInvalidationCommand");
48
50
  const GetKeyGroupCommand_1 = require("./commands/GetKeyGroupCommand");
49
51
  const GetKeyGroupConfigCommand_1 = require("./commands/GetKeyGroupConfigCommand");
50
52
  const GetMonitoringSubscriptionCommand_1 = require("./commands/GetMonitoringSubscriptionCommand");
53
+ const GetOriginAccessControlCommand_1 = require("./commands/GetOriginAccessControlCommand");
54
+ const GetOriginAccessControlConfigCommand_1 = require("./commands/GetOriginAccessControlConfigCommand");
51
55
  const GetOriginRequestPolicyCommand_1 = require("./commands/GetOriginRequestPolicyCommand");
52
56
  const GetOriginRequestPolicyConfigCommand_1 = require("./commands/GetOriginRequestPolicyConfigCommand");
53
57
  const GetPublicKeyCommand_1 = require("./commands/GetPublicKeyCommand");
@@ -72,6 +76,7 @@ const ListFieldLevelEncryptionProfilesCommand_1 = require("./commands/ListFieldL
72
76
  const ListFunctionsCommand_1 = require("./commands/ListFunctionsCommand");
73
77
  const ListInvalidationsCommand_1 = require("./commands/ListInvalidationsCommand");
74
78
  const ListKeyGroupsCommand_1 = require("./commands/ListKeyGroupsCommand");
79
+ const ListOriginAccessControlsCommand_1 = require("./commands/ListOriginAccessControlsCommand");
75
80
  const ListOriginRequestPoliciesCommand_1 = require("./commands/ListOriginRequestPoliciesCommand");
76
81
  const ListPublicKeysCommand_1 = require("./commands/ListPublicKeysCommand");
77
82
  const ListRealtimeLogConfigsCommand_1 = require("./commands/ListRealtimeLogConfigsCommand");
@@ -89,6 +94,7 @@ const UpdateFieldLevelEncryptionConfigCommand_1 = require("./commands/UpdateFiel
89
94
  const UpdateFieldLevelEncryptionProfileCommand_1 = require("./commands/UpdateFieldLevelEncryptionProfileCommand");
90
95
  const UpdateFunctionCommand_1 = require("./commands/UpdateFunctionCommand");
91
96
  const UpdateKeyGroupCommand_1 = require("./commands/UpdateKeyGroupCommand");
97
+ const UpdateOriginAccessControlCommand_1 = require("./commands/UpdateOriginAccessControlCommand");
92
98
  const UpdateOriginRequestPolicyCommand_1 = require("./commands/UpdateOriginRequestPolicyCommand");
93
99
  const UpdatePublicKeyCommand_1 = require("./commands/UpdatePublicKeyCommand");
94
100
  const UpdateRealtimeLogConfigCommand_1 = require("./commands/UpdateRealtimeLogConfigCommand");
@@ -249,6 +255,20 @@ class CloudFront extends CloudFrontClient_1.CloudFrontClient {
249
255
  return this.send(command, optionsOrCb);
250
256
  }
251
257
  }
258
+ createOriginAccessControl(args, optionsOrCb, cb) {
259
+ const command = new CreateOriginAccessControlCommand_1.CreateOriginAccessControlCommand(args);
260
+ if (typeof optionsOrCb === "function") {
261
+ this.send(command, optionsOrCb);
262
+ }
263
+ else if (typeof cb === "function") {
264
+ if (typeof optionsOrCb !== "object")
265
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
266
+ this.send(command, optionsOrCb || {}, cb);
267
+ }
268
+ else {
269
+ return this.send(command, optionsOrCb);
270
+ }
271
+ }
252
272
  createOriginRequestPolicy(args, optionsOrCb, cb) {
253
273
  const command = new CreateOriginRequestPolicyCommand_1.CreateOriginRequestPolicyCommand(args);
254
274
  if (typeof optionsOrCb === "function") {
@@ -445,6 +465,20 @@ class CloudFront extends CloudFrontClient_1.CloudFrontClient {
445
465
  return this.send(command, optionsOrCb);
446
466
  }
447
467
  }
468
+ deleteOriginAccessControl(args, optionsOrCb, cb) {
469
+ const command = new DeleteOriginAccessControlCommand_1.DeleteOriginAccessControlCommand(args);
470
+ if (typeof optionsOrCb === "function") {
471
+ this.send(command, optionsOrCb);
472
+ }
473
+ else if (typeof cb === "function") {
474
+ if (typeof optionsOrCb !== "object")
475
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
476
+ this.send(command, optionsOrCb || {}, cb);
477
+ }
478
+ else {
479
+ return this.send(command, optionsOrCb);
480
+ }
481
+ }
448
482
  deleteOriginRequestPolicy(args, optionsOrCb, cb) {
449
483
  const command = new DeleteOriginRequestPolicyCommand_1.DeleteOriginRequestPolicyCommand(args);
450
484
  if (typeof optionsOrCb === "function") {
@@ -739,6 +773,34 @@ class CloudFront extends CloudFrontClient_1.CloudFrontClient {
739
773
  return this.send(command, optionsOrCb);
740
774
  }
741
775
  }
776
+ getOriginAccessControl(args, optionsOrCb, cb) {
777
+ const command = new GetOriginAccessControlCommand_1.GetOriginAccessControlCommand(args);
778
+ if (typeof optionsOrCb === "function") {
779
+ this.send(command, optionsOrCb);
780
+ }
781
+ else if (typeof cb === "function") {
782
+ if (typeof optionsOrCb !== "object")
783
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
784
+ this.send(command, optionsOrCb || {}, cb);
785
+ }
786
+ else {
787
+ return this.send(command, optionsOrCb);
788
+ }
789
+ }
790
+ getOriginAccessControlConfig(args, optionsOrCb, cb) {
791
+ const command = new GetOriginAccessControlConfigCommand_1.GetOriginAccessControlConfigCommand(args);
792
+ if (typeof optionsOrCb === "function") {
793
+ this.send(command, optionsOrCb);
794
+ }
795
+ else if (typeof cb === "function") {
796
+ if (typeof optionsOrCb !== "object")
797
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
798
+ this.send(command, optionsOrCb || {}, cb);
799
+ }
800
+ else {
801
+ return this.send(command, optionsOrCb);
802
+ }
803
+ }
742
804
  getOriginRequestPolicy(args, optionsOrCb, cb) {
743
805
  const command = new GetOriginRequestPolicyCommand_1.GetOriginRequestPolicyCommand(args);
744
806
  if (typeof optionsOrCb === "function") {
@@ -1075,6 +1137,20 @@ class CloudFront extends CloudFrontClient_1.CloudFrontClient {
1075
1137
  return this.send(command, optionsOrCb);
1076
1138
  }
1077
1139
  }
1140
+ listOriginAccessControls(args, optionsOrCb, cb) {
1141
+ const command = new ListOriginAccessControlsCommand_1.ListOriginAccessControlsCommand(args);
1142
+ if (typeof optionsOrCb === "function") {
1143
+ this.send(command, optionsOrCb);
1144
+ }
1145
+ else if (typeof cb === "function") {
1146
+ if (typeof optionsOrCb !== "object")
1147
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1148
+ this.send(command, optionsOrCb || {}, cb);
1149
+ }
1150
+ else {
1151
+ return this.send(command, optionsOrCb);
1152
+ }
1153
+ }
1078
1154
  listOriginRequestPolicies(args, optionsOrCb, cb) {
1079
1155
  const command = new ListOriginRequestPoliciesCommand_1.ListOriginRequestPoliciesCommand(args);
1080
1156
  if (typeof optionsOrCb === "function") {
@@ -1313,6 +1389,20 @@ class CloudFront extends CloudFrontClient_1.CloudFrontClient {
1313
1389
  return this.send(command, optionsOrCb);
1314
1390
  }
1315
1391
  }
1392
+ updateOriginAccessControl(args, optionsOrCb, cb) {
1393
+ const command = new UpdateOriginAccessControlCommand_1.UpdateOriginAccessControlCommand(args);
1394
+ if (typeof optionsOrCb === "function") {
1395
+ this.send(command, optionsOrCb);
1396
+ }
1397
+ else if (typeof cb === "function") {
1398
+ if (typeof optionsOrCb !== "object")
1399
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1400
+ this.send(command, optionsOrCb || {}, cb);
1401
+ }
1402
+ else {
1403
+ return this.send(command, optionsOrCb);
1404
+ }
1405
+ }
1316
1406
  updateOriginRequestPolicy(args, optionsOrCb, cb) {
1317
1407
  const command = new UpdateOriginRequestPolicyCommand_1.UpdateOriginRequestPolicyCommand(args);
1318
1408
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateOriginAccessControlCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
+ class CreateOriginAccessControlCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "CloudFrontClient";
18
+ const commandName = "CreateOriginAccessControlCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateOriginAccessControlRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateOriginAccessControlResultFilterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restXml_1.serializeAws_restXmlCreateOriginAccessControlCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restXml_1.deserializeAws_restXmlCreateOriginAccessControlCommand)(output, context);
34
+ }
35
+ }
36
+ exports.CreateOriginAccessControlCommand = CreateOriginAccessControlCommand;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DeleteCloudFrontOriginAccessIdentityCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_0_1 = require("../models/models_0");
6
+ const models_1_1 = require("../models/models_1");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
8
  class DeleteCloudFrontOriginAccessIdentityCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,7 +20,7 @@ class DeleteCloudFrontOriginAccessIdentityCommand extends smithy_client_1.Comman
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.DeleteCloudFrontOriginAccessIdentityRequestFilterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.DeleteCloudFrontOriginAccessIdentityRequestFilterSensitiveLog,
24
24
  outputFilterSensitiveLog: (output) => output,
25
25
  };
26
26
  const { requestHandler } = configuration;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DeleteDistributionCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_0_1 = require("../models/models_0");
6
+ const models_1_1 = require("../models/models_1");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
8
  class DeleteDistributionCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,7 +20,7 @@ class DeleteDistributionCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.DeleteDistributionRequestFilterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.DeleteDistributionRequestFilterSensitiveLog,
24
24
  outputFilterSensitiveLog: (output) => output,
25
25
  };
26
26
  const { requestHandler } = configuration;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DeleteFieldLevelEncryptionConfigCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_0_1 = require("../models/models_0");
6
+ const models_1_1 = require("../models/models_1");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
8
  class DeleteFieldLevelEncryptionConfigCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,7 +20,7 @@ class DeleteFieldLevelEncryptionConfigCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.DeleteFieldLevelEncryptionConfigRequestFilterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.DeleteFieldLevelEncryptionConfigRequestFilterSensitiveLog,
24
24
  outputFilterSensitiveLog: (output) => output,
25
25
  };
26
26
  const { requestHandler } = configuration;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DeleteFieldLevelEncryptionProfileCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_0_1 = require("../models/models_0");
6
+ const models_1_1 = require("../models/models_1");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
8
  class DeleteFieldLevelEncryptionProfileCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,7 +20,7 @@ class DeleteFieldLevelEncryptionProfileCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.DeleteFieldLevelEncryptionProfileRequestFilterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.DeleteFieldLevelEncryptionProfileRequestFilterSensitiveLog,
24
24
  outputFilterSensitiveLog: (output) => output,
25
25
  };
26
26
  const { requestHandler } = configuration;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DeleteFunctionCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_0_1 = require("../models/models_0");
6
+ const models_1_1 = require("../models/models_1");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
8
  class DeleteFunctionCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,7 +20,7 @@ class DeleteFunctionCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.DeleteFunctionRequestFilterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.DeleteFunctionRequestFilterSensitiveLog,
24
24
  outputFilterSensitiveLog: (output) => output,
25
25
  };
26
26
  const { requestHandler } = configuration;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DeleteKeyGroupCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_0_1 = require("../models/models_0");
6
+ const models_1_1 = require("../models/models_1");
7
7
  const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
8
  class DeleteKeyGroupCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,7 +20,7 @@ class DeleteKeyGroupCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.DeleteKeyGroupRequestFilterSensitiveLog,
23
+ inputFilterSensitiveLog: models_1_1.DeleteKeyGroupRequestFilterSensitiveLog,
24
24
  outputFilterSensitiveLog: (output) => output,
25
25
  };
26
26
  const { requestHandler } = configuration;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteOriginAccessControlCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_1_1 = require("../models/models_1");
7
+ const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
+ class DeleteOriginAccessControlCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "CloudFrontClient";
18
+ const commandName = "DeleteOriginAccessControlCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_1_1.DeleteOriginAccessControlRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: (output) => output,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restXml_1.serializeAws_restXmlDeleteOriginAccessControlCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restXml_1.deserializeAws_restXmlDeleteOriginAccessControlCommand)(output, context);
34
+ }
35
+ }
36
+ exports.DeleteOriginAccessControlCommand = DeleteOriginAccessControlCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetOriginAccessControlCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_1_1 = require("../models/models_1");
7
+ const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
+ class GetOriginAccessControlCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "CloudFrontClient";
18
+ const commandName = "GetOriginAccessControlCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_1_1.GetOriginAccessControlRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.GetOriginAccessControlResultFilterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restXml_1.serializeAws_restXmlGetOriginAccessControlCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restXml_1.deserializeAws_restXmlGetOriginAccessControlCommand)(output, context);
34
+ }
35
+ }
36
+ exports.GetOriginAccessControlCommand = GetOriginAccessControlCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetOriginAccessControlConfigCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_1_1 = require("../models/models_1");
7
+ const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
+ class GetOriginAccessControlConfigCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "CloudFrontClient";
18
+ const commandName = "GetOriginAccessControlConfigCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_1_1.GetOriginAccessControlConfigRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.GetOriginAccessControlConfigResultFilterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restXml_1.serializeAws_restXmlGetOriginAccessControlConfigCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restXml_1.deserializeAws_restXmlGetOriginAccessControlConfigCommand)(output, context);
34
+ }
35
+ }
36
+ exports.GetOriginAccessControlConfigCommand = GetOriginAccessControlConfigCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListOriginAccessControlsCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_1_1 = require("../models/models_1");
7
+ const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
+ class ListOriginAccessControlsCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "CloudFrontClient";
18
+ const commandName = "ListOriginAccessControlsCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_1_1.ListOriginAccessControlsRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.ListOriginAccessControlsResultFilterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restXml_1.serializeAws_restXmlListOriginAccessControlsCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restXml_1.deserializeAws_restXmlListOriginAccessControlsCommand)(output, context);
34
+ }
35
+ }
36
+ exports.ListOriginAccessControlsCommand = ListOriginAccessControlsCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateOriginAccessControlCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_1_1 = require("../models/models_1");
7
+ const Aws_restXml_1 = require("../protocols/Aws_restXml");
8
+ class UpdateOriginAccessControlCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "CloudFrontClient";
18
+ const commandName = "UpdateOriginAccessControlCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_1_1.UpdateOriginAccessControlRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: models_1_1.UpdateOriginAccessControlResultFilterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restXml_1.serializeAws_restXmlUpdateOriginAccessControlCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restXml_1.deserializeAws_restXmlUpdateOriginAccessControlCommand)(output, context);
34
+ }
35
+ }
36
+ exports.UpdateOriginAccessControlCommand = UpdateOriginAccessControlCommand;
@@ -12,6 +12,7 @@ tslib_1.__exportStar(require("./CreateFunctionCommand"), exports);
12
12
  tslib_1.__exportStar(require("./CreateInvalidationCommand"), exports);
13
13
  tslib_1.__exportStar(require("./CreateKeyGroupCommand"), exports);
14
14
  tslib_1.__exportStar(require("./CreateMonitoringSubscriptionCommand"), exports);
15
+ tslib_1.__exportStar(require("./CreateOriginAccessControlCommand"), exports);
15
16
  tslib_1.__exportStar(require("./CreateOriginRequestPolicyCommand"), exports);
16
17
  tslib_1.__exportStar(require("./CreatePublicKeyCommand"), exports);
17
18
  tslib_1.__exportStar(require("./CreateRealtimeLogConfigCommand"), exports);
@@ -26,6 +27,7 @@ tslib_1.__exportStar(require("./DeleteFieldLevelEncryptionProfileCommand"), expo
26
27
  tslib_1.__exportStar(require("./DeleteFunctionCommand"), exports);
27
28
  tslib_1.__exportStar(require("./DeleteKeyGroupCommand"), exports);
28
29
  tslib_1.__exportStar(require("./DeleteMonitoringSubscriptionCommand"), exports);
30
+ tslib_1.__exportStar(require("./DeleteOriginAccessControlCommand"), exports);
29
31
  tslib_1.__exportStar(require("./DeleteOriginRequestPolicyCommand"), exports);
30
32
  tslib_1.__exportStar(require("./DeletePublicKeyCommand"), exports);
31
33
  tslib_1.__exportStar(require("./DeleteRealtimeLogConfigCommand"), exports);
@@ -47,6 +49,8 @@ tslib_1.__exportStar(require("./GetInvalidationCommand"), exports);
47
49
  tslib_1.__exportStar(require("./GetKeyGroupCommand"), exports);
48
50
  tslib_1.__exportStar(require("./GetKeyGroupConfigCommand"), exports);
49
51
  tslib_1.__exportStar(require("./GetMonitoringSubscriptionCommand"), exports);
52
+ tslib_1.__exportStar(require("./GetOriginAccessControlCommand"), exports);
53
+ tslib_1.__exportStar(require("./GetOriginAccessControlConfigCommand"), exports);
50
54
  tslib_1.__exportStar(require("./GetOriginRequestPolicyCommand"), exports);
51
55
  tslib_1.__exportStar(require("./GetOriginRequestPolicyConfigCommand"), exports);
52
56
  tslib_1.__exportStar(require("./GetPublicKeyCommand"), exports);
@@ -71,6 +75,7 @@ tslib_1.__exportStar(require("./ListFieldLevelEncryptionProfilesCommand"), expor
71
75
  tslib_1.__exportStar(require("./ListFunctionsCommand"), exports);
72
76
  tslib_1.__exportStar(require("./ListInvalidationsCommand"), exports);
73
77
  tslib_1.__exportStar(require("./ListKeyGroupsCommand"), exports);
78
+ tslib_1.__exportStar(require("./ListOriginAccessControlsCommand"), exports);
74
79
  tslib_1.__exportStar(require("./ListOriginRequestPoliciesCommand"), exports);
75
80
  tslib_1.__exportStar(require("./ListPublicKeysCommand"), exports);
76
81
  tslib_1.__exportStar(require("./ListRealtimeLogConfigsCommand"), exports);
@@ -88,6 +93,7 @@ tslib_1.__exportStar(require("./UpdateFieldLevelEncryptionConfigCommand"), expor
88
93
  tslib_1.__exportStar(require("./UpdateFieldLevelEncryptionProfileCommand"), exports);
89
94
  tslib_1.__exportStar(require("./UpdateFunctionCommand"), exports);
90
95
  tslib_1.__exportStar(require("./UpdateKeyGroupCommand"), exports);
96
+ tslib_1.__exportStar(require("./UpdateOriginAccessControlCommand"), exports);
91
97
  tslib_1.__exportStar(require("./UpdateOriginRequestPolicyCommand"), exports);
92
98
  tslib_1.__exportStar(require("./UpdatePublicKeyCommand"), exports);
93
99
  tslib_1.__exportStar(require("./UpdateRealtimeLogConfigCommand"), exports);