AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::GuardDuty::Detector

CfnDetector

The `AWS::GuardDuty::Detector` resource specifies a new GuardDuty detector. A detector is an object that represents the GuardDuty service. A detector is required for GuardDuty to become operational. Make sure you use either `DataSources` or `Features` in a one request, and not both.

Import

import { CfnDetector } from 'aws-cdk-lib/aws-guardduty';

Or use the module namespace:

import * as guardduty from 'aws-cdk-lib/aws-guardduty';
// guardduty.CfnDetector

Properties

Configuration passed to the constructor as CfnDetectorProps.

enableRequired
boolean | IResolvable

Specifies whether the detector is to be enabled on creation.

dataSourcesOptional
IResolvable | CFNDataSourceConfigurationsProperty

Describes which data sources will be enabled for the detector.

featuresOptional
IResolvable | IResolvable | CFNFeatureConfigurationProperty[]

A list of features that will be configured for the detector.

findingPublishingFrequencyOptional
string

Specifies how frequently updated findings are exported.

tagsOptional
TagItemProperty[]

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](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter