@Stability(value=Stable) public static final class RedactionLambdaProps.Builder extends Object implements software.amazon.jsii.Builder<RedactionLambdaProps>
RedactionLambdaProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public RedactionLambdaProps.Builder confidenceThreshold(String confidenceThreshold)
RedactionLambdaProps.getConfidenceThreshold()confidenceThreshold - The minimum prediction confidence score above which PII classification and detection would be considered as final answer.
Valid range (0.5 to 1.0).this@Stability(value=Stable) public RedactionLambdaProps.Builder containsPiiEntitiesThreadCount(String containsPiiEntitiesThreadCount)
RedactionLambdaProps.getContainsPiiEntitiesThreadCount()containsPiiEntitiesThreadCount - Number of threads to use for calling Comprehend's ContainsPiiEntities API.
This controls the number of simultaneous calls that will be made from this Lambda.this@Stability(value=Stable) public RedactionLambdaProps.Builder defaultLanguageCode(String defaultLanguageCode)
RedactionLambdaProps.getDefaultLanguageCode()defaultLanguageCode - Default language of the text to be processed.
This code will be used for interacting with Comprehend.this@Stability(value=Stable) public RedactionLambdaProps.Builder detectPiiEntitiesThreadCount(String detectPiiEntitiesThreadCount)
RedactionLambdaProps.getDetectPiiEntitiesThreadCount()detectPiiEntitiesThreadCount - Number of threads to use for calling Comprehend's DetectPiiEntities API.
This controls the number of simultaneous calls that will be made from this Lambda.this@Stability(value=Stable) public RedactionLambdaProps.Builder documentMaxSize(String documentMaxSize)
RedactionLambdaProps.getDocumentMaxSize()documentMaxSize - Default maximum document size (in bytes) that this function can process otherwise will throw exception for too large document size.this@Stability(value=Stable) public RedactionLambdaProps.Builder documentMaxSizeContainsPiiEntities(String documentMaxSizeContainsPiiEntities)
RedactionLambdaProps.getDocumentMaxSizeContainsPiiEntities()documentMaxSizeContainsPiiEntities - Maximum document size (in bytes) to be used for making calls to Comprehend's ContainsPiiEntities API.this@Stability(value=Stable) public RedactionLambdaProps.Builder documentMaxSizeDetectPiiEntities(String documentMaxSizeDetectPiiEntities)
RedactionLambdaProps.getDocumentMaxSizeDetectPiiEntities()documentMaxSizeDetectPiiEntities - Maximum document size (in bytes) to be used for making calls to Comprehend's DetectPiiEntities API.this@Stability(value=Stable) public RedactionLambdaProps.Builder isPartialObjectSupported(String isPartialObjectSupported)
RedactionLambdaProps.getIsPartialObjectSupported()isPartialObjectSupported - Whether to support partial objects or not.
Accessing partial object through http headers such byte-range can corrupt the object and/or affect PII detection accuracy.this@Stability(value=Stable) public RedactionLambdaProps.Builder logLevel(String logLevel)
RedactionLambdaProps.getLogLevel()logLevel - Log level for Lambda function logging, e.g., ERROR, INFO, DEBUG, etc.this@Stability(value=Stable) public RedactionLambdaProps.Builder maskCharacter(String maskCharacter)
RedactionLambdaProps.getMaskCharacter()maskCharacter - A character that replaces each character in the redacted PII entity.this@Stability(value=Stable) public RedactionLambdaProps.Builder maskMode(String maskMode)
RedactionLambdaProps.getMaskMode()maskMode - Specifies whether the PII entity is redacted with the mask character or the entity type.
Valid values - REPLACE_WITH_PII_ENTITY_TYPE and MASK.this@Stability(value=Stable) public RedactionLambdaProps.Builder maxCharsOverlap(String maxCharsOverlap)
RedactionLambdaProps.getMaxCharsOverlap()maxCharsOverlap - Maximum characters to overlap among segments of a document in case chunking is needed because of maximum document size limit.this@Stability(value=Stable) public RedactionLambdaProps.Builder piiEntityTypes(String piiEntityTypes)
RedactionLambdaProps.getPiiEntityTypes()piiEntityTypes - List of comma separated PII entity types to be considered for redaction.
Refer Comprehend's documentation page for list of supported PII entity types.this@Stability(value=Stable) public RedactionLambdaProps.Builder publishCloudWatchMetrics(String publishCloudWatchMetrics)
RedactionLambdaProps.getPublishCloudWatchMetrics()publishCloudWatchMetrics - True if publish metrics to Cloudwatch, false otherwise.
See README.md for details on CloudWatch metrics.this@Stability(value=Stable) public RedactionLambdaProps.Builder semanticVersion(String semanticVersion)
RedactionLambdaProps.getSemanticVersion()semanticVersion - The version of the serverless application.this@Stability(value=Stable) public RedactionLambdaProps.Builder subsegmentOverlappingTokens(String subsegmentOverlappingTokens)
RedactionLambdaProps.getSubsegmentOverlappingTokens()subsegmentOverlappingTokens - Number of tokens/words to overlap among segments of a document in case chunking is needed because of maximum document size limit.this@Stability(value=Stable) public RedactionLambdaProps.Builder unsupportedFileHandling(String unsupportedFileHandling)
RedactionLambdaProps.getUnsupportedFileHandling()unsupportedFileHandling - Handling logic for Unsupported files.
Valid values are PASS and FAIL.this@Stability(value=Stable) public RedactionLambdaProps build()
build in interface software.amazon.jsii.Builder<RedactionLambdaProps>RedactionLambdaPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.