/AWS1/IF_BDK=>DELETEAUTOMATEDREASONINGPLY()¶
About DeleteAutomatedReasoningPolicy¶
Deletes an Automated Reasoning policy or policy version. This operation is idempotent. If you delete a policy more than once, each call succeeds. Deleting a policy removes it permanently and cannot be undone.
Method Signature¶
METHODS /AWS1/IF_BDK~DELETEAUTOMATEDREASONINGPLY
IMPORTING
!IV_POLICYARN TYPE /AWS1/BDKAUTOMATEDRSNINGPLYARN OPTIONAL
!IV_FORCE TYPE /AWS1/BDKBOOLEAN OPTIONAL
PREFERRED PARAMETER iv_policyarn
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdkdelautomatedrsni03
RAISING
/AWS1/CX_BDKACCESSDENIEDEX
/AWS1/CX_BDKCONFLICTEXCEPTION
/AWS1/CX_BDKINTERNALSERVEREX
/AWS1/CX_BDKRESOURCEINUSEEX
/AWS1/CX_BDKRESOURCENOTFOUNDEX
/AWS1/CX_BDKTHROTTLINGEX
/AWS1/CX_BDKVALIDATIONEX
/AWS1/CX_BDKCLIENTEXC
/AWS1/CX_BDKSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_policyarn TYPE /AWS1/BDKAUTOMATEDRSNINGPLYARN /AWS1/BDKAUTOMATEDRSNINGPLYARN¶
The Amazon Resource Name (ARN) of the Automated Reasoning policy to delete.
Optional arguments:¶
iv_force TYPE /AWS1/BDKBOOLEAN /AWS1/BDKBOOLEAN¶
Specifies whether to force delete the automated reasoning policy even if it has active resources. When
false, Amazon Bedrock validates if all artifacts have been deleted (e.g. policy version, test case, test result) for a policy before deletion. Whentrue, Amazon Bedrock will delete the policy and all its artifacts without validation. Default isfalse.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bdkdelautomatedrsni03 /AWS1/CL_BDKDELAUTOMATEDRSNI03¶
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->deleteautomatedreasoningply(
iv_force = ABAP_TRUE
iv_policyarn = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.