{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-update-marketplace-model-endpoint-request-schema.json",
  "title": "UpdateMarketplaceModelEndpointRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-bedrock-marketplace-model-api-openapi.yml#/components/schemas/UpdateMarketplaceModelEndpointRequest",
  "type": "object",
  "properties": {
    "endpointArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the endpoint you want to update."
    },
    "endpointConfig": {
      "$ref": "#/$defs/EndpointConfig"
    },
    "clientRequestToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This token is listed as not required because Amazon Web Services SDKs automatically generate it for you and set this parameter. If you're not using the Amazon Web Services SDK or the CLI, you must provide this token or the action will fail."
    }
  },
  "required": [
    "endpointArn",
    "endpointConfig"
  ],
  "$defs": {
    "EndpointConfig": {
      "type": "object",
      "properties": {
        "sageMaker": {
          "$ref": "#/$defs/SageMakerEndpoint"
        }
      },
      "description": "Exactly one member is set."
    },
    "SageMakerEndpoint": {
      "type": "object",
      "properties": {
        "initialInstanceCount": {
          "type": "integer",
          "description": "The number of Amazon EC2 compute instances to deploy for initial endpoint creation."
        },
        "instanceType": {
          "type": "string",
          "description": "The Amazon EC2 compute instance type to deploy for hosting the model."
        },
        "executionRole": {
          "type": "string",
          "description": "The ARN of the IAM role that Amazon SageMaker can assume to access model artifacts and docker image for deployment on Amazon EC2 compute instances or for batch transform jobs."
        },
        "kmsEncryptionKey": {
          "type": "string",
          "description": "The Amazon Web Services KMS key that Amazon SageMaker uses to encrypt data on the storage volume attached to the Amazon EC2 compute instance that hosts the endpoint."
        },
        "vpc": {
          "$ref": "#/$defs/VpcConfig"
        }
      },
      "required": [
        "initialInstanceCount",
        "instanceType",
        "executionRole"
      ]
    },
    "VpcConfig": {
      "type": "object",
      "properties": {
        "subnetIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "An array of IDs for each subnet in the VPC to use."
        },
        "securityGroupIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "An array of IDs for each security group in the VPC to use."
        }
      },
      "required": [
        "subnetIds",
        "securityGroupIds"
      ]
    }
  }
}