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.



86
87
88
89
# File 'lib/aws/s3/bucket.rb', line 86

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

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



84
85
86
# File 'lib/aws/s3/bucket.rb', line 84

def location
  @location
end

Instance Method Details

#buildObject



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

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