{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-guardduty/json-schema/amazon-guardduty-create-malware-protection-plan-request-schema.json",
  "title": "CreateMalwareProtectionPlanRequest",
  "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/CreateMalwareProtectionPlanRequest",
  "type": "object",
  "properties": {
    "ClientToken": {
      "type": "string",
      "description": "The idempotency token for the create request."
    },
    "Role": {
      "type": "string",
      "description": "Amazon Resource Name (ARN) of the IAM role that has the permissions to scan and add tags to the associated protected resource."
    },
    "ProtectedResource": {
      "$ref": "#/$defs/CreateProtectedResource"
    },
    "Actions": {
      "$ref": "#/$defs/MalwareProtectionPlanActions"
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Tags added to the Malware Protection plan resource."
    }
  },
  "required": [
    "Role",
    "ProtectedResource"
  ],
  "$defs": {
    "CreateProtectedResource": {
      "type": "object",
      "properties": {
        "S3Bucket": {
          "$ref": "#/$defs/CreateS3BucketResource"
        }
      }
    },
    "CreateS3BucketResource": {
      "type": "object",
      "properties": {
        "BucketName": {
          "type": "string",
          "description": "Name of the S3 bucket."
        },
        "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."
        }
      }
    },
    "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."
        }
      }
    }
  }
}