{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-update-configuration-bundle-request-schema.json",
  "title": "UpdateConfigurationBundleRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-bedrock-configuration-bundles-api-openapi.yml#/components/schemas/UpdateConfigurationBundleRequest",
  "type": "object",
  "properties": {
    "clientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If you don't specify this field, a value is randomly generated for you. If this token matches a previous request, the service ignores the request, but doesn't return an error. For more information, see Ensuring idempotency."
    },
    "bundleId": {
      "type": "string",
      "description": "The unique identifier of the configuration bundle to update."
    },
    "bundleName": {
      "type": "string",
      "description": "The updated name for the configuration bundle."
    },
    "description": {
      "type": "string",
      "description": "The updated description for the configuration bundle."
    },
    "components": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/ComponentConfiguration"
      },
      "description": "The updated component configurations. Creates a new version of the bundle."
    },
    "parentVersionIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of parent version identifiers for lineage tracking. Regular commits have a single parent. Merge commits have two parents: the target branch parent and the source branch parent. If the branch already exists, the first parent must be the latest version on that branch."
    },
    "branchName": {
      "type": "string",
      "description": "The branch name for this version. If not specified, inherits the parent's branch or defaults to mainline."
    },
    "commitMessage": {
      "type": "string",
      "description": "A commit message describing the changes in this version."
    },
    "createdBy": {
      "$ref": "#/$defs/VersionCreatedBySource"
    },
    "kmsKeyArn": {
      "type": "string",
      "description": "Optional KMS key ARN for encrypting component configurations. If provided, components will be encrypted with this key. If the bundle already has a KMS key, this rotates to the new key."
    }
  },
  "required": [
    "bundleId",
    "parentVersionIds",
    "commitMessage"
  ],
  "$defs": {
    "ComponentConfiguration": {
      "type": "object",
      "properties": {
        "configuration": {
          "type": "object",
          "description": "The configuration values as a flexible JSON document."
        }
      },
      "required": [
        "configuration"
      ]
    },
    "VersionCreatedBySource": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the source (for example, user, optimization-job, or system)."
        },
        "arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the source, if applicable (for example, a user ARN or optimization job ARN)."
        }
      },
      "required": [
        "name"
      ]
    }
  }
}