Sha256: c8de6cbf49521d6698484f58367233a04b2d6a57faa07d74ea44167302e63be9
Contents?: true
Size: 694 Bytes
Versions: 10
Compression:
Stored size: 694 Bytes
Contents
module Fog module Storage class AWS class Real # Delete policy for a bucket # # @param bucket_name [String] name of bucket to delete policy from # # @return [Excon::Response] response: # * status [Integer] - 204 # # @see http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketDELETEpolicy.html def delete_bucket_policy(bucket_name) request({ :expects => 204, :headers => {}, :host => "#{bucket_name}.#{@host}", :method => 'DELETE', :query => {'policy' => nil} }) end end end end end
Version data entries
10 entries across 10 versions & 5 rubygems