class CfnAutomatedReasoningPolicyPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Bedrock.Mixins.CfnAutomatedReasoningPolicyPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsbedrock/mixins#CfnAutomatedReasoningPolicyPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.bedrock.mixins.CfnAutomatedReasoningPolicyPropsMixin |
Python | aws_cdk.mixins_preview.aws_bedrock.mixins.CfnAutomatedReasoningPolicyPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_bedrock » mixins » CfnAutomatedReasoningPolicyPropsMixin |
Implements
IMixin
Extends
Mixin
Creates an Automated Reasoning policy for Amazon Bedrock Guardrails.
Automated Reasoning policies use mathematical techniques to detect hallucinations, suggest corrections, and highlight unstated assumptions in the responses of your GenAI application.
To create a policy, you upload a source document that describes the rules that you're encoding. Automated Reasoning extracts important concepts from the source document that will become variables in the policy and infers policy rules.
To learn more about creating Automated Reasoning policies, see Minimize AI hallucinations and deliver up to 99% verification accuracy with Automated Reasoning checks: Now available in the AWS News Blog .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as bedrock_mixins } from '@aws-cdk/mixins-preview/aws-bedrock';
const cfnAutomatedReasoningPolicyPropsMixin = new bedrock_mixins.CfnAutomatedReasoningPolicyPropsMixin({
description: 'description',
forceDelete: false,
kmsKeyId: 'kmsKeyId',
name: 'name',
policyDefinition: {
rules: [{
alternateExpression: 'alternateExpression',
expression: 'expression',
id: 'id',
}],
types: [{
description: 'description',
name: 'name',
values: [{
description: 'description',
value: 'value',
}],
}],
variables: [{
description: 'description',
name: 'name',
type: 'type',
}],
version: 'version',
},
tags: [{
key: 'key',
value: 'value',
}],
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnAutomatedReasoningPolicyPropsMixin(props: CfnAutomatedReasoningPolicyMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Automated Reasoning Policy Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::Bedrock::AutomatedReasoningPolicy.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript