def execute()

in filter_aws.py [0:0]


  def execute(self, listing, response):
    """Apply filter.

    Args:
      listing: data returned from aws api.
      response: relevant data returned to caller.
    """
    if listing.service == 'medialive':
      if listing.operation == 'ListChannels' and not response['Channels']:
        if 'Channels' in response:
          del response['Channels']
        if 'NextToken' in response:
          del response['NextToken']
        if listing.operation == 'ListInputs' and not response['Inputs']:
          if 'Inputs' in response:
            del response['Inputs']
          if 'NextToken' in response:
            del response['NextToken']