Skip to content
v2.277.0

CFNMalwareProtectionConfigurationProperty Struct ​

Describes whether Malware Protection will be enabled as a data source.

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 cFNMalwareProtectionConfigurationProperty: guardduty.CfnDetector.CFNMalwareProtectionConfigurationProperty = {
  scanEc2InstanceWithFindings: {
    ebsVolumes: 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_malware_protection_configuration_property = guardduty.CfnDetector.CFNMalwareProtectionConfigurationProperty(
    scan_ec2_instance_with_findings=guardduty.CfnDetector.CFNScanEc2InstanceWithFindingsConfigurationProperty(
        ebs_volumes=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.*;

CFNMalwareProtectionConfigurationProperty cFNMalwareProtectionConfigurationProperty = CFNMalwareProtectionConfigurationProperty.builder()
        .scanEc2InstanceWithFindings(CFNScanEc2InstanceWithFindingsConfigurationProperty.builder()
                .ebsVolumes(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 cFNMalwareProtectionConfigurationProperty = new CFNMalwareProtectionConfigurationProperty {
    ScanEc2InstanceWithFindings = new CFNScanEc2InstanceWithFindingsConfigurationProperty {
        EbsVolumes = 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"

cFNMalwareProtectionConfigurationProperty := &CFNMalwareProtectionConfigurationProperty{
	ScanEc2InstanceWithFindings: &CFNScanEc2InstanceWithFindingsConfigurationProperty{
		EbsVolumes: jsii.Boolean(false),
	},
}

Properties ​

scanEc2InstanceWithFindingsoptionalIResolvable | CfnDetector.CFNScanEc2InstanceWithFindingsConfigurationPropertyscan_ec2_instance_with_findingsoptionaltyping.Union[IResolvable, CFNScanEc2InstanceWithFindingsConfigurationProperty]scanEc2InstanceWithFindingsoptionalIResolvableScanEc2InstanceWithFindingsoptionalIResolvableScanEc2InstanceWithFindingsoptionalinterface{} #
Describes the configuration of Malware Protection for EC2 instances with findings.