/AWS1/IF_GDY=>UPDATEFILTER()¶
About UpdateFilter¶
Updates the filter specified by the filter name.
Method Signature¶
METHODS /AWS1/IF_GDY~UPDATEFILTER
IMPORTING
!IV_DETECTORID TYPE /AWS1/GDYDETECTORID OPTIONAL
!IV_FILTERNAME TYPE /AWS1/GDYSTRING OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/GDYFILTERDESCRIPTION OPTIONAL
!IV_ACTION TYPE /AWS1/GDYFILTERACTION OPTIONAL
!IV_RANK TYPE /AWS1/GDYFILTERRANK OPTIONAL
!IO_FINDINGCRITERIA TYPE REF TO /AWS1/CL_GDYFINDINGCRITERIA OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_gdyupdatefilterrsp
RAISING
/AWS1/CX_GDYBADREQUESTEX
/AWS1/CX_GDYINTERNALSERVERER00
/AWS1/CX_GDYCLIENTEXC
/AWS1/CX_GDYSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_detectorid TYPE /AWS1/GDYDETECTORID /AWS1/GDYDETECTORID¶
The unique ID of the detector that specifies the GuardDuty service where you want to update a filter.
To find the
detectorIdin the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.
iv_filtername TYPE /AWS1/GDYSTRING /AWS1/GDYSTRING¶
The name of the filter.
Optional arguments:¶
iv_description TYPE /AWS1/GDYFILTERDESCRIPTION /AWS1/GDYFILTERDESCRIPTION¶
The description of the filter. Valid characters include alphanumeric characters, and special characters such as hyphen, period, colon, underscore, parentheses (
{ },[ ], and( )), forward slash, horizontal tab, vertical tab, newline, form feed, return, and whitespace.
iv_action TYPE /AWS1/GDYFILTERACTION /AWS1/GDYFILTERACTION¶
Specifies the action that is to be applied to the findings that match the filter.
iv_rank TYPE /AWS1/GDYFILTERRANK /AWS1/GDYFILTERRANK¶
Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings.
io_findingcriteria TYPE REF TO /AWS1/CL_GDYFINDINGCRITERIA /AWS1/CL_GDYFINDINGCRITERIA¶
Represents the criteria to be used in the filter for querying findings.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_gdyupdatefilterrsp /AWS1/CL_GDYUPDATEFILTERRSP¶
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->updatefilter(
io_findingcriteria = new /aws1/cl_gdyfindingcriteria(
it_criterion = VALUE /aws1/cl_gdycondition=>tt_criterion(
(
VALUE /aws1/cl_gdycondition=>ts_criterion_maprow(
value = new /aws1/cl_gdycondition(
it_eq = VALUE /aws1/cl_gdyeq_w=>tt_eq(
( new /aws1/cl_gdyeq_w( |string| ) )
)
it_equals = VALUE /aws1/cl_gdyequals_w=>tt_equals(
( new /aws1/cl_gdyequals_w( |string| ) )
)
it_neq = VALUE /aws1/cl_gdyneq_w=>tt_neq(
( new /aws1/cl_gdyneq_w( |string| ) )
)
it_notequals = VALUE /aws1/cl_gdynotequals_w=>tt_notequals(
( new /aws1/cl_gdynotequals_w( |string| ) )
)
iv_greaterthan = 123
iv_greaterthanorequal = 123
iv_gt = 123
iv_gte = 123
iv_lessthan = 123
iv_lessthanorequal = 123
iv_lt = 123
iv_lte = 123
)
key = |string|
)
)
)
)
iv_action = |string|
iv_description = |string|
iv_detectorid = |string|
iv_filtername = |string|
iv_rank = 123
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_filtername = lo_result->get_name( ).
ENDIF.