aws-cdk-lib.aws_guardduty.CfnDetectorProps

interface CfnDetectorProps

LanguageType name
.NETAmazon.CDK.AWS.GuardDuty.CfnDetectorProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsguardduty#CfnDetectorProps
Javasoftware.amazon.awscdk.services.guardduty.CfnDetectorProps
Pythonaws_cdk.aws_guardduty.CfnDetectorProps
TypeScript aws-cdk-lib » aws_guardduty » CfnDetectorProps

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 { aws_guardduty as guardduty } from 'aws-cdk-lib';
const cfnDetectorProps: guardduty.CfnDetectorProps = {
  enable: false,

  // the properties below are optional
  dataSources: {
    kubernetes: {
      auditLogs: {
        enable: false,
      },
    },
    malwareProtection: {
      scanEc2InstanceWithFindings: {
        ebsVolumes: false,
      },
    },
    s3Logs: {
      enable: false,
    },
  },
  features: [{
    additionalConfiguration: [{
      name: 'name',
      status: 'status',
    }],
    name: 'name',
    status: 'status',
  }],
  findingPublishingFrequency: 'findingPublishingFrequency',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties

NameTypeDescription
enableboolean | IResolvableSpecifies whether the detector is to be enabled on creation.
dataSources?IResolvable | CFNDataSourceConfigurationsPropertyDescribes which data sources will be enabled for the detector.
features?IResolvable | IResolvable | FeatureConfigurationsProperty[]A list of features that will be configured for the detector.
findingPublishingFrequency?stringSpecifies how frequently updated findings are exported.
tags?CfnTag[]Specifies tags added to a new detector resource.

enable

Type: boolean | IResolvable

Specifies whether the detector is to be enabled on creation.


dataSources?

Type: IResolvable | CFNDataSourceConfigurationsProperty (optional)

Describes which data sources will be enabled for the detector.


features?

Type: IResolvable | IResolvable | FeatureConfigurationsProperty[] (optional)

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


findingPublishingFrequency?

Type: string (optional)

Specifies how frequently updated findings are exported.


tags?

Type: CfnTag[] (optional)

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 .