/AWS1/CL_BDOPOLICYGENERASSET¶
Represents a generated policy asset from the AI-powered policy generation process within the AgentCore Policy system. Each asset contains a Cedar policy statement generated from natural language input, along with associated metadata and analysis findings to help users evaluate and select the most appropriate policy option.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
iv_policygenerationassetid TYPE /AWS1/BDORESOURCEID /AWS1/BDORESOURCEID¶
The unique identifier for this generated policy asset within the policy generation request. This ID can be used to reference specific generated policy options when creating actual policies from the generation results.
iv_rawtextfragment TYPE /AWS1/BDONATURALLANGUAGE /AWS1/BDONATURALLANGUAGE¶
The portion of the original natural language input that this generated policy asset addresses. This helps users understand which part of their policy description was translated into this specific Cedar policy statement, enabling better policy selection and refinement. When a single natural language input describes multiple authorization requirements, the generation process creates separate policy assets for each requirement, with each asset's rawTextFragment showing which requirement it addresses. Use this mapping to verify that all parts of your natural language input were correctly translated into Cedar policies.
it_findings TYPE /AWS1/CL_BDOFINDING=>TT_FINDINGS TT_FINDINGS¶
Analysis findings and insights related to this specific generated policy asset. These findings may include validation results, potential issues, or recommendations for improvement to help users evaluate the quality and appropriateness of the generated policy.
Optional arguments:¶
io_definition TYPE REF TO /AWS1/CL_BDOPOLICYDEFINITION /AWS1/CL_BDOPOLICYDEFINITION¶
definition
Queryable Attributes¶
policyGenerationAssetId¶
The unique identifier for this generated policy asset within the policy generation request. This ID can be used to reference specific generated policy options when creating actual policies from the generation results.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_POLICYGENERATIONASSETID() |
Getter for POLICYGENERATIONASSETID, with configurable defaul |
ASK_POLICYGENERATIONASSETID() |
Getter for POLICYGENERATIONASSETID w/ exceptions if field ha |
HAS_POLICYGENERATIONASSETID() |
Determine if POLICYGENERATIONASSETID has a value |
definition¶
definition
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_DEFINITION() |
Getter for DEFINITION |
rawTextFragment¶
The portion of the original natural language input that this generated policy asset addresses. This helps users understand which part of their policy description was translated into this specific Cedar policy statement, enabling better policy selection and refinement. When a single natural language input describes multiple authorization requirements, the generation process creates separate policy assets for each requirement, with each asset's rawTextFragment showing which requirement it addresses. Use this mapping to verify that all parts of your natural language input were correctly translated into Cedar policies.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_RAWTEXTFRAGMENT() |
Getter for RAWTEXTFRAGMENT, with configurable default |
ASK_RAWTEXTFRAGMENT() |
Getter for RAWTEXTFRAGMENT w/ exceptions if field has no val |
HAS_RAWTEXTFRAGMENT() |
Determine if RAWTEXTFRAGMENT has a value |
findings¶
Analysis findings and insights related to this specific generated policy asset. These findings may include validation results, potential issues, or recommendations for improvement to help users evaluate the quality and appropriateness of the generated policy.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_FINDINGS() |
Getter for FINDINGS, with configurable default |
ASK_FINDINGS() |
Getter for FINDINGS w/ exceptions if field has no value |
HAS_FINDINGS() |
Determine if FINDINGS has a value |
Public Local Types In This Class¶
Internal table types, representing arrays and maps of this class, are defined as local types:
TT_POLICYGENERATIONASSETS¶
TYPES TT_POLICYGENERATIONASSETS TYPE STANDARD TABLE OF REF TO /AWS1/CL_BDOPOLICYGENERASSET WITH DEFAULT KEY
.