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.tags
(List<? extends CfnDetector.TagItemProperty> tags) Specifies tags added to a new detector resource.
-
Method Details
-
create
@Stability(Stable) public static CfnDetector.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- 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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
tags
@Stability(Stable) public CfnDetector.Builder tags(List<? extends CfnDetector.TagItemProperty> 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
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDetector>
- Returns:
- a newly built instance of
CfnDetector
.
-