MCPcopy Index your code
hub / github.com/zappa/Zappa / remove_api_gateway_logs

Method remove_api_gateway_logs

zappa/core.py:3703–3709  ·  view source on GitHub ↗

Removed all logs that are assigned to a given rest api id.

(self, project_name)

Source from the content-addressed store, hash-verified

3701 self.remove_log_group("/aws/lambda/{}".format(lambda_function_name))
3702
3703 def remove_api_gateway_logs(self, project_name):
3704 """
3705 Removed all logs that are assigned to a given rest api id.
3706 """
3707 for rest_api in self.get_rest_apis(project_name):
3708 for stage in self.apigateway_client.get_stages(restApiId=rest_api["id"])["item"]:
3709 self.remove_log_group("API-Gateway-Execution-Logs_{}/{}".format(rest_api["id"], stage["stageName"]))
3710
3711 ##
3712 # Route53 Domain Name Entries

Callers 1

undeployMethod · 0.80

Calls 2

get_rest_apisMethod · 0.95
remove_log_groupMethod · 0.95

Tested by

no test coverage detected