create_session
async
¶
create_session(
assistant_id: UuidOrArn,
name: Name,
*,
config_overrides: Optional[AsyncQConnectClientConfig] = None,
client_token: Optional[ClientToken] = None,
description: Optional[Description] = None,
tags: Optional[Tags] = None,
tag_filter: Optional[TagFilter] = None,
ai_agent_configuration: Optional[AIAgentConfigurationMap] = None,
contact_arn: Optional[GenericArn] = None,
orchestrator_configuration_list: Optional[OrchestratorConfigurationList] = None,
remove_orchestrator_configuration_list: Optional[bool] = None,
) -> CreateSessionResponse
Creates a session. A session is a contextual container used for generating recommendations. Connect Customer creates a new Amazon Q in Connect session for each contact on which Amazon Q in Connect is enabled.
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.
-
assistant_id(UuidOrArn) –The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
-
name(Name) –The name of the session.
-
description(Optional[Description], default:None) –The description.
-
tags(Optional[Tags], default:None) –The tags used to organize, track, or control access for this resource.
-
tag_filter(Optional[TagFilter], default:None) –An object that can be used to specify Tag conditions.
-
ai_agent_configuration(Optional[AIAgentConfigurationMap], default:None) –The configuration of the AI Agents (mapped by AI Agent Type to AI Agent version) that should be used by Amazon Q in Connect for this Session.
-
contact_arn(Optional[GenericArn], default:None) –The Amazon Resource Name (ARN) of the email contact in Connect Customer. Used to retrieve email content and establish session context for AI-powered email assistance.
-
orchestrator_configuration_list(Optional[OrchestratorConfigurationList], default:None) –The list of orchestrator configurations for the session being created.
-
remove_orchestrator_configuration_list(Optional[bool], default:None) –The list of orchestrator configurations to remove from the session.
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. -
DependencyFailedException–The request failed because it depends on another request that failed.
-
ResourceNotFoundException–The specified resource does not exist.
-
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/async_q_connect.py
3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 | |