/AWS1/CL_FNT=>UPDATECONTDEPLOYMENTPOLICY()
¶
About UpdateContinuousDeploymentPolicy¶
Updates a continuous deployment policy. You can update a continuous deployment policy to enable or disable it, to change the percentage of traffic that it sends to the staging distribution, or to change the staging distribution that it sends traffic to.
When you update a continuous deployment policy configuration, all the fields are updated with the values that are provided in the request. You cannot update some fields independent of others. To update a continuous deployment policy configuration:
-
Use
GetContinuousDeploymentPolicyConfig
to get the current configuration. -
Locally modify the fields in the continuous deployment policy configuration that you want to update.
-
Use
UpdateContinuousDeploymentPolicy
, providing the entire continuous deployment policy configuration, including the fields that you modified and those that you didn't.
Method Signature¶
IMPORTING¶
Required arguments:¶
io_contdeploymentplyconfig
TYPE REF TO /AWS1/CL_FNTCONTDEPLOYMENTPL00
/AWS1/CL_FNTCONTDEPLOYMENTPL00
¶
The continuous deployment policy configuration.
iv_id
TYPE /AWS1/FNTSTRING
/AWS1/FNTSTRING
¶
The identifier of the continuous deployment policy that you are updating.
Optional arguments:¶
iv_ifmatch
TYPE /AWS1/FNTSTRING
/AWS1/FNTSTRING
¶
The current version (
ETag
value) of the continuous deployment policy that you are updating.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_fntupcontdeployment01
/AWS1/CL_FNTUPCONTDEPLOYMENT01
¶
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_fnt~updatecontdeploymentpolicy(
io_contdeploymentplyconfig = new /aws1/cl_fntcontdeploymentpl00(
io_stagingdistributiondnsn00 = new /aws1/cl_fntstagingdistribut00(
it_items = VALUE /aws1/cl_fntstagingdistribut01=>tt_stagingdistributiondnsnam00(
( new /aws1/cl_fntstagingdistribut01( |string| ) )
)
iv_quantity = 123
)
io_trafficconfig = new /aws1/cl_fnttrafficconfig(
io_singleheaderconfig = new /aws1/cl_fntcontdeploymentsi01(
iv_header = |string|
iv_value = |string|
)
io_singleweightconfig = new /aws1/cl_fntcontdeploymentsi00(
io_sessionstickinessconfig = new /aws1/cl_fntsessstickinesscfg(
iv_idlettl = 123
iv_maximumttl = 123
)
iv_weight = '0.1'
)
iv_type = |string|
)
iv_enabled = ABAP_TRUE
)
iv_id = |string|
iv_ifmatch = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_continuousdeploymentpol = lo_result->get_contdeploymentpolicy( ).
IF lo_continuousdeploymentpol IS NOT INITIAL.
lv_string = lo_continuousdeploymentpol->get_id( ).
lv_timestamp = lo_continuousdeploymentpol->get_lastmodifiedtime( ).
lo_continuousdeploymentpol_1 = lo_continuousdeploymentpol->get_contdeploymentplyconfig( ).
IF lo_continuousdeploymentpol_1 IS NOT INITIAL.
lo_stagingdistributiondnsn = lo_continuousdeploymentpol_1->get_stagingdistributiondns00( ).
IF lo_stagingdistributiondnsn IS NOT INITIAL.
lv_integer = lo_stagingdistributiondnsn->get_quantity( ).
LOOP AT lo_stagingdistributiondnsn->get_items( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
lv_boolean = lo_continuousdeploymentpol_1->get_enabled( ).
lo_trafficconfig = lo_continuousdeploymentpol_1->get_trafficconfig( ).
IF lo_trafficconfig IS NOT INITIAL.
lo_continuousdeploymentsin = lo_trafficconfig->get_singleweightconfig( ).
IF lo_continuousdeploymentsin IS NOT INITIAL.
lv_float = lo_continuousdeploymentsin->get_weight( ).
lo_sessionstickinessconfig = lo_continuousdeploymentsin->get_sessionstickinessconfig( ).
IF lo_sessionstickinessconfig IS NOT INITIAL.
lv_integer = lo_sessionstickinessconfig->get_idlettl( ).
lv_integer = lo_sessionstickinessconfig->get_maximumttl( ).
ENDIF.
ENDIF.
lo_continuousdeploymentsin_1 = lo_trafficconfig->get_singleheaderconfig( ).
IF lo_continuousdeploymentsin_1 IS NOT INITIAL.
lv_string = lo_continuousdeploymentsin_1->get_header( ).
lv_string = lo_continuousdeploymentsin_1->get_value( ).
ENDIF.
lv_continuousdeploymentpol_2 = lo_trafficconfig->get_type( ).
ENDIF.
ENDIF.
ENDIF.
lv_string = lo_result->get_etag( ).
ENDIF.