GuardDuty / Client / update_malware_protection_plan

update_malware_protection_plan#

GuardDuty.Client.update_malware_protection_plan(**kwargs)#

Updates an existing Malware Protection plan resource.

See also: AWS API Documentation

Request Syntax

response = client.update_malware_protection_plan(
    MalwareProtectionPlanId='string',
    Role='string',
    Actions={
        'Tagging': {
            'Status': 'ENABLED'|'DISABLED'
        }
    },
    ProtectedResource={
        'S3Bucket': {
            'ObjectPrefixes': [
                'string',
            ]
        }
    }
)
Parameters:
  • MalwareProtectionPlanId (string) –

    [REQUIRED]

    A unique identifier associated with the Malware Protection plan.

  • Role (string) – IAM role with permissions required to scan and add tags to the associated protected resource.

  • 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.

  • 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.

      • 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

  • GuardDuty.Client.exceptions.BadRequestException

  • GuardDuty.Client.exceptions.AccessDeniedException

  • GuardDuty.Client.exceptions.ResourceNotFoundException

  • GuardDuty.Client.exceptions.InternalServerErrorException