{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datazone/json-schema/amazon-datazone-create-subscription-grant-input-schema.json",
  "title": "CreateSubscriptionGrantInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-datazone-subscription-grants-api-openapi.yml#/components/schemas/CreateSubscriptionGrantInput",
  "type": "object",
  "properties": {
    "domainIdentifier": {
      "type": "string",
      "description": "The ID of the Amazon DataZone domain in which the subscription grant is created."
    },
    "environmentIdentifier": {
      "type": "string",
      "description": "The ID of the environment in which the subscription grant is created."
    },
    "subscriptionTargetIdentifier": {
      "type": "string",
      "description": "The ID of the subscription target for which the subscription grant is created."
    },
    "grantedEntity": {
      "$ref": "#/$defs/GrantedEntityInput"
    },
    "assetTargetNames": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AssetTargetNameMap"
      },
      "description": "The names of the assets for which the subscription grant is created."
    },
    "clientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that is provided to ensure the idempotency of the request."
    }
  },
  "required": [
    "domainIdentifier",
    "environmentIdentifier",
    "grantedEntity"
  ],
  "$defs": {
    "AssetTargetNameMap": {
      "type": "object",
      "properties": {
        "assetId": {
          "type": "string",
          "description": "The identifier of the inventory asset."
        },
        "targetName": {
          "type": "string",
          "description": "The target name in the asset target name map."
        }
      },
      "required": [
        "assetId",
        "targetName"
      ]
    },
    "GrantedEntityInput": {
      "type": "object",
      "properties": {
        "listing": {
          "$ref": "#/$defs/ListingRevisionInput"
        }
      },
      "description": "Exactly one member is set."
    },
    "ListingRevisionInput": {
      "type": "object",
      "properties": {
        "identifier": {
          "type": "string",
          "description": "An identifier of revision to be made to an asset published in a Amazon DataZone catalog."
        },
        "revision": {
          "type": "string",
          "description": "The details of a revision to be made to an asset published in a Amazon DataZone catalog."
        }
      },
      "required": [
        "identifier",
        "revision"
      ]
    }
  }
}