def update_hosted_zone()

in create_managed_endpoint.py [0:0]


def update_hosted_zone(hzonename,hzregion,hzvpc):
    # Update hosted zone with vpc associations
    
    try:
        
        hzid = hosted_zone_id(hzonename)
        responsehu = dnsclient.associate_vpc_with_hosted_zone(
        HostedZoneId=hzid,
        VPC={
            'VPCRegion': hzregion,
            'VPCId': hzvpc
        }
        
        )

        return hzid
        
    
    except ClientError as e:
        print(e)
        raise