{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datazone/json-schema/amazon-datazone-create-subscription-target-input-schema.json",
  "title": "CreateSubscriptionTargetInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-datazone-subscription-targets-api-openapi.yml#/components/schemas/CreateSubscriptionTargetInput",
  "type": "object",
  "properties": {
    "domainIdentifier": {
      "type": "string",
      "description": "The ID of the Amazon DataZone domain in which subscription target is created."
    },
    "environmentIdentifier": {
      "type": "string",
      "description": "The ID of the environment in which subscription target is created."
    },
    "name": {
      "type": "string",
      "description": "The name of the subscription target."
    },
    "type": {
      "type": "string",
      "description": "The type of the subscription target."
    },
    "subscriptionTargetConfig": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SubscriptionTargetForm"
      },
      "description": "The configuration of the subscription target."
    },
    "authorizedPrincipals": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The authorized principals of the subscription target."
    },
    "manageAccessRole": {
      "type": "string",
      "description": "The manage access role that is used to create the subscription target."
    },
    "applicableAssetTypes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The asset types that can be included in the subscription target."
    },
    "provider": {
      "type": "string",
      "description": "The provider of the subscription target."
    },
    "clientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that is provided to ensure the idempotency of the request."
    },
    "subscriptionGrantCreationMode": {
      "type": "string",
      "enum": [
        "AUTOMATIC",
        "MANUAL"
      ],
      "description": "Determines the subscription grant creation mode for this target, defining if grants are auto-created upon subscription approval or managed manually."
    }
  },
  "required": [
    "domainIdentifier",
    "environmentIdentifier",
    "name",
    "type",
    "subscriptionTargetConfig",
    "authorizedPrincipals",
    "manageAccessRole",
    "applicableAssetTypes"
  ],
  "$defs": {
    "SubscriptionTargetForm": {
      "type": "object",
      "properties": {
        "formName": {
          "type": "string",
          "description": "The form name included in the subscription target configuration."
        },
        "content": {
          "type": "string",
          "description": "The content of the subscription target configuration."
        }
      },
      "required": [
        "formName",
        "content"
      ]
    }
  }
}