{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datazone/json-schema/amazon-datazone-create-subscription-target-output-schema.json",
  "title": "CreateSubscriptionTargetOutput",
  "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/CreateSubscriptionTargetOutput",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The ID of the subscription target."
    },
    "authorizedPrincipals": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The authorised principals of the subscription target."
    },
    "domainId": {
      "type": "string",
      "description": "The ID of the Amazon DataZone domain in which the subscription target was created."
    },
    "projectId": {
      "type": "string",
      "description": "???"
    },
    "environmentId": {
      "type": "string",
      "description": "The ID of the environment in which the subscription target was created."
    },
    "name": {
      "type": "string",
      "description": "The name of the subscription target."
    },
    "type": {
      "type": "string",
      "description": "The type of the subscription target."
    },
    "createdBy": {
      "type": "string",
      "description": "The Amazon DataZone user who created the subscription target."
    },
    "updatedBy": {
      "type": "string",
      "description": "The Amazon DataZone user who updated the subscription target."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp of when the subscription target was created."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp of when the subscription target was updated."
    },
    "manageAccessRole": {
      "type": "string",
      "description": "The manage access role with which the subscription target was created."
    },
    "applicableAssetTypes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The asset types that can be included in the subscription target."
    },
    "subscriptionTargetConfig": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SubscriptionTargetForm"
      },
      "description": "The configuration of the subscription target."
    },
    "provider": {
      "type": "string",
      "description": "The provider of the subscription target."
    },
    "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": [
    "id",
    "authorizedPrincipals",
    "domainId",
    "projectId",
    "environmentId",
    "name",
    "type",
    "createdBy",
    "createdAt",
    "applicableAssetTypes",
    "subscriptionTargetConfig",
    "provider"
  ],
  "$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"
      ]
    }
  }
}