{
 "additionalProperties": false,
 "definitions": {
  "Arn": {
   "maxLength": 2048,
   "type": "string"
  },
  "BorrowConfiguration": {
   "additionalProperties": false,
   "properties": {
    "AllowEarlyCheckIn": {
     "type": "boolean"
    },
    "MaxTimeToLiveInMinutes": {
     "type": "integer"
    }
   },
   "required": [
    "MaxTimeToLiveInMinutes",
    "AllowEarlyCheckIn"
   ],
   "type": "object"
  },
  "ConsumptionConfiguration": {
   "additionalProperties": false,
   "properties": {
    "BorrowConfiguration": {
     "$ref": "#/definitions/BorrowConfiguration"
    },
    "ProvisionalConfiguration": {
     "$ref": "#/definitions/ProvisionalConfiguration"
    },
    "RenewType": {
     "enum": [
      "Monthly",
      "None",
      "Weekly"
     ],
     "type": "string"
    }
   },
   "type": "object"
  },
  "Entitlement": {
   "additionalProperties": false,
   "properties": {
    "AllowCheckIn": {
     "type": "boolean"
    },
    "MaxCount": {
     "type": "integer"
    },
    "Name": {
     "type": "string"
    },
    "Overage": {
     "type": "boolean"
    },
    "Unit": {
     "enum": [
      "Bits",
      "Bits/Second",
      "Bytes",
      "Bytes/Second",
      "Count",
      "Count/Second",
      "Gigabits",
      "Gigabits/Second",
      "Gigabytes",
      "Gigabytes/Second",
      "Kilobits",
      "Kilobits/Second",
      "Kilobytes",
      "Kilobytes/Second",
      "Megabits",
      "Megabits/Second",
      "Megabytes",
      "Megabytes/Second",
      "Microseconds",
      "Milliseconds",
      "None",
      "Percent",
      "Seconds",
      "Terabits",
      "Terabits/Second",
      "Terabytes",
      "Terabytes/Second"
     ],
     "type": "string"
    },
    "Value": {
     "type": "string"
    }
   },
   "required": [
    "Name",
    "Unit"
   ],
   "type": "object"
  },
  "IssuerData": {
   "additionalProperties": false,
   "properties": {
    "Name": {
     "type": "string"
    },
    "SignKey": {
     "type": "string"
    }
   },
   "required": [
    "Name"
   ],
   "type": "object"
  },
  "LicenseStatus": {
   "type": "string"
  },
  "Metadata": {
   "additionalProperties": false,
   "properties": {
    "Name": {
     "type": "string"
    },
    "Value": {
     "type": "string"
    }
   },
   "required": [
    "Name",
    "Value"
   ],
   "type": "object"
  },
  "ProvisionalConfiguration": {
   "additionalProperties": false,
   "properties": {
    "MaxTimeToLiveInMinutes": {
     "type": "integer"
    }
   },
   "required": [
    "MaxTimeToLiveInMinutes"
   ],
   "type": "object"
  },
  "ValidityDateFormat": {
   "additionalProperties": false,
   "properties": {
    "Begin": {
     "format": "date-time",
     "maxLength": 50,
     "pattern": "^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[0-1]|0[1-9]|[1-2][0-9])T(2[0-3]|[0-1][0-9]):([0-5][0-9]):([0-5][0-9])(\\.[0-9]+)?(Z|[+-](?:2[ 0-3]|[0-1][0-9]):[0-5][0-9])+$",
     "type": "string"
    },
    "End": {
     "format": "date-time",
     "maxLength": 50,
     "pattern": "^(-?(?:[1-9][0-9]*)?[0-9]{4})-(1[0-2]|0[1-9])-(3[0-1]|0[1-9]|[1-2][0-9])T(2[0-3]|[0-1][0-9]):([0-5][0-9]):([0-5][0-9])(\\.[0-9]+)?(Z|[+-](?:2[ 0-3]|[0-1][0-9]):[0-5][0-9])+$",
     "type": "string"
    }
   },
   "required": [
    "Begin",
    "End"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/LicenseArn"
 ],
 "properties": {
  "Beneficiary": {
   "type": "string"
  },
  "ConsumptionConfiguration": {
   "$ref": "#/definitions/ConsumptionConfiguration"
  },
  "Entitlements": {
   "items": {
    "$ref": "#/definitions/Entitlement"
   },
   "type": "array",
   "uniqueItems": true
  },
  "HomeRegion": {
   "type": "string"
  },
  "Issuer": {
   "$ref": "#/definitions/IssuerData"
  },
  "LicenseArn": {
   "$ref": "#/definitions/Arn"
  },
  "LicenseMetadata": {
   "items": {
    "$ref": "#/definitions/Metadata"
   },
   "type": "array",
   "uniqueItems": true
  },
  "LicenseName": {
   "type": "string"
  },
  "ProductName": {
   "type": "string"
  },
  "ProductSKU": {
   "maxLength": 1024,
   "minLength": 1,
   "type": "string"
  },
  "Status": {
   "$ref": "#/definitions/LicenseStatus"
  },
  "Validity": {
   "$ref": "#/definitions/ValidityDateFormat"
  },
  "Version": {
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/LicenseArn",
  "/properties/Version"
 ],
 "required": [
  "LicenseName",
  "ProductName",
  "Issuer",
  "HomeRegion",
  "Validity",
  "ConsumptionConfiguration",
  "Entitlements"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-licensemanager.git",
 "typeName": "AWS::LicenseManager::License",
 "writeOnlyProperties": [
  "/properties/Status"
 ]
}
