/AWS1/IF_AIN=>UPDATEAPPLICATION()¶
About UpdateApplication¶
Updates the application.
Method Signature¶
METHODS /AWS1/IF_AIN~UPDATEAPPLICATION
IMPORTING
!IV_RESOURCEGROUPNAME TYPE /AWS1/AINRESOURCEGROUPNAME OPTIONAL
!IV_OPSCENTERENABLED TYPE /AWS1/AINOPSCENTERENABLED OPTIONAL
!IV_CWEMONITORENABLED TYPE /AWS1/AINCWEMONITORENABLED OPTIONAL
!IV_OPSITEMSNSTOPICARN TYPE /AWS1/AINOPSITEMSNSTOPICARN OPTIONAL
!IV_SNSNOTIFICATIONARN TYPE /AWS1/AINSNSNOTIFICATIONARN OPTIONAL
!IV_REMOVESNSTOPIC TYPE /AWS1/AINREMOVESNSTOPIC OPTIONAL
!IV_AUTOCONFIGENABLED TYPE /AWS1/AINAUTOCONFIGENABLED OPTIONAL
!IV_ATTACHMISSINGPERMISSION TYPE /AWS1/AINATTACHMISSINGPERM OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ainupdapplicationrsp
RAISING
/AWS1/CX_AININTERNALSERVEREX
/AWS1/CX_AINRESOURCENOTFOUNDEX
/AWS1/CX_AINVALIDATIONEX
/AWS1/CX_AINCLIENTEXC
/AWS1/CX_AINSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_resourcegroupname TYPE /AWS1/AINRESOURCEGROUPNAME /AWS1/AINRESOURCEGROUPNAME¶
The name of the resource group.
Optional arguments:¶
iv_opscenterenabled TYPE /AWS1/AINOPSCENTERENABLED /AWS1/AINOPSCENTERENABLED¶
When set to
true, creates opsItems for any problems detected on an application.
iv_cwemonitorenabled TYPE /AWS1/AINCWEMONITORENABLED /AWS1/AINCWEMONITORENABLED¶
Indicates whether Application Insights can listen to CloudWatch events for the application resources, such as
instance terminated,failed deployment, and others.
iv_opsitemsnstopicarn TYPE /AWS1/AINOPSITEMSNSTOPICARN /AWS1/AINOPSITEMSNSTOPICARN¶
The SNS topic provided to Application Insights that is associated to the created opsItem. Allows you to receive notifications for updates to the opsItem.
iv_snsnotificationarn TYPE /AWS1/AINSNSNOTIFICATIONARN /AWS1/AINSNSNOTIFICATIONARN¶
The SNS topic ARN. Allows you to receive SNS notifications for updates and issues with an application.
iv_removesnstopic TYPE /AWS1/AINREMOVESNSTOPIC /AWS1/AINREMOVESNSTOPIC¶
Disassociates the SNS topic from the opsItem created for detected problems.
iv_autoconfigenabled TYPE /AWS1/AINAUTOCONFIGENABLED /AWS1/AINAUTOCONFIGENABLED¶
Turns auto-configuration on or off.
iv_attachmissingpermission TYPE /AWS1/AINATTACHMISSINGPERM /AWS1/AINATTACHMISSINGPERM¶
If set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ainupdapplicationrsp /AWS1/CL_AINUPDAPPLICATIONRSP¶
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->updateapplication(
iv_attachmissingpermission = ABAP_TRUE
iv_autoconfigenabled = ABAP_TRUE
iv_cwemonitorenabled = ABAP_TRUE
iv_opscenterenabled = ABAP_TRUE
iv_opsitemsnstopicarn = |string|
iv_removesnstopic = ABAP_TRUE
iv_resourcegroupname = |string|
iv_snsnotificationarn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_applicationinfo = lo_result->get_applicationinfo( ).
IF lo_applicationinfo IS NOT INITIAL.
lv_accountid = lo_applicationinfo->get_accountid( ).
lv_resourcegroupname = lo_applicationinfo->get_resourcegroupname( ).
lv_lifecycle = lo_applicationinfo->get_lifecycle( ).
lv_opsitemsnstopicarn = lo_applicationinfo->get_opsitemsnstopicarn( ).
lv_snsnotificationarn = lo_applicationinfo->get_snsnotificationarn( ).
lv_opscenterenabled = lo_applicationinfo->get_opscenterenabled( ).
lv_cwemonitorenabled = lo_applicationinfo->get_cwemonitorenabled( ).
lv_remarks = lo_applicationinfo->get_remarks( ).
lv_autoconfigenabled = lo_applicationinfo->get_autoconfigenabled( ).
lv_discoverytype = lo_applicationinfo->get_discoverytype( ).
lv_attachmissingpermission = lo_applicationinfo->get_attachmissingpermission( ).
ENDIF.
ENDIF.