Class GeneralPIIType
(experimental) Types of PII that are general, and not domain-specific.
Namespace: Amazon.CDK.AWS.Bedrock.Alpha
Assembly: Amazon.CDK.AWS.Bedrock.Alpha.dll
Syntax (csharp)
public class GeneralPIIType : PIIType
Syntax (vb)
Public Class GeneralPIIType Inherits PIIType
Remarks
Stability: Experimental
ExampleMetadata: fixture=default infused
Examples
var guardrail = new Guardrail(this, "bedrockGuardrails", new GuardrailProps {
GuardrailName = "my-BedrockGuardrails"
});
// Add PII filter for addresses with input/output actions
guardrail.AddPIIFilter(new PIIFilter {
Type = GeneralPIIType.ADDRESS,
Action = GuardrailAction.BLOCK,
// below props are optional
InputAction = GuardrailAction.BLOCK,
InputEnabled = true,
OutputAction = GuardrailAction.ANONYMIZE,
OutputEnabled = true
});
// Add PII filter for credit card numbers with input/output actions
guardrail.AddPIIFilter(new PIIFilter {
Type = FinancePIIType.CREDIT_DEBIT_CARD_NUMBER,
Action = GuardrailAction.BLOCK,
// below props are optional
InputAction = GuardrailAction.BLOCK,
InputEnabled = true,
OutputAction = GuardrailAction.ANONYMIZE,
OutputEnabled = true
});
// Add PII filter for email addresses
guardrail.AddPIIFilter(new PIIFilter {
Type = GeneralPIIType.EMAIL,
Action = GuardrailAction.ANONYMIZE
});
// Add PII filter for US Social Security Numbers
guardrail.AddPIIFilter(new PIIFilter {
Type = USASpecificPIIType.US_SOCIAL_SECURITY_NUMBER,
Action = GuardrailAction.BLOCK
});
// Add PII filter for IP addresses
guardrail.AddPIIFilter(new PIIFilter {
Type = InformationTechnologyPIIType.IP_ADDRESS,
Action = GuardrailAction.ANONYMIZE
});
Synopsis
Properties
ADDRESS | (experimental) A physical address, such as "100 Main Street, Anytown, USA" or "Suite #12, Building 123". |
AGE | (experimental) An individual's age, including the quantity and unit of time. |
DRIVER_ID | (experimental) The number assigned to a driver's license, which is an official document permitting an individual to operate one or more motorized vehicles on a public road. |
(experimental) An email address, such as marymajor@email.com. |
|
LICENSE_PLATE | (experimental) A license plate for a vehicle is issued by the state or country where the vehicle is registered. |
NAME | (experimental) An individual's name. |
PASSWORD | (experimental) An alphanumeric string that is used as a password, such as "very20special#pass". |
PHONE | (experimental) A phone number. |
USERNAME | (experimental) A user name that identifies an account, such as a login name, screen name, nick name, or handle. |
VEHICLE_IDENTIFICATION_NUMBER | (experimental) A Vehicle Identification Number (VIN) uniquely identifies a vehicle. |
Properties
ADDRESS
(experimental) A physical address, such as "100 Main Street, Anytown, USA" or "Suite #12, Building 123".
public static GeneralPIIType ADDRESS { get; }
Property Value
Remarks
An address can include information such as the street, building, location, city, state, country, county, zip code, precinct, and neighborhood.
Stability: Experimental
AGE
(experimental) An individual's age, including the quantity and unit of time.
public static GeneralPIIType AGE { get; }
Property Value
Remarks
Stability: Experimental
DRIVER_ID
(experimental) The number assigned to a driver's license, which is an official document permitting an individual to operate one or more motorized vehicles on a public road.
public static GeneralPIIType DRIVER_ID { get; }
Property Value
Remarks
A driver's license number consists of alphanumeric characters.
Stability: Experimental
(experimental) An email address, such as marymajor@email.com.
public static GeneralPIIType EMAIL { get; }
Property Value
Remarks
Stability: Experimental
LICENSE_PLATE
(experimental) A license plate for a vehicle is issued by the state or country where the vehicle is registered.
public static GeneralPIIType LICENSE_PLATE { get; }
Property Value
Remarks
The format for passenger vehicles is typically five to eight digits, consisting of upper-case letters and numbers. The format varies depending on the location of the issuing state or country.
Stability: Experimental
NAME
(experimental) An individual's name.
public static GeneralPIIType NAME { get; }
Property Value
Remarks
This entity type does not include titles, such as Dr., Mr., Mrs., or Miss.
Stability: Experimental
PASSWORD
(experimental) An alphanumeric string that is used as a password, such as "very20special#pass".
public static GeneralPIIType PASSWORD { get; }
Property Value
Remarks
Stability: Experimental
PHONE
(experimental) A phone number.
public static GeneralPIIType PHONE { get; }
Property Value
Remarks
This entity type also includes fax and pager numbers.
Stability: Experimental
USERNAME
(experimental) A user name that identifies an account, such as a login name, screen name, nick name, or handle.
public static GeneralPIIType USERNAME { get; }
Property Value
Remarks
Stability: Experimental
VEHICLE_IDENTIFICATION_NUMBER
(experimental) A Vehicle Identification Number (VIN) uniquely identifies a vehicle.
public static GeneralPIIType VEHICLE_IDENTIFICATION_NUMBER { get; }
Property Value
Remarks
VIN content and format are defined in the ISO 3779 specification. Each country has specific codes and formats for VINs.
Stability: Experimental