@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,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { CloudFrontServiceException as __BaseException } from "./CloudFrontServiceException";
2
3
  import { Aliases, AliasICPRecordal, CacheBehaviors, CachePolicy, CachePolicyConfig, CachePolicyList, CachePolicyType, CloudFrontOriginAccessIdentity, CloudFrontOriginAccessIdentityConfig, ContentTypeProfileConfig, CustomErrorResponses, DefaultCacheBehavior, Distribution, DistributionConfig, EncryptionEntities, EndPoint, FieldLevelEncryption, FieldLevelEncryptionConfig, FieldLevelEncryptionProfile, FieldLevelEncryptionProfileConfig, FunctionConfig, FunctionStage, FunctionSummary, HttpVersion, Invalidation, KeyGroup, KeyGroupConfig, MonitoringSubscription, OriginGroups, OriginRequestPolicy, OriginRequestPolicyConfig, Origins, PriceClass, PublicKey, PublicKeyConfig, QueryArgProfileConfig, RealtimeLogConfig, ResponseHeadersPolicy, ResponseHeadersPolicyConfig, Restrictions, S3Origin, StreamingDistribution, StreamingDistributionConfig, Tags, TrustedSigners, ViewerCertificate } from "./models_0";
3
4
  export interface DeleteMonitoringSubscriptionResult {
4
5
  }
@@ -32,10 +33,14 @@ export declare namespace DeleteOriginRequestPolicyRequest {
32
33
  * <p>Cannot delete the origin request policy because it is attached to one or more cache
33
34
  * behaviors.</p>
34
35
  */
35
- export interface OriginRequestPolicyInUse extends __SmithyException, $MetadataBearer {
36
- name: "OriginRequestPolicyInUse";
37
- $fault: "client";
36
+ export declare class OriginRequestPolicyInUse extends __BaseException {
37
+ readonly name: "OriginRequestPolicyInUse";
38
+ readonly $fault: "client";
38
39
  Message?: string;
40
+ /**
41
+ * @internal
42
+ */
43
+ constructor(opts: __ExceptionOptionType<OriginRequestPolicyInUse, __BaseException>);
39
44
  }
40
45
  export interface DeletePublicKeyRequest {
41
46
  /**
@@ -57,10 +62,14 @@ export declare namespace DeletePublicKeyRequest {
57
62
  /**
58
63
  * <p>The specified public key is in use. </p>
59
64
  */
60
- export interface PublicKeyInUse extends __SmithyException, $MetadataBearer {
61
- name: "PublicKeyInUse";
62
- $fault: "client";
65
+ export declare class PublicKeyInUse extends __BaseException {
66
+ readonly name: "PublicKeyInUse";
67
+ readonly $fault: "client";
63
68
  Message?: string;
69
+ /**
70
+ * @internal
71
+ */
72
+ constructor(opts: __ExceptionOptionType<PublicKeyInUse, __BaseException>);
64
73
  }
65
74
  export interface DeleteRealtimeLogConfigRequest {
66
75
  /**
@@ -82,10 +91,14 @@ export declare namespace DeleteRealtimeLogConfigRequest {
82
91
  * <p>Cannot delete the real-time log configuration because it is attached to one or more cache
83
92
  * behaviors.</p>
84
93
  */
85
- export interface RealtimeLogConfigInUse extends __SmithyException, $MetadataBearer {
86
- name: "RealtimeLogConfigInUse";
87
- $fault: "client";
94
+ export declare class RealtimeLogConfigInUse extends __BaseException {
95
+ readonly name: "RealtimeLogConfigInUse";
96
+ readonly $fault: "client";
88
97
  Message?: string;
98
+ /**
99
+ * @internal
100
+ */
101
+ constructor(opts: __ExceptionOptionType<RealtimeLogConfigInUse, __BaseException>);
89
102
  }
90
103
  export interface DeleteResponseHeadersPolicyRequest {
91
104
  /**
@@ -112,10 +125,14 @@ export declare namespace DeleteResponseHeadersPolicyRequest {
112
125
  * <p>Cannot delete the response headers policy because it is attached to one or more cache
113
126
  * behaviors in a CloudFront distribution. </p>
114
127
  */
115
- export interface ResponseHeadersPolicyInUse extends __SmithyException, $MetadataBearer {
116
- name: "ResponseHeadersPolicyInUse";
117
- $fault: "client";
128
+ export declare class ResponseHeadersPolicyInUse extends __BaseException {
129
+ readonly name: "ResponseHeadersPolicyInUse";
130
+ readonly $fault: "client";
118
131
  Message?: string;
132
+ /**
133
+ * @internal
134
+ */
135
+ constructor(opts: __ExceptionOptionType<ResponseHeadersPolicyInUse, __BaseException>);
119
136
  }
120
137
  /**
121
138
  * <p>The request to delete a streaming distribution.</p>
@@ -140,19 +157,27 @@ export declare namespace DeleteStreamingDistributionRequest {
140
157
  /**
141
158
  * <p>The specified streaming distribution does not exist.</p>
142
159
  */
143
- export interface NoSuchStreamingDistribution extends __SmithyException, $MetadataBearer {
144
- name: "NoSuchStreamingDistribution";
145
- $fault: "client";
160
+ export declare class NoSuchStreamingDistribution extends __BaseException {
161
+ readonly name: "NoSuchStreamingDistribution";
162
+ readonly $fault: "client";
146
163
  Message?: string;
164
+ /**
165
+ * @internal
166
+ */
167
+ constructor(opts: __ExceptionOptionType<NoSuchStreamingDistribution, __BaseException>);
147
168
  }
148
169
  /**
149
170
  * <p>The specified CloudFront distribution is not disabled. You must disable
150
171
  * the distribution before you can delete it.</p>
151
172
  */
152
- export interface StreamingDistributionNotDisabled extends __SmithyException, $MetadataBearer {
153
- name: "StreamingDistributionNotDisabled";
154
- $fault: "client";
173
+ export declare class StreamingDistributionNotDisabled extends __BaseException {
174
+ readonly name: "StreamingDistributionNotDisabled";
175
+ readonly $fault: "client";
155
176
  Message?: string;
177
+ /**
178
+ * @internal
179
+ */
180
+ constructor(opts: __ExceptionOptionType<StreamingDistributionNotDisabled, __BaseException>);
156
181
  }
157
182
  export interface DescribeFunctionRequest {
158
183
  /**
@@ -577,10 +602,14 @@ export declare namespace GetInvalidationResult {
577
602
  /**
578
603
  * <p>The specified invalidation does not exist.</p>
579
604
  */
580
- export interface NoSuchInvalidation extends __SmithyException, $MetadataBearer {
581
- name: "NoSuchInvalidation";
582
- $fault: "client";
605
+ export declare class NoSuchInvalidation extends __BaseException {
606
+ readonly name: "NoSuchInvalidation";
607
+ readonly $fault: "client";
583
608
  Message?: string;
609
+ /**
610
+ * @internal
611
+ */
612
+ constructor(opts: __ExceptionOptionType<NoSuchInvalidation, __BaseException>);
584
613
  }
585
614
  export interface GetKeyGroupRequest {
586
615
  /**
@@ -2690,10 +2719,14 @@ export declare namespace TagResourceRequest {
2690
2719
  /**
2691
2720
  * <p>The CloudFront function failed.</p>
2692
2721
  */
2693
- export interface TestFunctionFailed extends __SmithyException, $MetadataBearer {
2694
- name: "TestFunctionFailed";
2695
- $fault: "server";
2722
+ export declare class TestFunctionFailed extends __BaseException {
2723
+ readonly name: "TestFunctionFailed";
2724
+ readonly $fault: "server";
2696
2725
  Message?: string;
2726
+ /**
2727
+ * @internal
2728
+ */
2729
+ constructor(opts: __ExceptionOptionType<TestFunctionFailed, __BaseException>);
2697
2730
  }
2698
2731
  export interface TestFunctionRequest {
2699
2732
  /**