Class: Aws::CloudFront::Types::ResponseHeadersPolicy

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-cloudfront/types.rb

Overview

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*.

[1]: docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/adding-response-headers.html

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#idString

The identifier for the response headers policy.

Returns:

  • (String)

11419
11420
11421
11422
11423
11424
11425
# File 'lib/aws-sdk-cloudfront/types.rb', line 11419

class ResponseHeadersPolicy < Struct.new(
  :id,
  :last_modified_time,
  :response_headers_policy_config)
  SENSITIVE = []
  include Aws::Structure
end

#last_modified_timeTime

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

Returns:

  • (Time)

11419
11420
11421
11422
11423
11424
11425
# File 'lib/aws-sdk-cloudfront/types.rb', line 11419

class ResponseHeadersPolicy < Struct.new(
  :id,
  :last_modified_time,
  :response_headers_policy_config)
  SENSITIVE = []
  include Aws::Structure
end

#response_headers_policy_configTypes::ResponseHeadersPolicyConfig

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.


11419
11420
11421
11422
11423
11424
11425
# File 'lib/aws-sdk-cloudfront/types.rb', line 11419

class ResponseHeadersPolicy < Struct.new(
  :id,
  :last_modified_time,
  :response_headers_policy_config)
  SENSITIVE = []
  include Aws::Structure
end