

This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::GuardDuty::Detector CFNMalwareProtectionConfiguration
<a name="aws-properties-guardduty-detector-cfnmalwareprotectionconfiguration"></a>

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

## Syntax
<a name="aws-properties-guardduty-detector-cfnmalwareprotectionconfiguration-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-guardduty-detector-cfnmalwareprotectionconfiguration-syntax.json"></a>

```
{
  "[ScanEc2InstanceWithFindings](#cfn-guardduty-detector-cfnmalwareprotectionconfiguration-scanec2instancewithfindings)" : {{CFNScanEc2InstanceWithFindingsConfiguration}}
}
```

### YAML
<a name="aws-properties-guardduty-detector-cfnmalwareprotectionconfiguration-syntax.yaml"></a>

```
  [ScanEc2InstanceWithFindings](#cfn-guardduty-detector-cfnmalwareprotectionconfiguration-scanec2instancewithfindings): {{
    CFNScanEc2InstanceWithFindingsConfiguration}}
```

## Properties
<a name="aws-properties-guardduty-detector-cfnmalwareprotectionconfiguration-properties"></a>

`ScanEc2InstanceWithFindings`  <a name="cfn-guardduty-detector-cfnmalwareprotectionconfiguration-scanec2instancewithfindings"></a>
Describes the configuration of Malware Protection for EC2 instances with findings.  
*Required*: No  
*Type*: [CFNScanEc2InstanceWithFindingsConfiguration](aws-properties-guardduty-detector-cfnscanec2instancewithfindingsconfiguration.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)