import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient"; import { GetResponseHeadersPolicyConfigRequest, GetResponseHeadersPolicyConfigResult } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetResponseHeadersPolicyConfigCommand}. */ export interface GetResponseHeadersPolicyConfigCommandInput extends GetResponseHeadersPolicyConfigRequest { } /** * @public * * The output of {@link GetResponseHeadersPolicyConfigCommand}. */ export interface GetResponseHeadersPolicyConfigCommandOutput extends GetResponseHeadersPolicyConfigResult, __MetadataBearer { } declare const GetResponseHeadersPolicyConfigCommand_base: { new (input: GetResponseHeadersPolicyConfigCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: GetResponseHeadersPolicyConfigCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Gets a response headers policy configuration.

To get a response headers policy configuration, you must provide the policy's identifier. If the response headers policy is attached to a distribution's cache behavior, you can get the policy's identifier using ListDistributions or GetDistribution. If the response headers policy is not attached to a cache behavior, you can get the identifier using ListResponseHeadersPolicies.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudFrontClient, GetResponseHeadersPolicyConfigCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import * // const { CloudFrontClient, GetResponseHeadersPolicyConfigCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import * const client = new CloudFrontClient(config); * const input = { // GetResponseHeadersPolicyConfigRequest * Id: "STRING_VALUE", // required * }; * const command = new GetResponseHeadersPolicyConfigCommand(input); * const response = await client.send(command); * // { // GetResponseHeadersPolicyConfigResult * // ResponseHeadersPolicyConfig: { // ResponseHeadersPolicyConfig * // Comment: "STRING_VALUE", * // Name: "STRING_VALUE", // required * // CorsConfig: { // ResponseHeadersPolicyCorsConfig * // AccessControlAllowOrigins: { // ResponseHeadersPolicyAccessControlAllowOrigins * // Quantity: Number("int"), // required * // Items: [ // AccessControlAllowOriginsList // required * // "STRING_VALUE", * // ], * // }, * // AccessControlAllowHeaders: { // ResponseHeadersPolicyAccessControlAllowHeaders * // Quantity: Number("int"), // required * // Items: [ // AccessControlAllowHeadersList // required * // "STRING_VALUE", * // ], * // }, * // AccessControlAllowMethods: { // ResponseHeadersPolicyAccessControlAllowMethods * // Quantity: Number("int"), // required * // Items: [ // AccessControlAllowMethodsList // required * // "GET" || "POST" || "OPTIONS" || "PUT" || "DELETE" || "PATCH" || "HEAD" || "ALL", * // ], * // }, * // AccessControlAllowCredentials: true || false, // required * // AccessControlExposeHeaders: { // ResponseHeadersPolicyAccessControlExposeHeaders * // Quantity: Number("int"), // required * // Items: [ // AccessControlExposeHeadersList * // "STRING_VALUE", * // ], * // }, * // AccessControlMaxAgeSec: Number("int"), * // OriginOverride: true || false, // required * // }, * // SecurityHeadersConfig: { // ResponseHeadersPolicySecurityHeadersConfig * // XSSProtection: { // ResponseHeadersPolicyXSSProtection * // Override: true || false, // required * // Protection: true || false, // required * // ModeBlock: true || false, * // ReportUri: "STRING_VALUE", * // }, * // FrameOptions: { // ResponseHeadersPolicyFrameOptions * // Override: true || false, // required * // FrameOption: "DENY" || "SAMEORIGIN", // required * // }, * // ReferrerPolicy: { // ResponseHeadersPolicyReferrerPolicy * // Override: true || false, // required * // ReferrerPolicy: "no-referrer" || "no-referrer-when-downgrade" || "origin" || "origin-when-cross-origin" || "same-origin" || "strict-origin" || "strict-origin-when-cross-origin" || "unsafe-url", // required * // }, * // ContentSecurityPolicy: { // ResponseHeadersPolicyContentSecurityPolicy * // Override: true || false, // required * // ContentSecurityPolicy: "STRING_VALUE", // required * // }, * // ContentTypeOptions: { // ResponseHeadersPolicyContentTypeOptions * // Override: true || false, // required * // }, * // StrictTransportSecurity: { // ResponseHeadersPolicyStrictTransportSecurity * // Override: true || false, // required * // IncludeSubdomains: true || false, * // Preload: true || false, * // AccessControlMaxAgeSec: Number("int"), // required * // }, * // }, * // ServerTimingHeadersConfig: { // ResponseHeadersPolicyServerTimingHeadersConfig * // Enabled: true || false, // required * // SamplingRate: Number("double"), * // }, * // CustomHeadersConfig: { // ResponseHeadersPolicyCustomHeadersConfig * // Quantity: Number("int"), // required * // Items: [ // ResponseHeadersPolicyCustomHeaderList * // { // ResponseHeadersPolicyCustomHeader * // Header: "STRING_VALUE", // required * // Value: "STRING_VALUE", // required * // Override: true || false, // required * // }, * // ], * // }, * // RemoveHeadersConfig: { // ResponseHeadersPolicyRemoveHeadersConfig * // Quantity: Number("int"), // required * // Items: [ // ResponseHeadersPolicyRemoveHeaderList * // { // ResponseHeadersPolicyRemoveHeader * // Header: "STRING_VALUE", // required * // }, * // ], * // }, * // }, * // ETag: "STRING_VALUE", * // }; * * ``` * * @param GetResponseHeadersPolicyConfigCommandInput - {@link GetResponseHeadersPolicyConfigCommandInput} * @returns {@link GetResponseHeadersPolicyConfigCommandOutput} * @see {@link GetResponseHeadersPolicyConfigCommandInput} for command's `input` shape. * @see {@link GetResponseHeadersPolicyConfigCommandOutput} for command's `response` shape. * @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape. * * @throws {@link AccessDenied} (client fault) *

Access denied.

* * @throws {@link NoSuchResponseHeadersPolicy} (client fault) *

The response headers policy does not exist.

* * @throws {@link CloudFrontServiceException} *

Base exception class for all service exceptions from CloudFront service.

* * * @public */ export declare class GetResponseHeadersPolicyConfigCommand extends GetResponseHeadersPolicyConfigCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetResponseHeadersPolicyConfigRequest; output: GetResponseHeadersPolicyConfigResult; }; sdk: { input: GetResponseHeadersPolicyConfigCommandInput; output: GetResponseHeadersPolicyConfigCommandOutput; }; }; }