def _clear_method(api_id, resource_id, http_method):
try:
method = apigateway('get_method', restApiId=api_id,
resourceId=resource_id,
httpMethod=http_method)
except ClientError:
method = None
if method:
apigateway('delete_method', restApiId=api_id, resourceId=resource_id,
httpMethod=http_method)
评论列表
文章目录