{
  "typeName" : "AWS::NetworkManager::Site",
  "description" : "The AWS::NetworkManager::Site type describes a site.",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-networkmanager.git",
  "definitions" : {
    "Tag" : {
      "description" : "A key-value pair to associate with a site resource.",
      "type" : "object",
      "properties" : {
        "Key" : {
          "type" : "string"
        },
        "Value" : {
          "type" : "string"
        }
      },
      "additionalProperties" : false
    },
    "Location" : {
      "description" : "The location of the site",
      "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" : {
    "SiteArn" : {
      "description" : "The Amazon Resource Name (ARN) of the site.",
      "type" : "string"
    },
    "SiteId" : {
      "description" : "The ID of the site.",
      "type" : "string"
    },
    "Description" : {
      "description" : "The description of the site.",
      "type" : "string"
    },
    "Tags" : {
      "description" : "The tags for the site.",
      "type" : "array",
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    },
    "GlobalNetworkId" : {
      "description" : "The ID of the global network.",
      "type" : "string"
    },
    "Location" : {
      "description" : "The location of the site.",
      "$ref" : "#/definitions/Location"
    }
  },
  "additionalProperties" : false,
  "required" : [ "GlobalNetworkId" ],
  "readOnlyProperties" : [ "/properties/SiteId", "/properties/SiteArn" ],
  "createOnlyProperties" : [ "/properties/GlobalNetworkId" ],
  "primaryIdentifier" : [ "/properties/GlobalNetworkId", "/properties/SiteId" ],
  "additionalIdentifiers" : [ [ "/properties/SiteArn" ] ],
  "handlers" : {
    "create" : {
      "permissions" : [ "networkmanager:CreateSite" ]
    },
    "read" : {
      "permissions" : [ "networkmanager:GetSites" ]
    },
    "update" : {
      "permissions" : [ "networkmanager:ListTagsForResource", "networkmanager:TagResource", "networkmanager:UntagResource", "networkmanager:UpdateSite" ]
    },
    "delete" : {
      "permissions" : [ "networkmanager:DeleteSite" ]
    },
    "list" : {
      "permissions" : [ "networkmanager:GetSites" ]
    }
  }
}