Skip to content

/AWS1/IF_IOI=>GETREGISTERACCOUNTSTATUS()

About GetRegisterAccountStatus

Retrieves information about the status of registering your Amazon Web Services account, IAM, and Amazon Timestream resources so that Amazon Web Services IoT FleetWise can transfer your vehicle data to the Amazon Web Services Cloud.

For more information, including step-by-step procedures, see Setting up Amazon Web Services IoT FleetWise.

This API operation doesn't require input parameters.

Method Signature

METHODS /AWS1/IF_IOI~GETREGISTERACCOUNTSTATUS
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ioigetregacctstatrsp
  RAISING
    /AWS1/CX_IOIINTERNALSERVEREX
    /AWS1/CX_IOIACCESSDENIEDEX
    /AWS1/CX_IOIRESOURCENOTFOUNDEX
    /AWS1/CX_IOITHROTTLINGEX
    /AWS1/CX_IOIVALIDATIONEX
    /AWS1/CX_IOICLIENTEXC
    /AWS1/CX_IOISERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

RETURNING

oo_output TYPE REF TO /aws1/cl_ioigetregacctstatrsp /AWS1/CL_IOIGETREGACCTSTATRSP

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->getregisteraccountstatus( ).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_customeraccountid = lo_result->get_customeraccountid( ).
  lv_registrationstatus = lo_result->get_accountstatus( ).
  lo_timestreamregistrationr = lo_result->get_timestreamregresponse( ).
  IF lo_timestreamregistrationr IS NOT INITIAL.
    lv_timestreamdatabasename = lo_timestreamregistrationr->get_timestreamdatabasename( ).
    lv_timestreamtablename = lo_timestreamregistrationr->get_timestreamtablename( ).
    lv_arn = lo_timestreamregistrationr->get_timestreamdatabasearn( ).
    lv_arn = lo_timestreamregistrationr->get_timestreamtablearn( ).
    lv_registrationstatus = lo_timestreamregistrationr->get_registrationstatus( ).
    lv_errormessage = lo_timestreamregistrationr->get_errormessage( ).
  ENDIF.
  lo_iamregistrationresponse = lo_result->get_iamregistrationresponse( ).
  IF lo_iamregistrationresponse IS NOT INITIAL.
    lv_arn = lo_iamregistrationresponse->get_rolearn( ).
    lv_registrationstatus = lo_iamregistrationresponse->get_registrationstatus( ).
    lv_errormessage = lo_iamregistrationresponse->get_errormessage( ).
  ENDIF.
  lv_timestamp = lo_result->get_creationtime( ).
  lv_timestamp = lo_result->get_lastmodificationtime( ).
ENDIF.