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 Summary
Modifier and TypeMethodDescriptionbuild()
static CfnDetector.Builder
dataSources
(IResolvable dataSources) Describes which data sources will be enabled for the detector.Describes which data sources will be enabled for the detector.Specifies whether the detector is to be enabled on creation.enable
(IResolvable enable) Specifies whether the detector is to be enabled on creation.A list of features that will be configured for the detector.features
(IResolvable features) A list of features that will be configured for the detector.findingPublishingFrequency
(String findingPublishingFrequency) Specifies how frequently updated findings are exported.Specifies tags added to a new detector resource.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnDetector.Builder
.
-
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
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
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
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
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
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
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDetector>
- Returns:
- a newly built instance of
CfnDetector
.
-