{
  "typeName" : "AWS::Panorama::Package",
  "description" : "Schema for Package CloudFormation Resource",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "definitions" : {
    "NodePackageName" : {
      "type" : "string",
      "minLength" : 1,
      "maxLength" : 128,
      "pattern" : "^[a-zA-Z0-9\\-\\_]+$"
    },
    "NodePackageId" : {
      "type" : "string",
      "minLength" : 1,
      "maxLength" : 255,
      "pattern" : "^[a-zA-Z0-9\\-\\_\\/]+$"
    },
    "NodePackageArn" : {
      "type" : "string",
      "minLength" : 1,
      "maxLength" : 255
    },
    "Timestamp" : {
      "type" : "integer"
    },
    "StorageLocation" : {
      "type" : "object",
      "properties" : {
        "Bucket" : {
          "type" : "string"
        },
        "RepoPrefixLocation" : {
          "type" : "string"
        },
        "GeneratedPrefixLocation" : {
          "type" : "string"
        },
        "BinaryPrefixLocation" : {
          "type" : "string"
        },
        "ManifestPrefixLocation" : {
          "type" : "string"
        }
      },
      "additionalProperties" : false
    },
    "Tag" : {
      "type" : "object",
      "properties" : {
        "Key" : {
          "type" : "string",
          "minLength" : 1,
          "maxLength" : 128,
          "pattern" : "^.+$"
        },
        "Value" : {
          "type" : "string",
          "minLength" : 0,
          "maxLength" : 256,
          "pattern" : "^.+$"
        }
      },
      "required" : [ "Key", "Value" ],
      "additionalProperties" : false
    },
    "TagList" : {
      "type" : "array",
      "uniqueItems" : true,
      "insertionOrder" : false,
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    }
  },
  "properties" : {
    "PackageName" : {
      "$ref" : "#/definitions/NodePackageName"
    },
    "PackageId" : {
      "$ref" : "#/definitions/NodePackageId"
    },
    "Arn" : {
      "$ref" : "#/definitions/NodePackageArn"
    },
    "StorageLocation" : {
      "$ref" : "#/definitions/StorageLocation"
    },
    "CreatedTime" : {
      "$ref" : "#/definitions/Timestamp"
    },
    "Tags" : {
      "$ref" : "#/definitions/TagList"
    }
  },
  "additionalProperties" : false,
  "taggable" : true,
  "required" : [ "PackageName" ],
  "readOnlyProperties" : [ "/properties/PackageId", "/properties/Arn", "/properties/CreatedTime", "/properties/StorageLocation/Bucket", "/properties/StorageLocation/RepoPrefixLocation", "/properties/StorageLocation/GeneratedPrefixLocation", "/properties/StorageLocation/BinaryPrefixLocation", "/properties/StorageLocation/ManifestPrefixLocation" ],
  "createOnlyProperties" : [ "/properties/PackageName" ],
  "primaryIdentifier" : [ "/properties/PackageId" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "panorama:CreatePackage", "panorama:ListTagsForResource", "panorama:TagResource" ]
    },
    "read" : {
      "permissions" : [ "panorama:DescribePackage", "panorama:ListTagsForResource" ]
    },
    "update" : {
      "permissions" : [ "panorama:DescribePackage", "panorama:ListTagsForResource", "panorama:TagResource", "panorama:UntagResource" ]
    },
    "list" : {
      "permissions" : [ "panorama:ListPackages" ]
    },
    "delete" : {
      "permissions" : [ "panorama:DeletePackage" ]
    }
  }
}