Skip to content

update_indexing_configuration

update_indexing_configuration(
    *,
    config_overrides: Optional[IoTClientConfig] = None,
    thing_indexing_configuration: Optional[ThingIndexingConfiguration] = None,
    thing_group_indexing_configuration: Optional[
        ThingGroupIndexingConfiguration
    ] = None,
) -> UpdateIndexingConfigurationResponse

Updates the search configuration.

Requires permission to access the UpdateIndexingConfiguration action.

Parameters:

Raises:

Source code in docs_src/capo_iot/_services/io_t.py
def update_indexing_configuration(
    self,
    *,
    config_overrides: Optional[IoTClientConfig] = None,
    thing_indexing_configuration: Optional[
        "capo_iot.types.thing_indexing_configuration.ThingIndexingConfiguration"
    ] = None,
    thing_group_indexing_configuration: Optional[
        "capo_iot.types.thing_group_indexing_configuration.ThingGroupIndexingConfiguration"
    ] = None,
) -> "capo_iot.types.update_indexing_configuration_response.UpdateIndexingConfigurationResponse":
    """<p>Updates the search configuration.</p> <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">UpdateIndexingConfiguration</a> action.</p>

    Args:
        thing_indexing_configuration: <p>Thing indexing configuration.</p>
        thing_group_indexing_configuration: <p>Thing group indexing configuration.</p>

    Raises:
        capo_iot.errors.internal_failure_exception.InternalFailureException: <p>An unexpected error has occurred.</p>
        capo_iot.errors.invalid_request_exception.InvalidRequestException: <p>The request is not valid.</p>
        capo_iot.errors.service_unavailable_exception.ServiceUnavailableException: <p>The service is temporarily unavailable.</p>
        capo_iot.errors.throttling_exception.ThrottlingException: <p>The rate exceeds the limit.</p>
        capo_iot.errors.unauthorized_exception.UnauthorizedException: <p>You are not authorized to perform this operation.</p>
        capo_iot.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_iot.types.update_indexing_configuration_request.UpdateIndexingConfigurationRequest]",
    ) -> OperationResponse[
        "capo_iot.types.update_indexing_configuration_response.UpdateIndexingConfigurationResponse"
    ]:
        import capo_iot._operations.aws_iot_service.update_indexing_configuration

        output, http_response = (
            capo_iot._operations.aws_iot_service.update_indexing_configuration.update_indexing_configuration(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateIndexingConfiguration")
    )
    input_: capo_iot.types.update_indexing_configuration_request.UpdateIndexingConfigurationRequest = {}
    if thing_indexing_configuration is not None:
        input_["thing_indexing_configuration"] = thing_indexing_configuration
    if thing_group_indexing_configuration is not None:
        input_["thing_group_indexing_configuration"] = (
            thing_group_indexing_configuration
        )

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