create_content
¶
create_content(
knowledge_base_id: UuidOrArn,
name: Name,
upload_id: UploadId,
*,
config_overrides: Optional[QConnectClientConfig] = None,
title: Optional[ContentTitle] = None,
override_link_out_uri: Optional[Uri] = None,
metadata: Optional[ContentMetadata] = None,
client_token: Optional[NonEmptyString] = None,
tags: Optional[Tags] = None,
) -> CreateContentResponse
Creates Amazon Q in Connect content. Before to calling this API, use StartContentUpload to upload an asset.
Parameters:
-
knowledge_base_id(UuidOrArn) –The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.
-
name(Name) –The name of the content. Each piece of content in a knowledge base must have a unique name. You can retrieve a piece of content using only its knowledge base and its name with the SearchContent API.
-
title(Optional[ContentTitle], default:None) –The title of the content. If not set, the title is equal to the name.
-
override_link_out_uri(Optional[Uri], default:None) –The URI you want to use for the article. If the knowledge base has a templateUri, setting this argument overrides it for this piece of content.
-
metadata(Optional[ContentMetadata], default:None) –A key/value map to store attributes without affecting tagging or recommendations. For example, when synchronizing data between an external system and Amazon Q in Connect, you can store an external version identifier as metadata to utilize for determining drift.
-
upload_id(UploadId) –A pointer to the uploaded asset. This value is returned by StartContentUpload.
-
client_token(Optional[NonEmptyString], default:None) –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.
-
tags(Optional[Tags], default:None) –The tags used to organize, track, or control access for this resource.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The request could not be processed because of conflict in the current state of the resource. For example, if you're using a
CreateAPI (such asCreateAssistant) that accepts name, a conflicting resource (usually with the same name) is being created or mutated. -
ResourceNotFoundException–The specified resource does not exist.
-
ServiceQuotaExceededException–You've exceeded your service quota. To perform the requested action, remove some of the relevant resources, or use service quotas to request a service quota increase.
-
UnauthorizedException–You do not have permission to perform this action.
-
ValidationException–The input fails to satisfy the constraints specified by a service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_qconnect/_services/q_connect.py
5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 | |