FinancePIIType

class aws_cdk.aws_bedrock_alpha.FinancePIIType(value)

Bases: PIIType

(experimental) Types of PII in the domain of Finance.

Stability:

experimental

ExampleMetadata:

fixture=default infused

Example:

guardrail = bedrock.Guardrail(self, "bedrockGuardrails",
    guardrail_name="my-BedrockGuardrails"
)

# Add PII filter for addresses with input/output actions
guardrail.add_pIIFilter(
    type=bedrock.GeneralPIIType.ADDRESS,
    action=bedrock.GuardrailAction.BLOCK,
    # below props are optional
    input_action=bedrock.GuardrailAction.BLOCK,
    input_enabled=True,
    output_action=bedrock.GuardrailAction.ANONYMIZE,
    output_enabled=True
)

# Add PII filter for credit card numbers with input/output actions
guardrail.add_pIIFilter(
    type=bedrock.FinancePIIType.CREDIT_DEBIT_CARD_NUMBER,
    action=bedrock.GuardrailAction.BLOCK,
    # below props are optional
    input_action=bedrock.GuardrailAction.BLOCK,
    input_enabled=True,
    output_action=bedrock.GuardrailAction.ANONYMIZE,
    output_enabled=True
)

# Add PII filter for email addresses
guardrail.add_pIIFilter(
    type=bedrock.GeneralPIIType.EMAIL,
    action=bedrock.GuardrailAction.ANONYMIZE
)

# Add PII filter for US Social Security Numbers
guardrail.add_pIIFilter(
    type=bedrock.USASpecificPIIType.US_SOCIAL_SECURITY_NUMBER,
    action=bedrock.GuardrailAction.BLOCK
)

# Add PII filter for IP addresses
guardrail.add_pIIFilter(
    type=bedrock.InformationTechnologyPIIType.IP_ADDRESS,
    action=bedrock.GuardrailAction.ANONYMIZE
)

(experimental) The string value of the PII type.

Parameters:

value (str)

Stability:

experimental

Methods

to_string()

(experimental) Returns the string representation of the PII type.

Return type:

str

Returns:

The string value of the PII type.

Stability:

experimental

Attributes

CREDIT_DEBIT_CARD_CVV = <aws_cdk.aws_bedrock_alpha.FinancePIIType object>
CREDIT_DEBIT_CARD_EXPIRY = <aws_cdk.aws_bedrock_alpha.FinancePIIType object>
CREDIT_DEBIT_CARD_NUMBER = <aws_cdk.aws_bedrock_alpha.FinancePIIType object>
INTERNATIONAL_BANK_ACCOUNT_NUMBER = <aws_cdk.aws_bedrock_alpha.FinancePIIType object>
PIN = <aws_cdk.aws_bedrock_alpha.FinancePIIType object>
SWIFT_CODE = <aws_cdk.aws_bedrock_alpha.FinancePIIType object>
value

(experimental) The string value of the PII type.

Stability:

experimental