{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-create-marketplace-model-endpoint-request-schema.json",
  "title": "CreateMarketplaceModelEndpointRequest",
  "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/CreateMarketplaceModelEndpointRequest",
  "type": "object",
  "properties": {
    "modelSourceIdentifier": {
      "type": "string",
      "description": "The ARN of the model from Amazon Bedrock Marketplace that you want to deploy to the endpoint."
    },
    "endpointConfig": {
      "$ref": "#/$defs/EndpointConfig"
    },
    "acceptEula": {
      "type": "boolean",
      "description": "Indicates whether you accept the end-user license agreement (EULA) for the model. Set to true to accept the EULA."
    },
    "endpointName": {
      "type": "string",
      "description": "The name of the endpoint. This name must be unique within your Amazon Web Services account and region."
    },
    "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."
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "An array of key-value pairs to apply to the underlying Amazon SageMaker endpoint. You can use these tags to organize and identify your Amazon Web Services resources."
    }
  },
  "required": [
    "modelSourceIdentifier",
    "endpointConfig",
    "endpointName"
  ],
  "$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"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "Key for the tag."
        },
        "value": {
          "type": "string",
          "description": "Value for the tag."
        }
      },
      "required": [
        "key",
        "value"
      ]
    },
    "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"
      ]
    }
  }
}