@aws-sdk/client-cloudfront 3.223.0 → 3.226.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 (81) hide show
  1. package/README.md +4 -3
  2. package/dist-cjs/CloudFront.js +15 -0
  3. package/dist-cjs/commands/UpdateDistributionWithStagingConfigCommand.js +46 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/endpoint/ruleset.js +0 -9
  6. package/dist-cjs/models/models_0.js +61 -51
  7. package/dist-cjs/models/models_1.js +60 -5
  8. package/dist-cjs/protocols/Aws_restXml.js +351 -7
  9. package/dist-es/CloudFront.js +15 -0
  10. package/dist-es/commands/UpdateDistributionWithStagingConfigCommand.js +42 -0
  11. package/dist-es/commands/index.js +1 -0
  12. package/dist-es/endpoint/ruleset.js +0 -9
  13. package/dist-es/models/models_0.js +52 -42
  14. package/dist-es/models/models_1.js +49 -0
  15. package/dist-es/protocols/Aws_restXml.js +344 -2
  16. package/dist-types/CloudFront.d.ts +252 -216
  17. package/dist-types/CloudFrontClient.d.ts +7 -5
  18. package/dist-types/commands/AssociateAliasCommand.d.ts +2 -2
  19. package/dist-types/commands/CopyDistributionCommand.d.ts +5 -5
  20. package/dist-types/commands/CreateCachePolicyCommand.d.ts +15 -13
  21. package/dist-types/commands/CreateCloudFrontOriginAccessIdentityCommand.d.ts +4 -3
  22. package/dist-types/commands/CreateContinuousDeploymentPolicyCommand.d.ts +9 -10
  23. package/dist-types/commands/CreateFunctionCommand.d.ts +4 -4
  24. package/dist-types/commands/CreateKeyGroupCommand.d.ts +8 -7
  25. package/dist-types/commands/CreateMonitoringSubscriptionCommand.d.ts +2 -2
  26. package/dist-types/commands/CreateOriginAccessControlCommand.d.ts +4 -4
  27. package/dist-types/commands/CreateOriginRequestPolicyCommand.d.ts +12 -10
  28. package/dist-types/commands/CreateRealtimeLogConfigCommand.d.ts +2 -1
  29. package/dist-types/commands/CreateResponseHeadersPolicyCommand.d.ts +4 -4
  30. package/dist-types/commands/CreateStreamingDistributionCommand.d.ts +3 -3
  31. package/dist-types/commands/CreateStreamingDistributionWithTagsCommand.d.ts +3 -3
  32. package/dist-types/commands/DeleteCachePolicyCommand.d.ts +5 -5
  33. package/dist-types/commands/DeleteFunctionCommand.d.ts +5 -5
  34. package/dist-types/commands/DeleteKeyGroupCommand.d.ts +1 -1
  35. package/dist-types/commands/DeleteMonitoringSubscriptionCommand.d.ts +2 -1
  36. package/dist-types/commands/DeleteOriginAccessControlCommand.d.ts +3 -3
  37. package/dist-types/commands/DeleteOriginRequestPolicyCommand.d.ts +6 -6
  38. package/dist-types/commands/DeleteRealtimeLogConfigCommand.d.ts +2 -2
  39. package/dist-types/commands/DeleteStreamingDistributionCommand.d.ts +22 -20
  40. package/dist-types/commands/DescribeFunctionCommand.d.ts +2 -2
  41. package/dist-types/commands/GetCachePolicyCommand.d.ts +5 -5
  42. package/dist-types/commands/GetCachePolicyConfigCommand.d.ts +3 -3
  43. package/dist-types/commands/GetKeyGroupCommand.d.ts +3 -2
  44. package/dist-types/commands/GetKeyGroupConfigCommand.d.ts +1 -1
  45. package/dist-types/commands/GetMonitoringSubscriptionCommand.d.ts +2 -2
  46. package/dist-types/commands/GetOriginRequestPolicyCommand.d.ts +6 -5
  47. package/dist-types/commands/GetOriginRequestPolicyConfigCommand.d.ts +5 -5
  48. package/dist-types/commands/GetRealtimeLogConfigCommand.d.ts +3 -3
  49. package/dist-types/commands/GetResponseHeadersPolicyCommand.d.ts +2 -2
  50. package/dist-types/commands/GetResponseHeadersPolicyConfigCommand.d.ts +2 -2
  51. package/dist-types/commands/GetStreamingDistributionCommand.d.ts +2 -1
  52. package/dist-types/commands/ListCachePoliciesCommand.d.ts +2 -2
  53. package/dist-types/commands/ListConflictingAliasesCommand.d.ts +8 -8
  54. package/dist-types/commands/ListDistributionsByKeyGroupCommand.d.ts +2 -2
  55. package/dist-types/commands/ListDistributionsByRealtimeLogConfigCommand.d.ts +4 -4
  56. package/dist-types/commands/ListFieldLevelEncryptionConfigsCommand.d.ts +2 -1
  57. package/dist-types/commands/ListFieldLevelEncryptionProfilesCommand.d.ts +2 -1
  58. package/dist-types/commands/ListOriginAccessControlsCommand.d.ts +5 -5
  59. package/dist-types/commands/ListOriginRequestPoliciesCommand.d.ts +2 -2
  60. package/dist-types/commands/PublishFunctionCommand.d.ts +10 -9
  61. package/dist-types/commands/TestFunctionCommand.d.ts +9 -9
  62. package/dist-types/commands/UpdateContinuousDeploymentPolicyCommand.d.ts +4 -3
  63. package/dist-types/commands/UpdateDistributionCommand.d.ts +14 -13
  64. package/dist-types/commands/UpdateDistributionWithStagingConfigCommand.d.ts +46 -0
  65. package/dist-types/commands/UpdateFunctionCommand.d.ts +3 -3
  66. package/dist-types/commands/UpdateKeyGroupCommand.d.ts +1 -1
  67. package/dist-types/commands/UpdateOriginRequestPolicyCommand.d.ts +2 -1
  68. package/dist-types/commands/UpdatePublicKeyCommand.d.ts +2 -1
  69. package/dist-types/commands/UpdateRealtimeLogConfigCommand.d.ts +1 -1
  70. package/dist-types/commands/index.d.ts +1 -0
  71. package/dist-types/models/models_0.d.ts +1291 -1191
  72. package/dist-types/models/models_1.d.ts +488 -325
  73. package/dist-types/protocols/Aws_restXml.d.ts +3 -0
  74. package/dist-types/ts3.4/CloudFront.d.ts +23 -0
  75. package/dist-types/ts3.4/CloudFrontClient.d.ts +6 -0
  76. package/dist-types/ts3.4/commands/UpdateDistributionWithStagingConfigCommand.d.ts +41 -0
  77. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  78. package/dist-types/ts3.4/models/models_0.d.ts +46 -38
  79. package/dist-types/ts3.4/models/models_1.d.ts +54 -1
  80. package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +12 -0
  81. package/package.json +29 -29
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateDistributionWithStagingConfigRequestFilterSensitiveLog, UpdateDistributionWithStagingConfigResultFilterSensitiveLog, } from "../models/models_1";
5
+ import { deserializeAws_restXmlUpdateDistributionWithStagingConfigCommand, serializeAws_restXmlUpdateDistributionWithStagingConfigCommand, } from "../protocols/Aws_restXml";
6
+ export class UpdateDistributionWithStagingConfigCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdateDistributionWithStagingConfigCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "CloudFrontClient";
25
+ const commandName = "UpdateDistributionWithStagingConfigCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: UpdateDistributionWithStagingConfigRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: UpdateDistributionWithStagingConfigResultFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restXmlUpdateDistributionWithStagingConfigCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restXmlUpdateDistributionWithStagingConfigCommand(output, context);
41
+ }
42
+ }
@@ -93,6 +93,7 @@ export * from "./UpdateCachePolicyCommand";
93
93
  export * from "./UpdateCloudFrontOriginAccessIdentityCommand";
94
94
  export * from "./UpdateContinuousDeploymentPolicyCommand";
95
95
  export * from "./UpdateDistributionCommand";
96
+ export * from "./UpdateDistributionWithStagingConfigCommand";
96
97
  export * from "./UpdateFieldLevelEncryptionConfigCommand";
97
98
  export * from "./UpdateFieldLevelEncryptionProfileCommand";
98
99
  export * from "./UpdateFunctionCommand";
@@ -53,15 +53,6 @@ export const ruleSet = {
53
53
  },
54
54
  ],
55
55
  },
56
- {
57
- fn: "parseURL",
58
- argv: [
59
- {
60
- ref: "Endpoint",
61
- },
62
- ],
63
- assign: "url",
64
- },
65
56
  ],
66
57
  type: "tree",
67
58
  rules: [
@@ -1086,6 +1086,19 @@ export class TooManyCloudFrontOriginAccessIdentities extends __BaseException {
1086
1086
  this.Message = opts.Message;
1087
1087
  }
1088
1088
  }
1089
+ export class ContinuousDeploymentPolicyAlreadyExists extends __BaseException {
1090
+ constructor(opts) {
1091
+ super({
1092
+ name: "ContinuousDeploymentPolicyAlreadyExists",
1093
+ $fault: "client",
1094
+ ...opts,
1095
+ });
1096
+ this.name = "ContinuousDeploymentPolicyAlreadyExists";
1097
+ this.$fault = "client";
1098
+ Object.setPrototypeOf(this, ContinuousDeploymentPolicyAlreadyExists.prototype);
1099
+ this.Message = opts.Message;
1100
+ }
1101
+ }
1089
1102
  export var ContinuousDeploymentPolicyType;
1090
1103
  (function (ContinuousDeploymentPolicyType) {
1091
1104
  ContinuousDeploymentPolicyType["SingleHeader"] = "SingleHeader";
@@ -1104,6 +1117,32 @@ export class StagingDistributionInUse extends __BaseException {
1104
1117
  this.Message = opts.Message;
1105
1118
  }
1106
1119
  }
1120
+ export class TooManyContinuousDeploymentPolicies extends __BaseException {
1121
+ constructor(opts) {
1122
+ super({
1123
+ name: "TooManyContinuousDeploymentPolicies",
1124
+ $fault: "client",
1125
+ ...opts,
1126
+ });
1127
+ this.name = "TooManyContinuousDeploymentPolicies";
1128
+ this.$fault = "client";
1129
+ Object.setPrototypeOf(this, TooManyContinuousDeploymentPolicies.prototype);
1130
+ this.Message = opts.Message;
1131
+ }
1132
+ }
1133
+ export class ContinuousDeploymentPolicyInUse extends __BaseException {
1134
+ constructor(opts) {
1135
+ super({
1136
+ name: "ContinuousDeploymentPolicyInUse",
1137
+ $fault: "client",
1138
+ ...opts,
1139
+ });
1140
+ this.name = "ContinuousDeploymentPolicyInUse";
1141
+ this.$fault = "client";
1142
+ Object.setPrototypeOf(this, ContinuousDeploymentPolicyInUse.prototype);
1143
+ this.Message = opts.Message;
1144
+ }
1145
+ }
1107
1146
  export class IllegalOriginAccessConfiguration extends __BaseException {
1108
1147
  constructor(opts) {
1109
1148
  super({
@@ -1130,6 +1169,19 @@ export class InvalidDomainNameForOriginAccessControl extends __BaseException {
1130
1169
  this.Message = opts.Message;
1131
1170
  }
1132
1171
  }
1172
+ export class NoSuchContinuousDeploymentPolicy extends __BaseException {
1173
+ constructor(opts) {
1174
+ super({
1175
+ name: "NoSuchContinuousDeploymentPolicy",
1176
+ $fault: "client",
1177
+ ...opts,
1178
+ });
1179
+ this.name = "NoSuchContinuousDeploymentPolicy";
1180
+ this.$fault = "client";
1181
+ Object.setPrototypeOf(this, NoSuchContinuousDeploymentPolicy.prototype);
1182
+ this.Message = opts.Message;
1183
+ }
1184
+ }
1133
1185
  export class TooManyDistributionsAssociatedToOriginAccessControl extends __BaseException {
1134
1186
  constructor(opts) {
1135
1187
  super({
@@ -1652,45 +1704,6 @@ export class ResponseHeadersPolicyAlreadyExists extends __BaseException {
1652
1704
  this.Message = opts.Message;
1653
1705
  }
1654
1706
  }
1655
- export class TooLongCSPInResponseHeadersPolicy extends __BaseException {
1656
- constructor(opts) {
1657
- super({
1658
- name: "TooLongCSPInResponseHeadersPolicy",
1659
- $fault: "client",
1660
- ...opts,
1661
- });
1662
- this.name = "TooLongCSPInResponseHeadersPolicy";
1663
- this.$fault = "client";
1664
- Object.setPrototypeOf(this, TooLongCSPInResponseHeadersPolicy.prototype);
1665
- this.Message = opts.Message;
1666
- }
1667
- }
1668
- export class TooManyCustomHeadersInResponseHeadersPolicy extends __BaseException {
1669
- constructor(opts) {
1670
- super({
1671
- name: "TooManyCustomHeadersInResponseHeadersPolicy",
1672
- $fault: "client",
1673
- ...opts,
1674
- });
1675
- this.name = "TooManyCustomHeadersInResponseHeadersPolicy";
1676
- this.$fault = "client";
1677
- Object.setPrototypeOf(this, TooManyCustomHeadersInResponseHeadersPolicy.prototype);
1678
- this.Message = opts.Message;
1679
- }
1680
- }
1681
- export class TooManyResponseHeadersPolicies extends __BaseException {
1682
- constructor(opts) {
1683
- super({
1684
- name: "TooManyResponseHeadersPolicies",
1685
- $fault: "client",
1686
- ...opts,
1687
- });
1688
- this.name = "TooManyResponseHeadersPolicies";
1689
- this.$fault = "client";
1690
- Object.setPrototypeOf(this, TooManyResponseHeadersPolicies.prototype);
1691
- this.Message = opts.Message;
1692
- }
1693
- }
1694
1707
  export const KeyPairIdsFilterSensitiveLog = (obj) => ({
1695
1708
  ...obj,
1696
1709
  });
@@ -2164,6 +2177,3 @@ export const ResponseHeadersPolicyFilterSensitiveLog = (obj) => ({
2164
2177
  export const CreateResponseHeadersPolicyResultFilterSensitiveLog = (obj) => ({
2165
2178
  ...obj,
2166
2179
  });
2167
- export const StreamingLoggingConfigFilterSensitiveLog = (obj) => ({
2168
- ...obj,
2169
- });
@@ -1,6 +1,45 @@
1
1
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
2
2
  import { CloudFrontServiceException as __BaseException } from "./CloudFrontServiceException";
3
3
  import { DistributionConfigFilterSensitiveLog, DistributionFilterSensitiveLog, } from "./models_0";
4
+ export class TooLongCSPInResponseHeadersPolicy extends __BaseException {
5
+ constructor(opts) {
6
+ super({
7
+ name: "TooLongCSPInResponseHeadersPolicy",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ this.name = "TooLongCSPInResponseHeadersPolicy";
12
+ this.$fault = "client";
13
+ Object.setPrototypeOf(this, TooLongCSPInResponseHeadersPolicy.prototype);
14
+ this.Message = opts.Message;
15
+ }
16
+ }
17
+ export class TooManyCustomHeadersInResponseHeadersPolicy extends __BaseException {
18
+ constructor(opts) {
19
+ super({
20
+ name: "TooManyCustomHeadersInResponseHeadersPolicy",
21
+ $fault: "client",
22
+ ...opts,
23
+ });
24
+ this.name = "TooManyCustomHeadersInResponseHeadersPolicy";
25
+ this.$fault = "client";
26
+ Object.setPrototypeOf(this, TooManyCustomHeadersInResponseHeadersPolicy.prototype);
27
+ this.Message = opts.Message;
28
+ }
29
+ }
30
+ export class TooManyResponseHeadersPolicies extends __BaseException {
31
+ constructor(opts) {
32
+ super({
33
+ name: "TooManyResponseHeadersPolicies",
34
+ $fault: "client",
35
+ ...opts,
36
+ });
37
+ this.name = "TooManyResponseHeadersPolicies";
38
+ this.$fault = "client";
39
+ Object.setPrototypeOf(this, TooManyResponseHeadersPolicies.prototype);
40
+ this.Message = opts.Message;
41
+ }
42
+ }
4
43
  export class StreamingDistributionAlreadyExists extends __BaseException {
5
44
  constructor(opts) {
6
45
  super({
@@ -323,6 +362,9 @@ export class TestFunctionFailed extends __BaseException {
323
362
  this.Message = opts.Message;
324
363
  }
325
364
  }
365
+ export const StreamingLoggingConfigFilterSensitiveLog = (obj) => ({
366
+ ...obj,
367
+ });
326
368
  export const S3OriginFilterSensitiveLog = (obj) => ({
327
369
  ...obj,
328
370
  });
@@ -852,6 +894,13 @@ export const UpdateDistributionResultFilterSensitiveLog = (obj) => ({
852
894
  ...obj,
853
895
  ...(obj.Distribution && { Distribution: DistributionFilterSensitiveLog(obj.Distribution) }),
854
896
  });
897
+ export const UpdateDistributionWithStagingConfigRequestFilterSensitiveLog = (obj) => ({
898
+ ...obj,
899
+ });
900
+ export const UpdateDistributionWithStagingConfigResultFilterSensitiveLog = (obj) => ({
901
+ ...obj,
902
+ ...(obj.Distribution && { Distribution: DistributionFilterSensitiveLog(obj.Distribution) }),
903
+ });
855
904
  export const UpdateFieldLevelEncryptionConfigRequestFilterSensitiveLog = (obj) => ({
856
905
  ...obj,
857
906
  });