/AWS1/IF_NWF=>CREATEPROXYRULEGROUP()¶
About CreateProxyRuleGroup¶
Creates an Network Firewall ProxyRuleGroup
Collections of related proxy filtering rules. Rule groups help you manage and reuse sets of rules across multiple proxy configurations.
To manage a proxy rule group's tags, use the standard Amazon Web Services resource tagging operations, ListTagsForResource, TagResource, and UntagResource.
To retrieve information about proxy rule groups, use ListProxyRuleGroups and DescribeProxyRuleGroup.
To retrieve information about individual proxy rules, use DescribeProxyRuleGroup and DescribeProxyRule.
Method Signature¶
METHODS /AWS1/IF_NWF~CREATEPROXYRULEGROUP
IMPORTING
!IV_PROXYRULEGROUPNAME TYPE /AWS1/NWFRESOURCENAME OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/NWFDESCRIPTION OPTIONAL
!IO_RULES TYPE REF TO /AWS1/CL_NWFPROXYRLSBYREQPHASE OPTIONAL
!IT_TAGS TYPE /AWS1/CL_NWFTAG=>TT_TAGLIST OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_nwfcreproxyrulegrprsp
RAISING
/AWS1/CX_NWFINTERNALSERVERERR
/AWS1/CX_NWFINVALIDREQUESTEX
/AWS1/CX_NWFLIMITEXCEEDEDEX
/AWS1/CX_NWFTHROTTLINGEX
/AWS1/CX_NWFCLIENTEXC
/AWS1/CX_NWFSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required 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.
Optional arguments:¶
iv_description TYPE /AWS1/NWFDESCRIPTION /AWS1/NWFDESCRIPTION¶
A description of the proxy rule group.
io_rules TYPE REF TO /AWS1/CL_NWFPROXYRLSBYREQPHASE /AWS1/CL_NWFPROXYRLSBYREQPHASE¶
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).
it_tags TYPE /AWS1/CL_NWFTAG=>TT_TAGLIST TT_TAGLIST¶
The key:value pairs to associate with the resource.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_nwfcreproxyrulegrprsp /AWS1/CL_NWFCREPROXYRULEGRPRSP¶
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->createproxyrulegroup(
io_rules = new /aws1/cl_nwfproxyrlsbyreqphase(
it_postresponse = VALUE /aws1/cl_nwfproxyrule=>tt_proxyrulelist(
(
new /aws1/cl_nwfproxyrule(
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_proxyrulename = |string|
)
)
)
it_predns = VALUE /aws1/cl_nwfproxyrule=>tt_proxyrulelist(
(
new /aws1/cl_nwfproxyrule(
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_proxyrulename = |string|
)
)
)
it_prerequest = VALUE /aws1/cl_nwfproxyrule=>tt_proxyrulelist(
(
new /aws1/cl_nwfproxyrule(
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_proxyrulename = |string|
)
)
)
)
it_tags = VALUE /aws1/cl_nwftag=>tt_taglist(
(
new /aws1/cl_nwftag(
iv_key = |string|
iv_value = |string|
)
)
)
iv_description = |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.