Sha256: c8e54995467fd8ca20a0b71402c99495bb23a780e9a9fa5568c8e40b90370a07

Contents?: true

Size: 1.22 KB

Versions: 81

Compression:

Stored size: 1.22 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 :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

81 entries across 81 versions & 1 rubygems

Version Path
convection-2.2.21 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.2.20 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.2.19 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.2.18 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.2.17 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.2.16 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.2.15 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.2.14 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.2.13 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.2.12 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.2.11 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.2.10 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.2.9 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.2.8 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.2.7 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.2.6 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.2.5 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.2.4 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.2.3 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb
convection-2.2.2 lib/convection/model/template/resource_property/aws_cloudfront_cachebehavior.rb