#NEWLINE# def get_api_url( self , stage_name ) : #NEWLINE# #INDENT# '\n        Given a stage_name, return a valid API URL.\n\n        ' #NEWLINE# client = self . boto_session . client ( 'apigateway' ) #NEWLINE# response = client . get_rest_apis ( limit = 500 ) #NEWLINE# for item in response [ 'items' ] : #NEWLINE# #INDENT# if ( item [ 'description' ] == stage_name ) : #NEWLINE# #INDENT# endpoint_url = ( ( ( ( ( 'https://' + item [ 'id' ] ) + '.execute-api.' ) + self . boto_session . region_name ) + '.amazonaws.com/' ) + stage_name ) #NEWLINE# return endpoint_url #NEWLINE# #UNINDENT# #UNINDENT# return ''