stop_contact
¶
stop_contact(
contact_id: ContactId,
instance_id: InstanceId,
*,
config_overrides: Optional[ConnectClientConfig] = None,
disconnect_reason: Optional[DisconnectReason] = None,
) -> StopContactResponse
Ends the specified contact. Use this API to stop queued callbacks. It does not work for voice contacts that use the following initiation methods:
-
DISCONNECT
-
TRANSFER
-
QUEUE_TRANSFER
-
EXTERNAL_OUTBOUND
-
MONITOR
Chat and task contacts can be terminated in any state, regardless of initiation method.
Parameters:
-
contact_id(ContactId) –The ID of the contact.
-
instance_id(InstanceId) –The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
-
disconnect_reason(Optional[DisconnectReason], default:None) –The reason a contact can be disconnected. Only Connect Customer outbound campaigns can provide this field. For a list and description of all the possible disconnect reasons by channel (including outbound campaign voice contacts) see DisconnectReason under ContactTraceRecord in the Connect Customer Administrator Guide.
Raises:
-
ContactNotFoundException–The contact with the specified ID does not exist.
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidActiveRegionException–This exception occurs when an API request is made to a non-active region in an Amazon Connect instance configured with Amazon Connect Global Resiliency. For example, if the active region is US West (Oregon) and a request is made to US East (N. Virginia), the exception will be returned.
-
InvalidParameterException–One or more of the specified parameters are not valid.
-
InvalidRequestException–The request is not valid.
-
ResourceNotFoundException–The specified resource was not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connect/_services/connect.py
24267 24268 24269 24270 24271 24272 24273 24274 24275 24276 24277 24278 24279 24280 24281 24282 24283 24284 24285 24286 24287 24288 24289 24290 24291 24292 24293 24294 24295 24296 24297 24298 24299 24300 24301 24302 24303 24304 24305 24306 24307 24308 24309 24310 24311 24312 24313 24314 24315 24316 24317 24318 24319 24320 24321 24322 24323 24324 | |