Skip to content

/AWS1/IF_BDK=>STRTAUTOMATEDRSNINGPLYBLDW00()

About StartAutomatedReasoningPolicyBuildWorkflow

Starts a new build workflow for an Automated Reasoning policy. This initiates the process of analyzing source documents and generating policy rules, variables, and types.

Method Signature

METHODS /AWS1/IF_BDK~STRTAUTOMATEDRSNINGPLYBLDW00
  IMPORTING
    !IV_POLICYARN TYPE /AWS1/BDKAUTOMATEDRSNINGPLYARN OPTIONAL
    !IV_BUILDWORKFLOWTYPE TYPE /AWS1/BDKAUTOMATEDRSNINGPLYB01 OPTIONAL
    !IV_CLIENTREQUESTTOKEN TYPE /AWS1/BDKIDEMPOTENCYTOKEN OPTIONAL
    !IO_SOURCECONTENT TYPE REF TO /AWS1/CL_BDKAUTOMATEDRSNINGP05 OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdkstrtautomatedrsn01
  RAISING
    /AWS1/CX_BDKACCESSDENIEDEX
    /AWS1/CX_BDKCONFLICTEXCEPTION
    /AWS1/CX_BDKINTERNALSERVEREX
    /AWS1/CX_BDKRESOURCEINUSEEX
    /AWS1/CX_BDKRESOURCENOTFOUNDEX
    /AWS1/CX_BDKSERVICEQUOTAEXCDEX
    /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 for which to start the build workflow.

iv_buildworkflowtype TYPE /AWS1/BDKAUTOMATEDRSNINGPLYB01 /AWS1/BDKAUTOMATEDRSNINGPLYB01

The type of build workflow to start (e.g., DOCUMENT_INGESTION for processing new documents, POLICY_REPAIR for fixing existing policies).

io_sourcecontent TYPE REF TO /AWS1/CL_BDKAUTOMATEDRSNINGP05 /AWS1/CL_BDKAUTOMATEDRSNINGP05

The source content for the build workflow, such as documents to analyze or repair instructions for existing policies.

Optional arguments:

iv_clientrequesttoken TYPE /AWS1/BDKIDEMPOTENCYTOKEN /AWS1/BDKIDEMPOTENCYTOKEN

A unique, case-sensitive identifier to ensure that the operation completes no more than once. If this token matches a previous request, Amazon Bedrock ignores the request but doesn't return an error.

RETURNING

oo_output TYPE REF TO /aws1/cl_bdkstrtautomatedrsn01 /AWS1/CL_BDKSTRTAUTOMATEDRSN01

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->strtautomatedrsningplybldw00(
  io_sourcecontent = new /aws1/cl_bdkautomatedrsningp05(
    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|
    )
    io_workflowcontent = new /aws1/cl_bdkautomatedrsningp06(
      io_policyrepairassets = new /aws1/cl_bdkautomatedrsningp08(
        it_annotations = VALUE /aws1/cl_bdkautomatedrsningp09=>tt_automatedrsningplyannotat00(
          (
            new /aws1/cl_bdkautomatedrsningp09(
              io_addrlfromnaturallanguage = new /aws1/cl_bdkautomatedrsningp23( |string| )
              io_addrule = new /aws1/cl_bdkautomatedrsningp20( |string| )
              io_addtype = new /aws1/cl_bdkautomatedrsningp10(
                it_values = VALUE /aws1/cl_bdkautomatedrsningp02=>tt_automatedrsningplydeftype01(
                  (
                    new /aws1/cl_bdkautomatedrsningp02(
                      iv_description = |string|
                      iv_value = |string|
                    )
                  )
                )
                iv_description = |string|
                iv_name = |string|
              )
              io_addvariable = new /aws1/cl_bdkautomatedrsningp17(
                iv_description = |string|
                iv_name = |string|
                iv_type = |string|
              )
              io_deleterule = new /aws1/cl_bdkautomatedrsningp22( |string| )
              io_deletetype = new /aws1/cl_bdkautomatedrsningp16( |string| )
              io_deletevariable = new /aws1/cl_bdkautomatedrsningp19( |string| )
              io_ingestcontent = new /aws1/cl_bdkautomatedrsningp27( |string| )
              io_updatefromrulesfeedback = new /aws1/cl_bdkautomatedrsningp24(
                it_ruleids = VALUE /aws1/cl_bdkautomatedrsningp25=>tt_automatedrsningplydefrlid00(
                  ( new /aws1/cl_bdkautomatedrsningp25( |string| ) )
                )
                iv_feedback = |string|
              )
              io_updaterule = new /aws1/cl_bdkautomatedrsningp21(
                iv_expression = |string|
                iv_ruleid = |string|
              )
              io_updatetype = new /aws1/cl_bdkautomatedrsningp11(
                it_values = VALUE /aws1/cl_bdkautomatedrsningp12=>tt_automatedrsningplytypeval00(
                  (
                    new /aws1/cl_bdkautomatedrsningp12(
                      io_addtypevalue = new /aws1/cl_bdkautomatedrsningp13(
                        iv_description = |string|
                        iv_value = |string|
                      )
                      io_deletetypevalue = new /aws1/cl_bdkautomatedrsningp15( |string| )
                      io_updatetypevalue = new /aws1/cl_bdkautomatedrsningp14(
                        iv_description = |string|
                        iv_newvalue = |string|
                        iv_value = |string|
                      )
                    )
                  )
                )
                iv_description = |string|
                iv_name = |string|
                iv_newname = |string|
              )
              io_updatevariable = new /aws1/cl_bdkautomatedrsningp18(
                iv_description = |string|
                iv_name = |string|
                iv_newname = |string|
              )
              io_updfromscenariofeedback = new /aws1/cl_bdkautomatedrsningp26(
                it_ruleids = VALUE /aws1/cl_bdkautomatedrsningp25=>tt_automatedrsningplydefrlid00(
                  ( new /aws1/cl_bdkautomatedrsningp25( |string| ) )
                )
                iv_feedback = |string|
                iv_scenarioexpression = |string|
              )
            )
          )
        )
      )
      it_documents = VALUE /aws1/cl_bdkautomatedrsningp07=>tt_automatedrsningplybldwork00(
        (
          new /aws1/cl_bdkautomatedrsningp07(
            iv_document = '5347567362473873563239796247513D'
            iv_documentcontenttype = |string|
            iv_documentdescription = |string|
            iv_documentname = |string|
          )
        )
      )
    )
  )
  iv_buildworkflowtype = |string|
  iv_clientrequesttoken = |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_buildworkflowid( ).
ENDIF.