Interface CfnDetectorProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDetectorProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:22.831Z")
@Stability(Stable)
public interface CfnDetectorProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnDetector.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.guardduty.*;
CfnDetectorProps cfnDetectorProps = CfnDetectorProps.builder()
.enable(false)
// the properties below are optional
.dataSources(CFNDataSourceConfigurationsProperty.builder()
.kubernetes(CFNKubernetesConfigurationProperty.builder()
.auditLogs(CFNKubernetesAuditLogsConfigurationProperty.builder()
.enable(false)
.build())
.build())
.malwareProtection(CFNMalwareProtectionConfigurationProperty.builder()
.scanEc2InstanceWithFindings(CFNScanEc2InstanceWithFindingsConfigurationProperty.builder()
.ebsVolumes(false)
.build())
.build())
.s3Logs(CFNS3LogsConfigurationProperty.builder()
.enable(false)
.build())
.build())
.features(List.of(CFNFeatureConfigurationProperty.builder()
.name("name")
.status("status")
// the properties below are optional
.additionalConfiguration(List.of(CFNFeatureAdditionalConfigurationProperty.builder()
.name("name")
.status("status")
.build()))
.build()))
.findingPublishingFrequency("findingPublishingFrequency")
.tags(List.of(TagItemProperty.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDetectorPropsstatic final classAn implementation forCfnDetectorProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnDetectorProps.Builderbuilder()default ObjectDescribes which data sources will be enabled for the detector.Specifies whether the detector is to be enabled on creation.default ObjectA list of features that will be configured for the detector.default StringSpecifies how frequently updated findings are exported.default List<CfnDetector.TagItemProperty> getTags()Specifies tags added to a new detector resource.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEnable
Specifies whether the detector is to be enabled on creation.Returns union: either
BooleanorIResolvable- See Also:
-
getDataSources
Describes which data sources will be enabled for the detector.Returns union: either
IResolvableorCfnDetector.CFNDataSourceConfigurationsProperty- See Also:
-
getFeatures
A list of features that will be configured for the detector.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDetector.CFNFeatureConfigurationProperty>- See Also:
-
getFindingPublishingFrequency
Specifies how frequently updated findings are exported.- See Also:
-
getTags
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 .
- See Also:
-
builder
- Returns:
- a
CfnDetectorProps.BuilderofCfnDetectorProps
-