PIIEntitiesConfigurationProperty Struct
Configuration for detecting and redacting Personally Identifiable Information (PII) entities.
Specify which PII entity types to detect and the redaction mask mode. If not provided, defaults to ALL entity types with ENTITY_TYPE redaction mask mode.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const pIIEntitiesConfigurationProperty: bedrock.CfnDataAutomationProject.PIIEntitiesConfigurationProperty = {
piiEntityTypes: ['piiEntityTypes'],
redactionMaskMode: 'redactionMaskMode',
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrock as bedrock
p_ii_entities_configuration_property = bedrock.CfnDataAutomationProject.PIIEntitiesConfigurationProperty(
pii_entity_types=["piiEntityTypes"],
redaction_mask_mode="redactionMaskMode"
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.*;
PIIEntitiesConfigurationProperty pIIEntitiesConfigurationProperty = PIIEntitiesConfigurationProperty.builder()
.piiEntityTypes(List.of("piiEntityTypes"))
.redactionMaskMode("redactionMaskMode")
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock;
var pIIEntitiesConfigurationProperty = new PIIEntitiesConfigurationProperty {
PiiEntityTypes = new [] { "piiEntityTypes" },
RedactionMaskMode = "redactionMaskMode"
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
pIIEntitiesConfigurationProperty := &PIIEntitiesConfigurationProperty{
PiiEntityTypes: []*string{
jsii.String("piiEntityTypes"),
},
RedactionMaskMode: jsii.String("redactionMaskMode"),
}
Properties
piiEntityTypesoptionalstring[]pii_entity_typesoptionaltyping.List[str]piiEntityTypesoptionalList<String>PiiEntityTypesoptionalstring[]PiiEntityTypesoptional*[]*string#Choose from specific entity types (such as ADDRESS, NAME, EMAIL, PHONE, US_SOCIAL_SECURITY_NUMBER) or specify ALL to detect all supported PII types. If not specified, defaults to ALL.
redactionMaskModeoptionalstringredaction_mask_modeoptionalstrredactionMaskModeoptionalStringRedactionMaskModeoptionalstringRedactionMaskModeoptional*string#notes
Set to PII to replace all detected entities with a generic [PII] marker regardless of entity type. Set to ENTITY_TYPE to replace each detected entity with its specific type marker (for example, [NAME], [EMAIL], [ADDRESS]). This setting only applies when detectionMode is set to DETECTION_AND_REDACTION. If not specified, defaults to ENTITY_TYPE.