{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloud-wan/json-schema/amazon-cloud-wan-create-device-response-schema.json",
  "title": "CreateDeviceResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cloud-wan-devices-api-openapi.yml#/components/schemas/CreateDeviceResponse",
  "type": "object",
  "properties": {
    "Device": {
      "$ref": "#/$defs/Device"
    }
  },
  "$defs": {
    "AWSLocation": {
      "type": "object",
      "properties": {
        "Zone": {
          "type": "string",
          "description": "The Zone that the device is located in. Specify the ID of an Availability Zone, Local Zone, Wavelength Zone, or an Outpost."
        },
        "SubnetArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the subnet that the device is located in."
        }
      }
    },
    "Device": {
      "type": "object",
      "properties": {
        "DeviceId": {
          "type": "string",
          "description": "The ID of the device."
        },
        "DeviceArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the device."
        },
        "GlobalNetworkId": {
          "type": "string",
          "description": "The ID of the global network."
        },
        "AWSLocation": {
          "$ref": "#/$defs/AWSLocation"
        },
        "Description": {
          "type": "string",
          "description": "The description of the device."
        },
        "Type": {
          "type": "string",
          "description": "The device type."
        },
        "Vendor": {
          "type": "string",
          "description": "The device vendor."
        },
        "Model": {
          "type": "string",
          "description": "The device model."
        },
        "SerialNumber": {
          "type": "string",
          "description": "The device serial number."
        },
        "Location": {
          "$ref": "#/$defs/Location"
        },
        "SiteId": {
          "type": "string",
          "description": "The site ID."
        },
        "CreatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time that the site was created."
        },
        "State": {
          "type": "string",
          "enum": [
            "PENDING",
            "AVAILABLE",
            "DELETING",
            "UPDATING"
          ],
          "description": "The device state."
        },
        "Tags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Tag"
          },
          "description": "The tags for the device."
        }
      }
    },
    "Location": {
      "type": "object",
      "properties": {
        "Address": {
          "type": "string",
          "description": "The physical address."
        },
        "Latitude": {
          "type": "string",
          "description": "The latitude."
        },
        "Longitude": {
          "type": "string",
          "description": "The longitude."
        }
      }
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The tag key. Constraints: Maximum length of 128 characters."
        },
        "Value": {
          "type": "string",
          "description": "The tag value. Constraints: Maximum length of 256 characters."
        }
      }
    }
  }
}