/AWS1/IF_SDY=>UPDATESERVICEATTRIBUTES()
¶
About UpdateServiceAttributes¶
Submits a request to update a specified service to add service-level attributes.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_serviceid
TYPE /AWS1/SDYARN
/AWS1/SDYARN
¶
The ID or Amazon Resource Name (ARN) of the service that you want to update. For services created in a namespace shared with your Amazon Web Services account, specify the service ARN.
it_attributes
TYPE /AWS1/CL_SDYSERVICEATTRSMAP_W=>TT_SERVICEATTRIBUTESMAP
TT_SERVICEATTRIBUTESMAP
¶
A string map that contains attribute key-value pairs.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_sdyupdatesvcattrsrsp
/AWS1/CL_SDYUPDATESVCATTRSRSP
¶
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_sdy~updateserviceattributes(
it_attributes = VALUE /aws1/cl_sdyserviceattrsmap_w=>tt_serviceattributesmap(
(
VALUE /aws1/cl_sdyserviceattrsmap_w=>ts_serviceattributesmap_maprow(
value = new /aws1/cl_sdyserviceattrsmap_w( |string| )
key = |string|
)
)
)
iv_serviceid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.
UpdateServiceAttributes Example¶
This example submits a request to update the specified service to add a port attribute with the value 80.
DATA(lo_result) = lo_client->/aws1/if_sdy~updateserviceattributes(
it_attributes = VALUE /aws1/cl_sdyserviceattrsmap_w=>tt_serviceattributesmap(
(
VALUE /aws1/cl_sdyserviceattrsmap_w=>ts_serviceattributesmap_maprow(
value = new /aws1/cl_sdyserviceattrsmap_w( |80| )
key = |port|
)
)
)
iv_serviceid = |srv-e4anhexample0004|
).