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.

Overloads:



22
23
24
25
26
27
28
# File 'lib/aws-sdk-s3/bucket_notification.rb', line 22

def initialize(*args)
  options = Hash === args.last ? args.pop.dup : {}
  @bucket_name = extract_bucket_name(args, options)
  @data = options.delete(:data)
  @client = options.delete(:client) || Client.new(options)
  @waiter_block_warned = false
end