Class: Aws::SecurityHub::Types::AwsCloudFrontDistributionCacheBehavior

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

Overview

Note:

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

{
  viewer_protocol_policy: "NonEmptyString",
}

Information about a cache behavior for the distribution.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#viewer_protocol_policyString

The protocol that viewers can use to access the files in an origin. You can specify the following options:

  • allow-all - Viewers can use HTTP or HTTPS.

  • redirect-to-https - CloudFront responds to HTTP requests with an HTTP status code of 301 (Moved Permanently) and the HTTPS URL. The viewer then uses the new URL to resubmit.

  • https-only - CloudFront responds to HTTP request with an HTTP status code of 403 (Forbidden).

Returns:

  • (String)


2329
2330
2331
2332
2333
# File 'gems/aws-sdk-securityhub/lib/aws-sdk-securityhub/types.rb', line 2329

class AwsCloudFrontDistributionCacheBehavior < Struct.new(
  :viewer_protocol_policy)
  SENSITIVE = []
  include Aws::Structure
end