Class: Aws::CloudFront::Types::ResponseHeadersPolicyStrictTransportSecurity

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

{
  override: false, # required
  include_subdomains: false,
  preload: false,
  access_control_max_age_sec: 1, # required
}

Determines whether CloudFront includes the Strict-Transport-Security HTTP response header and the header’s value.

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

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#access_control_max_age_secInteger

A number that CloudFront uses as the value for the max-age directive in the Strict-Transport-Security HTTP response header.

Returns:

  • (Integer)


12386
12387
12388
12389
12390
12391
12392
12393
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 12386

class ResponseHeadersPolicyStrictTransportSecurity < Struct.new(
  :override,
  :include_subdomains,
  :preload,
  :access_control_max_age_sec)
  SENSITIVE = []
  include Aws::Structure
end

#include_subdomainsBoolean

A Boolean that determines whether CloudFront includes the includeSubDomains directive in the Strict-Transport-Security HTTP response header.

Returns:

  • (Boolean)


12386
12387
12388
12389
12390
12391
12392
12393
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 12386

class ResponseHeadersPolicyStrictTransportSecurity < Struct.new(
  :override,
  :include_subdomains,
  :preload,
  :access_control_max_age_sec)
  SENSITIVE = []
  include Aws::Structure
end

#overrideBoolean

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

Returns:

  • (Boolean)


12386
12387
12388
12389
12390
12391
12392
12393
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 12386

class ResponseHeadersPolicyStrictTransportSecurity < Struct.new(
  :override,
  :include_subdomains,
  :preload,
  :access_control_max_age_sec)
  SENSITIVE = []
  include Aws::Structure
end

#preloadBoolean

A Boolean that determines whether CloudFront includes the preload directive in the Strict-Transport-Security HTTP response header.

Returns:

  • (Boolean)


12386
12387
12388
12389
12390
12391
12392
12393
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 12386

class ResponseHeadersPolicyStrictTransportSecurity < Struct.new(
  :override,
  :include_subdomains,
  :preload,
  :access_control_max_age_sec)
  SENSITIVE = []
  include Aws::Structure
end