Method: BucketConfigurator#put

Defined in:
lib/jets/internal/app/shared/functions/jets/s3_bucket_config.rb

#put(props = {}) ⇒ Object



33
34
35
36
37
38
# File 'lib/jets/internal/app/shared/functions/jets/s3_bucket_config.rb', line 33

def put(props={})
  # all props including bucket gets passed from the Custom::S3BucketConfiguration resource
  props = props.deep_transform_keys { |k| k.to_s.underscore.to_sym }
  puts "props: #{JSON.dump(props)}"
  s3.put_bucket_notification_configuration(props)
end