Class: BucketConfigurator
- Inherits:
-
Object
- Object
- BucketConfigurator
- Defined in:
- lib/jets/internal/app/shared/functions/jets/s3_bucket_config.rb
Instance Method Summary collapse
Instance Method Details
#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 |
#s3 ⇒ Object
40 41 42 |
# File 'lib/jets/internal/app/shared/functions/jets/s3_bucket_config.rb', line 40 def s3 @s3 ||= Aws::S3::Client.new end |