#NEWLINE# def create_method( self , api_id , resource_id , http_method ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . client . put_method ( restApiId = api_id , resourceId = resource_id , httpMethod = http_method , authorizationType = 'none' ) #NEWLINE# return True #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# return False