aws s3api head-bucket
You can use this operation to determine if a bucket exists and if you have permission to access it. AWS CLI reference
2 options Its page in the AWS CLI reference
Options
--bucketThe bucket name.--expected-bucket-ownerThe account ID of the expected bucket owner.