UpdateMalwareProtectionPlan - Amazon GuardDuty


Updates an existing Malware Protection plan resource.

Request Syntax

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

The request uses the following URI parameters.


A unique identifier associated with the Malware Protection plan.

Required: Yes

Request Body

The request accepts the following data in JSON format.


Information about whether the tags will be added to the S3 object after scanning.

Type: MalwareProtectionPlanActions object

Required: No


Information about the protected resource that is associated with the created Malware Protection plan. Presently, S3Bucket is the only supported protected resource.

Type: UpdateProtectedResource object

Required: No


IAM role with permissions required to scan and add tags to the associated protected resource.

Type: String

Required: No

Response Syntax

HTTP/1.1 200

Response Elements

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


For information about the errors that are common to all actions, see Common Errors.


An access denied exception object.

HTTP Status Code: 403


A bad request exception object.

HTTP Status Code: 400


An internal server error exception object.

HTTP Status Code: 500


The requested resource can't be found.

HTTP Status Code: 404

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: