Example #1
0
 def _remove_rest_api_connection(self):
     resource_name = '{}'.format(self.app_id)
     api_client = APIGateway(self.boto3_session)
     iam = IAM(self.boto3_session)
     api_client.delete_rest_api_by_name(resource_name)
     iam.detach_all_policies(resource_name)
     iam.delete_role(resource_name)
Example #2
0
 def get_rest_api_url(self):
     api_gateway = APIGateway(self.boto3_session)
     return api_gateway.get_rest_api_url(self.app_id)
Example #3
0
 def _create_rest_api_connection(self):
     api_name = '{}'.format(self.app_id)
     func_name = '{}'.format(self.app_id)
     api_gateway = APIGateway(self.boto3_session)
     api_gateway.connect_with_lambda(api_name, func_name)