Skip to content

resume_contact async

resume_contact(
    contact_id: ContactId,
    instance_id: InstanceId,
    *,
    config_overrides: Optional[AsyncConnectClientConfig] = None,
    contact_flow_id: Optional[ContactFlowId] = None,
) -> ResumeContactResponse

Allows resuming a task contact in a paused state.

Parameters:

  • contact_id (ContactId) –

    The identifier of the contact.

  • instance_id (InstanceId) –

    The identifier of the Connect Customer instance. You can find the instanceId in the ARN of the instance.

  • contact_flow_id (Optional[ContactFlowId], default: None ) –

    The identifier of the flow.

Raises:

Source code in docs_src/capo_connect/_services/async_connect.py
async def resume_contact(
    self,
    contact_id: "capo_connect.types.contact_id.ContactId",
    instance_id: "capo_connect.types.instance_id.InstanceId",
    *,
    config_overrides: Optional[AsyncConnectClientConfig] = None,
    contact_flow_id: Optional[
        "capo_connect.types.contact_flow_id.ContactFlowId"
    ] = None,
) -> "capo_connect.types.resume_contact_response.ResumeContactResponse":
    """<p>Allows resuming a task contact in a paused state.</p>

    Args:
        contact_id: <p>The identifier of the contact.</p>
        instance_id: <p>The identifier of the Connect Customer instance. You can find the <code>instanceId</code> in the ARN of the instance.</p>
        contact_flow_id: <p>The identifier of the flow.</p>

    Raises:
        capo_connect.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient permissions to perform this action.</p>
        capo_connect.errors.conflict_exception.ConflictException: <p>Operation cannot be performed at this time as there is a conflict with another operation or contact state.</p>
        capo_connect.errors.internal_service_exception.InternalServiceException: <p>Request processing failed because of an error or failure with the service.</p>
        capo_connect.errors.invalid_parameter_exception.InvalidParameterException: <p>One or more of the specified parameters are not valid.</p>
        capo_connect.errors.invalid_request_exception.InvalidRequestException: <p>The request is not valid.</p>
        capo_connect.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
        capo_connect.errors.throttling_exception.ThrottlingException: <p>The throttling limit has been exceeded.</p>
        capo_connect.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_connect.types.resume_contact_request.ResumeContactRequest]",
    ) -> AsyncOperationResponse[
        "capo_connect.types.resume_contact_response.ResumeContactResponse"
    ]:
        import capo_connect._operations.amazon_connect_service.resume_contact

        (
            output,
            http_response,
        ) = await capo_connect._operations.amazon_connect_service.resume_contact.async_resume_contact(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ResumeContact")
    )
    input_: capo_connect.types.resume_contact_request.ResumeContactRequest = {
        "contact_id": contact_id,
        "instance_id": instance_id,
    }
    if contact_flow_id is not None:
        input_["contact_flow_id"] = contact_flow_id

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output