获取对象信息

使用head_object获取对象元数据信息

def head_object():
    try:
        resp = s3_client.head_object(
            Bucket='YOUR_BUCKET_NAME',
            Key='workflow.png',
        )
        print(resp)
    except ClientError as e:
        logging.error(e)