/AWS1/IF_MA2=>CREATEFINDINGSFILTER()¶
About CreateFindingsFilter¶
Creates and defines the criteria and other settings for a findings filter.
Method Signature¶
METHODS /AWS1/IF_MA2~CREATEFINDINGSFILTER
IMPORTING
!IV_ACTION TYPE /AWS1/MA2FINDINGSFILTERACTION OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/MA2__STRING OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/MA2__STRING OPTIONAL
!IO_FINDINGCRITERIA TYPE REF TO /AWS1/CL_MA2FINDINGCRITERIA OPTIONAL
!IV_NAME TYPE /AWS1/MA2__STRING OPTIONAL
!IV_POSITION TYPE /AWS1/MA2__INTEGER OPTIONAL
!IT_TAGS TYPE /AWS1/CL_MA2TAGMAP_W=>TT_TAGMAP OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ma2createfndgsfiltrsp
RAISING
/AWS1/CX_MA2ACCESSDENIEDEX
/AWS1/CX_MA2CONFLICTEXCEPTION
/AWS1/CX_MA2INTERNALSERVEREX
/AWS1/CX_MA2RESOURCENOTFOUNDEX
/AWS1/CX_MA2SERVICEQUOTAEXCDEX
/AWS1/CX_MA2THROTTLINGEX
/AWS1/CX_MA2VALIDATIONEX
/AWS1/CX_MA2CLIENTEXC
/AWS1/CX_MA2SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_action TYPE /AWS1/MA2FINDINGSFILTERACTION /AWS1/MA2FINDINGSFILTERACTION¶
The action to perform on findings that match the filter criteria (findingCriteria). Valid values are: ARCHIVE, suppress (automatically archive) the findings; and, NOOP, don't perform any action on the findings.
io_findingcriteria TYPE REF TO /AWS1/CL_MA2FINDINGCRITERIA /AWS1/CL_MA2FINDINGCRITERIA¶
The criteria to use to filter findings.
iv_name TYPE /AWS1/MA2__STRING /AWS1/MA2__STRING¶
A custom name for the filter. The name must contain at least 3 characters and can contain as many as 64 characters.
We strongly recommend that you avoid including any sensitive data in the name of a filter. Other users of your account might be able to see this name, depending on the actions that they're allowed to perform in Amazon Macie.
Optional arguments:¶
iv_clienttoken TYPE /AWS1/MA2__STRING /AWS1/MA2__STRING¶
A unique, case-sensitive token that you provide to ensure the idempotency of the request.
iv_description TYPE /AWS1/MA2__STRING /AWS1/MA2__STRING¶
A custom description of the filter. The description can contain as many as 512 characters.
We strongly recommend that you avoid including any sensitive data in the description of a filter. Other users of your account might be able to see this description, depending on the actions that they're allowed to perform in Amazon Macie.
iv_position TYPE /AWS1/MA2__INTEGER /AWS1/MA2__INTEGER¶
The position of the filter in the list of saved filters on the Amazon Macie console. This value also determines the order in which the filter is applied to findings, relative to other filters that are also applied to the findings.
it_tags TYPE /AWS1/CL_MA2TAGMAP_W=>TT_TAGMAP TT_TAGMAP¶
A map of key-value pairs that specifies the tags to associate with the filter.
A findings filter can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ma2createfndgsfiltrsp /AWS1/CL_MA2CREATEFNDGSFILTRSP¶
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->createfindingsfilter(
io_findingcriteria = new /aws1/cl_ma2findingcriteria(
it_criterion = VALUE /aws1/cl_ma2criterionaddlprps=>tt_criterion(
(
VALUE /aws1/cl_ma2criterionaddlprps=>ts_criterion_maprow(
value = new /aws1/cl_ma2criterionaddlprps(
it_eq = VALUE /aws1/cl_ma2__listof__string_w=>tt___listof__string(
( new /aws1/cl_ma2__listof__string_w( |string| ) )
)
it_eqexactmatch = VALUE /aws1/cl_ma2__listof__string_w=>tt___listof__string(
( new /aws1/cl_ma2__listof__string_w( |string| ) )
)
it_neq = VALUE /aws1/cl_ma2__listof__string_w=>tt___listof__string(
( new /aws1/cl_ma2__listof__string_w( |string| ) )
)
iv_gt = 123
iv_gte = 123
iv_lt = 123
iv_lte = 123
)
key = |string|
)
)
)
)
it_tags = VALUE /aws1/cl_ma2tagmap_w=>tt_tagmap(
(
VALUE /aws1/cl_ma2tagmap_w=>ts_tagmap_maprow(
key = |string|
value = new /aws1/cl_ma2tagmap_w( |string| )
)
)
)
iv_action = |string|
iv_clienttoken = |string|
iv_description = |string|
iv_name = |string|
iv_position = 123
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv___string = lo_result->get_arn( ).
lv___string = lo_result->get_id( ).
ENDIF.