class PolicyEngineMode
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.PolicyEngineMode |
Go | github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2#PolicyEngineMode |
Java | software.amazon.awscdk.services.bedrock.agentcore.alpha.PolicyEngineMode |
Python | aws_cdk.aws_bedrock_agentcore_alpha.PolicyEngineMode |
TypeScript (source) | @aws-cdk/aws-bedrock-agentcore-alpha ยป PolicyEngineMode |
The enforcement mode for a policy engine associated with a gateway.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_agentcore_alpha from '@aws-cdk/aws-bedrock-agentcore-alpha';
const policyEngineMode = new bedrock_agentcore_alpha.PolicyEngineMode('value');
Initializer
new PolicyEngineMode(value: string)
Parameters
- value
string
Properties
| Name | Type | Description |
|---|---|---|
| value | string | The string value of the policy engine mode. |
| static ENFORCE | Policy | Enforces decisions by allowing or denying agent operations based on Cedar policies. |
| static LOG_ONLY | Policy | Evaluates actions and adds traces but does not enforce decisions. |
value
Type:
string
The string value of the policy engine mode.
static ENFORCE
Type:
Policy
Enforces decisions by allowing or denying agent operations based on Cedar policies.
static LOG_ONLY
Type:
Policy
Evaluates actions and adds traces but does not enforce decisions.
Use this mode for testing and validation before enabling enforcement.

.NET
Go
Java
Python
TypeScript (