/AWS1/IF_AAN=>CREATEARCHIVERULE()¶
About CreateArchiveRule¶
Creates an archive rule for the specified analyzer. Archive rules automatically archive new findings that meet the criteria you define when you create the rule.
To learn about filter keys that you can use to create an archive rule, see IAM Access Analyzer filter keys in the IAM User Guide.
Method Signature¶
METHODS /AWS1/IF_AAN~CREATEARCHIVERULE
IMPORTING
!IV_ANALYZERNAME TYPE /AWS1/AANNAME OPTIONAL
!IV_RULENAME TYPE /AWS1/AANNAME OPTIONAL
!IT_FILTER TYPE /AWS1/CL_AANCRITERION=>TT_FILTERCRITERIAMAP OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/AANSTRING OPTIONAL
RAISING
/AWS1/CX_AANACCESSDENIEDEX
/AWS1/CX_AANCONFLICTEXCEPTION
/AWS1/CX_AANINTERNALSERVEREX
/AWS1/CX_AANRESOURCENOTFOUNDEX
/AWS1/CX_AANSERVICEQUOTAEXCDEX
/AWS1/CX_AANTHROTTLINGEX
/AWS1/CX_AANVALIDATIONEX
/AWS1/CX_AANCLIENTEXC
/AWS1/CX_AANSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_analyzername TYPE /AWS1/AANNAME /AWS1/AANNAME¶
The name of the created analyzer.
iv_rulename TYPE /AWS1/AANNAME /AWS1/AANNAME¶
The name of the rule to create.
it_filter TYPE /AWS1/CL_AANCRITERION=>TT_FILTERCRITERIAMAP TT_FILTERCRITERIAMAP¶
The criteria for the rule.
Optional arguments:¶
iv_clienttoken TYPE /AWS1/AANSTRING /AWS1/AANSTRING¶
A client token.
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.
lo_client->createarchiverule(
it_filter = VALUE /aws1/cl_aancriterion=>tt_filtercriteriamap(
(
VALUE /aws1/cl_aancriterion=>ts_filtercriteriamap_maprow(
value = new /aws1/cl_aancriterion(
it_contains = VALUE /aws1/cl_aanvaluelist_w=>tt_valuelist(
( new /aws1/cl_aanvaluelist_w( |string| ) )
)
it_eq = VALUE /aws1/cl_aanvaluelist_w=>tt_valuelist(
( new /aws1/cl_aanvaluelist_w( |string| ) )
)
it_neq = VALUE /aws1/cl_aanvaluelist_w=>tt_valuelist(
( new /aws1/cl_aanvaluelist_w( |string| ) )
)
iv_exists = ABAP_TRUE
)
key = |string|
)
)
)
iv_analyzername = |string|
iv_clienttoken = |string|
iv_rulename = |string|
).