@aws-sdk/client-cloudfront 3.224.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
@@ -95,6 +95,7 @@ import { UpdateCachePolicyCommandInput, UpdateCachePolicyCommandOutput } from ".
95
95
  import { UpdateCloudFrontOriginAccessIdentityCommandInput, UpdateCloudFrontOriginAccessIdentityCommandOutput } from "../commands/UpdateCloudFrontOriginAccessIdentityCommand";
96
96
  import { UpdateContinuousDeploymentPolicyCommandInput, UpdateContinuousDeploymentPolicyCommandOutput } from "../commands/UpdateContinuousDeploymentPolicyCommand";
97
97
  import { UpdateDistributionCommandInput, UpdateDistributionCommandOutput } from "../commands/UpdateDistributionCommand";
98
+ import { UpdateDistributionWithStagingConfigCommandInput, UpdateDistributionWithStagingConfigCommandOutput } from "../commands/UpdateDistributionWithStagingConfigCommand";
98
99
  import { UpdateFieldLevelEncryptionConfigCommandInput, UpdateFieldLevelEncryptionConfigCommandOutput } from "../commands/UpdateFieldLevelEncryptionConfigCommand";
99
100
  import { UpdateFieldLevelEncryptionProfileCommandInput, UpdateFieldLevelEncryptionProfileCommandOutput } from "../commands/UpdateFieldLevelEncryptionProfileCommand";
100
101
  import { UpdateFunctionCommandInput, UpdateFunctionCommandOutput } from "../commands/UpdateFunctionCommand";
@@ -200,6 +201,7 @@ export declare const serializeAws_restXmlUpdateCachePolicyCommand: (input: Updat
200
201
  export declare const serializeAws_restXmlUpdateCloudFrontOriginAccessIdentityCommand: (input: UpdateCloudFrontOriginAccessIdentityCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
201
202
  export declare const serializeAws_restXmlUpdateContinuousDeploymentPolicyCommand: (input: UpdateContinuousDeploymentPolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
202
203
  export declare const serializeAws_restXmlUpdateDistributionCommand: (input: UpdateDistributionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
204
+ export declare const serializeAws_restXmlUpdateDistributionWithStagingConfigCommand: (input: UpdateDistributionWithStagingConfigCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
203
205
  export declare const serializeAws_restXmlUpdateFieldLevelEncryptionConfigCommand: (input: UpdateFieldLevelEncryptionConfigCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
204
206
  export declare const serializeAws_restXmlUpdateFieldLevelEncryptionProfileCommand: (input: UpdateFieldLevelEncryptionProfileCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
205
207
  export declare const serializeAws_restXmlUpdateFunctionCommand: (input: UpdateFunctionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -305,6 +307,7 @@ export declare const deserializeAws_restXmlUpdateCachePolicyCommand: (output: __
305
307
  export declare const deserializeAws_restXmlUpdateCloudFrontOriginAccessIdentityCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateCloudFrontOriginAccessIdentityCommandOutput>;
306
308
  export declare const deserializeAws_restXmlUpdateContinuousDeploymentPolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateContinuousDeploymentPolicyCommandOutput>;
307
309
  export declare const deserializeAws_restXmlUpdateDistributionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateDistributionCommandOutput>;
310
+ export declare const deserializeAws_restXmlUpdateDistributionWithStagingConfigCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateDistributionWithStagingConfigCommandOutput>;
308
311
  export declare const deserializeAws_restXmlUpdateFieldLevelEncryptionConfigCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateFieldLevelEncryptionConfigCommandOutput>;
309
312
  export declare const deserializeAws_restXmlUpdateFieldLevelEncryptionProfileCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateFieldLevelEncryptionProfileCommandOutput>;
310
313
  export declare const deserializeAws_restXmlUpdateFunctionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateFunctionCommandOutput>;
@@ -380,6 +380,10 @@ import {
380
380
  UpdateDistributionCommandInput,
381
381
  UpdateDistributionCommandOutput,
382
382
  } from "./commands/UpdateDistributionCommand";
383
+ import {
384
+ UpdateDistributionWithStagingConfigCommandInput,
385
+ UpdateDistributionWithStagingConfigCommandOutput,
386
+ } from "./commands/UpdateDistributionWithStagingConfigCommand";
383
387
  import {
384
388
  UpdateFieldLevelEncryptionConfigCommandInput,
385
389
  UpdateFieldLevelEncryptionConfigCommandOutput,
@@ -1740,6 +1744,25 @@ export declare class CloudFront extends CloudFrontClient {
1740
1744
  options: __HttpHandlerOptions,
1741
1745
  cb: (err: any, data?: UpdateDistributionCommandOutput) => void
1742
1746
  ): void;
1747
+ updateDistributionWithStagingConfig(
1748
+ args: UpdateDistributionWithStagingConfigCommandInput,
1749
+ options?: __HttpHandlerOptions
1750
+ ): Promise<UpdateDistributionWithStagingConfigCommandOutput>;
1751
+ updateDistributionWithStagingConfig(
1752
+ args: UpdateDistributionWithStagingConfigCommandInput,
1753
+ cb: (
1754
+ err: any,
1755
+ data?: UpdateDistributionWithStagingConfigCommandOutput
1756
+ ) => void
1757
+ ): void;
1758
+ updateDistributionWithStagingConfig(
1759
+ args: UpdateDistributionWithStagingConfigCommandInput,
1760
+ options: __HttpHandlerOptions,
1761
+ cb: (
1762
+ err: any,
1763
+ data?: UpdateDistributionWithStagingConfigCommandOutput
1764
+ ) => void
1765
+ ): void;
1743
1766
  updateFieldLevelEncryptionConfig(
1744
1767
  args: UpdateFieldLevelEncryptionConfigCommandInput,
1745
1768
  options?: __HttpHandlerOptions
@@ -423,6 +423,10 @@ import {
423
423
  UpdateDistributionCommandInput,
424
424
  UpdateDistributionCommandOutput,
425
425
  } from "./commands/UpdateDistributionCommand";
426
+ import {
427
+ UpdateDistributionWithStagingConfigCommandInput,
428
+ UpdateDistributionWithStagingConfigCommandOutput,
429
+ } from "./commands/UpdateDistributionWithStagingConfigCommand";
426
430
  import {
427
431
  UpdateFieldLevelEncryptionConfigCommandInput,
428
432
  UpdateFieldLevelEncryptionConfigCommandOutput,
@@ -564,6 +568,7 @@ export declare type ServiceInputTypes =
564
568
  | UpdateCloudFrontOriginAccessIdentityCommandInput
565
569
  | UpdateContinuousDeploymentPolicyCommandInput
566
570
  | UpdateDistributionCommandInput
571
+ | UpdateDistributionWithStagingConfigCommandInput
567
572
  | UpdateFieldLevelEncryptionConfigCommandInput
568
573
  | UpdateFieldLevelEncryptionProfileCommandInput
569
574
  | UpdateFunctionCommandInput
@@ -670,6 +675,7 @@ export declare type ServiceOutputTypes =
670
675
  | UpdateCloudFrontOriginAccessIdentityCommandOutput
671
676
  | UpdateContinuousDeploymentPolicyCommandOutput
672
677
  | UpdateDistributionCommandOutput
678
+ | UpdateDistributionWithStagingConfigCommandOutput
673
679
  | UpdateFieldLevelEncryptionConfigCommandOutput
674
680
  | UpdateFieldLevelEncryptionProfileCommandOutput
675
681
  | UpdateFunctionCommandOutput
@@ -0,0 +1,41 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ CloudFrontClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../CloudFrontClient";
14
+ import {
15
+ UpdateDistributionWithStagingConfigRequest,
16
+ UpdateDistributionWithStagingConfigResult,
17
+ } from "../models/models_1";
18
+ export interface UpdateDistributionWithStagingConfigCommandInput
19
+ extends UpdateDistributionWithStagingConfigRequest {}
20
+ export interface UpdateDistributionWithStagingConfigCommandOutput
21
+ extends UpdateDistributionWithStagingConfigResult,
22
+ __MetadataBearer {}
23
+ export declare class UpdateDistributionWithStagingConfigCommand extends $Command<
24
+ UpdateDistributionWithStagingConfigCommandInput,
25
+ UpdateDistributionWithStagingConfigCommandOutput,
26
+ CloudFrontClientResolvedConfig
27
+ > {
28
+ readonly input: UpdateDistributionWithStagingConfigCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: UpdateDistributionWithStagingConfigCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: CloudFrontClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<
36
+ UpdateDistributionWithStagingConfigCommandInput,
37
+ UpdateDistributionWithStagingConfigCommandOutput
38
+ >;
39
+ private serialize;
40
+ private deserialize;
41
+ }
@@ -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";
@@ -481,6 +481,8 @@ export interface DistributionConfig {
481
481
  WebACLId?: string;
482
482
  HttpVersion?: HttpVersion | string;
483
483
  IsIPV6Enabled?: boolean;
484
+ ContinuousDeploymentPolicyId?: string;
485
+ Staging?: boolean;
484
486
  }
485
487
  export interface Distribution {
486
488
  Id: string | undefined;
@@ -1074,6 +1076,17 @@ export declare class TooManyCloudFrontOriginAccessIdentities extends __BaseExcep
1074
1076
  >
1075
1077
  );
1076
1078
  }
1079
+ export declare class ContinuousDeploymentPolicyAlreadyExists extends __BaseException {
1080
+ readonly name: "ContinuousDeploymentPolicyAlreadyExists";
1081
+ readonly $fault: "client";
1082
+ Message?: string;
1083
+ constructor(
1084
+ opts: __ExceptionOptionType<
1085
+ ContinuousDeploymentPolicyAlreadyExists,
1086
+ __BaseException
1087
+ >
1088
+ );
1089
+ }
1077
1090
  export interface StagingDistributionDnsNames {
1078
1091
  Quantity: number | undefined;
1079
1092
  Items?: string[];
@@ -1129,6 +1142,28 @@ export declare class StagingDistributionInUse extends __BaseException {
1129
1142
  opts: __ExceptionOptionType<StagingDistributionInUse, __BaseException>
1130
1143
  );
1131
1144
  }
1145
+ export declare class TooManyContinuousDeploymentPolicies extends __BaseException {
1146
+ readonly name: "TooManyContinuousDeploymentPolicies";
1147
+ readonly $fault: "client";
1148
+ Message?: string;
1149
+ constructor(
1150
+ opts: __ExceptionOptionType<
1151
+ TooManyContinuousDeploymentPolicies,
1152
+ __BaseException
1153
+ >
1154
+ );
1155
+ }
1156
+ export declare class ContinuousDeploymentPolicyInUse extends __BaseException {
1157
+ readonly name: "ContinuousDeploymentPolicyInUse";
1158
+ readonly $fault: "client";
1159
+ Message?: string;
1160
+ constructor(
1161
+ opts: __ExceptionOptionType<
1162
+ ContinuousDeploymentPolicyInUse,
1163
+ __BaseException
1164
+ >
1165
+ );
1166
+ }
1132
1167
  export interface CreateDistributionRequest {
1133
1168
  DistributionConfig: DistributionConfig | undefined;
1134
1169
  }
@@ -1159,6 +1194,17 @@ export declare class InvalidDomainNameForOriginAccessControl extends __BaseExcep
1159
1194
  >
1160
1195
  );
1161
1196
  }
1197
+ export declare class NoSuchContinuousDeploymentPolicy extends __BaseException {
1198
+ readonly name: "NoSuchContinuousDeploymentPolicy";
1199
+ readonly $fault: "client";
1200
+ Message?: string;
1201
+ constructor(
1202
+ opts: __ExceptionOptionType<
1203
+ NoSuchContinuousDeploymentPolicy,
1204
+ __BaseException
1205
+ >
1206
+ );
1207
+ }
1162
1208
  export declare class TooManyDistributionsAssociatedToOriginAccessControl extends __BaseException {
1163
1209
  readonly name: "TooManyDistributionsAssociatedToOriginAccessControl";
1164
1210
  readonly $fault: "client";
@@ -1921,41 +1967,6 @@ export declare class ResponseHeadersPolicyAlreadyExists extends __BaseException
1921
1967
  >
1922
1968
  );
1923
1969
  }
1924
- export declare class TooLongCSPInResponseHeadersPolicy extends __BaseException {
1925
- readonly name: "TooLongCSPInResponseHeadersPolicy";
1926
- readonly $fault: "client";
1927
- Message?: string;
1928
- constructor(
1929
- opts: __ExceptionOptionType<
1930
- TooLongCSPInResponseHeadersPolicy,
1931
- __BaseException
1932
- >
1933
- );
1934
- }
1935
- export declare class TooManyCustomHeadersInResponseHeadersPolicy extends __BaseException {
1936
- readonly name: "TooManyCustomHeadersInResponseHeadersPolicy";
1937
- readonly $fault: "client";
1938
- Message?: string;
1939
- constructor(
1940
- opts: __ExceptionOptionType<
1941
- TooManyCustomHeadersInResponseHeadersPolicy,
1942
- __BaseException
1943
- >
1944
- );
1945
- }
1946
- export declare class TooManyResponseHeadersPolicies extends __BaseException {
1947
- readonly name: "TooManyResponseHeadersPolicies";
1948
- readonly $fault: "client";
1949
- Message?: string;
1950
- constructor(
1951
- opts: __ExceptionOptionType<TooManyResponseHeadersPolicies, __BaseException>
1952
- );
1953
- }
1954
- export interface StreamingLoggingConfig {
1955
- Enabled: boolean | undefined;
1956
- Bucket: string | undefined;
1957
- Prefix: string | undefined;
1958
- }
1959
1970
  export declare const KeyPairIdsFilterSensitiveLog: (obj: KeyPairIds) => any;
1960
1971
  export declare const KGKeyPairIdsFilterSensitiveLog: (obj: KGKeyPairIds) => any;
1961
1972
  export declare const ActiveTrustedKeyGroupsFilterSensitiveLog: (
@@ -2371,6 +2382,3 @@ export declare const ResponseHeadersPolicyFilterSensitiveLog: (
2371
2382
  export declare const CreateResponseHeadersPolicyResultFilterSensitiveLog: (
2372
2383
  obj: CreateResponseHeadersPolicyResult
2373
2384
  ) => any;
2374
- export declare const StreamingLoggingConfigFilterSensitiveLog: (
2375
- obj: StreamingLoggingConfig
2376
- ) => any;
@@ -49,11 +49,45 @@ import {
49
49
  ResponseHeadersPolicy,
50
50
  ResponseHeadersPolicyConfig,
51
51
  Restrictions,
52
- StreamingLoggingConfig,
53
52
  Tags,
54
53
  TrustedSigners,
55
54
  ViewerCertificate,
56
55
  } from "./models_0";
56
+ export declare class TooLongCSPInResponseHeadersPolicy extends __BaseException {
57
+ readonly name: "TooLongCSPInResponseHeadersPolicy";
58
+ readonly $fault: "client";
59
+ Message?: string;
60
+ constructor(
61
+ opts: __ExceptionOptionType<
62
+ TooLongCSPInResponseHeadersPolicy,
63
+ __BaseException
64
+ >
65
+ );
66
+ }
67
+ export declare class TooManyCustomHeadersInResponseHeadersPolicy extends __BaseException {
68
+ readonly name: "TooManyCustomHeadersInResponseHeadersPolicy";
69
+ readonly $fault: "client";
70
+ Message?: string;
71
+ constructor(
72
+ opts: __ExceptionOptionType<
73
+ TooManyCustomHeadersInResponseHeadersPolicy,
74
+ __BaseException
75
+ >
76
+ );
77
+ }
78
+ export declare class TooManyResponseHeadersPolicies extends __BaseException {
79
+ readonly name: "TooManyResponseHeadersPolicies";
80
+ readonly $fault: "client";
81
+ Message?: string;
82
+ constructor(
83
+ opts: __ExceptionOptionType<TooManyResponseHeadersPolicies, __BaseException>
84
+ );
85
+ }
86
+ export interface StreamingLoggingConfig {
87
+ Enabled: boolean | undefined;
88
+ Bucket: string | undefined;
89
+ Prefix: string | undefined;
90
+ }
57
91
  export interface S3Origin {
58
92
  DomainName: string | undefined;
59
93
  OriginAccessIdentity: string | undefined;
@@ -646,6 +680,7 @@ export interface DistributionSummary {
646
680
  HttpVersion: HttpVersion | string | undefined;
647
681
  IsIPV6Enabled: boolean | undefined;
648
682
  AliasICPRecordals?: AliasICPRecordal[];
683
+ Staging: boolean | undefined;
649
684
  }
650
685
  export interface DistributionList {
651
686
  Marker: string | undefined;
@@ -1024,6 +1059,15 @@ export interface UpdateDistributionResult {
1024
1059
  Distribution?: Distribution;
1025
1060
  ETag?: string;
1026
1061
  }
1062
+ export interface UpdateDistributionWithStagingConfigRequest {
1063
+ Id: string | undefined;
1064
+ StagingDistributionId?: string;
1065
+ IfMatch?: string;
1066
+ }
1067
+ export interface UpdateDistributionWithStagingConfigResult {
1068
+ Distribution?: Distribution;
1069
+ ETag?: string;
1070
+ }
1027
1071
  export interface UpdateFieldLevelEncryptionConfigRequest {
1028
1072
  FieldLevelEncryptionConfig: FieldLevelEncryptionConfig | undefined;
1029
1073
  Id: string | undefined;
@@ -1118,6 +1162,9 @@ export interface UpdateStreamingDistributionResult {
1118
1162
  StreamingDistribution?: StreamingDistribution;
1119
1163
  ETag?: string;
1120
1164
  }
1165
+ export declare const StreamingLoggingConfigFilterSensitiveLog: (
1166
+ obj: StreamingLoggingConfig
1167
+ ) => any;
1121
1168
  export declare const S3OriginFilterSensitiveLog: (obj: S3Origin) => any;
1122
1169
  export declare const StreamingDistributionConfigFilterSensitiveLog: (
1123
1170
  obj: StreamingDistributionConfig
@@ -1627,6 +1674,12 @@ export declare const UpdateDistributionRequestFilterSensitiveLog: (
1627
1674
  export declare const UpdateDistributionResultFilterSensitiveLog: (
1628
1675
  obj: UpdateDistributionResult
1629
1676
  ) => any;
1677
+ export declare const UpdateDistributionWithStagingConfigRequestFilterSensitiveLog: (
1678
+ obj: UpdateDistributionWithStagingConfigRequest
1679
+ ) => any;
1680
+ export declare const UpdateDistributionWithStagingConfigResultFilterSensitiveLog: (
1681
+ obj: UpdateDistributionWithStagingConfigResult
1682
+ ) => any;
1630
1683
  export declare const UpdateFieldLevelEncryptionConfigRequestFilterSensitiveLog: (
1631
1684
  obj: UpdateFieldLevelEncryptionConfigRequest
1632
1685
  ) => any;
@@ -383,6 +383,10 @@ import {
383
383
  UpdateDistributionCommandInput,
384
384
  UpdateDistributionCommandOutput,
385
385
  } from "../commands/UpdateDistributionCommand";
386
+ import {
387
+ UpdateDistributionWithStagingConfigCommandInput,
388
+ UpdateDistributionWithStagingConfigCommandOutput,
389
+ } from "../commands/UpdateDistributionWithStagingConfigCommand";
386
390
  import {
387
391
  UpdateFieldLevelEncryptionConfigCommandInput,
388
392
  UpdateFieldLevelEncryptionConfigCommandOutput,
@@ -803,6 +807,10 @@ export declare const serializeAws_restXmlUpdateDistributionCommand: (
803
807
  input: UpdateDistributionCommandInput,
804
808
  context: __SerdeContext
805
809
  ) => Promise<__HttpRequest>;
810
+ export declare const serializeAws_restXmlUpdateDistributionWithStagingConfigCommand: (
811
+ input: UpdateDistributionWithStagingConfigCommandInput,
812
+ context: __SerdeContext
813
+ ) => Promise<__HttpRequest>;
806
814
  export declare const serializeAws_restXmlUpdateFieldLevelEncryptionConfigCommand: (
807
815
  input: UpdateFieldLevelEncryptionConfigCommandInput,
808
816
  context: __SerdeContext
@@ -1223,6 +1231,10 @@ export declare const deserializeAws_restXmlUpdateDistributionCommand: (
1223
1231
  output: __HttpResponse,
1224
1232
  context: __SerdeContext
1225
1233
  ) => Promise<UpdateDistributionCommandOutput>;
1234
+ export declare const deserializeAws_restXmlUpdateDistributionWithStagingConfigCommand: (
1235
+ output: __HttpResponse,
1236
+ context: __SerdeContext
1237
+ ) => Promise<UpdateDistributionWithStagingConfigCommandOutput>;
1226
1238
  export declare const deserializeAws_restXmlUpdateFieldLevelEncryptionConfigCommand: (
1227
1239
  output: __HttpResponse,
1228
1240
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudfront",
3
3
  "description": "AWS SDK for JavaScript Cloudfront Client for Node.js, Browser and React Native",
4
- "version": "3.224.0",
4
+ "version": "3.226.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,39 +19,39 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.224.0",
23
- "@aws-sdk/config-resolver": "3.224.0",
24
- "@aws-sdk/credential-provider-node": "3.224.0",
25
- "@aws-sdk/fetch-http-handler": "3.224.0",
26
- "@aws-sdk/hash-node": "3.224.0",
27
- "@aws-sdk/invalid-dependency": "3.224.0",
28
- "@aws-sdk/middleware-content-length": "3.224.0",
29
- "@aws-sdk/middleware-endpoint": "3.224.0",
30
- "@aws-sdk/middleware-host-header": "3.224.0",
31
- "@aws-sdk/middleware-logger": "3.224.0",
32
- "@aws-sdk/middleware-recursion-detection": "3.224.0",
33
- "@aws-sdk/middleware-retry": "3.224.0",
34
- "@aws-sdk/middleware-serde": "3.224.0",
35
- "@aws-sdk/middleware-signing": "3.224.0",
36
- "@aws-sdk/middleware-stack": "3.224.0",
37
- "@aws-sdk/middleware-user-agent": "3.224.0",
38
- "@aws-sdk/node-config-provider": "3.224.0",
39
- "@aws-sdk/node-http-handler": "3.224.0",
40
- "@aws-sdk/protocol-http": "3.224.0",
41
- "@aws-sdk/smithy-client": "3.224.0",
42
- "@aws-sdk/types": "3.224.0",
43
- "@aws-sdk/url-parser": "3.224.0",
22
+ "@aws-sdk/client-sts": "3.226.0",
23
+ "@aws-sdk/config-resolver": "3.226.0",
24
+ "@aws-sdk/credential-provider-node": "3.226.0",
25
+ "@aws-sdk/fetch-http-handler": "3.226.0",
26
+ "@aws-sdk/hash-node": "3.226.0",
27
+ "@aws-sdk/invalid-dependency": "3.226.0",
28
+ "@aws-sdk/middleware-content-length": "3.226.0",
29
+ "@aws-sdk/middleware-endpoint": "3.226.0",
30
+ "@aws-sdk/middleware-host-header": "3.226.0",
31
+ "@aws-sdk/middleware-logger": "3.226.0",
32
+ "@aws-sdk/middleware-recursion-detection": "3.226.0",
33
+ "@aws-sdk/middleware-retry": "3.226.0",
34
+ "@aws-sdk/middleware-serde": "3.226.0",
35
+ "@aws-sdk/middleware-signing": "3.226.0",
36
+ "@aws-sdk/middleware-stack": "3.226.0",
37
+ "@aws-sdk/middleware-user-agent": "3.226.0",
38
+ "@aws-sdk/node-config-provider": "3.226.0",
39
+ "@aws-sdk/node-http-handler": "3.226.0",
40
+ "@aws-sdk/protocol-http": "3.226.0",
41
+ "@aws-sdk/smithy-client": "3.226.0",
42
+ "@aws-sdk/types": "3.226.0",
43
+ "@aws-sdk/url-parser": "3.226.0",
44
44
  "@aws-sdk/util-base64": "3.208.0",
45
45
  "@aws-sdk/util-body-length-browser": "3.188.0",
46
46
  "@aws-sdk/util-body-length-node": "3.208.0",
47
- "@aws-sdk/util-defaults-mode-browser": "3.224.0",
48
- "@aws-sdk/util-defaults-mode-node": "3.224.0",
49
- "@aws-sdk/util-endpoints": "3.224.0",
50
- "@aws-sdk/util-user-agent-browser": "3.224.0",
51
- "@aws-sdk/util-user-agent-node": "3.224.0",
47
+ "@aws-sdk/util-defaults-mode-browser": "3.226.0",
48
+ "@aws-sdk/util-defaults-mode-node": "3.226.0",
49
+ "@aws-sdk/util-endpoints": "3.226.0",
50
+ "@aws-sdk/util-user-agent-browser": "3.226.0",
51
+ "@aws-sdk/util-user-agent-node": "3.226.0",
52
52
  "@aws-sdk/util-utf8-browser": "3.188.0",
53
53
  "@aws-sdk/util-utf8-node": "3.208.0",
54
- "@aws-sdk/util-waiter": "3.224.0",
54
+ "@aws-sdk/util-waiter": "3.226.0",
55
55
  "@aws-sdk/xml-builder": "3.201.0",
56
56
  "fast-xml-parser": "4.0.11",
57
57
  "tslib": "^2.3.1"