Class CfnDetector.Builder

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

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

    • create

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

      @Stability(Stable) public CfnDetector.Builder enable(Boolean enable)
      Specifies whether the detector is to be enabled on creation.

      Parameters:
      enable - Specifies whether the detector is to be enabled on creation. This parameter is required.
      Returns:
      this
    • enable

      @Stability(Stable) public CfnDetector.Builder enable(IResolvable enable)
      Specifies whether the detector is to be enabled on creation.

      Parameters:
      enable - Specifies whether the detector is to be enabled on creation. This parameter is required.
      Returns:
      this
    • dataSources

      @Stability(Stable) public CfnDetector.Builder dataSources(IResolvable dataSources)
      Describes which data sources will be enabled for the detector.

      Parameters:
      dataSources - Describes which data sources will be enabled for the detector. This parameter is required.
      Returns:
      this
    • dataSources

      @Stability(Stable) public CfnDetector.Builder dataSources(CfnDetector.CFNDataSourceConfigurationsProperty dataSources)
      Describes which data sources will be enabled for the detector.

      Parameters:
      dataSources - Describes which data sources will be enabled for the detector. This parameter is required.
      Returns:
      this
    • features

      @Stability(Stable) public CfnDetector.Builder features(IResolvable features)
      A list of features that will be configured for the detector.

      Parameters:
      features - A list of features that will be configured for the detector. This parameter is required.
      Returns:
      this
    • features

      @Stability(Stable) public CfnDetector.Builder features(List<? extends Object> features)
      A list of features that will be configured for the detector.

      Parameters:
      features - A list of features that will be configured for the detector. This parameter is required.
      Returns:
      this
    • findingPublishingFrequency

      @Stability(Stable) public CfnDetector.Builder findingPublishingFrequency(String findingPublishingFrequency)
      Specifies how frequently updated findings are exported.

      Parameters:
      findingPublishingFrequency - Specifies how frequently updated findings are exported. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnDetector.Builder tags(List<? extends CfnTag> tags)
      Specifies tags added to a new detector resource.

      Each tag consists of a key and an optional value, both of which you define.

      Currently, support is available only for creating and deleting a tag. No support exists for updating the tags.

      For more information, see Tag .

      Parameters:
      tags - Specifies tags added to a new detector resource. This parameter is required.
      Returns:
      this
    • build

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