original_docstring: Deletes an AWS ELB classic listener
docstring: Deletes an AWS ELB classic listener
docstring_tokens: Deletes an AWS ELB classic listener
code: def delete(ctx, iface, resource_config, **_):
      """Deletes an AWS ELB classic listener"""
  
      # Create a copy of the resource config for clean manipulation.
      params = \
          dict() if not resource_config else resource_config.copy()
  
      lb = params.get(LB_NAME)
      if not lb:
          lb = ctx.instance.runtime_properties[LB_NAME]
  
      for listener in params.get(LISTENERS, []):
          ports = listener.get(LB_PORT)
          iface.delete({LB_NAME: lb, LB_PORTS: ports})
code_tokens: def delete ( ctx , iface , resource_config , ** _ ) : params = dict ( ) if not resource_config else resource_config . copy ( ) lb = params . get ( LB_NAME ) if not lb : lb = ctx . instance . runtime_properties [ LB_NAME ] for listener in params . get ( LISTENERS , [ ] ) : ports = listener . get ( LB_PORT ) iface . delete ( { LB_NAME : lb , LB_PORTS : ports } )
short_docstring: Deletes an AWS ELB classic listener
short_docstring_tokens: Deletes an AWS ELB classic listener
comment: """Deletes an AWS ELB classic listener"""$SEP$# Create a copy of the resource config for clean manipulation.