@aws-sdk/client-cloudfront 3.50.0 → 3.53.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 (132) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/index.js +3 -0
  3. package/dist-cjs/models/CloudFrontServiceException.js +11 -0
  4. package/dist-cjs/models/models_0.js +1673 -4
  5. package/dist-cjs/models/models_1.js +117 -4
  6. package/dist-cjs/protocols/Aws_restXml.js +1685 -5116
  7. package/dist-es/index.js +1 -0
  8. package/dist-es/models/CloudFrontServiceException.js +12 -0
  9. package/dist-es/models/models_0.js +1549 -1
  10. package/dist-es/models/models_1.js +106 -1
  11. package/dist-es/protocols/Aws_restXml.js +2718 -5611
  12. package/dist-types/index.d.ts +1 -0
  13. package/dist-types/models/CloudFrontServiceException.d.ts +10 -0
  14. package/dist-types/models/models_0.d.ts +835 -358
  15. package/dist-types/models/models_1.d.ts +58 -25
  16. package/dist-types/ts3.4/CloudFront.d.ts +465 -0
  17. package/dist-types/ts3.4/CloudFrontClient.d.ts +165 -0
  18. package/dist-types/ts3.4/commands/AssociateAliasCommand.d.ts +17 -0
  19. package/dist-types/ts3.4/commands/CreateCachePolicyCommand.d.ts +17 -0
  20. package/dist-types/ts3.4/commands/CreateCloudFrontOriginAccessIdentityCommand.d.ts +17 -0
  21. package/dist-types/ts3.4/commands/CreateDistributionCommand.d.ts +17 -0
  22. package/dist-types/ts3.4/commands/CreateDistributionWithTagsCommand.d.ts +17 -0
  23. package/dist-types/ts3.4/commands/CreateFieldLevelEncryptionConfigCommand.d.ts +17 -0
  24. package/dist-types/ts3.4/commands/CreateFieldLevelEncryptionProfileCommand.d.ts +17 -0
  25. package/dist-types/ts3.4/commands/CreateFunctionCommand.d.ts +17 -0
  26. package/dist-types/ts3.4/commands/CreateInvalidationCommand.d.ts +17 -0
  27. package/dist-types/ts3.4/commands/CreateKeyGroupCommand.d.ts +17 -0
  28. package/dist-types/ts3.4/commands/CreateMonitoringSubscriptionCommand.d.ts +17 -0
  29. package/dist-types/ts3.4/commands/CreateOriginRequestPolicyCommand.d.ts +17 -0
  30. package/dist-types/ts3.4/commands/CreatePublicKeyCommand.d.ts +17 -0
  31. package/dist-types/ts3.4/commands/CreateRealtimeLogConfigCommand.d.ts +17 -0
  32. package/dist-types/ts3.4/commands/CreateResponseHeadersPolicyCommand.d.ts +17 -0
  33. package/dist-types/ts3.4/commands/CreateStreamingDistributionCommand.d.ts +17 -0
  34. package/dist-types/ts3.4/commands/CreateStreamingDistributionWithTagsCommand.d.ts +17 -0
  35. package/dist-types/ts3.4/commands/DeleteCachePolicyCommand.d.ts +17 -0
  36. package/dist-types/ts3.4/commands/DeleteCloudFrontOriginAccessIdentityCommand.d.ts +17 -0
  37. package/dist-types/ts3.4/commands/DeleteDistributionCommand.d.ts +17 -0
  38. package/dist-types/ts3.4/commands/DeleteFieldLevelEncryptionConfigCommand.d.ts +17 -0
  39. package/dist-types/ts3.4/commands/DeleteFieldLevelEncryptionProfileCommand.d.ts +17 -0
  40. package/dist-types/ts3.4/commands/DeleteFunctionCommand.d.ts +17 -0
  41. package/dist-types/ts3.4/commands/DeleteKeyGroupCommand.d.ts +17 -0
  42. package/dist-types/ts3.4/commands/DeleteMonitoringSubscriptionCommand.d.ts +18 -0
  43. package/dist-types/ts3.4/commands/DeleteOriginRequestPolicyCommand.d.ts +17 -0
  44. package/dist-types/ts3.4/commands/DeletePublicKeyCommand.d.ts +17 -0
  45. package/dist-types/ts3.4/commands/DeleteRealtimeLogConfigCommand.d.ts +17 -0
  46. package/dist-types/ts3.4/commands/DeleteResponseHeadersPolicyCommand.d.ts +17 -0
  47. package/dist-types/ts3.4/commands/DeleteStreamingDistributionCommand.d.ts +17 -0
  48. package/dist-types/ts3.4/commands/DescribeFunctionCommand.d.ts +17 -0
  49. package/dist-types/ts3.4/commands/GetCachePolicyCommand.d.ts +17 -0
  50. package/dist-types/ts3.4/commands/GetCachePolicyConfigCommand.d.ts +17 -0
  51. package/dist-types/ts3.4/commands/GetCloudFrontOriginAccessIdentityCommand.d.ts +17 -0
  52. package/dist-types/ts3.4/commands/GetCloudFrontOriginAccessIdentityConfigCommand.d.ts +17 -0
  53. package/dist-types/ts3.4/commands/GetDistributionCommand.d.ts +17 -0
  54. package/dist-types/ts3.4/commands/GetDistributionConfigCommand.d.ts +17 -0
  55. package/dist-types/ts3.4/commands/GetFieldLevelEncryptionCommand.d.ts +17 -0
  56. package/dist-types/ts3.4/commands/GetFieldLevelEncryptionConfigCommand.d.ts +17 -0
  57. package/dist-types/ts3.4/commands/GetFieldLevelEncryptionProfileCommand.d.ts +17 -0
  58. package/dist-types/ts3.4/commands/GetFieldLevelEncryptionProfileConfigCommand.d.ts +17 -0
  59. package/dist-types/ts3.4/commands/GetFunctionCommand.d.ts +17 -0
  60. package/dist-types/ts3.4/commands/GetInvalidationCommand.d.ts +17 -0
  61. package/dist-types/ts3.4/commands/GetKeyGroupCommand.d.ts +17 -0
  62. package/dist-types/ts3.4/commands/GetKeyGroupConfigCommand.d.ts +17 -0
  63. package/dist-types/ts3.4/commands/GetMonitoringSubscriptionCommand.d.ts +17 -0
  64. package/dist-types/ts3.4/commands/GetOriginRequestPolicyCommand.d.ts +17 -0
  65. package/dist-types/ts3.4/commands/GetOriginRequestPolicyConfigCommand.d.ts +17 -0
  66. package/dist-types/ts3.4/commands/GetPublicKeyCommand.d.ts +17 -0
  67. package/dist-types/ts3.4/commands/GetPublicKeyConfigCommand.d.ts +17 -0
  68. package/dist-types/ts3.4/commands/GetRealtimeLogConfigCommand.d.ts +17 -0
  69. package/dist-types/ts3.4/commands/GetResponseHeadersPolicyCommand.d.ts +17 -0
  70. package/dist-types/ts3.4/commands/GetResponseHeadersPolicyConfigCommand.d.ts +17 -0
  71. package/dist-types/ts3.4/commands/GetStreamingDistributionCommand.d.ts +17 -0
  72. package/dist-types/ts3.4/commands/GetStreamingDistributionConfigCommand.d.ts +17 -0
  73. package/dist-types/ts3.4/commands/ListCachePoliciesCommand.d.ts +17 -0
  74. package/dist-types/ts3.4/commands/ListCloudFrontOriginAccessIdentitiesCommand.d.ts +17 -0
  75. package/dist-types/ts3.4/commands/ListConflictingAliasesCommand.d.ts +17 -0
  76. package/dist-types/ts3.4/commands/ListDistributionsByCachePolicyIdCommand.d.ts +17 -0
  77. package/dist-types/ts3.4/commands/ListDistributionsByKeyGroupCommand.d.ts +17 -0
  78. package/dist-types/ts3.4/commands/ListDistributionsByOriginRequestPolicyIdCommand.d.ts +17 -0
  79. package/dist-types/ts3.4/commands/ListDistributionsByRealtimeLogConfigCommand.d.ts +17 -0
  80. package/dist-types/ts3.4/commands/ListDistributionsByResponseHeadersPolicyIdCommand.d.ts +17 -0
  81. package/dist-types/ts3.4/commands/ListDistributionsByWebACLIdCommand.d.ts +17 -0
  82. package/dist-types/ts3.4/commands/ListDistributionsCommand.d.ts +17 -0
  83. package/dist-types/ts3.4/commands/ListFieldLevelEncryptionConfigsCommand.d.ts +17 -0
  84. package/dist-types/ts3.4/commands/ListFieldLevelEncryptionProfilesCommand.d.ts +17 -0
  85. package/dist-types/ts3.4/commands/ListFunctionsCommand.d.ts +17 -0
  86. package/dist-types/ts3.4/commands/ListInvalidationsCommand.d.ts +17 -0
  87. package/dist-types/ts3.4/commands/ListKeyGroupsCommand.d.ts +17 -0
  88. package/dist-types/ts3.4/commands/ListOriginRequestPoliciesCommand.d.ts +17 -0
  89. package/dist-types/ts3.4/commands/ListPublicKeysCommand.d.ts +17 -0
  90. package/dist-types/ts3.4/commands/ListRealtimeLogConfigsCommand.d.ts +17 -0
  91. package/dist-types/ts3.4/commands/ListResponseHeadersPoliciesCommand.d.ts +17 -0
  92. package/dist-types/ts3.4/commands/ListStreamingDistributionsCommand.d.ts +17 -0
  93. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
  94. package/dist-types/ts3.4/commands/PublishFunctionCommand.d.ts +17 -0
  95. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  96. package/dist-types/ts3.4/commands/TestFunctionCommand.d.ts +17 -0
  97. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  98. package/dist-types/ts3.4/commands/UpdateCachePolicyCommand.d.ts +17 -0
  99. package/dist-types/ts3.4/commands/UpdateCloudFrontOriginAccessIdentityCommand.d.ts +17 -0
  100. package/dist-types/ts3.4/commands/UpdateDistributionCommand.d.ts +17 -0
  101. package/dist-types/ts3.4/commands/UpdateFieldLevelEncryptionConfigCommand.d.ts +17 -0
  102. package/dist-types/ts3.4/commands/UpdateFieldLevelEncryptionProfileCommand.d.ts +17 -0
  103. package/dist-types/ts3.4/commands/UpdateFunctionCommand.d.ts +17 -0
  104. package/dist-types/ts3.4/commands/UpdateKeyGroupCommand.d.ts +17 -0
  105. package/dist-types/ts3.4/commands/UpdateOriginRequestPolicyCommand.d.ts +17 -0
  106. package/dist-types/ts3.4/commands/UpdatePublicKeyCommand.d.ts +17 -0
  107. package/dist-types/ts3.4/commands/UpdateRealtimeLogConfigCommand.d.ts +17 -0
  108. package/dist-types/ts3.4/commands/UpdateResponseHeadersPolicyCommand.d.ts +17 -0
  109. package/dist-types/ts3.4/commands/UpdateStreamingDistributionCommand.d.ts +17 -0
  110. package/dist-types/ts3.4/commands/index.d.ts +92 -0
  111. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  112. package/dist-types/ts3.4/index.d.ts +7 -0
  113. package/dist-types/ts3.4/models/CloudFrontServiceException.d.ts +6 -0
  114. package/dist-types/ts3.4/models/index.d.ts +2 -0
  115. package/dist-types/ts3.4/models/models_0.d.ts +314 -0
  116. package/dist-types/ts3.4/models/models_1.d.ts +1804 -0
  117. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  118. package/dist-types/ts3.4/pagination/ListCloudFrontOriginAccessIdentitiesPaginator.d.ts +4 -0
  119. package/dist-types/ts3.4/pagination/ListDistributionsPaginator.d.ts +4 -0
  120. package/dist-types/ts3.4/pagination/ListInvalidationsPaginator.d.ts +4 -0
  121. package/dist-types/ts3.4/pagination/ListStreamingDistributionsPaginator.d.ts +4 -0
  122. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  123. package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +278 -0
  124. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
  125. package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
  126. package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
  127. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
  128. package/dist-types/ts3.4/waiters/index.d.ts +3 -0
  129. package/dist-types/ts3.4/waiters/waitForDistributionDeployed.d.ts +7 -0
  130. package/dist-types/ts3.4/waiters/waitForInvalidationCompleted.d.ts +7 -0
  131. package/dist-types/ts3.4/waiters/waitForStreamingDistributionDeployed.d.ts +7 -0
  132. package/package.json +35 -35
@@ -1,5 +1,6 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __extends } from "tslib";
2
2
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
+ import { CloudFrontServiceException as __BaseException } from "./CloudFrontServiceException";
3
4
  import { Distribution, DistributionConfig, } from "./models_0";
4
5
  export var DeleteMonitoringSubscriptionResult;
5
6
  (function (DeleteMonitoringSubscriptionResult) {
@@ -9,22 +10,100 @@ export var DeleteOriginRequestPolicyRequest;
9
10
  (function (DeleteOriginRequestPolicyRequest) {
10
11
  DeleteOriginRequestPolicyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
11
12
  })(DeleteOriginRequestPolicyRequest || (DeleteOriginRequestPolicyRequest = {}));
13
+ var OriginRequestPolicyInUse = (function (_super) {
14
+ __extends(OriginRequestPolicyInUse, _super);
15
+ function OriginRequestPolicyInUse(opts) {
16
+ var _this = _super.call(this, __assign({ name: "OriginRequestPolicyInUse", $fault: "client" }, opts)) || this;
17
+ _this.name = "OriginRequestPolicyInUse";
18
+ _this.$fault = "client";
19
+ Object.setPrototypeOf(_this, OriginRequestPolicyInUse.prototype);
20
+ _this.Message = opts.Message;
21
+ return _this;
22
+ }
23
+ return OriginRequestPolicyInUse;
24
+ }(__BaseException));
25
+ export { OriginRequestPolicyInUse };
12
26
  export var DeletePublicKeyRequest;
13
27
  (function (DeletePublicKeyRequest) {
14
28
  DeletePublicKeyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
15
29
  })(DeletePublicKeyRequest || (DeletePublicKeyRequest = {}));
30
+ var PublicKeyInUse = (function (_super) {
31
+ __extends(PublicKeyInUse, _super);
32
+ function PublicKeyInUse(opts) {
33
+ var _this = _super.call(this, __assign({ name: "PublicKeyInUse", $fault: "client" }, opts)) || this;
34
+ _this.name = "PublicKeyInUse";
35
+ _this.$fault = "client";
36
+ Object.setPrototypeOf(_this, PublicKeyInUse.prototype);
37
+ _this.Message = opts.Message;
38
+ return _this;
39
+ }
40
+ return PublicKeyInUse;
41
+ }(__BaseException));
42
+ export { PublicKeyInUse };
16
43
  export var DeleteRealtimeLogConfigRequest;
17
44
  (function (DeleteRealtimeLogConfigRequest) {
18
45
  DeleteRealtimeLogConfigRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
19
46
  })(DeleteRealtimeLogConfigRequest || (DeleteRealtimeLogConfigRequest = {}));
47
+ var RealtimeLogConfigInUse = (function (_super) {
48
+ __extends(RealtimeLogConfigInUse, _super);
49
+ function RealtimeLogConfigInUse(opts) {
50
+ var _this = _super.call(this, __assign({ name: "RealtimeLogConfigInUse", $fault: "client" }, opts)) || this;
51
+ _this.name = "RealtimeLogConfigInUse";
52
+ _this.$fault = "client";
53
+ Object.setPrototypeOf(_this, RealtimeLogConfigInUse.prototype);
54
+ _this.Message = opts.Message;
55
+ return _this;
56
+ }
57
+ return RealtimeLogConfigInUse;
58
+ }(__BaseException));
59
+ export { RealtimeLogConfigInUse };
20
60
  export var DeleteResponseHeadersPolicyRequest;
21
61
  (function (DeleteResponseHeadersPolicyRequest) {
22
62
  DeleteResponseHeadersPolicyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
23
63
  })(DeleteResponseHeadersPolicyRequest || (DeleteResponseHeadersPolicyRequest = {}));
64
+ var ResponseHeadersPolicyInUse = (function (_super) {
65
+ __extends(ResponseHeadersPolicyInUse, _super);
66
+ function ResponseHeadersPolicyInUse(opts) {
67
+ var _this = _super.call(this, __assign({ name: "ResponseHeadersPolicyInUse", $fault: "client" }, opts)) || this;
68
+ _this.name = "ResponseHeadersPolicyInUse";
69
+ _this.$fault = "client";
70
+ Object.setPrototypeOf(_this, ResponseHeadersPolicyInUse.prototype);
71
+ _this.Message = opts.Message;
72
+ return _this;
73
+ }
74
+ return ResponseHeadersPolicyInUse;
75
+ }(__BaseException));
76
+ export { ResponseHeadersPolicyInUse };
24
77
  export var DeleteStreamingDistributionRequest;
25
78
  (function (DeleteStreamingDistributionRequest) {
26
79
  DeleteStreamingDistributionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
27
80
  })(DeleteStreamingDistributionRequest || (DeleteStreamingDistributionRequest = {}));
81
+ var NoSuchStreamingDistribution = (function (_super) {
82
+ __extends(NoSuchStreamingDistribution, _super);
83
+ function NoSuchStreamingDistribution(opts) {
84
+ var _this = _super.call(this, __assign({ name: "NoSuchStreamingDistribution", $fault: "client" }, opts)) || this;
85
+ _this.name = "NoSuchStreamingDistribution";
86
+ _this.$fault = "client";
87
+ Object.setPrototypeOf(_this, NoSuchStreamingDistribution.prototype);
88
+ _this.Message = opts.Message;
89
+ return _this;
90
+ }
91
+ return NoSuchStreamingDistribution;
92
+ }(__BaseException));
93
+ export { NoSuchStreamingDistribution };
94
+ var StreamingDistributionNotDisabled = (function (_super) {
95
+ __extends(StreamingDistributionNotDisabled, _super);
96
+ function StreamingDistributionNotDisabled(opts) {
97
+ var _this = _super.call(this, __assign({ name: "StreamingDistributionNotDisabled", $fault: "client" }, opts)) || this;
98
+ _this.name = "StreamingDistributionNotDisabled";
99
+ _this.$fault = "client";
100
+ Object.setPrototypeOf(_this, StreamingDistributionNotDisabled.prototype);
101
+ _this.Message = opts.Message;
102
+ return _this;
103
+ }
104
+ return StreamingDistributionNotDisabled;
105
+ }(__BaseException));
106
+ export { StreamingDistributionNotDisabled };
28
107
  export var DescribeFunctionRequest;
29
108
  (function (DescribeFunctionRequest) {
30
109
  DescribeFunctionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -131,6 +210,19 @@ export var GetInvalidationResult;
131
210
  (function (GetInvalidationResult) {
132
211
  GetInvalidationResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
133
212
  })(GetInvalidationResult || (GetInvalidationResult = {}));
213
+ var NoSuchInvalidation = (function (_super) {
214
+ __extends(NoSuchInvalidation, _super);
215
+ function NoSuchInvalidation(opts) {
216
+ var _this = _super.call(this, __assign({ name: "NoSuchInvalidation", $fault: "client" }, opts)) || this;
217
+ _this.name = "NoSuchInvalidation";
218
+ _this.$fault = "client";
219
+ Object.setPrototypeOf(_this, NoSuchInvalidation.prototype);
220
+ _this.Message = opts.Message;
221
+ return _this;
222
+ }
223
+ return NoSuchInvalidation;
224
+ }(__BaseException));
225
+ export { NoSuchInvalidation };
134
226
  export var GetKeyGroupRequest;
135
227
  (function (GetKeyGroupRequest) {
136
228
  GetKeyGroupRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -512,6 +604,19 @@ export var TagResourceRequest;
512
604
  (function (TagResourceRequest) {
513
605
  TagResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
514
606
  })(TagResourceRequest || (TagResourceRequest = {}));
607
+ var TestFunctionFailed = (function (_super) {
608
+ __extends(TestFunctionFailed, _super);
609
+ function TestFunctionFailed(opts) {
610
+ var _this = _super.call(this, __assign({ name: "TestFunctionFailed", $fault: "server" }, opts)) || this;
611
+ _this.name = "TestFunctionFailed";
612
+ _this.$fault = "server";
613
+ Object.setPrototypeOf(_this, TestFunctionFailed.prototype);
614
+ _this.Message = opts.Message;
615
+ return _this;
616
+ }
617
+ return TestFunctionFailed;
618
+ }(__BaseException));
619
+ export { TestFunctionFailed };
515
620
  export var TestFunctionRequest;
516
621
  (function (TestFunctionRequest) {
517
622
  TestFunctionRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.EventObject && { EventObject: SENSITIVE_STRING }))); };