Skip to content

/AWS1/IF_ECS=>DESCRIBEDAEMON()

About DescribeDaemon

Describes the specified daemon.

Method Signature

METHODS /AWS1/IF_ECS~DESCRIBEDAEMON
  IMPORTING
    !IV_DAEMONARN TYPE /AWS1/ECSSTRING OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ecsdescrdaemonrsp
  RAISING
    /AWS1/CX_ECSACCESSDENIEDEX
    /AWS1/CX_ECSCLIENTEXCEPTION
    /AWS1/CX_ECSCLUSTERNOTFOUNDEX
    /AWS1/CX_ECSDAEMONNOTFOUNDEX
    /AWS1/CX_ECSINVALIDPARAMETEREX
    /AWS1/CX_ECSSERVEREXCEPTION
    /AWS1/CX_ECSUNSUPPEDFEATUREEX
    /AWS1/CX_ECSCLIENTEXC
    /AWS1/CX_ECSSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_daemonarn TYPE /AWS1/ECSSTRING /AWS1/ECSSTRING

The Amazon Resource Name (ARN) of the daemon to describe.

RETURNING

oo_output TYPE REF TO /aws1/cl_ecsdescrdaemonrsp /AWS1/CL_ECSDESCRDAEMONRSP

Examples

Syntax Example

This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.

DATA(lo_result) = lo_client->describedaemon( |string| ).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_daemondetail = lo_result->get_daemon( ).
  IF lo_daemondetail IS NOT INITIAL.
    lv_string = lo_daemondetail->get_daemonarn( ).
    lv_string = lo_daemondetail->get_clusterarn( ).
    lv_daemonstatus = lo_daemondetail->get_status( ).
    LOOP AT lo_daemondetail->get_currentrevisions( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv_string = lo_row_1->get_arn( ).
        LOOP AT lo_row_1->get_capacityproviders( ) into lo_row_2.
          lo_row_3 = lo_row_2.
          IF lo_row_3 IS NOT INITIAL.
            lv_string = lo_row_3->get_arn( ).
            lv_integer = lo_row_3->get_runningcount( ).
          ENDIF.
        ENDLOOP.
        lv_integer = lo_row_1->get_totalrunningcount( ).
      ENDIF.
    ENDLOOP.
    lv_string = lo_daemondetail->get_deploymentarn( ).
    lv_timestamp = lo_daemondetail->get_createdat( ).
    lv_timestamp = lo_daemondetail->get_updatedat( ).
  ENDIF.
ENDIF.

To describe a daemon

This example describes the my-monitoring-daemon daemon.

DATA(lo_result) = lo_client->describedaemon( |arn:aws:ecs:us-east-1:123456789012:daemon/my-cluster/my-monitoring-daemon| ).