Skip to content

search_contact_flow_modules

search_contact_flow_modules(
    instance_id: InstanceId,
    *,
    config_overrides: Optional[ConnectClientConfig] = None,
    next_token: Optional[NextToken2500] = None,
    max_results: Optional[MaxResult100] = None,
    search_filter: Optional[ContactFlowModuleSearchFilter] = None,
    search_criteria: Optional[ContactFlowModuleSearchCriteria] = None,
) -> SearchContactFlowModulesResponse

Searches the flow modules in an Connect Customer instance, with optional filtering.

Parameters:

  • 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.

  • next_token (Optional[NextToken2500], default: None ) –

    The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

  • max_results (Optional[MaxResult100], default: None ) –

    The maximum number of results to return per page.

  • search_filter (Optional[ContactFlowModuleSearchFilter], default: None ) –

    Filters to be applied to search results.

  • search_criteria (Optional[ContactFlowModuleSearchCriteria], default: None ) –

    The search criteria to be used to return flow modules.

    The name and description fields support "contains" queries with a minimum of 2 characters and a maximum of 25 characters. Any queries with character lengths outside of this range will result in invalid results.

Raises:

Source code in docs_src/capo_connect/_services/connect.py
def search_contact_flow_modules(
    self,
    instance_id: "capo_connect.types.instance_id.InstanceId",
    *,
    config_overrides: Optional[ConnectClientConfig] = None,
    next_token: Optional["capo_connect.types.next_token2500.NextToken2500"] = None,
    max_results: Optional["capo_connect.types.max_result100.MaxResult100"] = None,
    search_filter: Optional[
        "capo_connect.types.contact_flow_module_search_filter.ContactFlowModuleSearchFilter"
    ] = None,
    search_criteria: Optional[
        "capo_connect.types.contact_flow_module_search_criteria.ContactFlowModuleSearchCriteria"
    ] = None,
) -> "capo_connect.types.search_contact_flow_modules_response.SearchContactFlowModulesResponse":
    """<p>Searches the flow modules in an Connect Customer instance, with optional filtering.</p>

    Args:
        instance_id: <p>The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.</p>
        next_token: <p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p>
        max_results: <p>The maximum number of results to return per page.</p>
        search_filter: <p>Filters to be applied to search results.</p>
        search_criteria: <p>The search criteria to be used to return flow modules.</p> <note> <p>The <code>name</code> and <code>description</code> fields support "contains" queries with a minimum of 2 characters and a maximum of 25 characters. Any queries with character lengths outside of this range will result in invalid results.</p> </note>

    Raises:
        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.
    """

    def _handler(
        req: "OperationRequest[capo_connect.types.search_contact_flow_modules_request.SearchContactFlowModulesRequest]",
    ) -> OperationResponse[
        "capo_connect.types.search_contact_flow_modules_response.SearchContactFlowModulesResponse"
    ]:
        import capo_connect._operations.amazon_connect_service.search_contact_flow_modules

        output, http_response = (
            capo_connect._operations.amazon_connect_service.search_contact_flow_modules.search_contact_flow_modules(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("SearchContactFlowModules")
    )
    input_: capo_connect.types.search_contact_flow_modules_request.SearchContactFlowModulesRequest = {
        "instance_id": instance_id
    }
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results
    if search_filter is not None:
        input_["search_filter"] = search_filter
    if search_criteria is not None:
        input_["search_criteria"] = search_criteria

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output