

# UpdateMalwareProtectionPlan
<a name="API_UpdateMalwareProtectionPlan"></a>

Updates an existing Malware Protection plan resource.

## Request Syntax
<a name="API_UpdateMalwareProtectionPlan_RequestSyntax"></a>

```
PATCH /malware-protection-plan/MalwareProtectionPlanId HTTP/1.1
Content-type: application/json

{
   "actions": { 
      "tagging": { 
         "status": "string"
      }
   },
   "protectedResource": { 
      "s3Bucket": { 
         "objectPrefixes": [ "string" ]
      }
   },
   "role": "string"
}
```

## URI Request Parameters
<a name="API_UpdateMalwareProtectionPlan_RequestParameters"></a>

The request uses the following URI parameters.

 ** [MalwareProtectionPlanId](#API_UpdateMalwareProtectionPlan_RequestSyntax) **   <a name="guardduty-UpdateMalwareProtectionPlan-request-uri-MalwareProtectionPlanId"></a>
A unique identifier associated with the Malware Protection plan.  
Required: Yes

## Request Body
<a name="API_UpdateMalwareProtectionPlan_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [actions](#API_UpdateMalwareProtectionPlan_RequestSyntax) **   <a name="guardduty-UpdateMalwareProtectionPlan-request-actions"></a>
Information about whether the tags will be added to the S3 object after scanning.  
Type: [MalwareProtectionPlanActions](API_MalwareProtectionPlanActions.md) object  
Required: No

 ** [protectedResource](#API_UpdateMalwareProtectionPlan_RequestSyntax) **   <a name="guardduty-UpdateMalwareProtectionPlan-request-protectedResource"></a>
Information about the protected resource that is associated with the created Malware Protection plan. Presently, `S3Bucket` is the only supported protected resource.  
Type: [UpdateProtectedResource](API_UpdateProtectedResource.md) object  
Required: No

 ** [role](#API_UpdateMalwareProtectionPlan_RequestSyntax) **   <a name="guardduty-UpdateMalwareProtectionPlan-request-role"></a>
Amazon Resource Name (ARN) of the IAM role with permissions to scan and add tags to the associated protected resource.  
Type: String  
Required: No

## Response Syntax
<a name="API_UpdateMalwareProtectionPlan_ResponseSyntax"></a>

```
HTTP/1.1 200
```

## Response Elements
<a name="API_UpdateMalwareProtectionPlan_ResponseElements"></a>

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

## Errors
<a name="API_UpdateMalwareProtectionPlan_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
An access denied exception object.    
 ** Message **   
The error message.  
 ** Type **   
The error type.
HTTP Status Code: 403

 ** BadRequestException **   
A bad request exception object.    
 ** Message **   
The error message.  
 ** Type **   
The error type.
HTTP Status Code: 400

 ** InternalServerErrorException **   
An internal server error exception object.    
 ** Message **   
The error message.  
 ** Type **   
The error type.
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested resource can't be found.    
 ** Message **   
The error message.  
 ** Type **   
The error type.
HTTP Status Code: 404

## See Also
<a name="API_UpdateMalwareProtectionPlan_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/guardduty-2017-11-28/UpdateMalwareProtectionPlan) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/guardduty-2017-11-28/UpdateMalwareProtectionPlan) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/guardduty-2017-11-28/UpdateMalwareProtectionPlan) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/guardduty-2017-11-28/UpdateMalwareProtectionPlan) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/guardduty-2017-11-28/UpdateMalwareProtectionPlan) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/guardduty-2017-11-28/UpdateMalwareProtectionPlan) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/guardduty-2017-11-28/UpdateMalwareProtectionPlan) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/guardduty-2017-11-28/UpdateMalwareProtectionPlan) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/guardduty-2017-11-28/UpdateMalwareProtectionPlan) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/guardduty-2017-11-28/UpdateMalwareProtectionPlan) 