Sha256: c19d2cddf305d4768a08f72c6562c10957037194490948a7c22864c16ccf467d

Contents?: true

Size: 1.12 KB

Versions: 57

Compression:

Stored size: 1.12 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.html
        # Amazon S3 Website Configuration}
        class S3WebsiteConfiguration < ResourceProperty
          property :error_document, 'ErrorDocument'
          property :index_document, 'IndexDocument'
          property :redirect_all_reqs_to, 'RedirectAllRequestsTo'
          property :routing_rules, 'RoutingRules', :type => :list

          def redirect_all_requests_to(&block)
            redirect_to = ResourceProperty::S3WebsiteConfigurationRedirectAllRequestsTo.new(self)
            redirect_to.instance_exec(&block) if block
            properties['RedirectAllRequestsTo'].set(redirect_to)
          end

          def routing_rule(&block)
            routing_rule = ResourceProperty::S3WebsiteConfigurationRoutingRule.new(self)
            routing_rule.instance_exec(&block) if block
            routing_rules << routing_rule
          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.rb
convection-2.3.0 lib/convection/model/template/resource_property/aws_s3_website_configuration.rb
convection-2.2.29 lib/convection/model/template/resource_property/aws_s3_website_configuration.rb
convection-2.2.28.pre.beta.2 lib/convection/model/template/resource_property/aws_s3_website_configuration.rb
convection-2.2.28.pre.beta.1 lib/convection/model/template/resource_property/aws_s3_website_configuration.rb
convection-2.2.27 lib/convection/model/template/resource_property/aws_s3_website_configuration.rb
convection-2.2.26 lib/convection/model/template/resource_property/aws_s3_website_configuration.rb
convection-2.2.25 lib/convection/model/template/resource_property/aws_s3_website_configuration.rb
convection-2.2.24 lib/convection/model/template/resource_property/aws_s3_website_configuration.rb
convection-2.2.23 lib/convection/model/template/resource_property/aws_s3_website_configuration.rb
convection-2.2.22 lib/convection/model/template/resource_property/aws_s3_website_configuration.rb
convection-2.2.21 lib/convection/model/template/resource_property/aws_s3_website_configuration.rb
convection-2.2.20 lib/convection/model/template/resource_property/aws_s3_website_configuration.rb
convection-2.2.19 lib/convection/model/template/resource_property/aws_s3_website_configuration.rb
convection-2.2.18 lib/convection/model/template/resource_property/aws_s3_website_configuration.rb
convection-2.2.17 lib/convection/model/template/resource_property/aws_s3_website_configuration.rb
convection-2.2.16 lib/convection/model/template/resource_property/aws_s3_website_configuration.rb
convection-2.2.15 lib/convection/model/template/resource_property/aws_s3_website_configuration.rb
convection-2.2.14 lib/convection/model/template/resource_property/aws_s3_website_configuration.rb
convection-2.2.13 lib/convection/model/template/resource_property/aws_s3_website_configuration.rb