Sha256: 966e2818945564733272dc078c63d5b5b594b12c1893faf604bc61e3a0bf85d4
Contents?: true
Size: 620 Bytes
Versions: 1
Compression:
Stored size: 620 Bytes
Contents
class S3Secure::Encryption class Show < Base def run if rules say "Bucket #{@bucket} is configured with these encryption rules:" say rules.map(&:to_h) else say "Bucket #{@bucket} is not configured with encryption at the bucket level" end end def enabled? !!(rules && !rules.empty?) end def rules resp = s3.get_bucket_encryption(bucket: @bucket) resp.server_side_encryption_configuration.rules # Aws::Xml::DefaultList object rescue Aws::S3::Errors::ServerSideEncryptionConfigurationNotFoundError end memoize :rules end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
s3-secure-0.5.1 | lib/s3_secure/encryption/show.rb |