{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/PackageName",
  "/properties/VersionName"
 ],
 "definitions": {
  "PackageVersionArtifact": {
   "additionalProperties": false,
   "properties": {
    "S3Location": {
     "$ref": "#/definitions/S3Location"
    }
   },
   "required": [
    "S3Location"
   ],
   "type": "object"
  },
  "PackageVersionStatus": {
   "enum": [
    "DRAFT",
    "PUBLISHED",
    "DEPRECATED"
   ],
   "type": "string"
  },
  "ResourceAttributes": {
   "additionalProperties": false,
   "patternProperties": {
    "^[a-zA-Z0-9:_-]+$": {
     "minLength": 1,
     "pattern": "^[^\\p{C}]+$",
     "type": "string"
    }
   },
   "type": "object"
  },
  "S3Location": {
   "additionalProperties": false,
   "properties": {
    "Bucket": {
     "minLength": 1,
     "type": "string"
    },
    "Key": {
     "minLength": 1,
     "type": "string"
    },
    "Version": {
     "type": "string"
    }
   },
   "required": [
    "Bucket",
    "Key",
    "Version"
   ],
   "type": "object"
  },
  "Sbom": {
   "additionalProperties": false,
   "properties": {
    "S3Location": {
     "$ref": "#/definitions/S3Location"
    }
   },
   "required": [
    "S3Location"
   ],
   "type": "object"
  },
  "SbomValidationStatus": {
   "enum": [
    "IN_PROGRESS",
    "FAILED",
    "SUCCEEDED",
    ""
   ],
   "type": "string"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$",
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 1,
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/PackageName",
  "/properties/VersionName"
 ],
 "properties": {
  "Artifact": {
   "$ref": "#/definitions/PackageVersionArtifact"
  },
  "Attributes": {
   "$ref": "#/definitions/ResourceAttributes"
  },
  "Description": {
   "maxLength": 1024,
   "minLength": 0,
   "pattern": "^[^\\p{C}]+$",
   "type": "string"
  },
  "ErrorReason": {
   "type": "string"
  },
  "PackageName": {
   "maxLength": 128,
   "minLength": 1,
   "pattern": "^[a-zA-Z0-9-_.]+$",
   "type": "string"
  },
  "PackageVersionArn": {
   "pattern": "^arn:[!-~]+$",
   "type": "string"
  },
  "Recipe": {
   "maxLength": 3072,
   "minLength": 0,
   "type": "string"
  },
  "Sbom": {
   "$ref": "#/definitions/Sbom"
  },
  "SbomValidationStatus": {
   "$ref": "#/definitions/SbomValidationStatus"
  },
  "Status": {
   "$ref": "#/definitions/PackageVersionStatus"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "maxItems": 50,
   "type": "array",
   "uniqueItems": true
  },
  "VersionName": {
   "maxLength": 64,
   "minLength": 1,
   "pattern": "^[a-zA-Z0-9-_.]+$",
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/ErrorReason",
  "/properties/PackageVersionArn",
  "/properties/Status",
  "/properties/SbomValidationStatus"
 ],
 "required": [
  "PackageName"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-iot",
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::IoT::SoftwarePackageVersion"
}
