{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-datazone/json-schema/amazon-datazone-update-account-pool-input-schema.json",
  "title": "UpdateAccountPoolInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-datazone-account-pools-api-openapi.yml#/components/schemas/UpdateAccountPoolInput",
  "type": "object",
  "properties": {
    "domainIdentifier": {
      "type": "string",
      "description": "The domain ID where the account pool that is to be updated lives."
    },
    "identifier": {
      "type": "string",
      "description": "The ID of the account pool that is to be updated."
    },
    "name": {
      "type": "string",
      "description": "The name of the account pool that is to be updated."
    },
    "description": {
      "type": "string",
      "description": "The description of the account pool that is to be udpated."
    },
    "resolutionStrategy": {
      "type": "string",
      "enum": [
        "MANUAL"
      ],
      "description": "The mechanism used to resolve the account selection from the account pool."
    },
    "accountSource": {
      "$ref": "#/$defs/AccountSource"
    }
  },
  "required": [
    "domainIdentifier",
    "identifier"
  ],
  "$defs": {
    "AccountInfo": {
      "type": "object",
      "properties": {
        "awsAccountId": {
          "type": "string",
          "description": "The account ID."
        },
        "supportedRegions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The regions supported for an account within an account pool."
        },
        "awsAccountName": {
          "type": "string",
          "description": "The account name."
        }
      },
      "required": [
        "awsAccountId",
        "supportedRegions"
      ]
    },
    "AccountSource": {
      "type": "object",
      "properties": {
        "accounts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AccountInfo"
          },
          "description": "The static list of accounts within an account pool."
        },
        "customAccountPoolHandler": {
          "$ref": "#/$defs/CustomAccountPoolHandler"
        }
      },
      "description": "Exactly one member is set."
    },
    "CustomAccountPoolHandler": {
      "type": "object",
      "properties": {
        "lambdaFunctionArn": {
          "type": "string",
          "description": "The ARN of the Amazon Web Services Lambda function for the custom Amazon Web Services Lambda handler."
        },
        "lambdaExecutionRoleArn": {
          "type": "string",
          "description": "The ARN of the IAM role that enables Amazon SageMaker Unified Studio to invoke the Amazon Web Services Lambda funtion if the account source is the custom account pool handler."
        }
      },
      "required": [
        "lambdaFunctionArn"
      ]
    }
  }
}