{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-core/json-schema/amazon-iot-core-update-resource-event-configuration-request-schema.json",
  "title": "UpdateResourceEventConfigurationRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-core-event-configurations-api-openapi.yml#/components/schemas/UpdateResourceEventConfigurationRequest",
  "type": "object",
  "properties": {
    "Identifier": {
      "type": "string",
      "description": "Resource identifier to opt in for event messaging."
    },
    "IdentifierType": {
      "type": "string",
      "enum": [
        "PartnerAccountId",
        "DevEui",
        "GatewayEui",
        "WirelessDeviceId",
        "WirelessGatewayId"
      ],
      "description": "Identifier type of the particular resource identifier for event configuration."
    },
    "PartnerType": {
      "type": "string",
      "enum": [
        "Sidewalk"
      ],
      "description": "Partner type of the resource if the identifier type is PartnerAccountId"
    },
    "DeviceRegistrationState": {
      "$ref": "#/$defs/DeviceRegistrationStateEventConfiguration"
    },
    "Proximity": {
      "$ref": "#/$defs/ProximityEventConfiguration"
    },
    "Join": {
      "$ref": "#/$defs/JoinEventConfiguration"
    },
    "ConnectionStatus": {
      "$ref": "#/$defs/ConnectionStatusEventConfiguration"
    },
    "MessageDeliveryStatus": {
      "$ref": "#/$defs/MessageDeliveryStatusEventConfiguration"
    }
  },
  "required": [
    "Identifier",
    "IdentifierType"
  ],
  "$defs": {
    "ConnectionStatusEventConfiguration": {
      "type": "object",
      "properties": {
        "LoRaWAN": {
          "$ref": "#/$defs/LoRaWANConnectionStatusEventNotificationConfigurations"
        },
        "WirelessGatewayIdEventTopic": {
          "type": "string",
          "enum": [
            "Enabled",
            "Disabled"
          ],
          "description": "Denotes whether the wireless gateway ID connection status event topic is enabled or disabled."
        }
      }
    },
    "DeviceRegistrationStateEventConfiguration": {
      "type": "object",
      "properties": {
        "Sidewalk": {
          "$ref": "#/$defs/SidewalkEventNotificationConfigurations"
        },
        "WirelessDeviceIdEventTopic": {
          "type": "string",
          "enum": [
            "Enabled",
            "Disabled"
          ],
          "description": "Denotes whether the wireless device ID device registration state event topic is enabled or disabled."
        }
      }
    },
    "JoinEventConfiguration": {
      "type": "object",
      "properties": {
        "LoRaWAN": {
          "$ref": "#/$defs/LoRaWANJoinEventNotificationConfigurations"
        },
        "WirelessDeviceIdEventTopic": {
          "type": "string",
          "enum": [
            "Enabled",
            "Disabled"
          ],
          "description": "Denotes whether the wireless device ID join event topic is enabled or disabled."
        }
      }
    },
    "LoRaWANConnectionStatusEventNotificationConfigurations": {
      "type": "object",
      "properties": {
        "GatewayEuiEventTopic": {
          "type": "string",
          "enum": [
            "Enabled",
            "Disabled"
          ],
          "description": "Denotes whether the gateway EUI connection status event topic is enabled or disabled."
        }
      }
    },
    "LoRaWANJoinEventNotificationConfigurations": {
      "type": "object",
      "properties": {
        "DevEuiEventTopic": {
          "type": "string",
          "enum": [
            "Enabled",
            "Disabled"
          ],
          "description": "Denotes whether the Dev EUI join event topic is enabled or disabled."
        }
      }
    },
    "MessageDeliveryStatusEventConfiguration": {
      "type": "object",
      "properties": {
        "Sidewalk": {
          "$ref": "#/$defs/SidewalkEventNotificationConfigurations"
        },
        "WirelessDeviceIdEventTopic": {
          "type": "string",
          "enum": [
            "Enabled",
            "Disabled"
          ],
          "description": "Denotes whether the wireless device ID message delivery status event topic is enabled or disabled."
        }
      }
    },
    "ProximityEventConfiguration": {
      "type": "object",
      "properties": {
        "Sidewalk": {
          "$ref": "#/$defs/SidewalkEventNotificationConfigurations"
        },
        "WirelessDeviceIdEventTopic": {
          "type": "string",
          "enum": [
            "Enabled",
            "Disabled"
          ],
          "description": "Denotes whether the wireless device ID proximity event topic is enabled or disabled."
        }
      }
    },
    "SidewalkEventNotificationConfigurations": {
      "type": "object",
      "properties": {
        "AmazonIdEventTopic": {
          "type": "string",
          "enum": [
            "Enabled",
            "Disabled"
          ],
          "description": "Denotes whether the Amazon ID event topic is enabled or disabled."
        }
      }
    }
  }
}