{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-license-manager/json-schema/amazon-license-manager-list-licenses-response-schema.json",
  "title": "ListLicensesResponse",
  "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/ListLicensesResponse",
  "type": "object",
  "properties": {
    "Licenses": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/License"
      },
      "description": "License details."
    },
    "NextToken": {
      "type": "string",
      "description": "Token for the next set of results."
    }
  },
  "$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"
      ]
    },
    "IssuerDetails": {
      "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."
        },
        "KeyFingerprint": {
          "type": "string",
          "description": "Issuer key fingerprint."
        }
      }
    },
    "License": {
      "type": "object",
      "properties": {
        "LicenseArn": {
          "type": "string",
          "description": "Amazon Resource Name (ARN) of the license."
        },
        "LicenseName": {
          "type": "string",
          "description": "License name."
        },
        "ProductName": {
          "type": "string",
          "description": "Product name."
        },
        "ProductSKU": {
          "type": "string",
          "description": "Product SKU."
        },
        "Issuer": {
          "$ref": "#/$defs/IssuerDetails"
        },
        "HomeRegion": {
          "type": "string",
          "description": "Home Region of the license."
        },
        "Status": {
          "type": "string",
          "enum": [
            "AVAILABLE",
            "PENDING_AVAILABLE",
            "DEACTIVATED",
            "SUSPENDED",
            "EXPIRED",
            "PENDING_DELETE",
            "DELETED"
          ],
          "description": "License status."
        },
        "Validity": {
          "$ref": "#/$defs/DatetimeRange"
        },
        "Beneficiary": {
          "type": "string",
          "description": "License beneficiary."
        },
        "Entitlements": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Entitlement"
          },
          "description": "License entitlements."
        },
        "ConsumptionConfiguration": {
          "$ref": "#/$defs/ConsumptionConfiguration"
        },
        "LicenseMetadata": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Metadata"
          },
          "description": "License metadata."
        },
        "CreateTime": {
          "type": "string",
          "description": "License creation time."
        },
        "Version": {
          "type": "string",
          "description": "License version."
        }
      }
    },
    "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"
      ]
    }
  }
}