Class: Aws::CloudFront::Types::ResponseHeadersPolicyContentSecurityPolicy

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

Overview

Note:

When making an API call, you may pass ResponseHeadersPolicyContentSecurityPolicy data as a hash:

{
  override: false, # required
  content_security_policy: "string", # required
}

The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.

For more information about the Content-Security-Policy HTTP response header, see Content-Security-Policy in the MDN Web Docs.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#content_security_policyString

The policy directives and their values that CloudFront includes as values for the Content-Security-Policy HTTP response header.

Returns:

  • (String)


11770
11771
11772
11773
11774
11775
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 11770

class ResponseHeadersPolicyContentSecurityPolicy < Struct.new(
  :override,
  :content_security_policy)
  SENSITIVE = []
  include Aws::Structure
end

#overrideBoolean

A Boolean that determines whether CloudFront overrides the Content-Security-Policy HTTP response header received from the origin with the one specified in this response headers policy.

Returns:

  • (Boolean)


11770
11771
11772
11773
11774
11775
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 11770

class ResponseHeadersPolicyContentSecurityPolicy < Struct.new(
  :override,
  :content_security_policy)
  SENSITIVE = []
  include Aws::Structure
end