Sha256: 875c01367f322be1b3307b8ebf929e085e22759b15f7a1bb012d14657609946b

Contents?: true

Size: 1.04 KB

Versions: 92

Compression:

Stored size: 1.04 KB

Contents

require_relative '../resource_property'

module Convection
  module Model
    class Template
      class ResourceProperty
        # Represents a {http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-origin.html
        # CloudFront Origin Embedded Property Type}
        class CloudFrontOrigin < ResourceProperty
          property :custom_origin, 'CustomOriginConfig'
          property :domain_name, 'DomainName'
          property :id, 'Id'
          property :origin_path, 'OriginPath'
          property :s3_origin, 'S3OriginConfig'

          def custom_origin(&block)
            origin = ResourceProperty::CloudFrontCustomOrigin.new(self)
            origin.instance_exec(&block) if block
            properties['CustomOriginConfig'].set(origin)
          end

          def s3_origin(&block)
            origin = ResourceProperty::CloudFrontS3Origin.new(self)
            origin.instance_exec(&block) if block
            properties['S3OriginConfig'].set(origin)
          end
        end
      end
    end
  end
end

Version data entries

92 entries across 92 versions & 1 rubygems

Version Path
convection-2.3.1 lib/convection/model/template/resource_property/aws_cloudfront_origin.rb
convection-2.3.0 lib/convection/model/template/resource_property/aws_cloudfront_origin.rb
convection-2.2.29 lib/convection/model/template/resource_property/aws_cloudfront_origin.rb
convection-2.2.28.pre.beta.2 lib/convection/model/template/resource_property/aws_cloudfront_origin.rb
convection-2.2.28.pre.beta.1 lib/convection/model/template/resource_property/aws_cloudfront_origin.rb
convection-2.2.27 lib/convection/model/template/resource_property/aws_cloudfront_origin.rb
convection-2.2.26 lib/convection/model/template/resource_property/aws_cloudfront_origin.rb
convection-2.2.25 lib/convection/model/template/resource_property/aws_cloudfront_origin.rb
convection-2.2.24 lib/convection/model/template/resource_property/aws_cloudfront_origin.rb
convection-2.2.23 lib/convection/model/template/resource_property/aws_cloudfront_origin.rb
convection-2.2.22 lib/convection/model/template/resource_property/aws_cloudfront_origin.rb
convection-2.2.21 lib/convection/model/template/resource_property/aws_cloudfront_origin.rb
convection-2.2.20 lib/convection/model/template/resource_property/aws_cloudfront_origin.rb
convection-2.2.19 lib/convection/model/template/resource_property/aws_cloudfront_origin.rb
convection-2.2.18 lib/convection/model/template/resource_property/aws_cloudfront_origin.rb
convection-2.2.17 lib/convection/model/template/resource_property/aws_cloudfront_origin.rb
convection-2.2.16 lib/convection/model/template/resource_property/aws_cloudfront_origin.rb
convection-2.2.15 lib/convection/model/template/resource_property/aws_cloudfront_origin.rb
convection-2.2.14 lib/convection/model/template/resource_property/aws_cloudfront_origin.rb
convection-2.2.13 lib/convection/model/template/resource_property/aws_cloudfront_origin.rb