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

***************************
get_malware_protection_plan
***************************



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

  

  Retrieves the Malware Protection plan details associated with a Malware Protection plan ID.

  

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


  **Request Syntax**
  ::

    response = client.get_malware_protection_plan(
        MalwareProtectionPlanId='string'
    )
    
  :type MalwareProtectionPlanId: string
  :param MalwareProtectionPlanId: **[REQUIRED]** 

    A unique identifier associated with Malware Protection plan resource.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'Arn': 'string',
          'Role': 'string',
          'ProtectedResource': {
              'S3Bucket': {
                  'BucketName': 'string',
                  'ObjectPrefixes': [
                      'string',
                  ]
              }
          },
          'Actions': {
              'Tagging': {
                  'Status': 'ENABLED'|'DISABLED'
              }
          },
          'CreatedAt': datetime(2015, 1, 1),
          'Status': 'ACTIVE'|'WARNING'|'ERROR',
          'StatusReasons': [
              {
                  'Code': 'string',
                  'Message': 'string'
              },
          ],
          'Tags': {
              'string': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Arn** *(string) --* 

        Amazon Resource Name (ARN) of the protected resource.

        
      

      - **Role** *(string) --* 

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

        
      

      - **ProtectedResource** *(dict) --* 

        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.

          
          

          - **BucketName** *(string) --* 

            Name of the S3 bucket.

            
          

          - **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) --* 
        
      
    
      

      - **Actions** *(dict) --* 

        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.

            
      
    
      

      - **CreatedAt** *(datetime) --* 

        The timestamp when the Malware Protection plan resource was created.

        
      

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

        Malware Protection plan status.

        
      

      - **StatusReasons** *(list) --* 

        Information about the issue code and message associated to the status of your Malware Protection plan.

        
        

        - *(dict) --* 

          Information about the issue code and message associated to the status of your Malware Protection plan.

          
          

          - **Code** *(string) --* 

            Issue code.

            
          

          - **Message** *(string) --* 

            Issue message that specifies the reason. For information about potential troubleshooting steps, see `Troubleshooting Malware Protection for S3 status issues <https://docs.aws.amazon.com/guardduty/latest/ug/troubleshoot-s3-malware-protection-status-errors.html>`__ in the *Amazon GuardDuty User Guide*.

            
      
    
      

      - **Tags** *(dict) --* 

        Tags added to the Malware Protection plan resource.

        
        

        - *(string) --* 
          

          - *(string) --* 
    
  
  
  **Exceptions**
  
  *   :py:class:`GuardDuty.Client.exceptions.BadRequestException`

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

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

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

  