class Convection::Model::Template::ResourceProperty::CloudFrontOrigin
Represents a {docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-origin.html CloudFront Origin Embedded Property Type}
Public Instance Methods
custom_origin(&block)
click to toggle source
# File lib/convection/model/template/resource_property/aws_cloudfront_origin.rb, line 16 def custom_origin(&block) origin = ResourceProperty::CloudFrontCustomOrigin.new(self) origin.instance_exec(&block) if block properties['CustomOriginConfig'].set(origin) end
s3_origin(&block)
click to toggle source
# File lib/convection/model/template/resource_property/aws_cloudfront_origin.rb, line 22 def s3_origin(&block) origin = ResourceProperty::CloudFrontS3Origin.new(self) origin.instance_exec(&block) if block properties['S3OriginConfig'].set(origin) end