{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-license-manager/json-schema/amazon-license-manager-create-license-request-schema.json",
  "title": "CreateLicenseRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-license-manager-license-api-openapi.yml#/components/schemas/CreateLicenseRequest",
  "type": "object",
  "properties": {
    "LicenseName": {
      "type": "string",
      "description": "License name."
    },
    "ProductName": {
      "type": "string",
      "description": "Product name."
    },
    "ProductSKU": {
      "type": "string",
      "description": "Product SKU."
    },
    "Issuer": {
      "$ref": "#/$defs/Issuer"
    },
    "HomeRegion": {
      "type": "string",
      "description": "Home Region for the license."
    },
    "Validity": {
      "$ref": "#/$defs/DatetimeRange"
    },
    "Entitlements": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Entitlement"
      },
      "description": "License entitlements."
    },
    "Beneficiary": {
      "type": "string",
      "description": "License beneficiary."
    },
    "ConsumptionConfiguration": {
      "$ref": "#/$defs/ConsumptionConfiguration"
    },
    "LicenseMetadata": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Metadata"
      },
      "description": "Information about the license."
    },
    "ClientToken": {
      "type": "string",
      "description": "Unique, case-sensitive identifier that you provide to ensure the idempotency of the request."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "Tags to add to the license. For more information about tagging support in License Manager, see the TagResource operation."
    }
  },
  "required": [
    "LicenseName",
    "ProductName",
    "ProductSKU",
    "Issuer",
    "HomeRegion",
    "Validity",
    "Entitlements",
    "Beneficiary",
    "ConsumptionConfiguration",
    "ClientToken"
  ],
  "$defs": {
    "BorrowConfiguration": {
      "type": "object",
      "properties": {
        "AllowEarlyCheckIn": {
          "type": "boolean",
          "description": "Indicates whether early check-ins are allowed."
        },
        "MaxTimeToLiveInMinutes": {
          "type": "integer",
          "description": "Maximum time for the borrow configuration, in minutes."
        }
      },
      "required": [
        "AllowEarlyCheckIn",
        "MaxTimeToLiveInMinutes"
      ]
    },
    "ConsumptionConfiguration": {
      "type": "object",
      "properties": {
        "RenewType": {
          "type": "string",
          "enum": [
            "None",
            "Weekly",
            "Monthly"
          ],
          "description": "Renewal frequency."
        },
        "ProvisionalConfiguration": {
          "$ref": "#/$defs/ProvisionalConfiguration"
        },
        "BorrowConfiguration": {
          "$ref": "#/$defs/BorrowConfiguration"
        }
      }
    },
    "DatetimeRange": {
      "type": "object",
      "properties": {
        "Begin": {
          "type": "string",
          "description": "Start of the time range."
        },
        "End": {
          "type": "string",
          "description": "End of the time range."
        }
      },
      "required": [
        "Begin"
      ]
    },
    "Entitlement": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "Entitlement name."
        },
        "Value": {
          "type": "string",
          "description": "Entitlement resource. Use only if the unit is None."
        },
        "MaxCount": {
          "type": "integer",
          "description": "Maximum entitlement count. Use if the unit is not None."
        },
        "Overage": {
          "type": "boolean",
          "description": "Indicates whether overages are allowed."
        },
        "Unit": {
          "type": "string",
          "enum": [
            "Count",
            "None",
            "Seconds",
            "Microseconds",
            "Milliseconds",
            "Bytes",
            "Kilobytes",
            "Megabytes",
            "Gigabytes",
            "Terabytes",
            "Bits",
            "Kilobits",
            "Megabits",
            "Gigabits",
            "Terabits",
            "Percent",
            "Bytes/Second",
            "Kilobytes/Second",
            "Megabytes/Second",
            "Gigabytes/Second",
            "Terabytes/Second",
            "Bits/Second",
            "Kilobits/Second",
            "Megabits/Second",
            "Gigabits/Second",
            "Terabits/Second",
            "Count/Second"
          ],
          "description": "Entitlement unit."
        },
        "AllowCheckIn": {
          "type": "boolean",
          "description": "Indicates whether check-ins are allowed."
        }
      },
      "required": [
        "Name",
        "Unit"
      ]
    },
    "Issuer": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "Issuer name."
        },
        "SignKey": {
          "type": "string",
          "description": "Asymmetric KMS key from Key Management Service. The KMS key must have a key usage of sign and verify, and support the RSASSA-PSS SHA-256 signing algorithm."
        }
      },
      "required": [
        "Name"
      ]
    },
    "Metadata": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The key name."
        },
        "Value": {
          "type": "string",
          "description": "The value."
        }
      }
    },
    "ProvisionalConfiguration": {
      "type": "object",
      "properties": {
        "MaxTimeToLiveInMinutes": {
          "type": "integer",
          "description": "Maximum time for the provisional configuration, in minutes."
        }
      },
      "required": [
        "MaxTimeToLiveInMinutes"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The tag key."
        },
        "Value": {
          "type": "string",
          "description": "The tag value."
        }
      }
    }
  }
}