{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datazone/json-schema/amazon-datazone-update-subscription-target-input-schema.json",
  "title": "UpdateSubscriptionTargetInput",
  "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/UpdateSubscriptionTargetInput",
  "type": "object",
  "properties": {
    "domainIdentifier": {
      "type": "string",
      "description": "The identifier of the Amazon DataZone domain in which a subscription target is to be updated."
    },
    "environmentIdentifier": {
      "type": "string",
      "description": "The identifier of the environment in which a subscription target is to be updated."
    },
    "identifier": {
      "type": "string",
      "description": "Identifier of the subscription target that is to be updated."
    },
    "name": {
      "type": "string",
      "description": "The name to be updated as part of the UpdateSubscriptionTarget action."
    },
    "authorizedPrincipals": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The authorized principals 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."
    },
    "manageAccessRole": {
      "type": "string",
      "description": "The manage access role 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": [
    "domainIdentifier",
    "environmentIdentifier",
    "identifier"
  ],
  "$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"
      ]
    }
  }
}