{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-service-catalog/json-schema/amazon-service-catalog-create-portfolio-share-input-schema.json",
  "title": "CreatePortfolioShareInput",
  "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/CreatePortfolioShareInput",
  "type": "object",
  "properties": {
    "AcceptLanguage": {
      "type": "string",
      "description": "The language code. jp - Japanese zh - Chinese"
    },
    "PortfolioId": {
      "type": "string",
      "description": "The portfolio identifier."
    },
    "AccountId": {
      "type": "string",
      "description": "The Amazon Web Services account ID. For example, 123456789012."
    },
    "OrganizationNode": {
      "$ref": "#/$defs/OrganizationNode"
    },
    "ShareTagOptions": {
      "type": "boolean",
      "description": "Enables or disables TagOptions sharing when creating the portfolio share. If this flag is not provided, TagOptions sharing is disabled."
    },
    "SharePrincipals": {
      "type": "boolean",
      "description": "This parameter is only supported for portfolios with an OrganizationalNode Type of ORGANIZATION or ORGANIZATIONAL_UNIT. Enables or disables Principal sharing when creating the portfolio share. If you do not provide this flag, principal sharing is disabled. When you enable Principal Name Sharing for a portfolio share, the share recipient account end users with a principal that matches any of the associated IAM patterns can provision products from the portfolio. Once shared, the share recipient can view associations of PrincipalType: IAM_PATTERN on their portfolio. You can create the principals "
    }
  },
  "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."
        }
      }
    }
  }
}