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

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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing Restrictions as input to an Aws::Client method, you can use a vanilla 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.

Returned by:

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.

Returns:

  • (Types::GeoRestriction)

    A complex type that controls the countries in which your content is distributed.