/AWS1/IF_SHB=>GETENABLEDSTANDARDS()¶
About GetEnabledStandards¶
Returns a list of the standards that are currently enabled.
Method Signature¶
METHODS /AWS1/IF_SHB~GETENABLEDSTANDARDS
IMPORTING
!IT_STANDARDSSUBSCRIPTIONARNS TYPE /AWS1/CL_SHBSTANDARDSSUBSCRI00=>TT_STANDARDSSUBSCRIPTIONARNS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/SHBNEXTTOKEN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/SHBMAXRESULTS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_shbgetenbdstandards01
RAISING
/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:¶
it_standardssubscriptionarns TYPE /AWS1/CL_SHBSTANDARDSSUBSCRI00=>TT_STANDARDSSUBSCRIPTIONARNS TT_STANDARDSSUBSCRIPTIONARNS¶
The list of the standards subscription ARNs for the standards to retrieve.
iv_nexttoken TYPE /AWS1/SHBNEXTTOKEN /AWS1/SHBNEXTTOKEN¶
The token that is required for pagination. On your first call to the
GetEnabledStandardsoperation, set the value of this parameter toNULL.For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.
iv_maxresults TYPE /AWS1/SHBMAXRESULTS /AWS1/SHBMAXRESULTS¶
The maximum number of results to return in the response.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_shbgetenbdstandards01 /AWS1/CL_SHBGETENBDSTANDARDS01¶
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->getenabledstandards(
it_standardssubscriptionarns = VALUE /aws1/cl_shbstandardssubscri00=>tt_standardssubscriptionarns(
( new /aws1/cl_shbstandardssubscri00( |string| ) )
)
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_standardssubscriptions( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_nonemptystring = lo_row_1->get_standardssubscriptionarn( ).
lv_nonemptystring = lo_row_1->get_standardsarn( ).
LOOP AT lo_row_1->get_standardsinput( ) into ls_row_2.
lv_key = ls_row_2-key.
lo_value = ls_row_2-value.
IF lo_value IS NOT INITIAL.
lv_nonemptystring = lo_value->get_value( ).
ENDIF.
ENDLOOP.
lv_standardsstatus = lo_row_1->get_standardsstatus( ).
lv_standardscontrolsupdata = lo_row_1->get_standardsctlsupdatable( ).
lo_standardsstatusreason = lo_row_1->get_standardsstatusreason( ).
IF lo_standardsstatusreason IS NOT INITIAL.
lv_statusreasoncode = lo_standardsstatusreason->get_statusreasoncode( ).
ENDIF.
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.
To return a list of enabled standards¶
The following example returns a list of Security Hub standards that are currently enabled in your account.
DATA(lo_result) = lo_client->getenabledstandards(
it_standardssubscriptionarns = VALUE /aws1/cl_shbstandardssubscri00=>tt_standardssubscriptionarns(
( new /aws1/cl_shbstandardssubscri00( |arn:aws:securityhub:us-west-1:123456789012:subscription/pci-dss/v/3.2.1| ) )
)
).