{
 "additionalProperties": false,
 "definitions": {
  "Arn": {
   "maxLength": 2048,
   "minLength": 0,
   "pattern": "^arn:aws[a-zA-Z-]*:[A-Za-z0-9][A-Za-z0-9_/.-]{0,62}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9_/.-]{0,63}:[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,1023}$",
   "type": "string"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "type": "string"
    },
    "Value": {
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/GrantArn"
 ],
 "properties": {
  "AllowedOperations": {
   "items": {
    "enum": [
     "CheckInLicense",
     "CheckoutBorrowLicense",
     "CheckoutLicense",
     "CreateGrant",
     "CreateToken",
     "ExtendConsumptionLicense",
     "ListPurchasedLicenses"
    ],
    "type": "string"
   },
   "maxItems": 8,
   "minItems": 1,
   "type": "array",
   "uniqueItems": true
  },
  "GrantArn": {
   "$ref": "#/definitions/Arn"
  },
  "GrantName": {
   "type": "string"
  },
  "HomeRegion": {
   "type": "string"
  },
  "LicenseArn": {
   "$ref": "#/definitions/Arn"
  },
  "Principals": {
   "items": {
    "$ref": "#/definitions/Arn"
   },
   "maxItems": 1,
   "minItems": 1,
   "type": "array",
   "uniqueItems": true
  },
  "Status": {
   "enum": [
    "ACTIVE",
    "DELETED",
    "DISABLED",
    "FAILED_WORKFLOW",
    "PENDING_ACCEPT",
    "PENDING_DELETE",
    "PENDING_WORKFLOW",
    "REJECTED",
    "WORKFLOW_COMPLETED"
   ],
   "type": "string"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "type": "array",
   "uniqueItems": false
  },
  "Version": {
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/GrantArn",
  "/properties/Version"
 ],
 "required": [],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::LicenseManager::Grant",
 "writeOnlyProperties": [
  "/properties/Principals",
  "/properties/AllowedOperations",
  "/properties/Status"
 ]
}
