class FinancePIIType
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Bedrock.Alpha.FinancePIIType |
![]() | github.com/aws/aws-cdk-go/awsbedrockalpha/v2#FinancePIIType |
![]() | software.amazon.awscdk.services.bedrock.alpha.FinancePIIType |
![]() | aws_cdk.aws_bedrock_alpha.FinancePIIType |
![]() | @aws-cdk/aws-bedrock-alpha ยป FinancePIIType |
Extends
PIIType
Types of PII in the domain of Finance.
Example
const guardrail = new bedrock.Guardrail(this, 'bedrockGuardrails', {
guardrailName: 'my-BedrockGuardrails',
});
// Add PII filter for addresses with input/output actions
guardrail.addPIIFilter({
type: bedrock.GeneralPIIType.ADDRESS,
action: bedrock.GuardrailAction.BLOCK,
// below props are optional
inputAction: bedrock.GuardrailAction.BLOCK,
inputEnabled: true,
outputAction: bedrock.GuardrailAction.ANONYMIZE,
outputEnabled: true,
});
// Add PII filter for credit card numbers with input/output actions
guardrail.addPIIFilter({
type: bedrock.FinancePIIType.CREDIT_DEBIT_CARD_NUMBER,
action: bedrock.GuardrailAction.BLOCK,
// below props are optional
inputAction: bedrock.GuardrailAction.BLOCK,
inputEnabled: true,
outputAction: bedrock.GuardrailAction.ANONYMIZE,
outputEnabled: true,
});
// Add PII filter for email addresses
guardrail.addPIIFilter({
type: bedrock.GeneralPIIType.EMAIL,
action: bedrock.GuardrailAction.ANONYMIZE,
});
// Add PII filter for US Social Security Numbers
guardrail.addPIIFilter({
type: bedrock.USASpecificPIIType.US_SOCIAL_SECURITY_NUMBER,
action: bedrock.GuardrailAction.BLOCK,
});
// Add PII filter for IP addresses
guardrail.addPIIFilter({
type: bedrock.InformationTechnologyPIIType.IP_ADDRESS,
action: bedrock.GuardrailAction.ANONYMIZE,
});
Properties
Name | Type | Description |
---|---|---|
value | string | The string value of the PII type. |
static CREDIT_DEBIT_CARD_CVV | Finance | A three-digit card verification code (CVV) that is present on VISA, MasterCard, and Discover credit and debit cards. |
static CREDIT_DEBIT_CARD_EXPIRY | Finance | The expiration date for a credit or debit card. |
static CREDIT_DEBIT_CARD_NUMBER | Finance | The number for a credit or debit card. |
static INTERNATIONAL_BANK_ACCOUNT_NUMBER | Finance | An International Bank Account Number (IBAN). |
static PIN | Finance | A four-digit personal identification number (PIN) with which you can access your bank account. |
static SWIFT_CODE | Finance | A SWIFT code is a standard format of Bank Identifier Code (BIC) used to specify a particular bank or branch. |
value
Type:
string
The string value of the PII type.
static CREDIT_DEBIT_CARD_CVV
Type:
Finance
A three-digit card verification code (CVV) that is present on VISA, MasterCard, and Discover credit and debit cards.
For American Express credit or debit cards, the CVV is a four-digit numeric code.
static CREDIT_DEBIT_CARD_EXPIRY
Type:
Finance
The expiration date for a credit or debit card.
This number is usually four digits long and is often formatted as month/year or MM/YY. Guardrails recognizes expiration dates such as 01/21, 01/2021, and Jan 2021.
static CREDIT_DEBIT_CARD_NUMBER
Type:
Finance
The number for a credit or debit card.
These numbers can vary from 13 to 16 digits in length.
static INTERNATIONAL_BANK_ACCOUNT_NUMBER
Type:
Finance
An International Bank Account Number (IBAN).
It has specific formats in each country.
static PIN
Type:
Finance
A four-digit personal identification number (PIN) with which you can access your bank account.
static SWIFT_CODE
Type:
Finance
A SWIFT code is a standard format of Bank Identifier Code (BIC) used to specify a particular bank or branch.
Banks use these codes for money transfers such as international wire transfers. SWIFT codes consist of eight or 11 characters.
Methods
Name | Description |
---|---|
to | Returns the string representation of the PII type. |
toString()
public toString(): string
Returns
string
Returns the string representation of the PII type.