Skip to content

/AWS1/IF_EC2=>DELETEAPPLICATIONSTATUSCHECK()

About DeleteApplicationStatusCheck

Deletes an application status check. The following rules apply:

  • Deleting a check automatically removes all of its associations.

  • Use DescribeApplicationStatusChecks to view existing checks before deleting.

Method Signature

METHODS /AWS1/IF_EC2~DELETEAPPLICATIONSTATUSCHECK
  IMPORTING
    !IV_APPLICATIONSTATUSCHECKID TYPE /AWS1/EC2APPSTATUSCHECKID OPTIONAL
    !IV_CLIENTTOKEN TYPE /AWS1/EC2STRING OPTIONAL
    !IV_DRYRUN TYPE /AWS1/EC2BOOLEAN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ec2delappstatchkrslt
  RAISING
    /AWS1/CX_EC2CLIENTEXC
    /AWS1/CX_EC2SERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_applicationstatuscheckid TYPE /AWS1/EC2APPSTATUSCHECKID /AWS1/EC2APPSTATUSCHECKID

The ID of the application status check to delete.

Optional arguments:

iv_clienttoken TYPE /AWS1/EC2STRING /AWS1/EC2STRING

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.

iv_dryrun TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

RETURNING

oo_output TYPE REF TO /aws1/cl_ec2delappstatchkrslt /AWS1/CL_EC2DELAPPSTATCHKRSLT

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->deleteapplicationstatuscheck(
  iv_applicationstatuscheckid = |string|
  iv_clienttoken = |string|
  iv_dryrun = ABAP_TRUE
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_applicationstatuscheckr = lo_result->get_applicationstatuscheck( ).
  IF lo_applicationstatuscheckr IS NOT INITIAL.
    lv_applicationstatuschecki = lo_applicationstatuscheckr->get_applicationstatuscheckid( ).
    lv_aggregationstatusenum = lo_applicationstatuscheckr->get_aggregation( ).
    LOOP AT lo_applicationstatuscheckr->get_healthcheckpaths( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lo_healthcheckpathsourcere = lo_row_1->get_source( ).
        IF lo_healthcheckpathsourcere IS NOT INITIAL.
          lv_string = lo_healthcheckpathsourcere->get_subnetid( ).
          lv_string = lo_healthcheckpathsourcere->get_securitygroupid( ).
        ENDIF.
        LOOP AT lo_row_1->get_destinations( ) into lo_row_2.
          lo_row_3 = lo_row_2.
          IF lo_row_3 IS NOT INITIAL.
            lv_string = lo_row_3->get_subnetid( ).
            lv_string = lo_row_3->get_securitygroupid( ).
          ENDIF.
        ENDLOOP.
      ENDIF.
    ENDLOOP.
    lv_networkprotocolenum = lo_applicationstatuscheckr->get_protocol( ).
    lv_integer = lo_applicationstatuscheckr->get_port( ).
    lv_string = lo_applicationstatuscheckr->get_path( ).
    lv_integer = lo_applicationstatuscheckr->get_deviceindex( ).
    lv_ipversionenum = lo_applicationstatuscheckr->get_ipversion( ).
    lv_ipscopeenum = lo_applicationstatuscheckr->get_ipscope( ).
    lv_integer = lo_applicationstatuscheckr->get_interval( ).
    lv_integer = lo_applicationstatuscheckr->get_timeout( ).
    lv_integer = lo_applicationstatuscheckr->get_failurethreshold( ).
    lv_integer = lo_applicationstatuscheckr->get_successthreshold( ).
    lv_string = lo_applicationstatuscheckr->get_statuscodematcher( ).
    lv_initializationgraceperi = lo_applicationstatuscheckr->get_initgraceperiodseconds( ).
    lv_milliseconddatetime = lo_applicationstatuscheckr->get_lastupdatedat( ).
    LOOP AT lo_applicationstatuscheckr->get_targettagassociations( ) into lo_row_4.
      lo_row_5 = lo_row_4.
      IF lo_row_5 IS NOT INITIAL.
        lv_string = lo_row_5->get_key( ).
        lv_string = lo_row_5->get_value( ).
      ENDIF.
    ENDLOOP.
    LOOP AT lo_applicationstatuscheckr->get_tags( ) into lo_row_6.
      lo_row_7 = lo_row_6.
      IF lo_row_7 IS NOT INITIAL.
        lv_string = lo_row_7->get_key( ).
        lv_string = lo_row_7->get_value( ).
      ENDIF.
    ENDLOOP.
    lv_milliseconddatetime = lo_applicationstatuscheckr->get_creationtime( ).
    lv_milliseconddatetime = lo_applicationstatuscheckr->get_modifytime( ).
    lv_milliseconddatetime = lo_applicationstatuscheckr->get_deletiontime( ).
  ENDIF.
ENDIF.

To delete an application status check

This example deletes the specified application status check.

DATA(lo_result) = lo_client->deleteapplicationstatuscheck( iv_applicationstatuscheckid = |asc-0123456789abcdef0| ) .