SubscribeTopicList #

Overview #

Returns a list of the requester’s topics. Each call returns a limited list of topics, up to 100.

AWS API Reference:

Method #


Import parameters #

This method uses the following import parameters.

  • i_user_name

    Required: Yes.

    The IAM user of AWS account.

  • i_arn

    Required: Yes.

    Value of the Amazon Resource Name (ARN) of the new topic.

  • i_region

    Required: Yes.

    Name of the region.

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

    Response content in string format.

  • e_list_subscribe

    Internal table with the list.

    This table has these fields:
      - Endpoint.
      - Protocol.
      - Arn.

Example #

DATA: lo_sns_topic       TYPE REF TO /lnkaws/cl_aws_sns_topic,
      lo_cx_aws_s3       TYPE REF TO /lnkaws/cx_aws_s3,
      lv_http_status     TYPE i,
      lv_headers         TYPE tihttpnvp,
      lv_content         TYPE string,
      lt_list_subscribe  TYPE /lnkaws/sns_list_subscribe_tt.
    CREATE OBJECT lo_sns_topic
        i_region    = 'eu-west-1'
        i_user_name = 'userawsconnector'.
    CALL METHOD lo_sns_topic->subscribe_topic_list
        i_user_name        = 'userawsconnector'
        i_arn              = 'arn value'
        i_region           = 'eu-west-1'
        e_http_status      = lv_http_status
        e_response_headers = lv_headers
        e_response_content = lv_content
        e_list_subscribe   = lt_list_subscribe.
  CATCH /lnkaws/cx_aws_s3 INTO lo_cx_aws_s3.
    RAISE EXCEPTION lo_cx_aws_s3.