Module: AWS::S3::Bucket::PolicyProxy

Defined in:
lib/aws/s3/bucket.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bucketObject

Returns the value of attribute bucket


233
234
235
# File 'lib/aws/s3/bucket.rb', line 233

def bucket
  @bucket
end

Instance Method Details

#change {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:


235
236
237
238
# File 'lib/aws/s3/bucket.rb', line 235

def change
  yield(self)
  bucket.policy = self
end

#deleteObject


240
241
242
# File 'lib/aws/s3/bucket.rb', line 240

def delete
  bucket.client.delete_bucket_policy(:bucket_name => bucket.name)
end