{
  "typeName" : "AWS::NetworkManager::Device",
  "description" : "The AWS::NetworkManager::Device type describes a device.",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-networkmanager.git",
  "definitions" : {
    "Tag" : {
      "description" : "A key-value pair to associate with a device resource.",
      "type" : "object",
      "properties" : {
        "Key" : {
          "type" : "string"
        },
        "Value" : {
          "type" : "string"
        }
      },
      "additionalProperties" : false
    },
    "Location" : {
      "description" : "The site location.",
      "type" : "object",
      "properties" : {
        "Address" : {
          "description" : "The physical address.",
          "type" : "string"
        },
        "Latitude" : {
          "description" : "The latitude.",
          "type" : "string"
        },
        "Longitude" : {
          "description" : "The longitude.",
          "type" : "string"
        }
      },
      "additionalProperties" : false
    }
  },
  "properties" : {
    "DeviceArn" : {
      "description" : "The Amazon Resource Name (ARN) of the device.",
      "type" : "string"
    },
    "DeviceId" : {
      "description" : "The ID of the device.",
      "type" : "string"
    },
    "Description" : {
      "description" : "The description of the device.",
      "type" : "string"
    },
    "Tags" : {
      "description" : "The tags for the device.",
      "type" : "array",
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    },
    "GlobalNetworkId" : {
      "description" : "The ID of the global network.",
      "type" : "string"
    },
    "Location" : {
      "description" : "The site location.",
      "$ref" : "#/definitions/Location"
    },
    "Model" : {
      "description" : "The device model",
      "type" : "string"
    },
    "SerialNumber" : {
      "description" : "The device serial number.",
      "type" : "string"
    },
    "SiteId" : {
      "description" : "The site ID.",
      "type" : "string"
    },
    "Type" : {
      "description" : "The device type.",
      "type" : "string"
    },
    "Vendor" : {
      "description" : "The device vendor.",
      "type" : "string"
    }
  },
  "additionalProperties" : false,
  "required" : [ "GlobalNetworkId" ],
  "readOnlyProperties" : [ "/properties/DeviceId", "/properties/DeviceArn" ],
  "createOnlyProperties" : [ "/properties/GlobalNetworkId" ],
  "primaryIdentifier" : [ "/properties/GlobalNetworkId", "/properties/DeviceId" ],
  "additionalIdentifiers" : [ [ "/properties/DeviceArn" ] ],
  "handlers" : {
    "create" : {
      "permissions" : [ "networkmanager:CreateDevice" ]
    },
    "read" : {
      "permissions" : [ "networkmanager:GetDevices" ]
    },
    "update" : {
      "permissions" : [ "networkmanager:UpdateDevice", "networkmanager:ListTagsForResource", "networkmanager:TagResource", "networkmanager:UntagResource" ]
    },
    "delete" : {
      "permissions" : [ "networkmanager:DeleteDevice" ]
    },
    "list" : {
      "permissions" : [ "networkmanager:GetDevices" ]
    }
  }
}