Class: Convection::Model::Template::ResourceProperty::S3WebsiteConfiguration

Inherits:
Convection::Model::Template::ResourceProperty show all
Defined in:
lib/convection/model/template/resource_property/aws_s3_website_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_import_value, #fn_not, #fn_or, #fn_ref, #fn_sub, #get_att, #get_azs, #join, #select

Constructor Details

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

Instance Method Details

#error_documentObject #error_document(value) ⇒ Object

Overloads:

  • #error_documentObject

    Returns the value of the ‘ErrorDocument’ CloudFormation property.

  • #error_document(value) ⇒ Object

    Sets the ‘ErrorDocument’ CloudFormation property.

    Parameters:

    • value

      the value to set the ‘ErrorDocument’ CloudFormation property to.



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

property :error_document, 'ErrorDocument'

#index_documentObject #index_document(value) ⇒ Object

Overloads:

  • #index_documentObject

    Returns the value of the ‘IndexDocument’ CloudFormation property.

  • #index_document(value) ⇒ Object

    Sets the ‘IndexDocument’ CloudFormation property.

    Parameters:

    • value

      the value to set the ‘IndexDocument’ CloudFormation property to.



11
# File 'lib/convection/model/template/resource_property/aws_s3_website_configuration.rb', line 11

property :index_document, 'IndexDocument'

#redirect_all_reqs_toObject #redirect_all_reqs_to(value) ⇒ Object

Overloads:

  • #redirect_all_reqs_toObject

    Returns the value of the ‘RedirectAllRequestsTo’ CloudFormation property.

  • #redirect_all_reqs_to(value) ⇒ Object

    Sets the ‘RedirectAllRequestsTo’ CloudFormation property.

    Parameters:

    • value

      the value to set the ‘RedirectAllRequestsTo’ CloudFormation property to.



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_rulesObject #routing_rules(value) ⇒ Object

Overloads:

  • #routing_rulesObject

    Returns the value of the ‘RoutingRules’ CloudFormation property.

  • #routing_rules(value) ⇒ Object

    Sets the ‘RoutingRules’ CloudFormation property.

    Parameters:

    • value

      the value to set the ‘RoutingRules’ CloudFormation property to.



13
# File 'lib/convection/model/template/resource_property/aws_s3_website_configuration.rb', line 13

property :routing_rules, 'RoutingRules', :type => :list