{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datazone/json-schema/amazon-datazone-update-subscription-target-output-schema.json",
  "title": "UpdateSubscriptionTargetOutput",
  "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/UpdateSubscriptionTargetOutput",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Identifier of the subscription target that is to be updated."
    },
    "authorizedPrincipals": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The authorized principals to be updated as part of the UpdateSubscriptionTarget action. Updates are supported in batches of 5 at a time."
    },
    "domainId": {
      "type": "string",
      "description": "The identifier of the Amazon DataZone domain in which a subscription target is to be updated."
    },
    "projectId": {
      "type": "string",
      "description": "The identifier of the project in which a subscription target is to be updated."
    },
    "environmentId": {
      "type": "string",
      "description": "The identifier of the environment in which a subscription target is to be updated."
    },
    "name": {
      "type": "string",
      "description": "The name to be updated as part of the UpdateSubscriptionTarget action."
    },
    "type": {
      "type": "string",
      "description": "The type to be updated as part of the UpdateSubscriptionTarget action."
    },
    "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 a 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 to be updated as part of the UpdateSubscriptionTarget action."
    },
    "applicableAssetTypes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The applicable asset types to be updated as part of the UpdateSubscriptionTarget action."
    },
    "subscriptionTargetConfig": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SubscriptionTargetForm"
      },
      "description": "The configuration to be updated as part of the UpdateSubscriptionTarget action."
    },
    "provider": {
      "type": "string",
      "description": "The provider to be updated as part of the UpdateSubscriptionTarget action."
    },
    "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"
      ]
    }
  }
}