Class: Aws::CloudFront::Types::UpdateResponseHeadersPolicyRequest

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 UpdateResponseHeadersPolicyRequest data as a hash:

{
  response_headers_policy_config: { # required
    comment: "string",
    name: "string", # required
    cors_config: {
      access_control_allow_origins: { # required
        quantity: 1, # required
        items: ["string"], # required
      },
      access_control_allow_headers: { # required
        quantity: 1, # required
        items: ["string"], # required
      },
      access_control_allow_methods: { # required
        quantity: 1, # required
        items: ["GET"], # required, accepts GET, POST, OPTIONS, PUT, DELETE, PATCH, HEAD, ALL
      },
      access_control_allow_credentials: false, # required
      access_control_expose_headers: {
        quantity: 1, # required
        items: ["string"],
      },
      access_control_max_age_sec: 1,
      origin_override: false, # required
    },
    security_headers_config: {
      xss_protection: {
        override: false, # required
        protection: false, # required
        mode_block: false,
        report_uri: "string",
      },
      frame_options: {
        override: false, # required
        frame_option: "DENY", # required, accepts DENY, SAMEORIGIN
      },
      referrer_policy: {
        override: false, # required
        referrer_policy: "no-referrer", # required, accepts no-referrer, no-referrer-when-downgrade, origin, origin-when-cross-origin, same-origin, strict-origin, strict-origin-when-cross-origin, unsafe-url
      },
      content_security_policy: {
        override: false, # required
        content_security_policy: "string", # required
      },
      content_type_options: {
        override: false, # required
      },
      strict_transport_security: {
        override: false, # required
        include_subdomains: false,
        preload: false,
        access_control_max_age_sec: 1, # required
      },
    },
    custom_headers_config: {
      quantity: 1, # required
      items: [
        {
          header: "string", # required
          value: "string", # required
          override: false, # required
        },
      ],
    },
    server_timing_headers_config: {
      enabled: false, # required
      sampling_rate: 1.0,
    },
  },
  id: "string", # required
  if_match: "string",
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#idString

The identifier for the response headers policy that you are updating.

Returns:

  • (String)


15287
15288
15289
15290
15291
15292
15293
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 15287

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

#if_matchString

The version of the response headers policy that you are updating.

The version is returned in the cache policy’s ETag field in the response to GetResponseHeadersPolicyConfig.

Returns:

  • (String)


15287
15288
15289
15290
15291
15292
15293
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 15287

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

#response_headers_policy_configTypes::ResponseHeadersPolicyConfig

A response headers policy configuration.



15287
15288
15289
15290
15291
15292
15293
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 15287

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