aws s3api get-bucket-ownership-controls
This operation is not supported for directory buckets. AWS CLI reference
2 options Its page in the AWS CLI reference
Options
--bucketThe name of the Amazon S3 bucket whose OwnershipControls you want to retrieve.--expected-bucket-ownerThe account ID of the expected bucket owner.