{
 "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"
  },
  "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"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "type": "string"
    },
    "Value": {
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  },
  "ValidityDateFormat": {
   "additionalProperties": false,
   "properties": {
    "Begin": {
     "format": "date-time",
     "maxLength": 50,
     "minLength": 0,
     "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,
     "minLength": 0,
     "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"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "type": "array",
   "uniqueItems": false
  },
  "Validity": {
   "$ref": "#/definitions/ValidityDateFormat"
  },
  "Version": {
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/LicenseArn",
  "/properties/Version"
 ],
 "required": [
  "LicenseName",
  "ProductName",
  "Issuer",
  "HomeRegion",
  "Validity",
  "ConsumptionConfiguration",
  "Entitlements",
  "Beneficiary",
  "ProductSKU"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-licensemanager.git",
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::LicenseManager::License"
}
