Class: S3Secure::Encryption::Disable
- Inherits:
-
Base
- Object
- AbstractBase
- Base
- S3Secure::Encryption::Disable
- Defined in:
- lib/s3_secure/encryption/disable.rb
Instance Method Summary collapse
Methods inherited from AbstractBase
Methods included from AwsServices::S3
#check_bucket!, #new_s3_regional_client, #region, #region_map, #s3, #s3_client
Constructor Details
This class inherits a constructor from S3Secure::AbstractBase
Instance Method Details
#run ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/s3_secure/encryption/disable.rb', line 3 def run show = Show.new(@options) if show.enabled? s3.delete_bucket_encryption(bucket: @bucket) # returns resp = #<struct Aws::EmptyStructure> puts "Bucket #{@bucket} encryption has been removed" else puts "Bucket #{@bucket} is not configured with encryption at the bucket level" end end |