in remoteaccountpython/create-msk-vpc-endpoints.py [0:0]
def getHostedZoneId():
response = r53Client.list_hosted_zones()
for hostedZone in response['HostedZones']:
if hostedZone['Name'] == "kafka." + str(region) + ".amazonaws.com.":
return hostedZone['Id'].split("/")[2]