class AWS::S3::WebsiteConfiguration
def deep_copy hash
def deep_copy hash Marshal.load(Marshal.dump(hash)) end
def error_document_key
- Api: - private
Returns:
-
(String, nil)
-
def error_document_key (@options[:error_document] || {})[:key] end
def error_document_key= key
- Api: - private
def error_document_key= key @options.delete(:redirect_all_requests_to) @options[:error_document] ||= {} @options[:error_document][:key] = key end
def index_document_suffix
- Api: - private
Returns:
-
(String, nil)
-
def index_document_suffix (@options[:index_document] || {})[:suffix] end
def index_document_suffix= suffix
- Api: - private
def index_document_suffix= suffix @options.delete(:redirect_all_requests_to) @options[:index_document] ||= {} @options[:index_document][:suffix] = suffix end
def initialize options = {}
(**options)
-
:routing_rules
(Array
) -- -
:error_document
(Hash
) -- -
:index_document
(Hash
) -- -
:redirect_all_requests_to
(Hash
) --
def initialize options = {} @options = deep_copy(options) if @options.empty? @options[:index_document] = { :suffix => 'index.html' } @options[:error_document] = { :key => 'error.html' } end end