@aws-sdk/client-cloudfront 3.454.0 → 3.456.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 (60) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/CloudFront.js +10 -0
  3. package/dist-cjs/commands/CreateKeyValueStoreCommand.js +51 -0
  4. package/dist-cjs/commands/DeleteKeyValueStoreCommand.js +51 -0
  5. package/dist-cjs/commands/DescribeKeyValueStoreCommand.js +51 -0
  6. package/dist-cjs/commands/ListKeyValueStoresCommand.js +51 -0
  7. package/dist-cjs/commands/UpdateKeyValueStoreCommand.js +51 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/models/models_0.js +63 -18
  10. package/dist-cjs/models/models_1.js +29 -1
  11. package/dist-cjs/pagination/ListKeyValueStoresPaginator.js +29 -0
  12. package/dist-cjs/pagination/index.js +1 -0
  13. package/dist-cjs/protocols/Aws_restXml.js +514 -5
  14. package/dist-es/CloudFront.js +10 -0
  15. package/dist-es/commands/CreateKeyValueStoreCommand.js +47 -0
  16. package/dist-es/commands/DeleteKeyValueStoreCommand.js +47 -0
  17. package/dist-es/commands/DescribeKeyValueStoreCommand.js +47 -0
  18. package/dist-es/commands/ListKeyValueStoresCommand.js +47 -0
  19. package/dist-es/commands/UpdateKeyValueStoreCommand.js +47 -0
  20. package/dist-es/commands/index.js +5 -0
  21. package/dist-es/models/models_0.js +55 -14
  22. package/dist-es/models/models_1.js +27 -0
  23. package/dist-es/pagination/ListKeyValueStoresPaginator.js +25 -0
  24. package/dist-es/pagination/index.js +1 -0
  25. package/dist-es/protocols/Aws_restXml.js +501 -2
  26. package/dist-types/CloudFront.d.ts +35 -0
  27. package/dist-types/CloudFrontClient.d.ts +7 -2
  28. package/dist-types/commands/CreateFunctionCommand.d.ts +16 -0
  29. package/dist-types/commands/CreateKeyValueStoreCommand.d.ts +103 -0
  30. package/dist-types/commands/CreateResponseHeadersPolicyCommand.d.ts +1 -2
  31. package/dist-types/commands/DeleteKeyValueStoreCommand.d.ts +88 -0
  32. package/dist-types/commands/DescribeFunctionCommand.d.ts +8 -0
  33. package/dist-types/commands/DescribeKeyValueStoreCommand.d.ts +90 -0
  34. package/dist-types/commands/ListFunctionsCommand.d.ts +8 -0
  35. package/dist-types/commands/ListKeyValueStoresCommand.d.ts +95 -0
  36. package/dist-types/commands/PublishFunctionCommand.d.ts +8 -0
  37. package/dist-types/commands/TestFunctionCommand.d.ts +8 -0
  38. package/dist-types/commands/UpdateFunctionCommand.d.ts +16 -0
  39. package/dist-types/commands/UpdateKeyValueStoreCommand.d.ts +99 -0
  40. package/dist-types/commands/index.d.ts +5 -0
  41. package/dist-types/models/models_0.d.ts +198 -380
  42. package/dist-types/models/models_1.d.ts +518 -3
  43. package/dist-types/pagination/ListKeyValueStoresPaginator.d.ts +7 -0
  44. package/dist-types/pagination/index.d.ts +1 -0
  45. package/dist-types/protocols/Aws_restXml.d.ts +45 -0
  46. package/dist-types/ts3.4/CloudFront.d.ts +85 -0
  47. package/dist-types/ts3.4/CloudFrontClient.d.ts +30 -0
  48. package/dist-types/ts3.4/commands/CreateKeyValueStoreCommand.d.ts +39 -0
  49. package/dist-types/ts3.4/commands/CreateResponseHeadersPolicyCommand.d.ts +4 -2
  50. package/dist-types/ts3.4/commands/DeleteKeyValueStoreCommand.d.ts +34 -0
  51. package/dist-types/ts3.4/commands/DescribeKeyValueStoreCommand.d.ts +42 -0
  52. package/dist-types/ts3.4/commands/ListKeyValueStoresCommand.d.ts +39 -0
  53. package/dist-types/ts3.4/commands/UpdateKeyValueStoreCommand.d.ts +39 -0
  54. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  55. package/dist-types/ts3.4/models/models_0.d.ts +67 -67
  56. package/dist-types/ts3.4/models/models_1.d.ts +113 -2
  57. package/dist-types/ts3.4/pagination/ListKeyValueStoresPaginator.d.ts +11 -0
  58. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  59. package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +60 -0
  60. package/package.json +1 -1
@@ -1610,6 +1610,19 @@ export declare class CannotChangeImmutablePublicKeyFields extends __BaseExceptio
1610
1610
  */
1611
1611
  constructor(opts: __ExceptionOptionType<CannotChangeImmutablePublicKeyFields, __BaseException>);
1612
1612
  }
1613
+ /**
1614
+ * @public
1615
+ * <p>The Key Value Store entity cannot be deleted while it is in use.</p>
1616
+ */
1617
+ export declare class CannotDeleteEntityWhileInUse extends __BaseException {
1618
+ readonly name: "CannotDeleteEntityWhileInUse";
1619
+ readonly $fault: "client";
1620
+ Message?: string;
1621
+ /**
1622
+ * @internal
1623
+ */
1624
+ constructor(opts: __ExceptionOptionType<CannotDeleteEntityWhileInUse, __BaseException>);
1625
+ }
1613
1626
  /**
1614
1627
  * @public
1615
1628
  * @enum
@@ -2151,12 +2164,11 @@ export interface OriginGroupMembers {
2151
2164
  }
2152
2165
  /**
2153
2166
  * @public
2154
- * <p>An origin group includes two origins (a primary origin and a second origin to failover
2155
- * to) and a failover criteria that you specify. You create an origin group to support
2156
- * origin failover in CloudFront. When you create or update a distribution, you can
2157
- * specifiy the origin group instead of a single origin, and CloudFront will failover from
2158
- * the primary origin to the second origin under the failover conditions that you've
2159
- * chosen.</p>
2167
+ * <p>An origin group includes two origins (a primary origin and a second origin to failover to)
2168
+ * and a failover criteria that you specify. You create an origin group to support origin
2169
+ * failover in CloudFront. When you create or update a distribution, you can specify the
2170
+ * origin group instead of a single origin, and CloudFront will failover from the primary
2171
+ * origin to the second origin under the failover conditions that you've chosen.</p>
2160
2172
  */
2161
2173
  export interface OriginGroup {
2162
2174
  /**
@@ -2430,10 +2442,10 @@ export interface S3OriginConfig {
2430
2442
  * <p>An Elastic Load Balancing load balancer</p>
2431
2443
  * </li>
2432
2444
  * <li>
2433
- * <p>An AWS Elemental MediaPackage endpoint</p>
2445
+ * <p>An Elemental MediaPackage endpoint</p>
2434
2446
  * </li>
2435
2447
  * <li>
2436
- * <p>An AWS Elemental MediaStore container</p>
2448
+ * <p>An Elemental MediaStore container</p>
2437
2449
  * </li>
2438
2450
  * <li>
2439
2451
  * <p>Any other HTTP server, running on an Amazon EC2 instance or any other kind
@@ -5129,6 +5141,33 @@ export declare class TooManyFieldLevelEncryptionProfiles extends __BaseException
5129
5141
  */
5130
5142
  constructor(opts: __ExceptionOptionType<TooManyFieldLevelEncryptionProfiles, __BaseException>);
5131
5143
  }
5144
+ /**
5145
+ * @public
5146
+ * <p>The Key Value Store association.</p>
5147
+ */
5148
+ export interface KeyValueStoreAssociation {
5149
+ /**
5150
+ * @public
5151
+ * <p>The Amazon Resource Name (ARN) of the Key Value Store association.</p>
5152
+ */
5153
+ KeyValueStoreARN: string | undefined;
5154
+ }
5155
+ /**
5156
+ * @public
5157
+ * <p>The Key Value Store associations.</p>
5158
+ */
5159
+ export interface KeyValueStoreAssociations {
5160
+ /**
5161
+ * @public
5162
+ * <p>The quantity of Key Value Store associations.</p>
5163
+ */
5164
+ Quantity: number | undefined;
5165
+ /**
5166
+ * @public
5167
+ * <p>The items of the Key Value Store association.</p>
5168
+ */
5169
+ Items?: KeyValueStoreAssociation[];
5170
+ }
5132
5171
  /**
5133
5172
  * @public
5134
5173
  * @enum
@@ -5153,9 +5192,14 @@ export interface FunctionConfig {
5153
5192
  Comment: string | undefined;
5154
5193
  /**
5155
5194
  * @public
5156
- * <p>The function's runtime environment verion.</p>
5195
+ * <p>The function's runtime environment version.</p>
5157
5196
  */
5158
5197
  Runtime: FunctionRuntime | undefined;
5198
+ /**
5199
+ * @public
5200
+ * <p>The configuration for the Key Value Store associations.</p>
5201
+ */
5202
+ KeyValueStoreAssociations?: KeyValueStoreAssociations;
5159
5203
  }
5160
5204
  /**
5161
5205
  * @public
@@ -5572,6 +5616,151 @@ export declare class TooManyPublicKeysInKeyGroup extends __BaseException {
5572
5616
  */
5573
5617
  constructor(opts: __ExceptionOptionType<TooManyPublicKeysInKeyGroup, __BaseException>);
5574
5618
  }
5619
+ /**
5620
+ * @public
5621
+ * @enum
5622
+ */
5623
+ export declare const ImportSourceType: {
5624
+ readonly S3: "S3";
5625
+ };
5626
+ /**
5627
+ * @public
5628
+ */
5629
+ export type ImportSourceType = (typeof ImportSourceType)[keyof typeof ImportSourceType];
5630
+ /**
5631
+ * @public
5632
+ * <p>The import source for the Key Value Store.</p>
5633
+ */
5634
+ export interface ImportSource {
5635
+ /**
5636
+ * @public
5637
+ * <p>The source type of the import source for the Key Value Store.</p>
5638
+ */
5639
+ SourceType: ImportSourceType | undefined;
5640
+ /**
5641
+ * @public
5642
+ * <p>The Amazon Resource Name (ARN) of the import source for the Key Value Store.</p>
5643
+ */
5644
+ SourceARN: string | undefined;
5645
+ }
5646
+ /**
5647
+ * @public
5648
+ */
5649
+ export interface CreateKeyValueStoreRequest {
5650
+ /**
5651
+ * @public
5652
+ * <p>The name of the Key Value Store. The maximum length of the name is 32 characters.</p>
5653
+ */
5654
+ Name: string | undefined;
5655
+ /**
5656
+ * @public
5657
+ * <p>The comment of the Key Value Store.</p>
5658
+ */
5659
+ Comment?: string;
5660
+ /**
5661
+ * @public
5662
+ * <p>The S3 bucket that provides the source for the import. The source must be in a valid JSON format.</p>
5663
+ */
5664
+ ImportSource?: ImportSource;
5665
+ }
5666
+ /**
5667
+ * @public
5668
+ * <p>The Key Value Store. Use this to separate data from function code, allowing you to update
5669
+ * data without having to publish a new version of a function. The Key Value Store holds
5670
+ * keys and their corresponding values.</p>
5671
+ */
5672
+ export interface KeyValueStore {
5673
+ /**
5674
+ * @public
5675
+ * <p>The name of the Key Value Store.</p>
5676
+ */
5677
+ Name: string | undefined;
5678
+ /**
5679
+ * @public
5680
+ * <p>The unique Id for the Key Value Store.</p>
5681
+ */
5682
+ Id: string | undefined;
5683
+ /**
5684
+ * @public
5685
+ * <p>A comment for the Key Value Store.</p>
5686
+ */
5687
+ Comment: string | undefined;
5688
+ /**
5689
+ * @public
5690
+ * <p>The Amazon Resource Name (ARN) of the Key Value Store.</p>
5691
+ */
5692
+ ARN: string | undefined;
5693
+ /**
5694
+ * @public
5695
+ * <p>The status of the Key Value Store.</p>
5696
+ */
5697
+ Status?: string;
5698
+ /**
5699
+ * @public
5700
+ * <p>The last-modified time of the Key Value Store.</p>
5701
+ */
5702
+ LastModifiedTime: Date | undefined;
5703
+ }
5704
+ /**
5705
+ * @public
5706
+ */
5707
+ export interface CreateKeyValueStoreResult {
5708
+ /**
5709
+ * @public
5710
+ * <p>The resulting Key Value Store.</p>
5711
+ */
5712
+ KeyValueStore?: KeyValueStore;
5713
+ /**
5714
+ * @public
5715
+ * <p>The ETag in the resulting Key Value Store.</p>
5716
+ */
5717
+ ETag?: string;
5718
+ /**
5719
+ * @public
5720
+ * <p>The location of the resulting Key Value Store.</p>
5721
+ */
5722
+ Location?: string;
5723
+ }
5724
+ /**
5725
+ * @public
5726
+ * <p>The Key Value Store entity already exists. You must provide a unique Key Value Store
5727
+ * entity.</p>
5728
+ */
5729
+ export declare class EntityAlreadyExists extends __BaseException {
5730
+ readonly name: "EntityAlreadyExists";
5731
+ readonly $fault: "client";
5732
+ Message?: string;
5733
+ /**
5734
+ * @internal
5735
+ */
5736
+ constructor(opts: __ExceptionOptionType<EntityAlreadyExists, __BaseException>);
5737
+ }
5738
+ /**
5739
+ * @public
5740
+ * <p>The Key Value Store entity limit has been exceeded.</p>
5741
+ */
5742
+ export declare class EntityLimitExceeded extends __BaseException {
5743
+ readonly name: "EntityLimitExceeded";
5744
+ readonly $fault: "client";
5745
+ Message?: string;
5746
+ /**
5747
+ * @internal
5748
+ */
5749
+ constructor(opts: __ExceptionOptionType<EntityLimitExceeded, __BaseException>);
5750
+ }
5751
+ /**
5752
+ * @public
5753
+ * <p>The Key Value Store entity size limit was exceeded.</p>
5754
+ */
5755
+ export declare class EntitySizeLimitExceeded extends __BaseException {
5756
+ readonly name: "EntitySizeLimitExceeded";
5757
+ readonly $fault: "client";
5758
+ Message?: string;
5759
+ /**
5760
+ * @internal
5761
+ */
5762
+ constructor(opts: __ExceptionOptionType<EntitySizeLimitExceeded, __BaseException>);
5763
+ }
5575
5764
  /**
5576
5765
  * @public
5577
5766
  * @enum
@@ -6779,377 +6968,6 @@ export interface ResponseHeadersPolicyContentTypeOptions {
6779
6968
  */
6780
6969
  Override: boolean | undefined;
6781
6970
  }
6782
- /**
6783
- * @public
6784
- * @enum
6785
- */
6786
- export declare const FrameOptionsList: {
6787
- readonly DENY: "DENY";
6788
- readonly SAMEORIGIN: "SAMEORIGIN";
6789
- };
6790
- /**
6791
- * @public
6792
- */
6793
- export type FrameOptionsList = (typeof FrameOptionsList)[keyof typeof FrameOptionsList];
6794
- /**
6795
- * @public
6796
- * <p>Determines whether CloudFront includes the <code>X-Frame-Options</code> HTTP response header
6797
- * and the header's value.</p>
6798
- * <p>For more information about the <code>X-Frame-Options</code> HTTP response header, see
6799
- * <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options">X-Frame-Options</a> in the MDN Web Docs.</p>
6800
- */
6801
- export interface ResponseHeadersPolicyFrameOptions {
6802
- /**
6803
- * @public
6804
- * <p>A Boolean that determines whether CloudFront overrides the <code>X-Frame-Options</code> HTTP
6805
- * response header received from the origin with the one specified in this response headers
6806
- * policy.</p>
6807
- */
6808
- Override: boolean | undefined;
6809
- /**
6810
- * @public
6811
- * <p>The value of the <code>X-Frame-Options</code> HTTP response header. Valid values are
6812
- * <code>DENY</code> and <code>SAMEORIGIN</code>.</p>
6813
- * <p>For more information about these values, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options">X-Frame-Options</a> in the MDN Web Docs.</p>
6814
- */
6815
- FrameOption: FrameOptionsList | undefined;
6816
- }
6817
- /**
6818
- * @public
6819
- * @enum
6820
- */
6821
- export declare const ReferrerPolicyList: {
6822
- readonly no_referrer: "no-referrer";
6823
- readonly no_referrer_when_downgrade: "no-referrer-when-downgrade";
6824
- readonly origin: "origin";
6825
- readonly origin_when_cross_origin: "origin-when-cross-origin";
6826
- readonly same_origin: "same-origin";
6827
- readonly strict_origin: "strict-origin";
6828
- readonly strict_origin_when_cross_origin: "strict-origin-when-cross-origin";
6829
- readonly unsafe_url: "unsafe-url";
6830
- };
6831
- /**
6832
- * @public
6833
- */
6834
- export type ReferrerPolicyList = (typeof ReferrerPolicyList)[keyof typeof ReferrerPolicyList];
6835
- /**
6836
- * @public
6837
- * <p>Determines whether CloudFront includes the <code>Referrer-Policy</code> HTTP response header
6838
- * and the header's value.</p>
6839
- * <p>For more information about the <code>Referrer-Policy</code> HTTP response header, see
6840
- * <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy">Referrer-Policy</a> in the MDN Web Docs.</p>
6841
- */
6842
- export interface ResponseHeadersPolicyReferrerPolicy {
6843
- /**
6844
- * @public
6845
- * <p>A Boolean that determines whether CloudFront overrides the <code>Referrer-Policy</code> HTTP
6846
- * response header received from the origin with the one specified in this response headers
6847
- * policy.</p>
6848
- */
6849
- Override: boolean | undefined;
6850
- /**
6851
- * @public
6852
- * <p>The value of the <code>Referrer-Policy</code> HTTP response header. Valid values
6853
- * are:</p>
6854
- * <ul>
6855
- * <li>
6856
- * <p>
6857
- * <code>no-referrer</code>
6858
- * </p>
6859
- * </li>
6860
- * <li>
6861
- * <p>
6862
- * <code>no-referrer-when-downgrade</code>
6863
- * </p>
6864
- * </li>
6865
- * <li>
6866
- * <p>
6867
- * <code>origin</code>
6868
- * </p>
6869
- * </li>
6870
- * <li>
6871
- * <p>
6872
- * <code>origin-when-cross-origin</code>
6873
- * </p>
6874
- * </li>
6875
- * <li>
6876
- * <p>
6877
- * <code>same-origin</code>
6878
- * </p>
6879
- * </li>
6880
- * <li>
6881
- * <p>
6882
- * <code>strict-origin</code>
6883
- * </p>
6884
- * </li>
6885
- * <li>
6886
- * <p>
6887
- * <code>strict-origin-when-cross-origin</code>
6888
- * </p>
6889
- * </li>
6890
- * <li>
6891
- * <p>
6892
- * <code>unsafe-url</code>
6893
- * </p>
6894
- * </li>
6895
- * </ul>
6896
- * <p>For more information about these values, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy">Referrer-Policy</a> in the MDN Web Docs.</p>
6897
- */
6898
- ReferrerPolicy: ReferrerPolicyList | undefined;
6899
- }
6900
- /**
6901
- * @public
6902
- * <p>Determines whether CloudFront includes the <code>Strict-Transport-Security</code> HTTP
6903
- * response header and the header's value.</p>
6904
- * <p>For more information about the <code>Strict-Transport-Security</code> HTTP response
6905
- * header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security">Strict-Transport-Security</a> in the MDN Web Docs.</p>
6906
- */
6907
- export interface ResponseHeadersPolicyStrictTransportSecurity {
6908
- /**
6909
- * @public
6910
- * <p>A Boolean that determines whether CloudFront overrides the
6911
- * <code>Strict-Transport-Security</code> HTTP response header received from the origin
6912
- * with the one specified in this response headers policy.</p>
6913
- */
6914
- Override: boolean | undefined;
6915
- /**
6916
- * @public
6917
- * <p>A Boolean that determines whether CloudFront includes the <code>includeSubDomains</code>
6918
- * directive in the <code>Strict-Transport-Security</code> HTTP response header.</p>
6919
- */
6920
- IncludeSubdomains?: boolean;
6921
- /**
6922
- * @public
6923
- * <p>A Boolean that determines whether CloudFront includes the <code>preload</code> directive in
6924
- * the <code>Strict-Transport-Security</code> HTTP response header.</p>
6925
- */
6926
- Preload?: boolean;
6927
- /**
6928
- * @public
6929
- * <p>A number that CloudFront uses as the value for the <code>max-age</code> directive in the
6930
- * <code>Strict-Transport-Security</code> HTTP response header.</p>
6931
- */
6932
- AccessControlMaxAgeSec: number | undefined;
6933
- }
6934
- /**
6935
- * @public
6936
- * <p>Determines whether CloudFront includes the <code>X-XSS-Protection</code> HTTP response
6937
- * header and the header's value.</p>
6938
- * <p>For more information about the <code>X-XSS-Protection</code> HTTP response header, see
6939
- * <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection">X-XSS-Protection</a> in the MDN Web Docs.</p>
6940
- */
6941
- export interface ResponseHeadersPolicyXSSProtection {
6942
- /**
6943
- * @public
6944
- * <p>A Boolean that determines whether CloudFront overrides the <code>X-XSS-Protection</code>
6945
- * HTTP response header received from the origin with the one specified in this response
6946
- * headers policy.</p>
6947
- */
6948
- Override: boolean | undefined;
6949
- /**
6950
- * @public
6951
- * <p>A Boolean that determines the value of the <code>X-XSS-Protection</code> HTTP response
6952
- * header. When this setting is <code>true</code>, the value of the
6953
- * <code>X-XSS-Protection</code> header is <code>1</code>. When this setting is
6954
- * <code>false</code>, the value of the <code>X-XSS-Protection</code> header is
6955
- * <code>0</code>.</p>
6956
- * <p>For more information about these settings, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection">X-XSS-Protection</a> in the MDN Web Docs.</p>
6957
- */
6958
- Protection: boolean | undefined;
6959
- /**
6960
- * @public
6961
- * <p>A Boolean that determines whether CloudFront includes the <code>mode=block</code> directive
6962
- * in the <code>X-XSS-Protection</code> header.</p>
6963
- * <p>For more information about this directive, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection">X-XSS-Protection</a> in the MDN Web Docs.</p>
6964
- */
6965
- ModeBlock?: boolean;
6966
- /**
6967
- * @public
6968
- * <p>A reporting URI, which CloudFront uses as the value of the <code>report</code> directive in
6969
- * the <code>X-XSS-Protection</code> header.</p>
6970
- * <p>You cannot specify a <code>ReportUri</code> when <code>ModeBlock</code> is
6971
- * <code>true</code>.</p>
6972
- * <p>For more information about using a reporting URL, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection">X-XSS-Protection</a> in the MDN Web Docs.</p>
6973
- */
6974
- ReportUri?: string;
6975
- }
6976
- /**
6977
- * @public
6978
- * <p>A configuration for a set of security-related HTTP response headers. CloudFront adds these
6979
- * headers to HTTP responses that it sends for requests that match a cache behavior
6980
- * associated with this response headers policy.</p>
6981
- */
6982
- export interface ResponseHeadersPolicySecurityHeadersConfig {
6983
- /**
6984
- * @public
6985
- * <p>Determines whether CloudFront includes the <code>X-XSS-Protection</code> HTTP response
6986
- * header and the header's value.</p>
6987
- * <p>For more information about the <code>X-XSS-Protection</code> HTTP response header, see
6988
- * <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection">X-XSS-Protection</a> in the MDN Web Docs.</p>
6989
- */
6990
- XSSProtection?: ResponseHeadersPolicyXSSProtection;
6991
- /**
6992
- * @public
6993
- * <p>Determines whether CloudFront includes the <code>X-Frame-Options</code> HTTP response header
6994
- * and the header's value.</p>
6995
- * <p>For more information about the <code>X-Frame-Options</code> HTTP response header, see
6996
- * <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options">X-Frame-Options</a> in the MDN Web Docs.</p>
6997
- */
6998
- FrameOptions?: ResponseHeadersPolicyFrameOptions;
6999
- /**
7000
- * @public
7001
- * <p>Determines whether CloudFront includes the <code>Referrer-Policy</code> HTTP response header
7002
- * and the header's value.</p>
7003
- * <p>For more information about the <code>Referrer-Policy</code> HTTP response header, see
7004
- * <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy">Referrer-Policy</a> in the MDN Web Docs.</p>
7005
- */
7006
- ReferrerPolicy?: ResponseHeadersPolicyReferrerPolicy;
7007
- /**
7008
- * @public
7009
- * <p>The policy directives and their values that CloudFront includes as values for the
7010
- * <code>Content-Security-Policy</code> HTTP response header.</p>
7011
- * <p>For more information about the <code>Content-Security-Policy</code> HTTP response
7012
- * header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy">Content-Security-Policy</a> in the MDN Web Docs.</p>
7013
- */
7014
- ContentSecurityPolicy?: ResponseHeadersPolicyContentSecurityPolicy;
7015
- /**
7016
- * @public
7017
- * <p>Determines whether CloudFront includes the <code>X-Content-Type-Options</code> HTTP response
7018
- * header with its value set to <code>nosniff</code>.</p>
7019
- * <p>For more information about the <code>X-Content-Type-Options</code> HTTP response
7020
- * header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options">X-Content-Type-Options</a> in the MDN Web Docs.</p>
7021
- */
7022
- ContentTypeOptions?: ResponseHeadersPolicyContentTypeOptions;
7023
- /**
7024
- * @public
7025
- * <p>Determines whether CloudFront includes the <code>Strict-Transport-Security</code> HTTP
7026
- * response header and the header's value.</p>
7027
- * <p>For more information about the <code>Strict-Transport-Security</code> HTTP response
7028
- * header, see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security">Strict-Transport-Security</a> in the MDN Web Docs.</p>
7029
- */
7030
- StrictTransportSecurity?: ResponseHeadersPolicyStrictTransportSecurity;
7031
- }
7032
- /**
7033
- * @public
7034
- * <p>A configuration for enabling the <code>Server-Timing</code> header in HTTP responses
7035
- * sent from CloudFront. CloudFront adds this header to HTTP responses that it sends in response to
7036
- * requests that match a cache behavior that's associated with this response headers
7037
- * policy.</p>
7038
- * <p>You can use the <code>Server-Timing</code> header to view metrics that can help you
7039
- * gain insights about the behavior and performance of CloudFront. For example, you can see which
7040
- * cache layer served a cache hit, or the first byte latency from the origin when there was
7041
- * a cache miss. You can use the metrics in the <code>Server-Timing</code> header to
7042
- * troubleshoot issues or test the efficiency of your CloudFront configuration. For more
7043
- * information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/understanding-response-headers-policies.html#server-timing-header">Server-Timing header</a> in the
7044
- * <i>Amazon CloudFront Developer Guide</i>.</p>
7045
- */
7046
- export interface ResponseHeadersPolicyServerTimingHeadersConfig {
7047
- /**
7048
- * @public
7049
- * <p>A Boolean that determines whether CloudFront adds the <code>Server-Timing</code> header to
7050
- * HTTP responses that it sends in response to requests that match a cache behavior that's
7051
- * associated with this response headers policy.</p>
7052
- */
7053
- Enabled: boolean | undefined;
7054
- /**
7055
- * @public
7056
- * <p>A number 0–100 (inclusive) that specifies the percentage of responses that you want
7057
- * CloudFront to add the <code>Server-Timing</code> header to. When you set the sampling rate to
7058
- * 100, CloudFront adds the <code>Server-Timing</code> header to the HTTP response for every
7059
- * request that matches the cache behavior that this response headers policy is attached
7060
- * to. When you set it to 50, CloudFront adds the header to 50% of the responses for requests
7061
- * that match the cache behavior. You can set the sampling rate to any number 0–100 with up
7062
- * to four decimal places.</p>
7063
- */
7064
- SamplingRate?: number;
7065
- }
7066
- /**
7067
- * @public
7068
- * <p>A response headers policy configuration.</p>
7069
- * <p>A response headers policy configuration contains metadata about the response headers policy,
7070
- * and configurations for sets of HTTP response headers.</p>
7071
- */
7072
- export interface ResponseHeadersPolicyConfig {
7073
- /**
7074
- * @public
7075
- * <p>A comment to describe the response headers policy.</p>
7076
- * <p>The comment cannot be longer than 128 characters.</p>
7077
- */
7078
- Comment?: string;
7079
- /**
7080
- * @public
7081
- * <p>A name to identify the response headers policy.</p>
7082
- * <p>The name must be unique for response headers policies in this Amazon Web Services account.</p>
7083
- */
7084
- Name: string | undefined;
7085
- /**
7086
- * @public
7087
- * <p>A configuration for a set of HTTP response headers that are used for cross-origin
7088
- * resource sharing (CORS).</p>
7089
- */
7090
- CorsConfig?: ResponseHeadersPolicyCorsConfig;
7091
- /**
7092
- * @public
7093
- * <p>A configuration for a set of security-related HTTP response headers.</p>
7094
- */
7095
- SecurityHeadersConfig?: ResponseHeadersPolicySecurityHeadersConfig;
7096
- /**
7097
- * @public
7098
- * <p>A configuration for enabling the <code>Server-Timing</code> header in HTTP responses
7099
- * sent from CloudFront.</p>
7100
- */
7101
- ServerTimingHeadersConfig?: ResponseHeadersPolicyServerTimingHeadersConfig;
7102
- /**
7103
- * @public
7104
- * <p>A configuration for a set of custom HTTP response headers.</p>
7105
- */
7106
- CustomHeadersConfig?: ResponseHeadersPolicyCustomHeadersConfig;
7107
- /**
7108
- * @public
7109
- * <p>A configuration for a set of HTTP headers to remove from the HTTP response.</p>
7110
- */
7111
- RemoveHeadersConfig?: ResponseHeadersPolicyRemoveHeadersConfig;
7112
- }
7113
- /**
7114
- * @public
7115
- */
7116
- export interface CreateResponseHeadersPolicyRequest {
7117
- /**
7118
- * @public
7119
- * <p>Contains metadata about the response headers policy, and a set of configurations that
7120
- * specify the HTTP headers.</p>
7121
- */
7122
- ResponseHeadersPolicyConfig: ResponseHeadersPolicyConfig | undefined;
7123
- }
7124
- /**
7125
- * @public
7126
- * <p>A response headers policy.</p>
7127
- * <p>A response headers policy contains information about a set of HTTP response headers.</p>
7128
- * <p>After you create a response headers policy, you can use its ID to attach it to one or more
7129
- * cache behaviors in a CloudFront distribution. When it's attached to a cache behavior, the
7130
- * response headers policy affects the HTTP headers that CloudFront includes in HTTP responses to
7131
- * requests that match the cache behavior. CloudFront adds or removes response headers according
7132
- * to the configuration of the response headers policy.</p>
7133
- * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/modifying-response-headers.html">Adding or removing HTTP headers in CloudFront responses</a> in the
7134
- * <i>Amazon CloudFront Developer Guide</i>.</p>
7135
- */
7136
- export interface ResponseHeadersPolicy {
7137
- /**
7138
- * @public
7139
- * <p>The identifier for the response headers policy.</p>
7140
- */
7141
- Id: string | undefined;
7142
- /**
7143
- * @public
7144
- * <p>The date and time when the response headers policy was last modified.</p>
7145
- */
7146
- LastModifiedTime: Date | undefined;
7147
- /**
7148
- * @public
7149
- * <p>A response headers policy configuration.</p>
7150
- */
7151
- ResponseHeadersPolicyConfig: ResponseHeadersPolicyConfig | undefined;
7152
- }
7153
6971
  /**
7154
6972
  * @internal
7155
6973
  */