Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ResponseHeadersPolicy

import type { ResponseHeadersPolicy } from "https://aws-api.deno.dev/v0.3/services/cloudfront.ts?docs=full";

A response headers policy.

A response headers policy contains information about a set of HTTP response headers and their values.

After you create a response headers policy, you can use its ID to attach it to one or more cache behaviors in a CloudFront distribution. When it’s attached to a cache behavior, CloudFront adds the headers in the policy to HTTP responses that it sends for requests that match the cache behavior.

For more information, see Adding HTTP headers to CloudFront responses in the Amazon CloudFront Developer Guide.

interface ResponseHeadersPolicy {
Id: string;
LastModifiedTime: Date | number;
ResponseHeadersPolicyConfig: ResponseHeadersPolicyConfig;
}

§Properties

§
Id: string
[src]

The identifier for the response headers policy.

§
LastModifiedTime: Date | number
[src]

The date and time when the response headers policy was last modified.

§
ResponseHeadersPolicyConfig: ResponseHeadersPolicyConfig
[src]

A response headers policy configuration.

A response headers policy contains information about a set of HTTP response headers and their values. CloudFront adds the headers in the policy to HTTP responses that it sends for requests that match a cache behavior that’s associated with the policy.