Class CfnCustomDataIdentifier.Builder

java.lang.Object
software.amazon.awscdk.services.macie.CfnCustomDataIdentifier.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCustomDataIdentifier>
Enclosing class:
CfnCustomDataIdentifier

@Stability(Stable) public static final class CfnCustomDataIdentifier.Builder extends Object implements software.amazon.jsii.Builder<CfnCustomDataIdentifier>
A fluent builder for CfnCustomDataIdentifier.
  • Method Details

    • create

      @Stability(Stable) public static CfnCustomDataIdentifier.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnCustomDataIdentifier.Builder.
    • name

      @Stability(Stable) public CfnCustomDataIdentifier.Builder name(String name)
      A custom name for the custom data identifier. The name can contain 1-128 characters.

      Avoid including sensitive data in the name of a custom data identifier. Users of the account might be able to see the name, depending on the actions that they're allowed to perform in Amazon Macie .

      Parameters:
      name - A custom name for the custom data identifier. The name can contain 1-128 characters. This parameter is required.
      Returns:
      this
    • regex

      @Stability(Stable) public CfnCustomDataIdentifier.Builder regex(String regex)
      The regular expression ( regex ) that defines the text pattern to match.

      The expression can contain 1-512 characters.

      Parameters:
      regex - The regular expression ( regex ) that defines the text pattern to match. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnCustomDataIdentifier.Builder description(String description)
      A custom description of the custom data identifier. The description can contain 1-512 characters.

      Avoid including sensitive data in the description. Users of the account might be able to see the description, depending on the actions that they're allowed to perform in Amazon Macie .

      Parameters:
      description - A custom description of the custom data identifier. The description can contain 1-512 characters. This parameter is required.
      Returns:
      this
    • ignoreWords

      @Stability(Stable) public CfnCustomDataIdentifier.Builder ignoreWords(List<String> ignoreWords)
      An array of character sequences ( ignore words ) to exclude from the results.

      If text matches the regular expression ( Regex ) but it contains a string in this array, Amazon Macie ignores the text and doesn't include it in the results.

      The array can contain 1-10 ignore words. Each ignore word can contain 4-90 UTF-8 characters. Ignore words are case sensitive.

      Parameters:
      ignoreWords - An array of character sequences ( ignore words ) to exclude from the results. This parameter is required.
      Returns:
      this
    • keywords

      @Stability(Stable) public CfnCustomDataIdentifier.Builder keywords(List<String> keywords)
      An array of character sequences ( keywords ), one of which must precede and be in proximity ( MaximumMatchDistance ) of the regular expression ( Regex ) to match.

      The array can contain 1-50 keywords. Each keyword can contain 3-90 UTF-8 characters. Keywords aren't case sensitive.

      Parameters:
      keywords - An array of character sequences ( keywords ), one of which must precede and be in proximity ( MaximumMatchDistance ) of the regular expression ( Regex ) to match. This parameter is required.
      Returns:
      this
    • maximumMatchDistance

      @Stability(Stable) public CfnCustomDataIdentifier.Builder maximumMatchDistance(Number maximumMatchDistance)
      The maximum number of characters that can exist between the end of at least one complete character sequence specified by the Keywords array and the end of text that matches the regular expression ( Regex ).

      If a complete keyword precedes all the text that matches the regular expression and the keyword is within the specified distance, Amazon Macie includes the result.

      The distance can be 1-300 characters. The default value is 50.

      Parameters:
      maximumMatchDistance - The maximum number of characters that can exist between the end of at least one complete character sequence specified by the Keywords array and the end of text that matches the regular expression ( Regex ). This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnCustomDataIdentifier build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnCustomDataIdentifier>
      Returns:
      a newly built instance of CfnCustomDataIdentifier.