Class: Aws::CloudFront::Types::Restrictions

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

Overview

Note:

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

{
  geo_restriction: { # required
    restriction_type: "blacklist", # required, accepts blacklist, whitelist, none
    quantity: 1, # required
    items: ["string"],
  },
}

A complex type that identifies ways in which you want to restrict distribution of your content.

Instance Attribute Summary collapse

Instance Attribute Details

#geo_restrictionTypes::GeoRestriction

A complex type that controls the countries in which your content is distributed. CloudFront determines the location of your users using ‘MaxMind` GeoIP databases.



6954
6955
6956
6957
# File 'lib/aws-sdk-cloudfront/types.rb', line 6954

class Restrictions < Struct.new(
  :geo_restriction)
  include Aws::Structure
end