class Convection::Model::Template::ResourceProperty::CloudFrontRestrictions
Represents a {docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distributionconfig-restrictions.html CloudFront DistributionConfiguration Restrictions Embedded Property Type}
Public Instance Methods
geo(&block)
click to toggle source
# File lib/convection/model/template/resource_property/aws_cloudfront_restrictions.rb, line 12 def geo(&block) restriction = ResourceProperty::CloudFrontGeoRestriction.new(self) restriction.instance_exec(&block) if block properties['GeoRestriction'].set(restriction) end