Skip to content

/AWS1/CL_API=>UPDATEAPPLICATION()

About UpdateApplication

Updates and persists an Application resource.

Method Signature

IMPORTING

Required arguments:

iv_arn TYPE /AWS1/APIARNORUUID /AWS1/APIARNORUUID

The Amazon Resource Name (ARN) of the Application.

Optional arguments:

iv_name TYPE /AWS1/APIAPPLICATIONNAME /AWS1/APIAPPLICATIONNAME

The name of the application.

iv_description TYPE /AWS1/APIDESCRIPTION /AWS1/APIDESCRIPTION

The description of the application.

io_applicationsourceconfig TYPE REF TO /AWS1/CL_APIAPPLICATIONSRCCFG /AWS1/CL_APIAPPLICATIONSRCCFG

The configuration for where the application should be loaded from.

it_subscriptions TYPE /AWS1/CL_APISUBSCRIPTION=>TT_SUBSCRIPTIONLIST TT_SUBSCRIPTIONLIST

The events that the application subscribes.

it_publications TYPE /AWS1/CL_APIPUBLICATION=>TT_PUBLICATIONLIST TT_PUBLICATIONLIST

The events that the application publishes.

it_permissions TYPE /AWS1/CL_APIPERMISSIONLIST_W=>TT_PERMISSIONLIST TT_PERMISSIONLIST

The configuration of events or requests that the application has access to.

RETURNING

oo_output TYPE REF TO /aws1/cl_apiupdapplicationrsp /AWS1/CL_APIUPDAPPLICATIONRSP

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_api~updateapplication(
  io_applicationsourceconfig = new /aws1/cl_apiapplicationsrccfg(
    io_externalurlconfig = new /aws1/cl_apiexternalurlconfig(
      it_approvedorigins = VALUE /aws1/cl_apiapplicationappro00=>tt_applicationapprovedorigins(
        ( new /aws1/cl_apiapplicationappro00( |string| ) )
      )
      iv_accessurl = |string|
    )
  )
  it_permissions = VALUE /aws1/cl_apipermissionlist_w=>tt_permissionlist(
    ( new /aws1/cl_apipermissionlist_w( |string| ) )
  )
  it_publications = VALUE /aws1/cl_apipublication=>tt_publicationlist(
    (
      new /aws1/cl_apipublication(
        iv_description = |string|
        iv_event = |string|
        iv_schema = |string|
      )
    )
  )
  it_subscriptions = VALUE /aws1/cl_apisubscription=>tt_subscriptionlist(
    (
      new /aws1/cl_apisubscription(
        iv_description = |string|
        iv_event = |string|
      )
    )
  )
  iv_arn = |string|
  iv_description = |string|
  iv_name = |string|
).

This is an example of reading all possible response values



To update an application

The following updates an existing application named with a new name.

DATA(lo_result) = lo_client->/aws1/if_api~updateapplication(
  iv_arn = |arn:aws:app-integrations:us-west-2:0123456789012:application/98542c53-e8ac-4570-9c85-c6552c8d9c5e|
  iv_name = |My New Application Name|
).