{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-guardduty/json-schema/amazon-guardduty-update-member-detectors-request-schema.json",
  "title": "UpdateMemberDetectorsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-guardduty-member-api-openapi.yml#/components/schemas/UpdateMemberDetectorsRequest",
  "type": "object",
  "properties": {
    "DetectorId": {
      "type": "string",
      "description": "The detector ID of the administrator account. To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API."
    },
    "AccountIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of member account IDs to be updated."
    },
    "DataSources": {
      "$ref": "#/$defs/DataSourceConfigurations"
    },
    "Features": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MemberFeaturesConfiguration"
      },
      "description": "A list of features that will be updated for the specified member accounts."
    }
  },
  "required": [
    "DetectorId",
    "AccountIds"
  ],
  "$defs": {
    "DataSourceConfigurations": {
      "type": "object",
      "properties": {
        "S3Logs": {
          "$ref": "#/$defs/S3LogsConfiguration"
        },
        "Kubernetes": {
          "$ref": "#/$defs/KubernetesConfiguration"
        },
        "MalwareProtection": {
          "$ref": "#/$defs/MalwareProtectionConfiguration"
        }
      }
    },
    "KubernetesAuditLogsConfiguration": {
      "type": "object",
      "properties": {
        "Enable": {
          "type": "boolean",
          "description": "The status of Kubernetes audit logs as a data source."
        }
      },
      "required": [
        "Enable"
      ]
    },
    "KubernetesConfiguration": {
      "type": "object",
      "properties": {
        "AuditLogs": {
          "$ref": "#/$defs/KubernetesAuditLogsConfiguration"
        }
      },
      "required": [
        "AuditLogs"
      ]
    },
    "MalwareProtectionConfiguration": {
      "type": "object",
      "properties": {
        "ScanEc2InstanceWithFindings": {
          "$ref": "#/$defs/ScanEc2InstanceWithFindings"
        }
      }
    },
    "MemberAdditionalConfiguration": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "enum": [
            "EKS_ADDON_MANAGEMENT",
            "ECS_FARGATE_AGENT_MANAGEMENT",
            "EC2_AGENT_MANAGEMENT",
            "RDS_DATA_RISK"
          ],
          "description": "Name of the additional configuration."
        },
        "Status": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "Status of the additional configuration."
        }
      }
    },
    "MemberFeaturesConfiguration": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "enum": [
            "S3_DATA_EVENTS",
            "EKS_AUDIT_LOGS",
            "EBS_MALWARE_PROTECTION",
            "RDS_LOGIN_EVENTS",
            "LAMBDA_NETWORK_LOGS",
            "EKS_RUNTIME_MONITORING",
            "RUNTIME_MONITORING",
            "AI_PROTECTION"
          ],
          "description": "The name of the feature."
        },
        "Status": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "The status of the feature."
        },
        "AdditionalConfiguration": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MemberAdditionalConfiguration"
          },
          "description": "Additional configuration of the feature for the member account."
        }
      }
    },
    "S3LogsConfiguration": {
      "type": "object",
      "properties": {
        "Enable": {
          "type": "boolean",
          "description": "The status of S3 data event logs as a data source."
        }
      },
      "required": [
        "Enable"
      ]
    },
    "ScanEc2InstanceWithFindings": {
      "type": "object",
      "properties": {
        "EbsVolumes": {
          "type": "boolean",
          "description": "Describes the configuration for scanning EBS volumes as data source."
        }
      }
    }
  }
}