{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-q/json-schema/amazon-q-create-content-association-request-schema.json",
  "title": "CreateContentAssociationRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-q-associations-api-openapi.yml#/components/schemas/CreateContentAssociationRequest",
  "type": "object",
  "properties": {
    "clientToken": {
      "type": "string",
      "description": "A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs."
    },
    "knowledgeBaseId": {
      "type": "string",
      "description": "The identifier of the knowledge base."
    },
    "contentId": {
      "type": "string",
      "description": "The identifier of the content."
    },
    "associationType": {
      "type": "string",
      "description": "The type of association."
    },
    "association": {
      "$ref": "#/$defs/ContentAssociationContents"
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags used to organize, track, or control access for this resource."
    }
  },
  "required": [
    "knowledgeBaseId",
    "contentId",
    "associationType",
    "association"
  ],
  "$defs": {
    "AmazonConnectGuideAssociationData": {
      "type": "object",
      "properties": {
        "flowId": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of an Connect Customer flow. Step-by-step guides are a type of flow."
        }
      }
    },
    "ContentAssociationContents": {
      "type": "object",
      "properties": {
        "amazonConnectGuideAssociation": {
          "$ref": "#/$defs/AmazonConnectGuideAssociationData"
        }
      },
      "description": "Exactly one member is set."
    }
  }
}