Skip to content

/AWS1/IF_SHB=>BTCGETSTANDARDSCTLASSOCIAT00()

About BatchGetStandardsControlAssociations

For a batch of security controls and standards, identifies whether each control is currently enabled or disabled in a standard.

Calls to this operation return a RESOURCE_NOT_FOUND_EXCEPTION error when the standard subscription for the association has a NOT_READY_FOR_UPDATES value for StandardsControlsUpdatable.

Method Signature

IMPORTING

Required arguments:

it_standardsctlassociation00 TYPE /AWS1/CL_SHBSTANDARDSCTLASSO00=>TT_STANDARDSCTLASSOCIATIONIDS TT_STANDARDSCTLASSOCIATIONIDS

An array with one or more objects that includes a security control (identified with SecurityControlId, SecurityControlArn, or a mix of both parameters) and the Amazon Resource Name (ARN) of a standard. This field is used to query the enablement status of a control in a specified standard. The security control ID or ARN is the same across standards.

RETURNING

oo_output TYPE REF TO /aws1/cl_shbbtcgetstandardsc01 /AWS1/CL_SHBBTCGETSTANDARDSC01

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_shb~btcgetstandardsctlassociat00(
  it_standardsctlassociation00 = VALUE /aws1/cl_shbstandardsctlasso00=>tt_standardsctlassociationids(
    (
      new /aws1/cl_shbstandardsctlasso00(
        iv_securitycontrolid = |string|
        iv_standardsarn = |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_standardsctlassociatio02( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_nonemptystring = lo_row_1->get_standardsarn( ).
      lv_nonemptystring = lo_row_1->get_securitycontrolid( ).
      lv_nonemptystring = lo_row_1->get_securitycontrolarn( ).
      lv_associationstatus = lo_row_1->get_associationstatus( ).
      LOOP AT lo_row_1->get_relatedrequirements( ) into lo_row_2.
        lo_row_3 = lo_row_2.
        IF lo_row_3 IS NOT INITIAL.
          lv_nonemptystring = lo_row_3->get_value( ).
        ENDIF.
      ENDLOOP.
      lv_timestamp = lo_row_1->get_updatedat( ).
      lv_nonemptystring = lo_row_1->get_updatedreason( ).
      lv_nonemptystring = lo_row_1->get_standardscontroltitle( ).
      lv_nonemptystring = lo_row_1->get_standardscontroldesc( ).
      LOOP AT lo_row_1->get_standardscontrolarns( ) into lo_row_4.
        lo_row_5 = lo_row_4.
        IF lo_row_5 IS NOT INITIAL.
          lv_nonemptystring = lo_row_5->get_value( ).
        ENDIF.
      ENDLOOP.
    ENDIF.
  ENDLOOP.
  LOOP AT lo_result->get_unprocessedassociations( ) into lo_row_6.
    lo_row_7 = lo_row_6.
    IF lo_row_7 IS NOT INITIAL.
      lo_standardscontrolassocia = lo_row_7->get_standardsctlassociatio01( ).
      IF lo_standardscontrolassocia IS NOT INITIAL.
        lv_nonemptystring = lo_standardscontrolassocia->get_securitycontrolid( ).
        lv_nonemptystring = lo_standardscontrolassocia->get_standardsarn( ).
      ENDIF.
      lv_unprocessederrorcode = lo_row_7->get_errorcode( ).
      lv_nonemptystring = lo_row_7->get_errorreason( ).
    ENDIF.
  ENDLOOP.
ENDIF.