Class AccessConrtolLambdaProps.Builder
- java.lang.Object
-
- io.github.hsiehshujeng.cdk.comprehend.s3olap.AccessConrtolLambdaProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AccessConrtolLambdaProps>
- Enclosing interface:
- AccessConrtolLambdaProps
@Stability(Stable) public static final class AccessConrtolLambdaProps.Builder extends Object implements software.amazon.jsii.Builder<AccessConrtolLambdaProps>
A builder forAccessConrtolLambdaProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
confidenceThreshold
@Stability(Stable) public AccessConrtolLambdaProps.Builder confidenceThreshold(String confidenceThreshold)
Sets the value ofAccessConrtolLambdaProps.getConfidenceThreshold()- Parameters:
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).- Returns:
this
-
containsPiiEntitiesThreadCount
@Stability(Stable) public AccessConrtolLambdaProps.Builder containsPiiEntitiesThreadCount(String containsPiiEntitiesThreadCount)
Sets the value ofAccessConrtolLambdaProps.getContainsPiiEntitiesThreadCount()- Parameters:
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.- Returns:
this
-
defaultLanguageCode
@Stability(Stable) public AccessConrtolLambdaProps.Builder defaultLanguageCode(String defaultLanguageCode)
Sets the value ofAccessConrtolLambdaProps.getDefaultLanguageCode()- Parameters:
defaultLanguageCode- Default language of the text to be processed. This code will be used for interacting with Comprehend.- Returns:
this
-
documentMaxSize
@Stability(Stable) public AccessConrtolLambdaProps.Builder documentMaxSize(String documentMaxSize)
Sets the value ofAccessConrtolLambdaProps.getDocumentMaxSize()- Parameters:
documentMaxSize- Default maximum document size (in bytes) that this function can process otherwise will throw exception for too large document size.- Returns:
this
-
documentMaxSizeContainsPiiEntities
@Stability(Stable) public AccessConrtolLambdaProps.Builder documentMaxSizeContainsPiiEntities(String documentMaxSizeContainsPiiEntities)
Sets the value ofAccessConrtolLambdaProps.getDocumentMaxSizeContainsPiiEntities()- Parameters:
documentMaxSizeContainsPiiEntities- Maximum document size (in bytes) to be used for making calls to Comprehend's ContainsPiiEntities API.- Returns:
this
-
isPartialObjectSupported
@Stability(Stable) public AccessConrtolLambdaProps.Builder isPartialObjectSupported(String isPartialObjectSupported)
Sets the value ofAccessConrtolLambdaProps.getIsPartialObjectSupported()- Parameters:
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.- Returns:
this
-
logLevel
@Stability(Stable) public AccessConrtolLambdaProps.Builder logLevel(String logLevel)
Sets the value ofAccessConrtolLambdaProps.getLogLevel()- Parameters:
logLevel- Log level for Lambda function logging, e.g., ERROR, INFO, DEBUG, etc.- Returns:
this
-
maxCharsOverlap
@Stability(Stable) public AccessConrtolLambdaProps.Builder maxCharsOverlap(String maxCharsOverlap)
Sets the value ofAccessConrtolLambdaProps.getMaxCharsOverlap()- Parameters:
maxCharsOverlap- Maximum characters to overlap among segments of a document in case chunking is needed because of maximum document size limit.- Returns:
this
-
piiEntityTypes
@Stability(Stable) public AccessConrtolLambdaProps.Builder piiEntityTypes(String piiEntityTypes)
Sets the value ofAccessConrtolLambdaProps.getPiiEntityTypes()- Parameters:
piiEntityTypes- List of comma separated PII entity types to be considered for access control. Refer Comprehend's documentation page for list of supported PII entity types.- Returns:
this
-
publishCloudWatchMetrics
@Stability(Stable) public AccessConrtolLambdaProps.Builder publishCloudWatchMetrics(String publishCloudWatchMetrics)
Sets the value ofAccessConrtolLambdaProps.getPublishCloudWatchMetrics()- Parameters:
publishCloudWatchMetrics- True if publish metrics to Cloudwatch, false otherwise. See README.md for details on CloudWatch metrics.- Returns:
this
-
semanticVersion
@Stability(Stable) public AccessConrtolLambdaProps.Builder semanticVersion(String semanticVersion)
Sets the value ofAccessConrtolLambdaProps.getSemanticVersion()- Parameters:
semanticVersion- The version of the serverless application.- Returns:
this
-
subsegmentOverlappingTokens
@Stability(Stable) public AccessConrtolLambdaProps.Builder subsegmentOverlappingTokens(String subsegmentOverlappingTokens)
Sets the value ofAccessConrtolLambdaProps.getSubsegmentOverlappingTokens()- Parameters:
subsegmentOverlappingTokens- Number of tokens/words to overlap among segments of a document in case chunking is needed because of maximum document size limit.- Returns:
this
-
unsupportedFileHandling
@Stability(Stable) public AccessConrtolLambdaProps.Builder unsupportedFileHandling(String unsupportedFileHandling)
Sets the value ofAccessConrtolLambdaProps.getUnsupportedFileHandling()- Parameters:
unsupportedFileHandling- Handling logic for Unsupported files. Valid values are PASS and FAIL.- Returns:
this
-
build
@Stability(Stable) public AccessConrtolLambdaProps build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AccessConrtolLambdaProps>- Returns:
- a new instance of
AccessConrtolLambdaProps - Throws:
NullPointerException- if any required attribute was not provided
-
-