Skip to content

/AWS1/IF_IOI=>REGISTERACCOUNT()

About RegisterAccount

This API operation contains deprecated parameters. Register your account again without the Timestream resources parameter so that Amazon Web Services IoT FleetWise can remove the Timestream metadata stored. You should then pass the data destination into the CreateCampaign API operation.

You must delete any existing campaigns that include an empty data destination before you register your account again. For more information, see the DeleteCampaign API operation.

If you want to delete the Timestream inline policy from the service-linked role, such as to mitigate an overly permissive policy, you must first delete any existing campaigns. Then delete the service-linked role and register your account again to enable CloudWatch metrics. For more information, see DeleteServiceLinkedRole in the Identity and Access Management API Reference.

Registers your Amazon Web Services account, IAM, and Amazon Timestream resources so 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.

An Amazon Web Services account is not the same thing as a "user." An Amazon Web Services user is an identity that you create using Identity and Access Management (IAM) and takes the form of either an IAM user or an IAM role, both with credentials. A single Amazon Web Services account can, and typically does, contain many users and roles.

Method Signature

METHODS /AWS1/IF_IOI~REGISTERACCOUNT
  IMPORTING
    !IO_TIMESTREAMRESOURCES TYPE REF TO /AWS1/CL_IOITSRRESOURCES OPTIONAL
    !IO_IAMRESOURCES TYPE REF TO /AWS1/CL_IOIIAMRESOURCES OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ioiregaccountresponse
  RAISING
    /AWS1/CX_IOIINTERNALSERVEREX
    /AWS1/CX_IOIACCESSDENIEDEX
    /AWS1/CX_IOICONFLICTEXCEPTION
    /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.

IMPORTING

Optional arguments:

io_timestreamresources TYPE REF TO /AWS1/CL_IOITSRRESOURCES /AWS1/CL_IOITSRRESOURCES

timestreamResources

io_iamresources TYPE REF TO /AWS1/CL_IOIIAMRESOURCES /AWS1/CL_IOIIAMRESOURCES

The IAM resource that allows Amazon Web Services IoT FleetWise to send data to Amazon Timestream.

RETURNING

oo_output TYPE REF TO /aws1/cl_ioiregaccountresponse /AWS1/CL_IOIREGACCOUNTRESPONSE

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->registeraccount(
  io_iamresources = new /aws1/cl_ioiiamresources( |string| )
  io_timestreamresources = new /aws1/cl_ioitsrresources(
    iv_timestreamdatabasename = |string|
    iv_timestreamtablename = |string|
  )
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_registrationstatus = lo_result->get_registeraccountstatus( ).
  lo_timestreamresources = lo_result->get_timestreamresources( ).
  IF lo_timestreamresources IS NOT INITIAL.
    lv_timestreamdatabasename = lo_timestreamresources->get_timestreamdatabasename( ).
    lv_timestreamtablename = lo_timestreamresources->get_timestreamtablename( ).
  ENDIF.
  lo_iamresources = lo_result->get_iamresources( ).
  IF lo_iamresources IS NOT INITIAL.
    lv_iamrolearn = lo_iamresources->get_rolearn( ).
  ENDIF.
  lv_timestamp = lo_result->get_creationtime( ).
  lv_timestamp = lo_result->get_lastmodificationtime( ).
ENDIF.