{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-license-manager/json-schema/amazon-license-manager-create-grant-version-request-schema.json",
  "title": "CreateGrantVersionRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-license-manager-operations-api-openapi.yml#/components/schemas/CreateGrantVersionRequest",
  "type": "object",
  "properties": {
    "ClientToken": {
      "type": "string",
      "description": "Unique, case-sensitive identifier that you provide to ensure the idempotency of the request."
    },
    "GrantArn": {
      "type": "string",
      "description": "Amazon Resource Name (ARN) of the grant."
    },
    "GrantName": {
      "type": "string",
      "description": "Grant name."
    },
    "AllowedOperations": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "CreateGrant",
          "CheckoutLicense",
          "CheckoutBorrowLicense",
          "CheckInLicense",
          "ExtendConsumptionLicense",
          "ListPurchasedLicenses",
          "CreateToken",
          "ListReceivedLicenses"
        ]
      },
      "description": "Allowed operations for the grant."
    },
    "Status": {
      "type": "string",
      "enum": [
        "PENDING_WORKFLOW",
        "PENDING_ACCEPT",
        "REJECTED",
        "ACTIVE",
        "FAILED_WORKFLOW",
        "DELETED",
        "PENDING_DELETE",
        "DISABLED",
        "WORKFLOW_COMPLETED"
      ],
      "description": "Grant status."
    },
    "StatusReason": {
      "type": "string",
      "description": "Grant status reason."
    },
    "SourceVersion": {
      "type": "string",
      "description": "Current version of the grant."
    },
    "Options": {
      "$ref": "#/$defs/Options"
    }
  },
  "required": [
    "ClientToken",
    "GrantArn"
  ],
  "$defs": {
    "Options": {
      "type": "object",
      "properties": {
        "ActivationOverrideBehavior": {
          "type": "string",
          "enum": [
            "DISTRIBUTED_GRANTS_ONLY",
            "ALL_GRANTS_PERMITTED_BY_ISSUER"
          ],
          "description": "An activation option for your grant that determines the behavior of activating a grant. Activation options can only be used with granted licenses sourced from the Amazon Web Services Marketplace. Additionally, the operation must activate the grant. For the CreateGrantVersion operation, specify ACTIVE for the Status parameter. For the CreateGrant operation, specify ACTIVE for the DesiredStatus option. As a license administrator, you can optionally specify an ActivationOverrideBehavior when activating a grant. As a grantor, you can optionally specify an ActivationOverrideBehavior when you activa"
        },
        "DesiredStatus": {
          "type": "string",
          "enum": [
            "PENDING_WORKFLOW",
            "PENDING_ACCEPT",
            "REJECTED",
            "ACTIVE",
            "FAILED_WORKFLOW",
            "DELETED",
            "PENDING_DELETE",
            "DISABLED",
            "WORKFLOW_COMPLETED"
          ],
          "description": "The status of the grant after License Manager creates it. The only supported value is ACTIVE. Specify ACTIVE to create and activate the grant in one request. You can specify this option only for the CreateGrant operation, and only when the grant principal is an organization or an organizational unit (OU). To change the status of an existing grant, use the Status parameter of the CreateGrantVersion operation."
        }
      }
    }
  }
}