Skip to content

/AWS1/IF_IOT=>UPDATEAUDITSUPPRESSION()

About UpdateAuditSuppression

Updates a Device Defender audit suppression.

Method Signature

METHODS /AWS1/IF_IOT~UPDATEAUDITSUPPRESSION
  IMPORTING
    !IV_CHECKNAME TYPE /AWS1/IOTAUDITCHECKNAME OPTIONAL
    !IO_RESOURCEIDENTIFIER TYPE REF TO /AWS1/CL_IOTRESOURCEIDENTIFIER OPTIONAL
    !IV_EXPIRATIONDATE TYPE /AWS1/IOTTIMESTAMP OPTIONAL
    !IV_SUPPRESSINDEFINITELY TYPE /AWS1/IOTSUPPRESSINDEFINITELY OPTIONAL
    !IV_DESCRIPTION TYPE /AWS1/IOTAUDITDESCRIPTION OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_iotupdauditsupionrsp
  RAISING
    /AWS1/CX_IOTINTERNALFAILUREEX
    /AWS1/CX_IOTINVALIDREQUESTEX
    /AWS1/CX_IOTRESOURCENOTFOUNDEX
    /AWS1/CX_IOTTHROTTLINGEX
    /AWS1/CX_IOTCLIENTEXC
    /AWS1/CX_IOTSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_checkname TYPE /AWS1/IOTAUDITCHECKNAME /AWS1/IOTAUDITCHECKNAME

An audit check name. Checks must be enabled for your account. (Use DescribeAccountAuditConfiguration to see the list of all checks, including those that are enabled or use UpdateAccountAuditConfiguration to select which checks are enabled.)

io_resourceidentifier TYPE REF TO /AWS1/CL_IOTRESOURCEIDENTIFIER /AWS1/CL_IOTRESOURCEIDENTIFIER

Information that identifies the noncompliant resource.

Optional arguments:

iv_expirationdate TYPE /AWS1/IOTTIMESTAMP /AWS1/IOTTIMESTAMP

The expiration date (epoch timestamp in seconds) that you want the suppression to adhere to.

iv_suppressindefinitely TYPE /AWS1/IOTSUPPRESSINDEFINITELY /AWS1/IOTSUPPRESSINDEFINITELY

Indicates whether a suppression should exist indefinitely or not.

iv_description TYPE /AWS1/IOTAUDITDESCRIPTION /AWS1/IOTAUDITDESCRIPTION

The description of the audit suppression.

RETURNING

oo_output TYPE REF TO /aws1/cl_iotupdauditsupionrsp /AWS1/CL_IOTUPDAUDITSUPIONRSP

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->updateauditsuppression(
  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_checkname = |string|
  iv_description = |string|
  iv_expirationdate = '20150101000000.0000000'
  iv_suppressindefinitely = ABAP_TRUE
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.