Skip to content

/AWS1/IF_NWF=>DELETEPROXYRULES()

About DeleteProxyRules

Deletes the specified ProxyRule(s). currently attached to a ProxyRuleGroup

Method Signature

METHODS /AWS1/IF_NWF~DELETEPROXYRULES
  IMPORTING
    !IV_PROXYRULEGROUPARN TYPE /AWS1/NWFRESOURCEARN OPTIONAL
    !IV_PROXYRULEGROUPNAME TYPE /AWS1/NWFRESOURCENAME OPTIONAL
    !IT_RULES TYPE /AWS1/CL_NWFRESOURCENAMELIST_W=>TT_RESOURCENAMELIST OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_nwfdelproxyrulesrsp
  RAISING
    /AWS1/CX_NWFINTERNALSERVERERR
    /AWS1/CX_NWFINVALIDREQUESTEX
    /AWS1/CX_NWFRESOURCENOTFOUNDEX
    /AWS1/CX_NWFTHROTTLINGEX
    /AWS1/CX_NWFCLIENTEXC
    /AWS1/CX_NWFSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

it_rules TYPE /AWS1/CL_NWFRESOURCENAMELIST_W=>TT_RESOURCENAMELIST TT_RESOURCENAMELIST

The proxy rule(s) to remove from the existing proxy rule group.

Optional arguments:

iv_proxyrulegrouparn TYPE /AWS1/NWFRESOURCEARN /AWS1/NWFRESOURCEARN

The Amazon Resource Name (ARN) of a proxy rule group.

You must specify the ARN or the name, and you can specify both.

iv_proxyrulegroupname TYPE /AWS1/NWFRESOURCENAME /AWS1/NWFRESOURCENAME

The descriptive name of the proxy rule group. You can't change the name of a proxy rule group after you create it.

You must specify the ARN or the name, and you can specify both.

RETURNING

oo_output TYPE REF TO /aws1/cl_nwfdelproxyrulesrsp /AWS1/CL_NWFDELPROXYRULESRSP

Domain /AWS1/RT_ACCOUNT_ID
Primitive Type NUMC

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->deleteproxyrules(
  it_rules = VALUE /aws1/cl_nwfresourcenamelist_w=>tt_resourcenamelist(
    ( new /aws1/cl_nwfresourcenamelist_w( |string| ) )
  )
  iv_proxyrulegrouparn = |string|
  iv_proxyrulegroupname = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_proxyrulegroup = lo_result->get_proxyrulegroup( ).
  IF lo_proxyrulegroup IS NOT INITIAL.
    lv_resourcename = lo_proxyrulegroup->get_proxyrulegroupname( ).
    lv_resourcearn = lo_proxyrulegroup->get_proxyrulegrouparn( ).
    lv_createtime = lo_proxyrulegroup->get_createtime( ).
    lv_deletetime = lo_proxyrulegroup->get_deletetime( ).
    lo_proxyrulesbyrequestphas = lo_proxyrulegroup->get_rules( ).
    IF lo_proxyrulesbyrequestphas IS NOT INITIAL.
      LOOP AT lo_proxyrulesbyrequestphas->get_predns( ) into lo_row.
        lo_row_1 = lo_row.
        IF lo_row_1 IS NOT INITIAL.
          lv_resourcename = lo_row_1->get_proxyrulename( ).
          lv_description = lo_row_1->get_description( ).
          lv_proxyrulephaseaction = lo_row_1->get_action( ).
          LOOP AT lo_row_1->get_conditions( ) into lo_row_2.
            lo_row_3 = lo_row_2.
            IF lo_row_3 IS NOT INITIAL.
              lv_conditionoperator = lo_row_3->get_conditionoperator( ).
              lv_conditionkey = lo_row_3->get_conditionkey( ).
              LOOP AT lo_row_3->get_conditionvalues( ) into lo_row_4.
                lo_row_5 = lo_row_4.
                IF lo_row_5 IS NOT INITIAL.
                  lv_proxyconditionvalue = lo_row_5->get_value( ).
                ENDIF.
              ENDLOOP.
            ENDIF.
          ENDLOOP.
        ENDIF.
      ENDLOOP.
      LOOP AT lo_proxyrulesbyrequestphas->get_prerequest( ) into lo_row.
        lo_row_1 = lo_row.
        IF lo_row_1 IS NOT INITIAL.
          lv_resourcename = lo_row_1->get_proxyrulename( ).
          lv_description = lo_row_1->get_description( ).
          lv_proxyrulephaseaction = lo_row_1->get_action( ).
          LOOP AT lo_row_1->get_conditions( ) into lo_row_2.
            lo_row_3 = lo_row_2.
            IF lo_row_3 IS NOT INITIAL.
              lv_conditionoperator = lo_row_3->get_conditionoperator( ).
              lv_conditionkey = lo_row_3->get_conditionkey( ).
              LOOP AT lo_row_3->get_conditionvalues( ) into lo_row_4.
                lo_row_5 = lo_row_4.
                IF lo_row_5 IS NOT INITIAL.
                  lv_proxyconditionvalue = lo_row_5->get_value( ).
                ENDIF.
              ENDLOOP.
            ENDIF.
          ENDLOOP.
        ENDIF.
      ENDLOOP.
      LOOP AT lo_proxyrulesbyrequestphas->get_postresponse( ) into lo_row.
        lo_row_1 = lo_row.
        IF lo_row_1 IS NOT INITIAL.
          lv_resourcename = lo_row_1->get_proxyrulename( ).
          lv_description = lo_row_1->get_description( ).
          lv_proxyrulephaseaction = lo_row_1->get_action( ).
          LOOP AT lo_row_1->get_conditions( ) into lo_row_2.
            lo_row_3 = lo_row_2.
            IF lo_row_3 IS NOT INITIAL.
              lv_conditionoperator = lo_row_3->get_conditionoperator( ).
              lv_conditionkey = lo_row_3->get_conditionkey( ).
              LOOP AT lo_row_3->get_conditionvalues( ) into lo_row_4.
                lo_row_5 = lo_row_4.
                IF lo_row_5 IS NOT INITIAL.
                  lv_proxyconditionvalue = lo_row_5->get_value( ).
                ENDIF.
              ENDLOOP.
            ENDIF.
          ENDLOOP.
        ENDIF.
      ENDLOOP.
    ENDIF.
    lv_description = lo_proxyrulegroup->get_description( ).
    LOOP AT lo_proxyrulegroup->get_tags( ) into lo_row_6.
      lo_row_7 = lo_row_6.
      IF lo_row_7 IS NOT INITIAL.
        lv_tagkey = lo_row_7->get_key( ).
        lv_tagvalue = lo_row_7->get_value( ).
      ENDIF.
    ENDLOOP.
  ENDIF.
ENDIF.