original_docstring: Creates an AWS ELB classic listener
docstring: Creates an AWS ELB classic listener
docstring_tokens: Creates an AWS ELB classic listener
code: def create(ctx, iface, resource_config, **_):
      """Creates an AWS ELB classic listener"""
  
      # Create a copy of the resource config for clean manipulation.
      params = utils.clean_params(
          dict() if not resource_config else resource_config.copy())
  
      lb_name = params.get(LB_NAME)
      if not lb_name:
          targs = \
              utils.find_rels_by_node_type(
                  ctx.instance,
                  LB_TYPE)
          lb_name = \
              targs[0].target.instance.runtime_properties[
                  EXTERNAL_RESOURCE_ID]
          params.update({LB_NAME: lb_name})
  
      ctx.instance.runtime_properties[LB_NAME] = lb_name
  
      # Actually create the resource
      iface.create(params)
code_tokens: def create ( ctx , iface , resource_config , ** _ ) : params = utils . clean_params ( dict ( ) if not resource_config else resource_config . copy ( ) ) lb_name = params . get ( LB_NAME ) if not lb_name : targs = utils . find_rels_by_node_type ( ctx . instance , LB_TYPE ) lb_name = targs [ 0 ] . target . instance . runtime_properties [ EXTERNAL_RESOURCE_ID ] params . update ( { LB_NAME : lb_name } ) ctx . instance . runtime_properties [ LB_NAME ] = lb_name iface . create ( params )
short_docstring: Creates an AWS ELB classic listener
short_docstring_tokens: Creates an AWS ELB classic listener
comment: """Creates an AWS ELB classic listener"""$SEP$# Create a copy of the resource config for clean manipulation.$SEP$# Actually create the resource