Class: Convection::Model::Template::ResourceProperty::CloudFrontDistributionConfig

Inherits:
Convection::Model::Template::ResourceProperty show all
Defined in:
lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb

Overview

Instance Attribute Summary

Attributes inherited from Convection::Model::Template::ResourceProperty

#exist, #properties, #template

Instance Method Summary collapse

Methods inherited from Convection::Model::Template::ResourceProperty

attach_method, #initialize, properties, property, #property, #render

Methods included from DSL::Helpers

#camel_case, included, method_name, #screaming_snake_case, #snake_case

Methods included from DSL::IntrinsicFunctions

#base64, #find_in_map, #fn_and, #fn_equals, #fn_if, #fn_not, #fn_or, #fn_ref, #get_att, #get_azs, #join, #select

Constructor Details

This class inherits a constructor from Convection::Model::Template::ResourceProperty

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_behaviorsObject #cache_behaviors(value) ⇒ Object

Overloads:

  • #cache_behaviorsObject

    Returns the value of the 'CacheBehaviors' CloudFormation property.

  • #cache_behaviors(value) ⇒ Object

    Sets the 'CacheBehaviors' CloudFormation property.

    Parameters:

    • value

      the value to set the 'CacheBehaviors' CloudFormation property to.



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

#commentObject #comment(value) ⇒ Object

Overloads:

  • #commentObject

    Returns the value of the 'Comment' CloudFormation property.

  • #comment(value) ⇒ Object

    Sets the 'Comment' CloudFormation property.

    Parameters:

    • value

      the value to set the 'Comment' CloudFormation property to.



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_responsesObject #custom_error_responses(value) ⇒ Object

Overloads:

  • #custom_error_responsesObject

    Returns the value of the 'CustomErrorResponses' CloudFormation property.

  • #custom_error_responses(value) ⇒ Object

    Sets the 'CustomErrorResponses' CloudFormation property.

    Parameters:

    • value

      the value to set the 'CustomErrorResponses' CloudFormation property to.



14
# File 'lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb', line 14

property :custom_error_responses, 'CustomErrorResponses', :type => :array

#default_cache_behaviorObject #default_cache_behavior(value) ⇒ Object

Overloads:

  • #default_cache_behaviorObject

    Returns the value of the 'DefaultCacheBehavior' CloudFormation property.

  • #default_cache_behavior(value) ⇒ Object

    Sets the 'DefaultCacheBehavior' CloudFormation property.

    Parameters:

    • value

      the value to set the 'DefaultCacheBehavior' CloudFormation property to.



15
# File 'lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb', line 15

property :default_cache_behavior, 'DefaultCacheBehavior'

#default_root_objectObject #default_root_object(value) ⇒ Object

Overloads:

  • #default_root_objectObject

    Returns the value of the 'DefaultRootObject' CloudFormation property.

  • #default_root_object(value) ⇒ Object

    Sets the 'DefaultRootObject' CloudFormation property.

    Parameters:

    • value

      the value to set the 'DefaultRootObject' CloudFormation property to.



16
# File 'lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb', line 16

property :default_root_object, 'DefaultRootObject'

#enabledObject #enabled(value) ⇒ Object

Overloads:

  • #enabledObject

    Returns the value of the 'Enabled' CloudFormation property.

  • #enabled(value) ⇒ Object

    Sets the 'Enabled' CloudFormation property.

    Parameters:

    • value

      the value to set the 'Enabled' CloudFormation property to.



17
# File 'lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb', line 17

property :enabled, 'Enabled', :default => true

#loggingObject #logging(value) ⇒ Object

Overloads:

  • #loggingObject

    Returns the value of the 'Logging' CloudFormation property.

  • #logging(value) ⇒ Object

    Sets the 'Logging' CloudFormation property.

    Parameters:

    • value

      the value to set the 'Logging' CloudFormation property to.



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

#originsObject #origins(value) ⇒ Object

Overloads:

  • #originsObject

    Returns the value of the 'Origins' CloudFormation property.

  • #origins(value) ⇒ Object

    Sets the 'Origins' CloudFormation property.

    Parameters:

    • value

      the value to set the 'Origins' CloudFormation property to.



19
# File 'lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb', line 19

property :origins, 'Origins', :type => :list

#price_classObject #price_class(value) ⇒ Object

Overloads:

  • #price_classObject

    Returns the value of the 'PriceClass' CloudFormation property.

  • #price_class(value) ⇒ Object

    Sets the 'PriceClass' CloudFormation property.

    Parameters:

    • value

      the value to set the 'PriceClass' CloudFormation property to.



20
# File 'lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb', line 20

property :price_class, 'PriceClass'

#restrictionsObject #restrictions(value) ⇒ Object

Overloads:

  • #restrictionsObject

    Returns the value of the 'Restrictions' CloudFormation property.

  • #restrictions(value) ⇒ Object

    Sets the 'Restrictions' CloudFormation property.

    Parameters:

    • value

      the value to set the 'Restrictions' CloudFormation property to.



21
# File 'lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb', line 21

property :restrictions, 'Restrictions'

#viewer_certificateObject #viewer_certificate(value) ⇒ Object

Overloads:

  • #viewer_certificateObject

    Returns the value of the 'ViewerCertificate' CloudFormation property.

  • #viewer_certificate(value) ⇒ Object

    Sets the 'ViewerCertificate' CloudFormation property.

    Parameters:

    • value

      the value to set the 'ViewerCertificate' CloudFormation property to.



22
# File 'lib/convection/model/template/resource_property/aws_cloudfront_distribution_config.rb', line 22

property :viewer_certificate, 'ViewerCertificate'