Class CfnFilterProps.Builder

java.lang.Object
software.amazon.awscdk.services.guardduty.CfnFilterProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFilterProps>
Enclosing interface:
CfnFilterProps

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

    • Builder

      public Builder()
  • Method Details

    • detectorId

      @Stability(Stable) public CfnFilterProps.Builder detectorId(String detectorId)
      Parameters:
      detectorId - The detector ID associated with the GuardDuty account for which you want to create a filter. This parameter is required. To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.
      Returns:
      this
    • findingCriteria

      @Stability(Stable) public CfnFilterProps.Builder findingCriteria(IResolvable findingCriteria)
      Parameters:
      findingCriteria - Represents the criteria to be used in the filter for querying findings. This parameter is required.
      Returns:
      this
    • findingCriteria

      @Stability(Stable) public CfnFilterProps.Builder findingCriteria(CfnFilter.FindingCriteriaProperty findingCriteria)
      Parameters:
      findingCriteria - Represents the criteria to be used in the filter for querying findings. This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public CfnFilterProps.Builder name(String name)
      Sets the value of CfnFilterProps.getName()
      Parameters:
      name - The name of the filter. This parameter is required. Valid characters include period (.), underscore (_), dash (-), and alphanumeric characters. A whitespace is considered to be an invalid character.
      Returns:
      this
    • action

      @Stability(Stable) public CfnFilterProps.Builder action(String action)
      Sets the value of CfnFilterProps.getAction()
      Parameters:
      action - Specifies the action that is to be applied to the findings that match the filter.
      Returns:
      this
    • description

      @Stability(Stable) public CfnFilterProps.Builder description(String description)
      Parameters:
      description - The description of the filter. Valid characters include alphanumeric characters, and special characters such as hyphen, period, colon, underscore, parentheses ( { } , [ ] , and ( ) ), forward slash, horizontal tab, vertical tab, newline, form feed, return, and whitespace.
      Returns:
      this
    • rank

      @Stability(Stable) public CfnFilterProps.Builder rank(Number rank)
      Sets the value of CfnFilterProps.getRank()
      Parameters:
      rank - Specifies the position of the filter in the list of current filters. Also specifies the order in which this filter is applied to the findings. The minimum value for this property is 1 and the maximum is 100.

      By default, filters may not be created in the same order as they are ranked. To ensure that the filters are created in the expected order, you can use an optional attribute, DependsOn , with the following syntax: "DependsOn":[ "ObjectName" ] .

      Returns:
      this
    • tags

      @Stability(Stable) public CfnFilterProps.Builder tags(List<? extends CfnTag> tags)
      Sets the value of CfnFilterProps.getTags()
      Parameters:
      tags - The tags to be added to a new filter resource. Each tag consists of a key and an optional value, both of which you define.

      For more information, see Tag .

      Returns:
      this
    • build

      @Stability(Stable) public CfnFilterProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnFilterProps>
      Returns:
      a new instance of CfnFilterProps
      Throws:
      NullPointerException - if any required attribute was not provided