Sha256: f33e638f70ea77fb390962dc780b945eb470671a36f94f3b534a720168107a4c

Contents?: true

Size: 1.16 KB

Versions: 34

Compression:

Stored size: 1.16 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-defaultcachebehavior.html
        # CloudFront DefaultCacheBehavior Embedded Property Type}
        class CloudFrontDefaultCacheBehavior < ResourceProperty
          property :allowed_methods, 'AllowedMethods', :type => :list, :default => %w(HEAD GET)
          property :cached_methods, 'CachedMethods', :type => :list
          property :forwarded_values, 'ForwardedValues'
          property :min_ttl, 'MinTTL'
          property :smooth_streaming, 'SmoothStreaming'
          property :target_origin, 'TargetOriginId'
          property :trusted_signer, 'TrustedSigners', :type => :list
          property :viewer_protocol_policy, 'ViewerProtocolPolicy', :default => 'allow-all'

          def forwarded_values(&block)
            values = ResourceProperty::CloudFrontForwardedValues.new(self)
            values.instance_exec(&block) if block
            properties['ForwardedValues'].set(values)
          end
        end
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
convection-0.4.3 lib/convection/model/template/resource_property/aws_cloudfront_defaultcachebehavior.rb
convection-0.4.2 lib/convection/model/template/resource_property/aws_cloudfront_defaultcachebehavior.rb
convection-0.4.1 lib/convection/model/template/resource_property/aws_cloudfront_defaultcachebehavior.rb
convection-0.4.0 lib/convection/model/template/resource_property/aws_cloudfront_defaultcachebehavior.rb
convection-0.3.3.pre.beta.1 lib/convection/model/template/resource_property/aws_cloudfront_defaultcachebehavior.rb
convection-0.3.2 lib/convection/model/template/resource_property/aws_cloudfront_defaultcachebehavior.rb
convection-0.3.1 lib/convection/model/template/resource_property/aws_cloudfront_defaultcachebehavior.rb
convection-0.3.0 lib/convection/model/template/resource_property/aws_cloudfront_defaultcachebehavior.rb
convection-0.2.34.pre.beta.1 lib/convection/model/template/resource_property/aws_cloudfront_defaultcachebehavior.rb
convection-0.2.33 lib/convection/model/template/resource_property/aws_cloudfront_defaultcachebehavior.rb
convection-0.2.32 lib/convection/model/template/resource_property/aws_cloudfront_defaultcachebehavior.rb
convection-0.2.31 lib/convection/model/template/resource_property/aws_cloudfront_defaultcachebehavior.rb
convection-0.2.30 lib/convection/model/template/resource_property/aws_cloudfront_defaultcachebehavior.rb
convection-0.2.29 lib/convection/model/template/resource_property/aws_cloudfront_defaultcachebehavior.rb
convection-0.2.28 lib/convection/model/template/resource_property/aws_cloudfront_defaultcachebehavior.rb
convection-0.2.27 lib/convection/model/template/resource_property/aws_cloudfront_defaultcachebehavior.rb
convection-0.2.26 lib/convection/model/template/resource_property/aws_cloudfront_defaultcachebehavior.rb
convection-0.2.25 lib/convection/model/template/resource_property/aws_cloudfront_defaultcachebehavior.rb
convection-0.2.24 lib/convection/model/template/resource_property/aws_cloudfront_defaultcachebehavior.rb
convection-0.2.23 lib/convection/model/template/resource_property/aws_cloudfront_defaultcachebehavior.rb