{
  "typeName" : "AWS::NetworkManager::Link",
  "description" : "The AWS::NetworkManager::Link type describes a link.",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-networkmanager.git",
  "definitions" : {
    "Tag" : {
      "description" : "A key-value pair to associate with a link resource.",
      "type" : "object",
      "properties" : {
        "Key" : {
          "type" : "string"
        },
        "Value" : {
          "type" : "string"
        }
      },
      "additionalProperties" : false
    },
    "Bandwidth" : {
      "description" : "The bandwidth for the link.",
      "type" : "object",
      "properties" : {
        "DownloadSpeed" : {
          "description" : "Download speed in Mbps.",
          "type" : "integer"
        },
        "UploadSpeed" : {
          "description" : "Upload speed in Mbps.",
          "type" : "integer"
        }
      },
      "additionalProperties" : false
    }
  },
  "properties" : {
    "LinkArn" : {
      "description" : "The Amazon Resource Name (ARN) of the link.",
      "type" : "string"
    },
    "LinkId" : {
      "description" : "The ID of the link.",
      "type" : "string"
    },
    "GlobalNetworkId" : {
      "description" : "The ID of the global network.",
      "type" : "string"
    },
    "SiteId" : {
      "description" : "The ID of the site",
      "type" : "string"
    },
    "Bandwidth" : {
      "description" : "The Bandwidth for the link.",
      "$ref" : "#/definitions/Bandwidth"
    },
    "Provider" : {
      "description" : "The provider of the link.",
      "type" : "string"
    },
    "Description" : {
      "description" : "The description of the link.",
      "type" : "string"
    },
    "Tags" : {
      "description" : "The tags for the link.",
      "type" : "array",
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    },
    "Type" : {
      "description" : "The type of the link.",
      "type" : "string"
    }
  },
  "additionalProperties" : false,
  "required" : [ "GlobalNetworkId", "SiteId", "Bandwidth" ],
  "readOnlyProperties" : [ "/properties/LinkId", "/properties/LinkArn" ],
  "createOnlyProperties" : [ "/properties/GlobalNetworkId", "/properties/SiteId" ],
  "primaryIdentifier" : [ "/properties/GlobalNetworkId", "/properties/LinkId" ],
  "additionalIdentifiers" : [ [ "/properties/LinkArn" ] ],
  "handlers" : {
    "create" : {
      "permissions" : [ "networkmanager:CreateLink" ]
    },
    "read" : {
      "permissions" : [ "networkmanager:GetLinks" ]
    },
    "update" : {
      "permissions" : [ "networkmanager:ListTagsForResource", "networkmanager:TagResource", "networkmanager:UntagResource", "networkmanager:UpdateLink" ]
    },
    "delete" : {
      "permissions" : [ "networkmanager:DeleteLink" ]
    },
    "list" : {
      "permissions" : [ "networkmanager:GetLinks" ]
    }
  }
}