Skip to content

Commit

Permalink
fix(guardrails): typo input messaging (#705)
Browse files Browse the repository at this point in the history
* fix(guardrails): typo input messaging

---------

Co-authored-by: krokoko <alkrok@amazon.com>
  • Loading branch information
rinaudjaws and krokoko authored Sep 23, 2024
1 parent d60a3c2 commit 258a475
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cdk-lib/bedrock/guardrails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class Guardrail extends Construct {
enableKeyRotation: true,
}).keyArn;

const defaultBlockedInputMessaging = 'Sorry, your query voilates our usage policy.';
const defaultBlockedInputMessaging = 'Sorry, your query violates our usage policy.';
const defaultBlockedOutputsMessaging = 'Sorry, I am unable to answer your question because of our usage policy.';

this.guardrailInstance = new bedrock.CfnGuardrail(this, 'MyGuardrail', {
Expand Down
2 changes: 1 addition & 1 deletion test/cdk-lib/bedrock/guardrails.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('Guardrail', () => {
cdkExpect(stack).to(
haveResource('AWS::Bedrock::Guardrail', {
Name: 'my-guardrail',
BlockedInputMessaging: 'Sorry, your query voilates our usage policy.',
BlockedInputMessaging: 'Sorry, your query violates our usage policy.',
BlockedOutputsMessaging: 'Sorry, I am unable to answer your question because of our usage policy.',
}),
);
Expand Down

0 comments on commit 258a475

Please sign in to comment.