ListFunctions #

Overview #

Returns a list of Lambda functions, with the version-specific configuration of each. Lambda returns up to 50 functions per call.

AWS API Reference:

Method #


Import Parameters #

The request uses the following import parameters.

  • i_region

    Required: Yes.

    Name of the region.

  • i_user_name

    You can enter the IAM user here or when using the constructor. The IAM user of AWS account.

Export Parameters #

This method use the following export parameters:

  • e_http_status

    HTTP Status code. Returns 200 if no errors found.

  • e_response_headers

    Returns information about the request in format Name/Value pair values.

  • e_response_content

    List of Lambda functions that can be used.

Example #

DATA: lo_lambda_function TYPE REF TO /lnkaws/cl_aws_lambda_function,
      lo_cx_aws_s3       TYPE REF TO /lnkaws/cx_aws_s3,
      lv_http_status     TYPE i,
      lv_headers         TYPE tihttpnvp,
      lv_content         TYPE string.
    CREATE OBJECT lo_lambda_function.

    CALL METHOD lo_lambda_function->list_functions
        i_user_name        = 'userawsconnector'
        i_region           = 'eu-west-1'
        e_http_status      = lv_http_status
        e_response_headers = lv_headers
        e_response_content = lv_content.
  CATCH /lnkaws/cx_aws_s3 INTO lo_cx_aws_s3.
    RAISE EXCEPTION lo_cx_aws_s3.