AWS::GuardDuty::Detector
The AWS::GuardDuty::Detector resource specifies a new detector. A detector is an object that
represents the service. A detector is
required for to become operational.
Make sure you use either DataSources or
Features in a one request, and not both.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::GuardDuty::Detector", "Properties" : { "DataSources" :CFNDataSourceConfigurations, "Enable" :Boolean, "Features" :[ FeatureConfigurations, ... ], "FindingPublishingFrequency" :String, "Tags" :[ Tag, ... ]} }
YAML
Type: AWS::GuardDuty::Detector Properties: DataSources:CFNDataSourceConfigurationsEnable:BooleanFeatures:- FeatureConfigurationsFindingPublishingFrequency:StringTags:- Tag
Properties
DataSources-
Describes which data sources will be enabled for the detector.
Required: No
Type: CFNDataSourceConfigurations
Update requires: No interruption
Enable-
Specifies whether the detector is to be enabled on creation.
Required: Yes
Type: Boolean
Update requires: No interruption
Features-
A list of features that will be configured for the detector.
Required: No
Type: List of FeatureConfigurations
Update requires: No interruption
FindingPublishingFrequency-
Specifies how frequently updated findings are exported.
Required: No
Type: String
Allowed values:
FIFTEEN_MINUTES | ONE_HOUR | SIX_HOURSUpdate requires: No interruption
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.
Required: No
Type: List of Tag
Update requires: No interruption
Return values
Ref
When you pass the logical ID of this resource to the intrinsic Reffunction, Refreturns the unique ID of the detector.
For more information about using the Reffunction, see Ref.
Examples
Declare a Detector Resource
The following example shows how to declare a
Detector resource:
JSON
"mydetector": { "Type" : "AWS::GuardDuty::Detector", "Properties" : { "Enable" : True, "FindingPublishingFrequency" : "FIFTEEN_MINUTES" } }
YAML
mydetector: Type: AWS::GuardDuty::Detector Properties: Enable: True FindingPublishingFrequency: FIFTEEN_MINUTES