

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/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 Amazon 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.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)