So I am trying to write a python script that checks if all the values in public_access_block on s3 buckets are set to TRUE and if one of the bucket is not, then print out which bucket it is.
s3 = boto3.client('s3')
buckets = s3.get_public_access_block(Bucket = 'my-test-bucket) #this is for one bucket
print(buckets)
My question is: how to write the If logic that it iterates through multiple buckets to check