Sha256: d08c0f23fa110e56ce05ad3f4060cf738855ece43c94ccbcc83dc8be3a04a2e2

Contents?: true

Size: 1.26 KB

Versions: 11

Compression:

Stored size: 1.26 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-cachebehavior.html
        # CloudFront DistributionConfig CacheBehavior Embedded Property Type}
        class CloudFrontCacheBehavior < ResourceProperty
          property :allowed_methods, 'AllowedMethods', :type => :list, :default => %w(HEAD GET)
          property :cached_methods, 'CachedMethods', :type => :list
          property :compress, 'Compress'
          property :forwarded_values, 'ForwardedValues'
          property :min_ttl, 'MinTTL'
          property :path_pattern, 'PathPattern', :default => '*'
          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

11 entries across 11 versions & 1 rubygems

Version Path
convection-2.3.1 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.3.0 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.2.29 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.2.28.pre.beta.2 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.2.28.pre.beta.1 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.2.27 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.2.26 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.2.25 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.2.24 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.2.23 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.2.22 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb