Class CfnAllowList.Builder

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

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

    • create

      @Stability(Stable) public static CfnAllowList.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 CfnAllowList.Builder.
    • criteria

      @Stability(Stable) public CfnAllowList.Builder criteria(CfnAllowList.CriteriaProperty criteria)
      The criteria that specify the text or text pattern to ignore.

      The criteria can be the location and name of an Amazon S3 object that lists specific text to ignore ( S3WordsList ), or a regular expression ( Regex ) that defines a text pattern to ignore.

      Parameters:
      criteria - The criteria that specify the text or text pattern to ignore. This parameter is required.
      Returns:
      this
    • criteria

      @Stability(Stable) public CfnAllowList.Builder criteria(IResolvable criteria)
      The criteria that specify the text or text pattern to ignore.

      The criteria can be the location and name of an Amazon S3 object that lists specific text to ignore ( S3WordsList ), or a regular expression ( Regex ) that defines a text pattern to ignore.

      Parameters:
      criteria - The criteria that specify the text or text pattern to ignore. This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public CfnAllowList.Builder name(String name)
      A custom name for the allow list.

      The name can contain 1-128 characters.

      Parameters:
      name - A custom name for the allow list. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnAllowList.Builder description(String description)
      A custom description of the allow list.

      The description can contain 1-512 characters.

      Parameters:
      description - A custom description of the allow list. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnAllowList.Builder tags(List<? extends CfnTag> tags)
      An array of key-value pairs to apply to the allow list.

      For more information, see Tag .

      Parameters:
      tags - An array of key-value pairs to apply to the allow list. This parameter is required.
      Returns:
      this
    • build

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