{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-guardduty/json-schema/amazon-guardduty-update-malware-protection-plan-request-schema.json",
  "title": "UpdateMalwareProtectionPlanRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-guardduty-malware-protection-plan-api-openapi.yml#/components/schemas/UpdateMalwareProtectionPlanRequest",
  "type": "object",
  "properties": {
    "MalwareProtectionPlanId": {
      "type": "string",
      "description": "A unique identifier associated with the Malware Protection plan."
    },
    "Role": {
      "type": "string",
      "description": "Amazon Resource Name (ARN) of the IAM role with permissions to scan and add tags to the associated protected resource."
    },
    "Actions": {
      "$ref": "#/$defs/MalwareProtectionPlanActions"
    },
    "ProtectedResource": {
      "$ref": "#/$defs/UpdateProtectedResource"
    }
  },
  "required": [
    "MalwareProtectionPlanId"
  ],
  "$defs": {
    "MalwareProtectionPlanActions": {
      "type": "object",
      "properties": {
        "Tagging": {
          "$ref": "#/$defs/MalwareProtectionPlanTaggingAction"
        }
      }
    },
    "MalwareProtectionPlanTaggingAction": {
      "type": "object",
      "properties": {
        "Status": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "Indicates whether or not the tags will added."
        }
      }
    },
    "UpdateProtectedResource": {
      "type": "object",
      "properties": {
        "S3Bucket": {
          "$ref": "#/$defs/UpdateS3BucketResource"
        }
      }
    },
    "UpdateS3BucketResource": {
      "type": "object",
      "properties": {
        "ObjectPrefixes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Information about the specified object prefixes. The S3 object will be scanned only if it belongs to any of the specified object prefixes."
        }
      }
    }
  }
}