Class: Convection::Model::Template::ResourceProperty::S3CorsConfiguration

Inherits:
Convection::Model::Template::ResourceProperty show all
Defined in:
lib/convection/model/template/resource_property/aws_s3_cors_configuration.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

#cors_rule(&block) ⇒ Object



12
13
14
15
16
# File 'lib/convection/model/template/resource_property/aws_s3_cors_configuration.rb', line 12

def cors_rule(&block)
  cors_rule = ResourceProperty::S3CorsConfigurationRule.new(self)
  cors_rule.instance_exec(&block) if block
  cors_rules << cors_rule
end

#cors_rulesObject #cors_rules(value) ⇒ Object

Overloads:

  • #cors_rulesObject

    Returns the value of the 'CorsRules' CloudFormation property.

  • #cors_rules(value) ⇒ Object

    Sets the 'CorsRules' CloudFormation property.

    Parameters:

    • value

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



10
# File 'lib/convection/model/template/resource_property/aws_s3_cors_configuration.rb', line 10

property :cors_rules, 'CorsRules', :type => :list