{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-service-catalog/json-schema/amazon-service-catalog-update-portfolio-share-input-schema.json",
  "title": "UpdatePortfolioShareInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-service-catalog-portfolio-share-api-openapi.yml#/components/schemas/UpdatePortfolioShareInput",
  "type": "object",
  "properties": {
    "AcceptLanguage": {
      "type": "string",
      "description": "The language code. jp - Japanese zh - Chinese"
    },
    "PortfolioId": {
      "type": "string",
      "description": "The unique identifier of the portfolio for which the share will be updated."
    },
    "AccountId": {
      "type": "string",
      "description": "The Amazon Web Services account Id of the recipient account. This field is required when updating an external account to account type share."
    },
    "OrganizationNode": {
      "$ref": "#/$defs/OrganizationNode"
    },
    "ShareTagOptions": {
      "type": "boolean",
      "description": "Enables or disables TagOptions sharing for the portfolio share. If this field is not provided, the current state of TagOptions sharing on the portfolio share will not be modified."
    },
    "SharePrincipals": {
      "type": "boolean",
      "description": "A flag to enables or disables Principals sharing in the portfolio. If this field is not provided, the current state of the Principals sharing on the portfolio share will not be modified."
    }
  },
  "required": [
    "PortfolioId"
  ],
  "$defs": {
    "OrganizationNode": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "ORGANIZATION",
            "ORGANIZATIONAL_UNIT",
            "ACCOUNT"
          ],
          "description": "The organization node type."
        },
        "Value": {
          "type": "string",
          "description": "The identifier of the organization node."
        }
      }
    }
  }
}