Class: S3Secure::RemediateAll

Inherits:
AbstractBase show all
Defined in:
lib/s3_secure/remediate_all.rb

Instance Method Summary collapse

Methods inherited from AbstractBase

#buckets, #initialize

Methods included from Say

#say

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

#runObject



3
4
5
6
7
8
9
10
# File 'lib/s3_secure/remediate_all.rb', line 3

def run
  o = @options.merge(bucket: @bucket)
  Encryption::Enable.new(o).run
  Policy::Enforce.new(o.merge(sid: "ForceSSLOnlyAccess")).run
  Versioning::Enable.new(o).run
  Lifecycle::Add.new(o).run
  AccessLogs::Enable.new(o).run
end