/AWS1/IF_IOT=>LISTAUDITSUPPRESSIONS()¶
About ListAuditSuppressions¶
Lists your Device Defender audit listings.
Requires permission to access the ListAuditSuppressions action.
Method Signature¶
METHODS /AWS1/IF_IOT~LISTAUDITSUPPRESSIONS
IMPORTING
!IV_CHECKNAME TYPE /AWS1/IOTAUDITCHECKNAME OPTIONAL
!IO_RESOURCEIDENTIFIER TYPE REF TO /AWS1/CL_IOTRESOURCEIDENTIFIER OPTIONAL
!IV_ASCENDINGORDER TYPE /AWS1/IOTASCENDINGORDER OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/IOTNEXTTOKEN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/IOTMAXRESULTS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_iotlistaudsupionsrsp
RAISING
/AWS1/CX_IOTINTERNALFAILUREEX
/AWS1/CX_IOTINVALIDREQUESTEX
/AWS1/CX_IOTTHROTTLINGEX
/AWS1/CX_IOTCLIENTEXC
/AWS1/CX_IOTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_checkname TYPE /AWS1/IOTAUDITCHECKNAME /AWS1/IOTAUDITCHECKNAME¶
An audit check name. Checks must be enabled for your account. (Use
DescribeAccountAuditConfigurationto see the list of all checks, including those that are enabled or useUpdateAccountAuditConfigurationto select which checks are enabled.)
io_resourceidentifier TYPE REF TO /AWS1/CL_IOTRESOURCEIDENTIFIER /AWS1/CL_IOTRESOURCEIDENTIFIER¶
Information that identifies the noncompliant resource.
iv_ascendingorder TYPE /AWS1/IOTASCENDINGORDER /AWS1/IOTASCENDINGORDER¶
Determines whether suppressions are listed in ascending order by expiration date or not. If parameter isn't provided,
ascendingOrder=true.
iv_nexttoken TYPE /AWS1/IOTNEXTTOKEN /AWS1/IOTNEXTTOKEN¶
The token for the next set of results.
iv_maxresults TYPE /AWS1/IOTMAXRESULTS /AWS1/IOTMAXRESULTS¶
The maximum number of results to return at one time. The default is 25.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_iotlistaudsupionsrsp /AWS1/CL_IOTLISTAUDSUPIONSRSP¶
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->listauditsuppressions(
io_resourceidentifier = new /aws1/cl_iotresourceidentifier(
io_issuercertidentifier = new /aws1/cl_iotissuercertid(
iv_issuercertificatesubject = |string|
iv_issuercertserialnumber = |string|
iv_issuerid = |string|
)
io_policyversionidentifier = new /aws1/cl_iotpolicyversionid(
iv_policyname = |string|
iv_policyversionid = |string|
)
iv_account = |string|
iv_cacertificateid = |string|
iv_clientid = |string|
iv_cognitoidentitypoolid = |string|
iv_devicecertificatearn = |string|
iv_devicecertificateid = |string|
iv_iamrolearn = |string|
iv_rolealiasarn = |string|
)
iv_ascendingorder = ABAP_TRUE
iv_checkname = |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_suppressions( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_auditcheckname = lo_row_1->get_checkname( ).
lo_resourceidentifier = lo_row_1->get_resourceidentifier( ).
IF lo_resourceidentifier IS NOT INITIAL.
lv_certificateid = lo_resourceidentifier->get_devicecertificateid( ).
lv_certificateid = lo_resourceidentifier->get_cacertificateid( ).
lv_cognitoidentitypoolid = lo_resourceidentifier->get_cognitoidentitypoolid( ).
lv_clientid = lo_resourceidentifier->get_clientid( ).
lo_policyversionidentifier = lo_resourceidentifier->get_policyversionidentifier( ).
IF lo_policyversionidentifier IS NOT INITIAL.
lv_policyname = lo_policyversionidentifier->get_policyname( ).
lv_policyversionid = lo_policyversionidentifier->get_policyversionid( ).
ENDIF.
lv_awsaccountid = lo_resourceidentifier->get_account( ).
lv_rolearn = lo_resourceidentifier->get_iamrolearn( ).
lv_rolealiasarn = lo_resourceidentifier->get_rolealiasarn( ).
lo_issuercertificateidenti = lo_resourceidentifier->get_issuercertidentifier( ).
IF lo_issuercertificateidenti IS NOT INITIAL.
lv_issuercertificatesubjec = lo_issuercertificateidenti->get_issuercertificatesubject( ).
lv_issuerid = lo_issuercertificateidenti->get_issuerid( ).
lv_issuercertificateserial = lo_issuercertificateidenti->get_issuercertserialnumber( ).
ENDIF.
lv_certificatearn = lo_resourceidentifier->get_devicecertificatearn( ).
ENDIF.
lv_timestamp = lo_row_1->get_expirationdate( ).
lv_suppressindefinitely = lo_row_1->get_suppressindefinitely( ).
lv_auditdescription = lo_row_1->get_description( ).
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.