# File lib/fog/aws/requests/storage/put_bucket.rb, line 21 def put_bucket(bucket_name, options = {}) if location_constraint = options.delete('LocationConstraint') data = "<CreateBucketConfiguration>\n<LocationConstraint>\#{location_constraint}</LocationConstraint>\n</CreateBucketConfiguration>\n" else data = nil end request({ :expects => 200, :body => data, :headers => options, :idempotent => true, :host => "#{bucket_name}.#{@host}", :method => 'PUT' }) end