@aws-sdk/client-cloudfront 3.39.0 → 3.40.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 (119) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist-cjs/CloudFront.js +105 -0
  3. package/dist-cjs/commands/CreateResponseHeadersPolicyCommand.js +36 -0
  4. package/dist-cjs/commands/DeleteMonitoringSubscriptionCommand.js +2 -1
  5. package/dist-cjs/commands/DeleteOriginRequestPolicyCommand.js +2 -2
  6. package/dist-cjs/commands/DeletePublicKeyCommand.js +2 -2
  7. package/dist-cjs/commands/DeleteRealtimeLogConfigCommand.js +2 -2
  8. package/dist-cjs/commands/DeleteResponseHeadersPolicyCommand.js +36 -0
  9. package/dist-cjs/commands/DeleteStreamingDistributionCommand.js +2 -2
  10. package/dist-cjs/commands/DescribeFunctionCommand.js +3 -3
  11. package/dist-cjs/commands/GetCachePolicyCommand.js +3 -3
  12. package/dist-cjs/commands/GetCachePolicyConfigCommand.js +3 -3
  13. package/dist-cjs/commands/GetCloudFrontOriginAccessIdentityCommand.js +3 -3
  14. package/dist-cjs/commands/GetCloudFrontOriginAccessIdentityConfigCommand.js +3 -3
  15. package/dist-cjs/commands/GetDistributionCommand.js +3 -3
  16. package/dist-cjs/commands/GetDistributionConfigCommand.js +3 -3
  17. package/dist-cjs/commands/GetFieldLevelEncryptionCommand.js +3 -3
  18. package/dist-cjs/commands/GetResponseHeadersPolicyCommand.js +36 -0
  19. package/dist-cjs/commands/GetResponseHeadersPolicyConfigCommand.js +36 -0
  20. package/dist-cjs/commands/ListDistributionsByResponseHeadersPolicyIdCommand.js +36 -0
  21. package/dist-cjs/commands/ListResponseHeadersPoliciesCommand.js +36 -0
  22. package/dist-cjs/commands/UpdateResponseHeadersPolicyCommand.js +36 -0
  23. package/dist-cjs/commands/index.js +7 -0
  24. package/dist-cjs/endpoints.js +78 -5
  25. package/dist-cjs/models/models_0.js +174 -166
  26. package/dist-cjs/models/models_1.js +257 -3
  27. package/dist-cjs/protocols/Aws_restXml.js +1725 -120
  28. package/dist-cjs/runtimeConfig.browser.js +6 -3
  29. package/dist-cjs/runtimeConfig.js +5 -3
  30. package/dist-es/CloudFront.js +105 -0
  31. package/dist-es/commands/CreateResponseHeadersPolicyCommand.js +39 -0
  32. package/dist-es/commands/DeleteMonitoringSubscriptionCommand.js +2 -1
  33. package/dist-es/commands/DeleteOriginRequestPolicyCommand.js +1 -1
  34. package/dist-es/commands/DeletePublicKeyCommand.js +1 -1
  35. package/dist-es/commands/DeleteRealtimeLogConfigCommand.js +1 -1
  36. package/dist-es/commands/DeleteResponseHeadersPolicyCommand.js +39 -0
  37. package/dist-es/commands/DeleteStreamingDistributionCommand.js +1 -1
  38. package/dist-es/commands/DescribeFunctionCommand.js +1 -1
  39. package/dist-es/commands/GetCachePolicyCommand.js +1 -1
  40. package/dist-es/commands/GetCachePolicyConfigCommand.js +1 -1
  41. package/dist-es/commands/GetCloudFrontOriginAccessIdentityCommand.js +1 -1
  42. package/dist-es/commands/GetCloudFrontOriginAccessIdentityConfigCommand.js +1 -1
  43. package/dist-es/commands/GetDistributionCommand.js +1 -1
  44. package/dist-es/commands/GetDistributionConfigCommand.js +1 -1
  45. package/dist-es/commands/GetFieldLevelEncryptionCommand.js +1 -1
  46. package/dist-es/commands/GetResponseHeadersPolicyCommand.js +39 -0
  47. package/dist-es/commands/GetResponseHeadersPolicyConfigCommand.js +39 -0
  48. package/dist-es/commands/ListDistributionsByResponseHeadersPolicyIdCommand.js +39 -0
  49. package/dist-es/commands/ListResponseHeadersPoliciesCommand.js +39 -0
  50. package/dist-es/commands/UpdateResponseHeadersPolicyCommand.js +39 -0
  51. package/dist-es/commands/index.js +7 -0
  52. package/dist-es/endpoints.js +78 -5
  53. package/dist-es/models/models_0.js +122 -109
  54. package/dist-es/models/models_1.js +169 -2
  55. package/dist-es/protocols/Aws_restXml.js +2398 -664
  56. package/dist-es/runtimeConfig.browser.js +3 -2
  57. package/dist-es/runtimeConfig.js +3 -3
  58. package/dist-types/CloudFront.d.ts +109 -3
  59. package/dist-types/CloudFrontClient.d.ts +17 -2
  60. package/dist-types/commands/CreateResponseHeadersPolicyCommand.d.ts +42 -0
  61. package/dist-types/commands/DeleteMonitoringSubscriptionCommand.d.ts +2 -1
  62. package/dist-types/commands/DeleteOriginRequestPolicyCommand.d.ts +1 -1
  63. package/dist-types/commands/DeletePublicKeyCommand.d.ts +1 -1
  64. package/dist-types/commands/DeleteRealtimeLogConfigCommand.d.ts +1 -1
  65. package/dist-types/commands/DeleteResponseHeadersPolicyCommand.d.ts +41 -0
  66. package/dist-types/commands/DeleteStreamingDistributionCommand.d.ts +1 -1
  67. package/dist-types/commands/DescribeFunctionCommand.d.ts +1 -1
  68. package/dist-types/commands/GetCachePolicyCommand.d.ts +1 -1
  69. package/dist-types/commands/GetCachePolicyConfigCommand.d.ts +1 -1
  70. package/dist-types/commands/GetCloudFrontOriginAccessIdentityCommand.d.ts +1 -1
  71. package/dist-types/commands/GetCloudFrontOriginAccessIdentityConfigCommand.d.ts +1 -1
  72. package/dist-types/commands/GetDistributionCommand.d.ts +1 -1
  73. package/dist-types/commands/GetDistributionConfigCommand.d.ts +1 -1
  74. package/dist-types/commands/GetFieldLevelEncryptionCommand.d.ts +1 -1
  75. package/dist-types/commands/GetResponseHeadersPolicyCommand.d.ts +42 -0
  76. package/dist-types/commands/GetResponseHeadersPolicyConfigCommand.d.ts +41 -0
  77. package/dist-types/commands/ListCachePoliciesCommand.d.ts +1 -1
  78. package/dist-types/commands/ListDistributionsByResponseHeadersPolicyIdCommand.d.ts +41 -0
  79. package/dist-types/commands/ListFunctionsCommand.d.ts +1 -1
  80. package/dist-types/commands/ListOriginRequestPoliciesCommand.d.ts +1 -1
  81. package/dist-types/commands/ListResponseHeadersPoliciesCommand.d.ts +42 -0
  82. package/dist-types/commands/UpdateResponseHeadersPolicyCommand.d.ts +53 -0
  83. package/dist-types/commands/index.d.ts +7 -0
  84. package/dist-types/models/models_0.d.ts +990 -676
  85. package/dist-types/models/models_1.d.ts +746 -51
  86. package/dist-types/protocols/Aws_restXml.d.ts +21 -0
  87. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  88. package/dist-types/runtimeConfig.d.ts +2 -0
  89. package/dist-types/runtimeConfig.native.d.ts +2 -0
  90. package/dist-types/ts3.4/CloudFront.d.ts +35 -0
  91. package/dist-types/ts3.4/CloudFrontClient.d.ts +13 -2
  92. package/dist-types/ts3.4/commands/CreateResponseHeadersPolicyCommand.d.ts +17 -0
  93. package/dist-types/ts3.4/commands/DeleteMonitoringSubscriptionCommand.d.ts +2 -1
  94. package/dist-types/ts3.4/commands/DeleteOriginRequestPolicyCommand.d.ts +1 -1
  95. package/dist-types/ts3.4/commands/DeletePublicKeyCommand.d.ts +1 -1
  96. package/dist-types/ts3.4/commands/DeleteRealtimeLogConfigCommand.d.ts +1 -1
  97. package/dist-types/ts3.4/commands/DeleteResponseHeadersPolicyCommand.d.ts +17 -0
  98. package/dist-types/ts3.4/commands/DeleteStreamingDistributionCommand.d.ts +1 -1
  99. package/dist-types/ts3.4/commands/DescribeFunctionCommand.d.ts +1 -1
  100. package/dist-types/ts3.4/commands/GetCachePolicyCommand.d.ts +1 -1
  101. package/dist-types/ts3.4/commands/GetCachePolicyConfigCommand.d.ts +1 -1
  102. package/dist-types/ts3.4/commands/GetCloudFrontOriginAccessIdentityCommand.d.ts +1 -1
  103. package/dist-types/ts3.4/commands/GetCloudFrontOriginAccessIdentityConfigCommand.d.ts +1 -1
  104. package/dist-types/ts3.4/commands/GetDistributionCommand.d.ts +1 -1
  105. package/dist-types/ts3.4/commands/GetDistributionConfigCommand.d.ts +1 -1
  106. package/dist-types/ts3.4/commands/GetFieldLevelEncryptionCommand.d.ts +1 -1
  107. package/dist-types/ts3.4/commands/GetResponseHeadersPolicyCommand.d.ts +17 -0
  108. package/dist-types/ts3.4/commands/GetResponseHeadersPolicyConfigCommand.d.ts +17 -0
  109. package/dist-types/ts3.4/commands/ListDistributionsByResponseHeadersPolicyIdCommand.d.ts +17 -0
  110. package/dist-types/ts3.4/commands/ListResponseHeadersPoliciesCommand.d.ts +17 -0
  111. package/dist-types/ts3.4/commands/UpdateResponseHeadersPolicyCommand.d.ts +17 -0
  112. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  113. package/dist-types/ts3.4/models/models_0.d.ts +10 -0
  114. package/dist-types/ts3.4/models/models_1.d.ts +418 -19
  115. package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +21 -0
  116. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  117. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  118. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  119. package/package.json +24 -24
@@ -0,0 +1,42 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
4
+ import { GetResponseHeadersPolicyRequest, GetResponseHeadersPolicyResult } from "../models/models_1";
5
+ export interface GetResponseHeadersPolicyCommandInput extends GetResponseHeadersPolicyRequest {
6
+ }
7
+ export interface GetResponseHeadersPolicyCommandOutput extends GetResponseHeadersPolicyResult, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Gets a response headers policy, including metadata (the policy’s identifier and the date and
11
+ * time when the policy was last modified).</p>
12
+ * <p>To get a response headers policy, you must provide the policy’s identifier. If the
13
+ * response headers policy is attached to a distribution’s cache behavior, you can get the
14
+ * policy’s identifier using <code>ListDistributions</code> or
15
+ * <code>GetDistribution</code>. If the response headers policy is not attached to a cache
16
+ * behavior, you can get the identifier using
17
+ * <code>ListResponseHeadersPolicies</code>.</p>
18
+ * @example
19
+ * Use a bare-bones client and the command you need to make an API call.
20
+ * ```javascript
21
+ * import { CloudFrontClient, GetResponseHeadersPolicyCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
22
+ * // const { CloudFrontClient, GetResponseHeadersPolicyCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
23
+ * const client = new CloudFrontClient(config);
24
+ * const command = new GetResponseHeadersPolicyCommand(input);
25
+ * const response = await client.send(command);
26
+ * ```
27
+ *
28
+ * @see {@link GetResponseHeadersPolicyCommandInput} for command's `input` shape.
29
+ * @see {@link GetResponseHeadersPolicyCommandOutput} for command's `response` shape.
30
+ * @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
31
+ *
32
+ */
33
+ export declare class GetResponseHeadersPolicyCommand extends $Command<GetResponseHeadersPolicyCommandInput, GetResponseHeadersPolicyCommandOutput, CloudFrontClientResolvedConfig> {
34
+ readonly input: GetResponseHeadersPolicyCommandInput;
35
+ constructor(input: GetResponseHeadersPolicyCommandInput);
36
+ /**
37
+ * @internal
38
+ */
39
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetResponseHeadersPolicyCommandInput, GetResponseHeadersPolicyCommandOutput>;
40
+ private serialize;
41
+ private deserialize;
42
+ }
@@ -0,0 +1,41 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
4
+ import { GetResponseHeadersPolicyConfigRequest, GetResponseHeadersPolicyConfigResult } from "../models/models_1";
5
+ export interface GetResponseHeadersPolicyConfigCommandInput extends GetResponseHeadersPolicyConfigRequest {
6
+ }
7
+ export interface GetResponseHeadersPolicyConfigCommandOutput extends GetResponseHeadersPolicyConfigResult, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Gets a response headers policy configuration.</p>
11
+ * <p>To get a response headers policy configuration, you must provide the policy’s
12
+ * identifier. If the response headers policy is attached to a distribution’s cache
13
+ * behavior, you can get the policy’s identifier using <code>ListDistributions</code> or
14
+ * <code>GetDistribution</code>. If the response headers policy is not attached to a
15
+ * cache behavior, you can get the identifier using
16
+ * <code>ListResponseHeadersPolicies</code>.</p>
17
+ * @example
18
+ * Use a bare-bones client and the command you need to make an API call.
19
+ * ```javascript
20
+ * import { CloudFrontClient, GetResponseHeadersPolicyConfigCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
21
+ * // const { CloudFrontClient, GetResponseHeadersPolicyConfigCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
22
+ * const client = new CloudFrontClient(config);
23
+ * const command = new GetResponseHeadersPolicyConfigCommand(input);
24
+ * const response = await client.send(command);
25
+ * ```
26
+ *
27
+ * @see {@link GetResponseHeadersPolicyConfigCommandInput} for command's `input` shape.
28
+ * @see {@link GetResponseHeadersPolicyConfigCommandOutput} for command's `response` shape.
29
+ * @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
30
+ *
31
+ */
32
+ export declare class GetResponseHeadersPolicyConfigCommand extends $Command<GetResponseHeadersPolicyConfigCommandInput, GetResponseHeadersPolicyConfigCommandOutput, CloudFrontClientResolvedConfig> {
33
+ readonly input: GetResponseHeadersPolicyConfigCommandInput;
34
+ constructor(input: GetResponseHeadersPolicyConfigCommandInput);
35
+ /**
36
+ * @internal
37
+ */
38
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetResponseHeadersPolicyConfigCommandInput, GetResponseHeadersPolicyConfigCommandOutput>;
39
+ private serialize;
40
+ private deserialize;
41
+ }
@@ -9,7 +9,7 @@ export interface ListCachePoliciesCommandOutput extends ListCachePoliciesResult,
9
9
  /**
10
10
  * <p>Gets a list of cache policies.</p>
11
11
  * <p>You can optionally apply a filter to return only the managed policies created by Amazon Web Services, or
12
- * only the custom policies created in your account.</p>
12
+ * only the custom policies created in your Amazon Web Services account.</p>
13
13
  * <p>You can optionally specify the maximum number of items to receive in the response. If
14
14
  * the total number of items in the list exceeds the maximum that you specify, or the
15
15
  * default maximum, the response is paginated. To get the next page of items, send a
@@ -0,0 +1,41 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
4
+ import { ListDistributionsByResponseHeadersPolicyIdRequest, ListDistributionsByResponseHeadersPolicyIdResult } from "../models/models_1";
5
+ export interface ListDistributionsByResponseHeadersPolicyIdCommandInput extends ListDistributionsByResponseHeadersPolicyIdRequest {
6
+ }
7
+ export interface ListDistributionsByResponseHeadersPolicyIdCommandOutput extends ListDistributionsByResponseHeadersPolicyIdResult, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Gets a list of distribution IDs for distributions that have a cache behavior that’s
11
+ * associated with the specified response headers policy.</p>
12
+ * <p>You can optionally specify the maximum number of items to receive in the response. If
13
+ * the total number of items in the list exceeds the maximum that you specify, or the
14
+ * default maximum, the response is paginated. To get the next page of items, send a
15
+ * subsequent request that specifies the <code>NextMarker</code> value from the current
16
+ * response as the <code>Marker</code> value in the subsequent request.</p>
17
+ * @example
18
+ * Use a bare-bones client and the command you need to make an API call.
19
+ * ```javascript
20
+ * import { CloudFrontClient, ListDistributionsByResponseHeadersPolicyIdCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
21
+ * // const { CloudFrontClient, ListDistributionsByResponseHeadersPolicyIdCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
22
+ * const client = new CloudFrontClient(config);
23
+ * const command = new ListDistributionsByResponseHeadersPolicyIdCommand(input);
24
+ * const response = await client.send(command);
25
+ * ```
26
+ *
27
+ * @see {@link ListDistributionsByResponseHeadersPolicyIdCommandInput} for command's `input` shape.
28
+ * @see {@link ListDistributionsByResponseHeadersPolicyIdCommandOutput} for command's `response` shape.
29
+ * @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
30
+ *
31
+ */
32
+ export declare class ListDistributionsByResponseHeadersPolicyIdCommand extends $Command<ListDistributionsByResponseHeadersPolicyIdCommandInput, ListDistributionsByResponseHeadersPolicyIdCommandOutput, CloudFrontClientResolvedConfig> {
33
+ readonly input: ListDistributionsByResponseHeadersPolicyIdCommandInput;
34
+ constructor(input: ListDistributionsByResponseHeadersPolicyIdCommandInput);
35
+ /**
36
+ * @internal
37
+ */
38
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListDistributionsByResponseHeadersPolicyIdCommandInput, ListDistributionsByResponseHeadersPolicyIdCommandOutput>;
39
+ private serialize;
40
+ private deserialize;
41
+ }
@@ -7,7 +7,7 @@ export interface ListFunctionsCommandInput extends ListFunctionsRequest {
7
7
  export interface ListFunctionsCommandOutput extends ListFunctionsResult, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Gets a list of all CloudFront functions in your account.</p>
10
+ * <p>Gets a list of all CloudFront functions in your Amazon Web Services account.</p>
11
11
  * <p>You can optionally apply a filter to return only the functions that are in the
12
12
  * specified stage, either <code>DEVELOPMENT</code> or <code>LIVE</code>.</p>
13
13
  * <p>You can optionally specify the maximum number of items to receive in the response. If
@@ -9,7 +9,7 @@ export interface ListOriginRequestPoliciesCommandOutput extends ListOriginReques
9
9
  /**
10
10
  * <p>Gets a list of origin request policies.</p>
11
11
  * <p>You can optionally apply a filter to return only the managed policies created by Amazon Web Services, or
12
- * only the custom policies created in your account.</p>
12
+ * only the custom policies created in your Amazon Web Services account.</p>
13
13
  * <p>You can optionally specify the maximum number of items to receive in the response. If
14
14
  * the total number of items in the list exceeds the maximum that you specify, or the
15
15
  * default maximum, the response is paginated. To get the next page of items, send a
@@ -0,0 +1,42 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
4
+ import { ListResponseHeadersPoliciesRequest, ListResponseHeadersPoliciesResult } from "../models/models_1";
5
+ export interface ListResponseHeadersPoliciesCommandInput extends ListResponseHeadersPoliciesRequest {
6
+ }
7
+ export interface ListResponseHeadersPoliciesCommandOutput extends ListResponseHeadersPoliciesResult, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Gets a list of response headers policies.</p>
11
+ * <p>You can optionally apply a filter to get only the managed policies created by Amazon Web Services,
12
+ * or only the custom policies created in your Amazon Web Services account.</p>
13
+ * <p>You can optionally specify the maximum number of items to receive in the response. If
14
+ * the total number of items in the list exceeds the maximum that you specify, or the
15
+ * default maximum, the response is paginated. To get the next page of items, send a
16
+ * subsequent request that specifies the <code>NextMarker</code> value from the current
17
+ * response as the <code>Marker</code> value in the subsequent request.</p>
18
+ * @example
19
+ * Use a bare-bones client and the command you need to make an API call.
20
+ * ```javascript
21
+ * import { CloudFrontClient, ListResponseHeadersPoliciesCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
22
+ * // const { CloudFrontClient, ListResponseHeadersPoliciesCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
23
+ * const client = new CloudFrontClient(config);
24
+ * const command = new ListResponseHeadersPoliciesCommand(input);
25
+ * const response = await client.send(command);
26
+ * ```
27
+ *
28
+ * @see {@link ListResponseHeadersPoliciesCommandInput} for command's `input` shape.
29
+ * @see {@link ListResponseHeadersPoliciesCommandOutput} for command's `response` shape.
30
+ * @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
31
+ *
32
+ */
33
+ export declare class ListResponseHeadersPoliciesCommand extends $Command<ListResponseHeadersPoliciesCommandInput, ListResponseHeadersPoliciesCommandOutput, CloudFrontClientResolvedConfig> {
34
+ readonly input: ListResponseHeadersPoliciesCommandInput;
35
+ constructor(input: ListResponseHeadersPoliciesCommandInput);
36
+ /**
37
+ * @internal
38
+ */
39
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListResponseHeadersPoliciesCommandInput, ListResponseHeadersPoliciesCommandOutput>;
40
+ private serialize;
41
+ private deserialize;
42
+ }
@@ -0,0 +1,53 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
4
+ import { UpdateResponseHeadersPolicyRequest, UpdateResponseHeadersPolicyResult } from "../models/models_1";
5
+ export interface UpdateResponseHeadersPolicyCommandInput extends UpdateResponseHeadersPolicyRequest {
6
+ }
7
+ export interface UpdateResponseHeadersPolicyCommandOutput extends UpdateResponseHeadersPolicyResult, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Updates a response headers policy.</p>
11
+ * <p>When you update a response headers policy, the entire policy is replaced. You cannot
12
+ * update some policy fields independent of others. To update a response headers policy
13
+ * configuration:</p>
14
+ * <ol>
15
+ * <li>
16
+ * <p>Use <code>GetResponseHeadersPolicyConfig</code> to get the current policy’s
17
+ * configuration.</p>
18
+ * </li>
19
+ * <li>
20
+ * <p>Modify the fields in the response headers policy configuration that you want
21
+ * to update.</p>
22
+ * </li>
23
+ * <li>
24
+ * <p>Call <code>UpdateResponseHeadersPolicy</code>, providing the entire response
25
+ * headers policy configuration, including the fields that you modified and those
26
+ * that you didn’t.</p>
27
+ * </li>
28
+ * </ol>
29
+ * @example
30
+ * Use a bare-bones client and the command you need to make an API call.
31
+ * ```javascript
32
+ * import { CloudFrontClient, UpdateResponseHeadersPolicyCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
33
+ * // const { CloudFrontClient, UpdateResponseHeadersPolicyCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
34
+ * const client = new CloudFrontClient(config);
35
+ * const command = new UpdateResponseHeadersPolicyCommand(input);
36
+ * const response = await client.send(command);
37
+ * ```
38
+ *
39
+ * @see {@link UpdateResponseHeadersPolicyCommandInput} for command's `input` shape.
40
+ * @see {@link UpdateResponseHeadersPolicyCommandOutput} for command's `response` shape.
41
+ * @see {@link CloudFrontClientResolvedConfig | config} for command's `input` shape.
42
+ *
43
+ */
44
+ export declare class UpdateResponseHeadersPolicyCommand extends $Command<UpdateResponseHeadersPolicyCommandInput, UpdateResponseHeadersPolicyCommandOutput, CloudFrontClientResolvedConfig> {
45
+ readonly input: UpdateResponseHeadersPolicyCommandInput;
46
+ constructor(input: UpdateResponseHeadersPolicyCommandInput);
47
+ /**
48
+ * @internal
49
+ */
50
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateResponseHeadersPolicyCommandInput, UpdateResponseHeadersPolicyCommandOutput>;
51
+ private serialize;
52
+ private deserialize;
53
+ }
@@ -12,6 +12,7 @@ export * from "./CreateMonitoringSubscriptionCommand";
12
12
  export * from "./CreateOriginRequestPolicyCommand";
13
13
  export * from "./CreatePublicKeyCommand";
14
14
  export * from "./CreateRealtimeLogConfigCommand";
15
+ export * from "./CreateResponseHeadersPolicyCommand";
15
16
  export * from "./CreateStreamingDistributionCommand";
16
17
  export * from "./CreateStreamingDistributionWithTagsCommand";
17
18
  export * from "./DeleteCachePolicyCommand";
@@ -25,6 +26,7 @@ export * from "./DeleteMonitoringSubscriptionCommand";
25
26
  export * from "./DeleteOriginRequestPolicyCommand";
26
27
  export * from "./DeletePublicKeyCommand";
27
28
  export * from "./DeleteRealtimeLogConfigCommand";
29
+ export * from "./DeleteResponseHeadersPolicyCommand";
28
30
  export * from "./DeleteStreamingDistributionCommand";
29
31
  export * from "./DescribeFunctionCommand";
30
32
  export * from "./GetCachePolicyCommand";
@@ -47,6 +49,8 @@ export * from "./GetOriginRequestPolicyConfigCommand";
47
49
  export * from "./GetPublicKeyCommand";
48
50
  export * from "./GetPublicKeyConfigCommand";
49
51
  export * from "./GetRealtimeLogConfigCommand";
52
+ export * from "./GetResponseHeadersPolicyCommand";
53
+ export * from "./GetResponseHeadersPolicyConfigCommand";
50
54
  export * from "./GetStreamingDistributionCommand";
51
55
  export * from "./GetStreamingDistributionConfigCommand";
52
56
  export * from "./ListCachePoliciesCommand";
@@ -56,6 +60,7 @@ export * from "./ListDistributionsByCachePolicyIdCommand";
56
60
  export * from "./ListDistributionsByKeyGroupCommand";
57
61
  export * from "./ListDistributionsByOriginRequestPolicyIdCommand";
58
62
  export * from "./ListDistributionsByRealtimeLogConfigCommand";
63
+ export * from "./ListDistributionsByResponseHeadersPolicyIdCommand";
59
64
  export * from "./ListDistributionsByWebACLIdCommand";
60
65
  export * from "./ListDistributionsCommand";
61
66
  export * from "./ListFieldLevelEncryptionConfigsCommand";
@@ -66,6 +71,7 @@ export * from "./ListKeyGroupsCommand";
66
71
  export * from "./ListOriginRequestPoliciesCommand";
67
72
  export * from "./ListPublicKeysCommand";
68
73
  export * from "./ListRealtimeLogConfigsCommand";
74
+ export * from "./ListResponseHeadersPoliciesCommand";
69
75
  export * from "./ListStreamingDistributionsCommand";
70
76
  export * from "./ListTagsForResourceCommand";
71
77
  export * from "./PublishFunctionCommand";
@@ -82,4 +88,5 @@ export * from "./UpdateKeyGroupCommand";
82
88
  export * from "./UpdateOriginRequestPolicyCommand";
83
89
  export * from "./UpdatePublicKeyCommand";
84
90
  export * from "./UpdateRealtimeLogConfigCommand";
91
+ export * from "./UpdateResponseHeadersPolicyCommand";
85
92
  export * from "./UpdateStreamingDistributionCommand";