/AWS1/IF_BDK=>UPDATEAUTOMATEDREASONINGPLY()
¶
About UpdateAutomatedReasoningPolicy¶
Updates an existing Automated Reasoning policy with new rules, variables, or configuration. This creates a new version of the policy while preserving the previous version.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_policyarn
TYPE /AWS1/BDKAUTOMATEDRSNINGPLYARN
/AWS1/BDKAUTOMATEDRSNINGPLYARN
¶
The Amazon Resource Name (ARN) of the Automated Reasoning policy to update. This must be the ARN of a draft policy.
io_policydefinition
TYPE REF TO /AWS1/CL_BDKAUTOMATEDRSNINGP00
/AWS1/CL_BDKAUTOMATEDRSNINGP00
¶
The updated policy definition containing the formal logic rules, variables, and types.
Optional arguments:¶
iv_name
TYPE /AWS1/BDKAUTOMATEDRSNINGPLYN00
/AWS1/BDKAUTOMATEDRSNINGPLYN00
¶
The updated name for the Automated Reasoning policy.
iv_description
TYPE /AWS1/BDKAUTOMATEDRSNINGPLYDSC
/AWS1/BDKAUTOMATEDRSNINGPLYDSC
¶
The updated description for the Automated Reasoning policy.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_bdkupautomatedrsnin05
/AWS1/CL_BDKUPAUTOMATEDRSNIN05
¶
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_bdk~updateautomatedreasoningply(
io_policydefinition = new /aws1/cl_bdkautomatedrsningp00(
it_rules = VALUE /aws1/cl_bdkautomatedrsningp03=>tt_automatedrsningplydefnrllst(
(
new /aws1/cl_bdkautomatedrsningp03(
iv_alternateexpression = |string|
iv_expression = |string|
iv_id = |string|
)
)
)
it_types = VALUE /aws1/cl_bdkautomatedrsningp01=>tt_automatedrsningplydeftype00(
(
new /aws1/cl_bdkautomatedrsningp01(
it_values = VALUE /aws1/cl_bdkautomatedrsningp02=>tt_automatedrsningplydeftype01(
(
new /aws1/cl_bdkautomatedrsningp02(
iv_description = |string|
iv_value = |string|
)
)
)
iv_description = |string|
iv_name = |string|
)
)
)
it_variables = VALUE /aws1/cl_bdkautomatedrsningp04=>tt_automatedrsningplydefvari00(
(
new /aws1/cl_bdkautomatedrsningp04(
iv_description = |string|
iv_name = |string|
iv_type = |string|
)
)
)
iv_version = |string|
)
iv_description = |string|
iv_name = |string|
iv_policyarn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_automatedreasoningpolic = lo_result->get_policyarn( ).
lv_automatedreasoningpolic_1 = lo_result->get_name( ).
lv_automatedreasoningpolic_2 = lo_result->get_definitionhash( ).
lv_timestamp = lo_result->get_updatedat( ).
ENDIF.