Skip to content

Updates the annotations for an Automated Reasoning policy build workflow

Description

Updates the annotations for an Automated Reasoning policy build workflow. This allows you to modify extracted rules, variables, and types before finalizing the policy.

Usage

bedrock_update_automated_reasoning_policy_annotations(policyArn,
  buildWorkflowId, annotations, lastUpdatedAnnotationSetHash)

Arguments

  • policyArn

[required] The Amazon Resource Name (ARN) of the Automated Reasoning policy whose annotations you want to update.

  • buildWorkflowId

[required] The unique identifier of the build workflow whose annotations you want to update.

  • annotations

[required] The updated annotations containing modified rules, variables, and types for the policy.

  • lastUpdatedAnnotationSetHash

[required] The hash value of the annotation set that you're updating. This is used for optimistic concurrency control to prevent conflicting updates.

Value

A list with the following syntax:

list(
  policyArn = "string",
  buildWorkflowId = "string",
  annotationSetHash = "string",
  updatedAt = as.POSIXct(
    "2015-01-01"
  )
)

Request syntax

svc$update_automated_reasoning_policy_annotations(
  policyArn = "string",
  buildWorkflowId = "string",
  annotations = list(
    list(
      addType = list(
        name = "string",
        description = "string",
        values = list(
          list(
            value = "string",
            description = "string"
          )
        )
      ),
      updateType = list(
        name = "string",
        newName = "string",
        description = "string",
        values = list(
          list(
            addTypeValue = list(
              value = "string",
              description = "string"
            ),
            updateTypeValue = list(
              value = "string",
              newValue = "string",
              description = "string"
            ),
            deleteTypeValue = list(
              value = "string"
            )
          )
        )
      ),
      deleteType = list(
        name = "string"
      ),
      addVariable = list(
        name = "string",
        type = "string",
        description = "string"
      ),
      updateVariable = list(
        name = "string",
        newName = "string",
        description = "string"
      ),
      deleteVariable = list(
        name = "string"
      ),
      addRule = list(
        expression = "string"
      ),
      updateRule = list(
        ruleId = "string",
        expression = "string"
      ),
      deleteRule = list(
        ruleId = "string"
      ),
      addRuleFromNaturalLanguage = list(
        naturalLanguage = "string"
      ),
      updateFromRulesFeedback = list(
        ruleIds = list(
          "string"
        ),
        feedback = "string"
      ),
      updateFromScenarioFeedback = list(
        ruleIds = list(
          "string"
        ),
        scenarioExpression = "string",
        feedback = "string"
      ),
      ingestContent = list(
        content = "string"
      )
    )
  ),
  lastUpdatedAnnotationSetHash = "string"
)