Class: Convection::Model::Template::ResourceProperty::CloudFrontDistributionConfig
Overview
Instance Attribute Summary
#exist, #properties, #template
Instance Method Summary
collapse
attach_method, #initialize, properties, property, #property, #render
#camel_case, included, method_name, #screaming_snake_case, #snake_case
#base64, #find_in_map, #fn_and, #fn_equals, #fn_if, #fn_not, #fn_or, #fn_ref, #get_att, #get_azs, #join, #select
Instance Method Details
#cache_behavior(&block) ⇒ Object
24
25
26
27
28
|
# File 'lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb', line 24
def cache_behavior(&block)
behavior = ResourceProperty::CloudFrontCacheBehavior.new(self)
behavior.instance_exec(&block) if block
cache_behaviors << behavior
end
|
#cache_behaviors ⇒ Object
#cache_behaviors(value) ⇒ Object
12
|
# File 'lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb', line 12
property :cache_behaviors, 'CacheBehaviors', :type => :list
|
#cname(value) ⇒ Object
NOTE: we avoid overloading Ruby's alias here by using cname
11
|
# File 'lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb', line 11
property :cname, 'Aliases', :type => :list
|
13
|
# File 'lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb', line 13
property :comment, 'Comment'
|
#custom_error_response(&block) ⇒ Object
30
31
32
33
34
|
# File 'lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb', line 30
def custom_error_response(&block)
response = ResourceProperty::CloudFrontCustomErrorResponse.new(self)
response.instance_exec(&block) if block
custom_error_responses << response
end
|
#custom_error_responses ⇒ Object
#custom_error_responses(value) ⇒ Object
14
|
# File 'lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb', line 14
property :custom_error_responses, 'CustomErrorResponses', :type => :array
|
#default_cache_behavior ⇒ Object
#default_cache_behavior(value) ⇒ Object
15
|
# File 'lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb', line 15
property :default_cache_behavior, 'DefaultCacheBehavior'
|
#default_root_object ⇒ Object
#default_root_object(value) ⇒ Object
16
|
# File 'lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb', line 16
property :default_root_object, 'DefaultRootObject'
|
#enabled ⇒ Object
#enabled(value) ⇒ Object
17
|
# File 'lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb', line 17
property :enabled, 'Enabled', :default => true
|
#logging ⇒ Object
#logging(value) ⇒ Object
18
|
# File 'lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb', line 18
property :logging, 'Logging'
|
#origin(&block) ⇒ Object
48
49
50
51
52
|
# File 'lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb', line 48
def origin(&block)
origin = ResourceProperty::CloudFrontOrigin.new(self)
origin.instance_exec(&block) if block
origins << origin
end
|
#origins ⇒ Object
#origins(value) ⇒ Object
19
|
# File 'lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb', line 19
property :origins, 'Origins', :type => :list
|
#price_class ⇒ Object
#price_class(value) ⇒ Object
20
|
# File 'lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb', line 20
property :price_class, 'PriceClass'
|
#restrictions ⇒ Object
#restrictions(value) ⇒ Object
21
|
# File 'lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb', line 21
property :restrictions, 'Restrictions'
|
#viewer_certificate ⇒ Object
#viewer_certificate(value) ⇒ Object
22
|
# File 'lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb', line 22
property :viewer_certificate, 'ViewerCertificate'
|