Class: Convection::Model::Template::ResourceProperty::S3WebsiteConfiguration
- Inherits:
-
Convection::Model::Template::ResourceProperty
- Object
- Convection::Model::Template::ResourceProperty
- Convection::Model::Template::ResourceProperty::S3WebsiteConfiguration
- Defined in:
- lib/convection/model/template/resource_property/aws_s3_website_configuration.rb
Overview
Represents an Amazon S3 Website Configuration
Instance Attribute Summary
Attributes inherited from Convection::Model::Template::ResourceProperty
#exist, #properties, #template
Instance Method Summary collapse
- #error_document(value) ⇒ Object
- #index_document(value) ⇒ Object
- #redirect_all_reqs_to(value) ⇒ Object
- #redirect_all_requests_to(&block) ⇒ Object
- #routing_rule(&block) ⇒ Object
- #routing_rules(value) ⇒ Object
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_import_value, #fn_not, #fn_or, #fn_ref, #fn_sub, #get_att, #get_azs, included, #join, mixers, #select
Constructor Details
This class inherits a constructor from Convection::Model::Template::ResourceProperty
Instance Method Details
#error_document ⇒ Object #error_document(value) ⇒ Object
10 |
# File 'lib/convection/model/template/resource_property/aws_s3_website_configuration.rb', line 10 property :error_document, 'ErrorDocument' |
#index_document ⇒ Object #index_document(value) ⇒ Object
11 |
# File 'lib/convection/model/template/resource_property/aws_s3_website_configuration.rb', line 11 property :index_document, 'IndexDocument' |
#redirect_all_reqs_to ⇒ Object #redirect_all_reqs_to(value) ⇒ Object
12 |
# File 'lib/convection/model/template/resource_property/aws_s3_website_configuration.rb', line 12 property :redirect_all_reqs_to, 'RedirectAllRequestsTo' |
#redirect_all_requests_to(&block) ⇒ Object
15 16 17 18 19 |
# File 'lib/convection/model/template/resource_property/aws_s3_website_configuration.rb', line 15 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 |
#routing_rule(&block) ⇒ Object
21 22 23 24 25 |
# File 'lib/convection/model/template/resource_property/aws_s3_website_configuration.rb', line 21 def routing_rule(&block) routing_rule = ResourceProperty::S3WebsiteConfigurationRoutingRule.new(self) routing_rule.instance_exec(&block) if block routing_rules << routing_rule end |
#routing_rules ⇒ Object #routing_rules(value) ⇒ Object
13 |
# File 'lib/convection/model/template/resource_property/aws_s3_website_configuration.rb', line 13 property :routing_rules, 'RoutingRules', :type => :list |