UpdateMalwareProtectionPlan - Amazon GuardDuty

UpdateMalwareProtectionPlan

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.

malwareProtectionPlanId

A unique identifier associated with the Malware Protection plan.

Required: Yes

Request Body

The request accepts the following data in JSON format.

actions

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

Type: MalwareProtectionPlanActions object

Required: No

protectedResource

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

role

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

HTTP/1.1 200

Response Elements

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

Errors

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

AccessDeniedException

An access denied exception object.

HTTP Status Code: 403

BadRequestException

A bad request exception object.

HTTP Status Code: 400

InternalServerErrorException

An internal server error exception object.

HTTP Status Code: 500

ResourceNotFoundException

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: