Skip to content

/AWS1/IF_NWF=>UPDATEPROXYCONFIGURATION()

About UpdateProxyConfiguration

Updates the properties of the specified proxy configuration.

Method Signature

METHODS /AWS1/IF_NWF~UPDATEPROXYCONFIGURATION
  IMPORTING
    !IV_PROXYCONFIGURATIONNAME TYPE /AWS1/NWFRESOURCENAME OPTIONAL
    !IV_PROXYCONFIGURATIONARN TYPE /AWS1/NWFRESOURCEARN OPTIONAL
    !IO_DEFAULTRULEPHASEACTIONS TYPE REF TO /AWS1/CL_NWFPROXYCFGDEFRLPHA00 OPTIONAL
    !IV_UPDATETOKEN TYPE /AWS1/NWFUPDATETOKEN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_nwfupdateproxyconfrsp
  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:

io_defaultrulephaseactions TYPE REF TO /AWS1/CL_NWFPROXYCFGDEFRLPHA00 /AWS1/CL_NWFPROXYCFGDEFRLPHA00

Evaluation points in the traffic flow where rules are applied. There are three phases in a traffic where the rule match is applied.

iv_updatetoken TYPE /AWS1/NWFUPDATETOKEN /AWS1/NWFUPDATETOKEN

A token used for optimistic locking. Network Firewall returns a token to your requests that access the proxy configuration. The token marks the state of the proxy configuration resource at the time of the request.

To make changes to the proxy configuration, you provide the token in your request. Network Firewall uses the token to ensure that the proxy configuration hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the proxy configuration again to get a current copy of it with a current token. Reapply your changes as needed, then try the operation again using the new token.

Optional arguments:

iv_proxyconfigurationname TYPE /AWS1/NWFRESOURCENAME /AWS1/NWFRESOURCENAME

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

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

iv_proxyconfigurationarn TYPE /AWS1/NWFRESOURCEARN /AWS1/NWFRESOURCEARN

The Amazon Resource Name (ARN) of a proxy configuration.

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

RETURNING

oo_output TYPE REF TO /aws1/cl_nwfupdateproxyconfrsp /AWS1/CL_NWFUPDATEPROXYCONFRSP

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->updateproxyconfiguration(
  io_defaultrulephaseactions = new /aws1/cl_nwfproxycfgdefrlpha00(
    iv_postresponse = |string|
    iv_predns = |string|
    iv_prerequest = |string|
  )
  iv_proxyconfigurationarn = |string|
  iv_proxyconfigurationname = |string|
  iv_updatetoken = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_proxyconfiguration = lo_result->get_proxyconfiguration( ).
  IF lo_proxyconfiguration IS NOT INITIAL.
    lv_resourcename = lo_proxyconfiguration->get_proxyconfigurationname( ).
    lv_resourcearn = lo_proxyconfiguration->get_proxyconfigurationarn( ).
    lv_description = lo_proxyconfiguration->get_description( ).
    lv_createtime = lo_proxyconfiguration->get_createtime( ).
    lv_deletetime = lo_proxyconfiguration->get_deletetime( ).
    LOOP AT lo_proxyconfiguration->get_rulegroups( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv_resourcename = lo_row_1->get_proxyrulegroupname( ).
        lv_resourcearn = lo_row_1->get_proxyrulegrouparn( ).
        lv_proxyconfigrulegrouptyp = lo_row_1->get_type( ).
        lv_proxyconfigrulegrouppri = lo_row_1->get_priority( ).
      ENDIF.
    ENDLOOP.
    lo_proxyconfigdefaultrulep = lo_proxyconfiguration->get_defaultrulephaseactions( ).
    IF lo_proxyconfigdefaultrulep IS NOT INITIAL.
      lv_proxyrulephaseaction = lo_proxyconfigdefaultrulep->get_predns( ).
      lv_proxyrulephaseaction = lo_proxyconfigdefaultrulep->get_prerequest( ).
      lv_proxyrulephaseaction = lo_proxyconfigdefaultrulep->get_postresponse( ).
    ENDIF.
    LOOP AT lo_proxyconfiguration->get_tags( ) into lo_row_2.
      lo_row_3 = lo_row_2.
      IF lo_row_3 IS NOT INITIAL.
        lv_tagkey = lo_row_3->get_key( ).
        lv_tagvalue = lo_row_3->get_value( ).
      ENDIF.
    ENDLOOP.
  ENDIF.
  lv_updatetoken = lo_result->get_updatetoken( ).
ENDIF.