Skip to content
v2.278.0

CFNKubernetesConfigurationProperty Struct ​

Describes which Kubernetes protection data sources are enabled for the detector.

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 cFNKubernetesConfigurationProperty: guardduty.CfnDetector.CFNKubernetesConfigurationProperty = {
  auditLogs: {
    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_kubernetes_configuration_property = guardduty.CfnDetector.CFNKubernetesConfigurationProperty(
    audit_logs=guardduty.CfnDetector.CFNKubernetesAuditLogsConfigurationProperty(
        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.*;

CFNKubernetesConfigurationProperty cFNKubernetesConfigurationProperty = CFNKubernetesConfigurationProperty.builder()
        .auditLogs(CFNKubernetesAuditLogsConfigurationProperty.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 cFNKubernetesConfigurationProperty = new CFNKubernetesConfigurationProperty {
    AuditLogs = new CFNKubernetesAuditLogsConfigurationProperty {
        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"

cFNKubernetesConfigurationProperty := &CFNKubernetesConfigurationProperty{
	AuditLogs: &CFNKubernetesAuditLogsConfigurationProperty{
		Enable: jsii.Boolean(false),
	},
}

Properties ​

Describes whether Kubernetes audit logs are enabled as a data source for the detector.