# CFNMalwareProtectionConfigurationProperty

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

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
    }
};
```

Golang:

```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

- `scanEc2InstanceWithFindings`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDetector.CFNScanEc2InstanceWithFindingsConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_guardduty.CfnDetector.CFNScanEc2InstanceWithFindingsConfigurationProperty.html) — Describes the configuration of Malware Protection for EC2 instances with findings.
