create_assistant
async
¶
create_assistant(
name: Name,
type: AssistantType,
*,
config_overrides: Optional[AsyncQConnectClientConfig] = None,
client_token: Optional[ClientToken] = None,
description: Optional[Description] = None,
tags: Optional[Tags] = None,
server_side_encryption_configuration: Optional[
ServerSideEncryptionConfiguration
] = None,
) -> CreateAssistantResponse
Creates an Amazon Q in Connect assistant.
Parameters:
-
client_token(Optional[ClientToken], 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.
-
name(Name) –The name of the assistant.
-
type(AssistantType) –The type of assistant.
-
description(Optional[Description], default:None) –The description of the assistant.
-
tags(Optional[Tags], default:None) –The tags used to organize, track, or control access for this resource.
-
server_side_encryption_configuration(Optional[ServerSideEncryptionConfiguration], default:None) –The configuration information for the customer managed key used for encryption.
The customer managed key must have a policy that allows
kms:CreateGrant,kms:DescribeKey,kms:Decrypt, andkms:GenerateDataKey*permissions to the IAM identity using the key to invoke Amazon Q in Connect. To use Amazon Q in Connect with chat, the key policy must also allowkms:Decrypt,kms:GenerateDataKey*, andkms:DescribeKeypermissions to theconnect.amazonaws.comservice principal.For more information about setting up a customer managed key for Amazon Q in Connect, see Enable Amazon Q in Connect for your instance.
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. -
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.