You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

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

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 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.



4710
4711
4712
4713
# File 'gems/aws-sdk-cloudfront/lib/aws-sdk-cloudfront/types.rb', line 4710

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