Method: Aws::S3::BucketNotification#initialize
- Defined in:
- lib/aws-sdk-s3/bucket_notification.rb
#initialize(bucket_name, options = {}) ⇒ BucketNotification #initialize(options = {}) ⇒ BucketNotification
Returns a new instance of BucketNotification.
22 23 24 25 26 27 28 |
# File 'lib/aws-sdk-s3/bucket_notification.rb', line 22 def initialize(*args) = Hash === args.last ? args.pop.dup : {} @bucket_name = extract_bucket_name(args, ) @data = .delete(:data) @client = .delete(:client) || Client.new() @waiter_block_warned = false end |