Skip to content

/AWS1/IF_KNS=>UPDATEACCOUNTSETTINGS()

About UpdateAccountSettings

Updates the account-level settings for Amazon Kinesis Data Streams.

Updating account settings is a synchronous operation. Upon receiving the request, Kinesis Data Streams will return immediately with your account’s updated settings.

API limits

  • Certain account configurations have minimum commitment windows. Attempting to update your settings prior to the end of the minimum commitment window might have certain restrictions.

  • This API has a call limit of 5 transactions per second (TPS) for each Amazon Web Services account. TPS over 5 will initiate the LimitExceededException.

Method Signature

METHODS /AWS1/IF_KNS~UPDATEACCOUNTSETTINGS
  IMPORTING
    !IO_MINTHRUPUTBLLNGCOMMITMENT TYPE REF TO /AWS1/CL_KNSMINTPBLLCOMMITME01 OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_knsupdateacctstgsout
  RAISING
    /AWS1/CX_KNSINVALIDARGUMENTEX
    /AWS1/CX_KNSLIMITEXCEEDEDEX
    /AWS1/CX_KNSVALIDATIONEX
    /AWS1/CX_KNSCLIENTEXC
    /AWS1/CX_KNSSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

io_minthruputbllngcommitment TYPE REF TO /AWS1/CL_KNSMINTPBLLCOMMITME01 /AWS1/CL_KNSMINTPBLLCOMMITME01

Specifies the minimum throughput billing commitment configuration for your account.

RETURNING

oo_output TYPE REF TO /aws1/cl_knsupdateacctstgsout /AWS1/CL_KNSUPDATEACCTSTGSOUT

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->updateaccountsettings( new /aws1/cl_knsmintpbllcommitme01( |string| ) ).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lo_minimumthroughputbillin = lo_result->get_minthruputbllngcommitm00( ).
  IF lo_minimumthroughputbillin IS NOT INITIAL.
    lv_minimumthroughputbillin_1 = lo_minimumthroughputbillin->get_status( ).
    lv_timestamp = lo_minimumthroughputbillin->get_startedat( ).
    lv_timestamp = lo_minimumthroughputbillin->get_endedat( ).
    lv_timestamp = lo_minimumthroughputbillin->get_earliestallowedendat( ).
  ENDIF.
ENDIF.