title: I want to know the sample bucket name in boto3
body: <p>Im new for AWS and im using boto3 for uploading files to s3. But im bit confused in configuring boto3 connection. Below is the code.</p>
  
  <pre><code>import boto3
  s3 = boto3.resource(
      's3',
      aws_access_key_id='access_key',
      aws_secret_access_key='secret_key'
  )
  
  data = open('test.txt', 'rb')
  s3.Bucket('bucketname').put_object(Key='test.txt', Body=data)
  
  I tried to print the bucket names using below code and it worked well.
  
  for bucket in s3.buckets.all():
      print(bucket.name)
  </code></pre>
  
  <p>But if i give the bucketname in
  <code>s3.Bucket('xxxxxx').put_object(Key='test.txt', Body=data)</code></p>
  
  <p>im getting error as:</p>
  
  <pre><code>botocore.exceptions.ParamValidationError: Parameter validation failed:
  Invalid bucket name "xxxxxx": Bucket name must match the regex "^[a-zA-Z0-9.\-_]{1,255}$"
  </code></pre>
  
  <p>I need help on this.</p>