class Convection::Model::Template::ResourceProperty::CloudFrontDistributionConfig

Represents a {docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distributionconfig.html CloudFront DistributionConfig Embedded Property Type}

Public Instance Methods

cache_behavior(&block) click to toggle source
# File lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb, line 25
def cache_behavior(&block)
  behavior = ResourceProperty::CloudFrontCacheBehavior.new(self)
  behavior.instance_exec(&block) if block
  cache_behaviors << behavior
end
custom_error_response(&block) click to toggle source
# File lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb, line 31
def custom_error_response(&block)
  response = ResourceProperty::CloudFrontCustomErrorResponse.new(self)
  response.instance_exec(&block) if block
  custom_error_responses << response
end
default_cache_behavior(&block) click to toggle source
# File lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb, line 37
def default_cache_behavior(&block)
  behavior = ResourceProperty::CloudFrontDefaultCacheBehavior.new(self)
  behavior.instance_exec(&block) if block
  properties['DefaultCacheBehavior'].set(behavior)
end
logging(&block) click to toggle source
# File lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb, line 43
def logging(&block)
  logging = ResourceProperty::CloudFrontLogging.new(self)
  logging.instance_exec(&block) if block
  properties['Logging'].set(logging)
end
origin(&block) click to toggle source
# File lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb, line 49
def origin(&block)
  origin = ResourceProperty::CloudFrontOrigin.new(self)
  origin.instance_exec(&block) if block
  origins << origin
end
restrictions(&block) click to toggle source
# File lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb, line 55
def restrictions(&block)
  restrictions = ResourceProperty::CloudFrontRestrictions.new(self)
  restrictions.instance_exec(&block) if block
  properties['Restrictions'].set(restrictions)
end
viewer_certificate(&block) click to toggle source
# File lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb, line 61
def viewer_certificate(&block)
  cert = ResourceProperty::CloudFrontViewerCertificate.new(self)
  cert.instance_exec(&block) if block
  properties['ViewerCertificate'].set(cert)
end