ruby/example_code/s3/auth_request_object_keys.rb
def run_me
  region = 'us-west-2'
  bucket_name = 'BUCKET_NAME'
  s3_client = Aws::S3::Client.new(region: region)

  exit 1 unless list_bucket_objects?(s3_client, bucket_name)
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
  region = 'us-west-2'
  bucket_name = 'BUCKET_NAME'
  s3_client = Aws::S3::Client.new(region: region)
  exit 1 unless list_bucket_objects?(s3_client, bucket_name)
end
def run_me region = 'us-west-2' bucket_name = 'BUCKET_NAME' s3_client = Aws :: S3 :: Client . new ( region : region ) exit 1 unless list_bucket_objects? ( s3_client , bucket_name ) 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 .