interface CfnPolicyProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.BedrockAgentCore.CfnPolicyProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrockagentcore#CfnPolicyProps |
Java | software.amazon.awscdk.services.bedrockagentcore.CfnPolicyProps |
Python | aws_cdk.aws_bedrockagentcore.CfnPolicyProps |
TypeScript | aws-cdk-lib » aws_bedrockagentcore » CfnPolicyProps |
Properties for defining a CfnPolicy.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const cfnPolicyProps: bedrockagentcore.CfnPolicyProps = {
definition: {
cedar: {
statement: 'statement',
},
},
name: 'name',
policyEngineId: 'policyEngineId',
// the properties below are optional
description: 'description',
validationMode: 'validationMode',
};
Properties
| Name | Type | Description |
|---|---|---|
| definition | IResolvable | Policy | The definition structure for policies. |
| name | string | The customer-assigned immutable name for the policy. |
| policy | string | The identifier of the policy engine which contains this policy. |
| description? | string | A human-readable description of the policy's purpose and functionality. |
| validation | string | The validation mode for the policy. |
definition
Type:
IResolvable | Policy
The definition structure for policies.
Encapsulates different policy formats.
name
Type:
string
The customer-assigned immutable name for the policy.
Must be unique within the policy engine.
policyEngineId
Type:
string
The identifier of the policy engine which contains this policy.
description?
Type:
string
(optional)
A human-readable description of the policy's purpose and functionality.
validationMode?
Type:
string
(optional)
The validation mode for the policy.
Determines how Cedar analyzer validation results are handled.

.NET
Go
Java
Python
TypeScript