/AWS1/IF_SHB=>LISTCONFIGURATIONPOLICIES()¶
About ListConfigurationPolicies¶
Lists the configuration policies that the Security Hub delegated administrator has created for your organization. Only the delegated administrator can invoke this operation from the home Region.
Method Signature¶
METHODS /AWS1/IF_SHB~LISTCONFIGURATIONPOLICIES
IMPORTING
!IV_NEXTTOKEN TYPE /AWS1/SHBNEXTTOKEN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/SHBMAXRESULTS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_shblistconfpolrsp
RAISING
/AWS1/CX_SHBACCESSDENIEDEX
/AWS1/CX_SHBINTERNALEXCEPTION
/AWS1/CX_SHBINVALIDACCESSEX
/AWS1/CX_SHBINVALIDINPUTEX
/AWS1/CX_SHBLIMITEXCEEDEDEX
/AWS1/CX_SHBCLIENTEXC
/AWS1/CX_SHBSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_nexttoken TYPE /AWS1/SHBNEXTTOKEN /AWS1/SHBNEXTTOKEN¶
The NextToken value that's returned from a previous paginated
ListConfigurationPoliciesrequest whereMaxResultswas used but the results exceeded the value of that parameter. Pagination continues from theMaxResultswas used but the results exceeded the value of that parameter. Pagination continues from the end of the previous response that returned theNextTokenvalue. This value isnullwhen there are no more results to return.
iv_maxresults TYPE /AWS1/SHBMAXRESULTS /AWS1/SHBMAXRESULTS¶
The maximum number of results that's returned by
ListConfigurationPoliciesin each page of the response. When this parameter is used,ListConfigurationPoliciesreturns the specified number of results in a single page and aNextTokenresponse element. You can see the remaining results of the initial request by sending anotherListConfigurationPoliciesrequest with the returnedNextTokenvalue. A valid range forMaxResultsis between 1 and 100.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_shblistconfpolrsp /AWS1/CL_SHBLISTCONFPOLRSP¶
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->listconfigurationpolicies(
iv_maxresults = 123
iv_nexttoken = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_confpolicysummaries( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_nonemptystring = lo_row_1->get_arn( ).
lv_nonemptystring = lo_row_1->get_id( ).
lv_nonemptystring = lo_row_1->get_name( ).
lv_nonemptystring = lo_row_1->get_description( ).
lv_timestamp = lo_row_1->get_updatedat( ).
lv_boolean = lo_row_1->get_serviceenabled( ).
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.
To view a list of configuration policies¶
This operation provides a list of your configuration policies, including metadata for each policy.
DATA(lo_result) = lo_client->listconfigurationpolicies(
iv_maxresults = 1
iv_nexttoken = |U1FsdGVkX19nBV2zoh+Gou9NgnulLJHWpn9xnG4hqSOhvw3o2JqjI86QDxdf|
).