Skip to content

Commit

Permalink
fix(guardrail): replace mask for anonymize (#707)
Browse files Browse the repository at this point in the history
* fix(guardrail): replace mask for anonymize

---------

Co-authored-by: Joaquin Rinaudo <[email protected]>
Co-authored-by: Alain Krok <[email protected]>
  • Loading branch information
3 people authored Sep 23, 2024
1 parent 258a475 commit 589af05
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

## Enumeration Members

### BLOCK
### ANONYMIZE

> **BLOCK**: `"BLOCK"`
> **ANONYMIZE**: `"ANONYMIZE"`
***

### MASK
### BLOCK

> **MASK**: `"MASK"`
> **BLOCK**: `"BLOCK"`
2 changes: 1 addition & 1 deletion apidocs/namespaces/bedrock/interfaces/GuardrailProps.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ The name of the guardrail.

> `readonly` `optional` **piiConfig**: [`SensitiveInformationPolicyConfigProps`](SensitiveInformationPolicyConfigProps.md)[]
PII fields which needs to be masked.
PII fields which needs to be anonymized.

***

Expand Down
2 changes: 1 addition & 1 deletion src/cdk-lib/bedrock/guardrails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface GuardrailProps {
readonly contextualGroundingfiltersConfig?: ContextualGroundingPolicyConfigProps[];

/**
* PII fields which needs to be masked.
* PII fields which needs to be anonymized.
*/
readonly piiConfig?: SensitiveInformationPolicyConfigProps[];

Expand Down
2 changes: 1 addition & 1 deletion src/cdk-lib/bedrock/pii-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export enum UKSpecific{

export enum PiiEntitiesConfigAction{
BLOCK ='BLOCK',
MASK= 'MASK'
ANONYMIZE= 'ANONYMIZE'
}

export interface SensitiveInformationPolicyConfigProps{
Expand Down

0 comments on commit 589af05

Please sign in to comment.