Sha256: d0e402916e3f4fff10eed9adf551e5a857fe766cb1f0db9c64cfb0dacf9009c9

Contents?: true

Size: 1.02 KB

Versions: 57

Compression:

Stored size: 1.02 KB

Contents

require_relative '../resource_property'

module Convection
  module Model
    class Template
      class ResourceProperty
        # Represents an {http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration-routingrules.html
        # Amazon S3 Website Configuration Routing Rule}
        class S3WebsiteConfigurationRoutingRule < ResourceProperty
          property :redirect_rul, 'RedirectRule'
          property :routing_rule_cond, 'RoutingRuleCondition'

          def redirect_rule(&block)
            redr = ResourceProperty::S3WebsiteConfigurationRoutingRuleRedirectRule.new(self)
            redr.instance_exec(&block) if block
            properties['RedirectRule'].set(redr)
          end

          def routing_rule_condition(&block)
            cond = ResourceProperty::S3WebsiteConfigurationRoutingRuleRoutingRuleCondition.new(self)
            cond.instance_exec(&block) if block
            properties['RoutingRuleCondition'].set(cond)
          end
        end
      end
    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
convection-2.3.1 lib/convection/model/template/resource_property/aws_s3_website_configuration_routing_rule.rb
convection-2.3.0 lib/convection/model/template/resource_property/aws_s3_website_configuration_routing_rule.rb
convection-2.2.29 lib/convection/model/template/resource_property/aws_s3_website_configuration_routing_rule.rb
convection-2.2.28.pre.beta.2 lib/convection/model/template/resource_property/aws_s3_website_configuration_routing_rule.rb
convection-2.2.28.pre.beta.1 lib/convection/model/template/resource_property/aws_s3_website_configuration_routing_rule.rb
convection-2.2.27 lib/convection/model/template/resource_property/aws_s3_website_configuration_routing_rule.rb
convection-2.2.26 lib/convection/model/template/resource_property/aws_s3_website_configuration_routing_rule.rb
convection-2.2.25 lib/convection/model/template/resource_property/aws_s3_website_configuration_routing_rule.rb
convection-2.2.24 lib/convection/model/template/resource_property/aws_s3_website_configuration_routing_rule.rb
convection-2.2.23 lib/convection/model/template/resource_property/aws_s3_website_configuration_routing_rule.rb
convection-2.2.22 lib/convection/model/template/resource_property/aws_s3_website_configuration_routing_rule.rb
convection-2.2.21 lib/convection/model/template/resource_property/aws_s3_website_configuration_routing_rule.rb
convection-2.2.20 lib/convection/model/template/resource_property/aws_s3_website_configuration_routing_rule.rb
convection-2.2.19 lib/convection/model/template/resource_property/aws_s3_website_configuration_routing_rule.rb
convection-2.2.18 lib/convection/model/template/resource_property/aws_s3_website_configuration_routing_rule.rb
convection-2.2.17 lib/convection/model/template/resource_property/aws_s3_website_configuration_routing_rule.rb
convection-2.2.16 lib/convection/model/template/resource_property/aws_s3_website_configuration_routing_rule.rb
convection-2.2.15 lib/convection/model/template/resource_property/aws_s3_website_configuration_routing_rule.rb
convection-2.2.14 lib/convection/model/template/resource_property/aws_s3_website_configuration_routing_rule.rb
convection-2.2.13 lib/convection/model/template/resource_property/aws_s3_website_configuration_routing_rule.rb