Skip to content

/AWS1/IF_IOT=>LISTAUDITMIGACTIONSTASKS()

About ListAuditMitigationActionsTasks

Gets a list of audit mitigation action tasks that match the specified filters.

Requires permission to access the ListAuditMitigationActionsTasks action.

Method Signature

IMPORTING

Required arguments:

iv_starttime TYPE /AWS1/IOTTIMESTAMP /AWS1/IOTTIMESTAMP

Specify this filter to limit results to tasks that began on or after a specific date and time.

iv_endtime TYPE /AWS1/IOTTIMESTAMP /AWS1/IOTTIMESTAMP

Specify this filter to limit results to tasks that were completed or canceled on or before a specific date and time.

Optional arguments:

iv_audittaskid TYPE /AWS1/IOTAUDITTASKID /AWS1/IOTAUDITTASKID

Specify this filter to limit results to tasks that were applied to results for a specific audit.

iv_findingid TYPE /AWS1/IOTFINDINGID /AWS1/IOTFINDINGID

Specify this filter to limit results to tasks that were applied to a specific audit finding.

iv_taskstatus TYPE /AWS1/IOTAUDITMIGACTSTASKSTAT /AWS1/IOTAUDITMIGACTSTASKSTAT

Specify this filter to limit results to tasks that are in a specific state.

iv_maxresults TYPE /AWS1/IOTMAXRESULTS /AWS1/IOTMAXRESULTS

The maximum number of results to return at one time. The default is 25.

iv_nexttoken TYPE /AWS1/IOTNEXTTOKEN /AWS1/IOTNEXTTOKEN

The token for the next set of results.

RETURNING

oo_output TYPE REF TO /aws1/cl_iotlstaudmigacttsks01 /AWS1/CL_IOTLSTAUDMIGACTTSKS01

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->/aws1/if_iot~listauditmigactionstasks(
  iv_audittaskid = |string|
  iv_endtime = '20150101000000.0000000'
  iv_findingid = |string|
  iv_maxresults = 123
  iv_nexttoken = |string|
  iv_starttime = '20150101000000.0000000'
  iv_taskstatus = |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_tasks( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_mitigationactionstaskid = lo_row_1->get_taskid( ).
      lv_timestamp = lo_row_1->get_starttime( ).
      lv_auditmitigationactionst = lo_row_1->get_taskstatus( ).
    ENDIF.
  ENDLOOP.
  lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.