ruby/example_code/s3/s3_get_cspk_decrypt_item.rb
def run_me
  bucket_name = 'doc-example-bucket'
  object_key = 'my-file.txt'
  region = 'us-west-2'
  s3_client = Aws::S3::Client.new(region: region)
  private_key_file = 'my-private-key.pem'

  puts get_decrypted_object_content(
    s3_client,
    bucket_name,
    object_key,
    private_key_file
  )
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
  bucket_name = 'doc-example-bucket'
  object_key = 'my-file.txt'
  region = 'us-west-2'
  s3_client = Aws::S3::Client.new(region: region)
  private_key_file = 'my-private-key.pem'
  puts get_decrypted_object_content(
    s3_client,
    bucket_name,
    object_key,
    private_key_file
  )
end
def run_me bucket_name = 'doc-example-bucket' object_key = 'my-file.txt' region = 'us-west-2' s3_client = Aws :: S3 :: Client . new ( region : region ) private_key_file = 'my-private-key.pem' puts get_decrypted_object_content ( s3_client , bucket_name , object_key , private_key_file ) 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 .