/AWS1/IF_NWF=>CREATEPROXYRULES()¶
About CreateProxyRules¶
Creates Network Firewall ProxyRule resources.
Attaches new proxy rule(s) to an existing proxy rule group.
To retrieve information about individual proxy rules, use DescribeProxyRuleGroup and DescribeProxyRule.
Method Signature¶
METHODS /AWS1/IF_NWF~CREATEPROXYRULES
IMPORTING
!IV_PROXYRULEGROUPARN TYPE /AWS1/NWFRESOURCEARN OPTIONAL
!IV_PROXYRULEGROUPNAME TYPE /AWS1/NWFRESOURCENAME OPTIONAL
!IO_RULES TYPE REF TO /AWS1/CL_NWFCREPROXYRLSBYREQ00 OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_nwfcreproxyrulesrsp
RAISING
/AWS1/CX_NWFINTERNALSERVERERR
/AWS1/CX_NWFINVALIDREQUESTEX
/AWS1/CX_NWFTHROTTLINGEX
/AWS1/CX_NWFCLIENTEXC
/AWS1/CX_NWFSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
io_rules TYPE REF TO /AWS1/CL_NWFCREPROXYRLSBYREQ00 /AWS1/CL_NWFCREPROXYRLSBYREQ00¶
Individual rules that define match conditions and actions for application-layer traffic. Rules specify what to inspect (domains, headers, methods) and what action to take (allow, deny, alert).
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_nwfcreproxyrulesrsp /AWS1/CL_NWFCREPROXYRULESRSP¶
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->createproxyrules(
io_rules = new /aws1/cl_nwfcreproxyrlsbyreq00(
it_postresponse = VALUE /aws1/cl_nwfcreateproxyrule=>tt_createproxyrulelist(
(
new /aws1/cl_nwfcreateproxyrule(
it_conditions = VALUE /aws1/cl_nwfproxyrulecondition=>tt_proxyruleconditionlist(
(
new /aws1/cl_nwfproxyrulecondition(
it_conditionvalues = VALUE /aws1/cl_nwfproxycondvallist_w=>tt_proxyconditionvaluelist(
( new /aws1/cl_nwfproxycondvallist_w( |string| ) )
)
iv_conditionkey = |string|
iv_conditionoperator = |string|
)
)
)
iv_action = |string|
iv_description = |string|
iv_insertposition = 123
iv_proxyrulename = |string|
)
)
)
it_predns = VALUE /aws1/cl_nwfcreateproxyrule=>tt_createproxyrulelist(
(
new /aws1/cl_nwfcreateproxyrule(
it_conditions = VALUE /aws1/cl_nwfproxyrulecondition=>tt_proxyruleconditionlist(
(
new /aws1/cl_nwfproxyrulecondition(
it_conditionvalues = VALUE /aws1/cl_nwfproxycondvallist_w=>tt_proxyconditionvaluelist(
( new /aws1/cl_nwfproxycondvallist_w( |string| ) )
)
iv_conditionkey = |string|
iv_conditionoperator = |string|
)
)
)
iv_action = |string|
iv_description = |string|
iv_insertposition = 123
iv_proxyrulename = |string|
)
)
)
it_prerequest = VALUE /aws1/cl_nwfcreateproxyrule=>tt_createproxyrulelist(
(
new /aws1/cl_nwfcreateproxyrule(
it_conditions = VALUE /aws1/cl_nwfproxyrulecondition=>tt_proxyruleconditionlist(
(
new /aws1/cl_nwfproxyrulecondition(
it_conditionvalues = VALUE /aws1/cl_nwfproxycondvallist_w=>tt_proxyconditionvaluelist(
( new /aws1/cl_nwfproxycondvallist_w( |string| ) )
)
iv_conditionkey = |string|
iv_conditionoperator = |string|
)
)
)
iv_action = |string|
iv_description = |string|
iv_insertposition = 123
iv_proxyrulename = |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.
lv_updatetoken = lo_result->get_updatetoken( ).
ENDIF.