获取桶信息

使用head_bucket获取桶信息

def head_bucket(bucket_name):
    try:
        resp = s3_client.head_bucket(Bucket=bucket_name)
        print(resp)
    except ClientError as e:
        logging.error(e)