buildstack.py [85:109]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
def validateregion(region):
# validates passed region name.
    try:

        regionfound = False

        for i in regionslist['Regions']:
            if (i['RegionName'] == region):
                regionfound = True
                break
            
        return regionfound
    
    except ClientError as e:
        print("[ERROR]",e)
        raise
    except Exception as e:
        print("[ERROR]", e)                


def main():
    # main routine


    try:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



create_managed_endpoint.py [247:269]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
def validateregion(region):
# validates passed region name.
    try:

        regionfound = False

        for i in regionslist['Regions']:
            if (i['RegionName'] == region):
                regionfound = True
                break
            
        return regionfound
    
    except ClientError as e:
        print("[ERROR]",e)
        raise
    except Exception as e:
        print("[ERROR]", e)

def main():
    # Main routine
    
    try:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



