Class: AWS::S3::Bucket::BucketConfiguration

Inherits:
XmlGenerator
  • Object
show all
Defined in:
lib/aws/s3/bucket.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location) ⇒ BucketConfiguration

Returns a new instance of BucketConfiguration.



91
92
93
94
# File 'lib/aws/s3/bucket.rb', line 91

def initialize(location)
  @location = location
  super()
end

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



89
90
91
# File 'lib/aws/s3/bucket.rb', line 89

def location
  @location
end

Instance Method Details

#buildObject



96
97
98
99
100
101
102
# File 'lib/aws/s3/bucket.rb', line 96

def build
  return nil unless location == :eu
  
  xml.tag!('CreateBucketConfiguration') do
    xml.LocationConstraint 'EU'
  end
end