class InformationTechnologyPIIType
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Bedrock.Alpha.InformationTechnologyPIIType |
![]() | github.com/aws/aws-cdk-go/awsbedrockalpha/v2#InformationTechnologyPIIType |
![]() | software.amazon.awscdk.services.bedrock.alpha.InformationTechnologyPIIType |
![]() | aws_cdk.aws_bedrock_alpha.InformationTechnologyPIIType |
![]() | @aws-cdk/aws-bedrock-alpha ยป InformationTechnologyPIIType |
Extends
PIIType
Types of PII in the domain of IT (Information Technology).
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 AWS_ACCESS_KEY | Information | A unique identifier that's associated with a secret access key. |
static AWS_SECRET_KEY | Information | A unique identifier that's associated with a secret access key. |
static IP_ADDRESS | Information | An IPv4 address, such as 198.51.100.0. |
static MAC_ADDRESS | Information | A media access control (MAC) address assigned to a network interface. |
static URL | Information | A web address, such as www.example.com. |
value
Type:
string
The string value of the PII type.
static AWS_ACCESS_KEY
Type:
Information
A unique identifier that's associated with a secret access key.
You use the access key ID and secret access key to sign programmatic AWS requests cryptographically.
static AWS_SECRET_KEY
Type:
Information
A unique identifier that's associated with a secret access key.
You use the access key ID and secret access key to sign programmatic AWS requests cryptographically.
static IP_ADDRESS
Type:
Information
An IPv4 address, such as 198.51.100.0.
static MAC_ADDRESS
Type:
Information
A media access control (MAC) address assigned to a network interface.
static URL
Type:
Information
A web address, such as www.example.com.
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.