/AWS1/IF_NWF=>UPDATEPROXYRULEPRIORITIES()¶
About UpdateProxyRulePriorities¶
Updates proxy rule priorities within a proxy rule group.
Method Signature¶
METHODS /AWS1/IF_NWF~UPDATEPROXYRULEPRIORITIES
IMPORTING
!IV_PROXYRULEGROUPNAME TYPE /AWS1/NWFRESOURCENAME OPTIONAL
!IV_PROXYRULEGROUPARN TYPE /AWS1/NWFRESOURCEARN OPTIONAL
!IV_RULEGROUPREQUESTPHASE TYPE /AWS1/NWFRULEGROUPREQUESTPHASE OPTIONAL
!IT_RULES TYPE /AWS1/CL_NWFPROXYRULEPRIORITY=>TT_PROXYRULEPRIORITYLIST OPTIONAL
!IV_UPDATETOKEN TYPE /AWS1/NWFUPDATETOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_nwfupproxyrlpriorit01
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:¶
iv_rulegrouprequestphase TYPE /AWS1/NWFRULEGROUPREQUESTPHASE /AWS1/NWFRULEGROUPREQUESTPHASE¶
Evaluation points in the traffic flow where rules are applied. There are three phases in a traffic where the rule match is applied.
it_rules TYPE /AWS1/CL_NWFPROXYRULEPRIORITY=>TT_PROXYRULEPRIORITYLIST TT_PROXYRULEPRIORITYLIST¶
proxy rule resources to update to new positions.
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 rule group. The token marks the state of the proxy rule group resource at the time of the request.
To make changes to the proxy rule group, you provide the token in your request. Network Firewall uses the token to ensure that the proxy rule group hasn't changed since you last retrieved it. If it has changed, the operation fails with an
InvalidTokenException. If this happens, retrieve the proxy rule group 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_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.
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.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_nwfupproxyrlpriorit01 /AWS1/CL_NWFUPPROXYRLPRIORIT01¶
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->updateproxyrulepriorities(
it_rules = VALUE /aws1/cl_nwfproxyrulepriority=>tt_proxyruleprioritylist(
(
new /aws1/cl_nwfproxyrulepriority(
iv_newposition = 123
iv_proxyrulename = |string|
)
)
)
iv_proxyrulegrouparn = |string|
iv_proxyrulegroupname = |string|
iv_rulegrouprequestphase = |string|
iv_updatetoken = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_resourcename = lo_result->get_proxyrulegroupname( ).
lv_resourcearn = lo_result->get_proxyrulegrouparn( ).
lv_rulegrouprequestphase = lo_result->get_rulegrouprequestphase( ).
LOOP AT lo_result->get_rules( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_resourcename = lo_row_1->get_proxyrulename( ).
lv_insertposition = lo_row_1->get_newposition( ).
ENDIF.
ENDLOOP.
lv_updatetoken = lo_result->get_updatetoken( ).
ENDIF.