:doc:`GuardDuty <../../guardduty>` / Client / update_malware_protection_plan

******************************
update_malware_protection_plan
******************************



.. py:method:: GuardDuty.Client.update_malware_protection_plan(**kwargs)

  

  Updates an existing Malware Protection plan resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UpdateMalwareProtectionPlan>`_  


  **Request Syntax**
  ::

    response = client.update_malware_protection_plan(
        MalwareProtectionPlanId='string',
        Role='string',
        Actions={
            'Tagging': {
                'Status': 'ENABLED'|'DISABLED'
            }
        },
        ProtectedResource={
            'S3Bucket': {
                'ObjectPrefixes': [
                    'string',
                ]
            }
        }
    )
    
  :type MalwareProtectionPlanId: string
  :param MalwareProtectionPlanId: **[REQUIRED]** 

    A unique identifier associated with the Malware Protection plan.

    

  
  :type Role: string
  :param Role: 

    Amazon Resource Name (ARN) of the IAM role with permissions to scan and add tags to the associated protected resource.

    

  
  :type Actions: dict
  :param Actions: 

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

    

  
    - **Tagging** *(dict) --* 

      Indicates whether the scanned S3 object will have tags about the scan result.

      

    
      - **Status** *(string) --* 

        Indicates whether or not the tags will added.

        

      
    
  
  :type ProtectedResource: dict
  :param ProtectedResource: 

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

    

  
    - **S3Bucket** *(dict) --* 

      Information about the protected S3 bucket resource.

      

    
      - **ObjectPrefixes** *(list) --* 

        Information about the specified object prefixes. The S3 object will be scanned only if it belongs to any of the specified object prefixes.

        

      
        - *(string) --* 

        
    
    
  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`GuardDuty.Client.exceptions.BadRequestException`

  
  *   :py:class:`GuardDuty.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`GuardDuty.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`GuardDuty.Client.exceptions.InternalServerErrorException`

  