ruby/example_code/s3/s3_add_bucket_sses3_encryption_policy.rb
def run_me
  if deny_uploads_without_server_side_aws_kms_encryption?(
    Aws::S3::Client.new(region: 'us-west-2'),
    'doc-example-bucket'
  )
    puts 'Policy added.'
  else
    puts 'Policy not added.'
  end
end
# Full example call:
# Replace us-west-2 with the AWS Region you're using for Amazon S3.

Full example call:
Replace us-west-2 with the AWS Region you're using for Amazon S3.
Full example call : Replace us - west - 2 with the AWS Region you ' re using for Amazon S3 .
def run_me
  if deny_uploads_without_server_side_aws_kms_encryption?(
    Aws::S3::Client.new(region: 'us-west-2'),
    'doc-example-bucket'
  )
    puts 'Policy added.'
  else
    puts 'Policy not added.'
  end
end
def run_me if deny_uploads_without_server_side_aws_kms_encryption? ( Aws :: S3 :: Client . new ( region : 'us-west-2' ) , 'doc-example-bucket' ) puts 'Policy added.' else puts 'Policy not added.' end end
Full example call:
Replace us-west-2 with the AWS Region you're using for Amazon S3.
Full example call : Replace us - west - 2 with the AWS Region you ' re using for Amazon S3 .