/AWS1/IF_SCA=>UPDATEATTRIBUTEGROUP()¶
About UpdateAttributeGroup¶
Updates an existing attribute group with new details.
Method Signature¶
METHODS /AWS1/IF_SCA~UPDATEATTRIBUTEGROUP
IMPORTING
!IV_ATTRIBUTEGROUP TYPE /AWS1/SCAATTRGROUPSPECIFIER OPTIONAL
!IV_NAME TYPE /AWS1/SCANAME OPTIONAL
!IV_DESCRIPTION TYPE /AWS1/SCADESCRIPTION OPTIONAL
!IV_ATTRIBUTES TYPE /AWS1/SCAATTRIBUTES OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_scaupdateattrgrouprsp
RAISING
/AWS1/CX_SCACONFLICTEXCEPTION
/AWS1/CX_SCAINTERNALSERVEREX
/AWS1/CX_SCARESOURCENOTFOUNDEX
/AWS1/CX_SCAVALIDATIONEX
/AWS1/CX_SCACLIENTEXC
/AWS1/CX_SCASERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_attributegroup TYPE /AWS1/SCAATTRGROUPSPECIFIER /AWS1/SCAATTRGROUPSPECIFIER¶
The name, ID, or ARN of the attribute group that holds the attributes to describe the application.
Optional arguments:¶
iv_name TYPE /AWS1/SCANAME /AWS1/SCANAME¶
Deprecated: The new name of the attribute group. The name must be unique in the region in which you are updating the attribute group. Please do not use this field as we have stopped supporting name updates.
iv_description TYPE /AWS1/SCADESCRIPTION /AWS1/SCADESCRIPTION¶
The description of the attribute group that the user provides.
iv_attributes TYPE /AWS1/SCAATTRIBUTES /AWS1/SCAATTRIBUTES¶
A JSON string in the form of nested key-value pairs that represent the attributes in the group and describes an application and its components.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_scaupdateattrgrouprsp /AWS1/CL_SCAUPDATEATTRGROUPRSP¶
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->updateattributegroup(
iv_attributegroup = |string|
iv_attributes = |string|
iv_description = |string|
iv_name = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_attributegroup = lo_result->get_attributegroup( ).
IF lo_attributegroup IS NOT INITIAL.
lv_attributegroupid = lo_attributegroup->get_id( ).
lv_attributegrouparn = lo_attributegroup->get_arn( ).
lv_name = lo_attributegroup->get_name( ).
lv_description = lo_attributegroup->get_description( ).
lv_timestamp = lo_attributegroup->get_creationtime( ).
lv_timestamp = lo_attributegroup->get_lastupdatetime( ).
LOOP AT lo_attributegroup->get_tags( ) into ls_row.
lv_key = ls_row-key.
lo_value = ls_row-value.
IF lo_value IS NOT INITIAL.
lv_tagvalue = lo_value->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.