Skip to content
v2.278.0

CFNDataSourceConfigurationsProperty Struct ​

Describes whether S3 data event logs, Kubernetes audit logs, or Malware Protection will be enabled as a data source when the detector is created.

Example ​

ts
// 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 cFNDataSourceConfigurationsProperty: guardduty.CfnDetector.CFNDataSourceConfigurationsProperty = {
  kubernetes: {
    auditLogs: {
      enable: false,
    },
  },
  malwareProtection: {
    scanEc2InstanceWithFindings: {
      ebsVolumes: false,
    },
  },
  s3Logs: {
    enable: false,
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_guardduty as guardduty

c_fn_data_source_configurations_property = guardduty.CfnDetector.CFNDataSourceConfigurationsProperty(
    kubernetes=guardduty.CfnDetector.CFNKubernetesConfigurationProperty(
        audit_logs=guardduty.CfnDetector.CFNKubernetesAuditLogsConfigurationProperty(
            enable=False
        )
    ),
    malware_protection=guardduty.CfnDetector.CFNMalwareProtectionConfigurationProperty(
        scan_ec2_instance_with_findings=guardduty.CfnDetector.CFNScanEc2InstanceWithFindingsConfigurationProperty(
            ebs_volumes=False
        )
    ),
    s3_logs=guardduty.CfnDetector.CFNS3LogsConfigurationProperty(
        enable=False
    )
)
java
// 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.*;

CFNDataSourceConfigurationsProperty cFNDataSourceConfigurationsProperty = 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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.GuardDuty;

var cFNDataSourceConfigurationsProperty = new CFNDataSourceConfigurationsProperty {
    Kubernetes = new CFNKubernetesConfigurationProperty {
        AuditLogs = new CFNKubernetesAuditLogsConfigurationProperty {
            Enable = false
        }
    },
    MalwareProtection = new CFNMalwareProtectionConfigurationProperty {
        ScanEc2InstanceWithFindings = new CFNScanEc2InstanceWithFindingsConfigurationProperty {
            EbsVolumes = false
        }
    },
    S3Logs = new CFNS3LogsConfigurationProperty {
        Enable = false
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cFNDataSourceConfigurationsProperty := &CFNDataSourceConfigurationsProperty{
	Kubernetes: &CFNKubernetesConfigurationProperty{
		AuditLogs: &CFNKubernetesAuditLogsConfigurationProperty{
			Enable: jsii.Boolean(false),
		},
	},
	MalwareProtection: &CFNMalwareProtectionConfigurationProperty{
		ScanEc2InstanceWithFindings: &CFNScanEc2InstanceWithFindingsConfigurationProperty{
			EbsVolumes: jsii.Boolean(false),
		},
	},
	S3Logs: &CFNS3LogsConfigurationProperty{
		Enable: jsii.Boolean(false),
	},
}

Properties ​

kubernetesoptionalIResolvable | CfnDetector.CFNKubernetesConfigurationPropertykubernetesoptionaltyping.Union[IResolvable, CFNKubernetesConfigurationProperty]kubernetesoptionalIResolvableKubernetesoptionalIResolvableKubernetesoptionalinterface{} #
Describes which Kubernetes data sources are enabled for a detector.
malwareProtectionoptionalIResolvable | CfnDetector.CFNMalwareProtectionConfigurationPropertymalware_protectionoptionaltyping.Union[IResolvable, CFNMalwareProtectionConfigurationProperty]malwareProtectionoptionalIResolvableMalwareProtectionoptionalIResolvableMalwareProtectionoptionalinterface{} #
Describes whether Malware Protection will be enabled as a data source.
s3LogsoptionalIResolvable | CfnDetector.CFNS3LogsConfigurationPropertys3_logsoptionaltyping.Union[IResolvable, CFNS3LogsConfigurationProperty]s3LogsoptionalIResolvableS3LogsoptionalIResolvableS3Logsoptionalinterface{} #
Describes whether S3 data event logs are enabled as a data source.