'Copies src file to destination within a bucket.'

def copy_on_s3(self, src_file_name, dst_file_name, bucket_name):

    try:
        self.s3_client.head_bucket(Bucket=bucket_name)
    except botocore.exceptions.ClientError as e:
        error_code = int(e.response['Error']['Code'])
        if (error_code == 404):
            return False
    copy_src = {'Bucket': bucket_name, 'Key': src_file_name}
    try:
        self.s3_client.copy(CopySource=copy_src, Bucket=bucket_name, Key=dst_file_name)
        return True
    except botocore.exceptions.ClientError:
        return False
