Skip to content

reboot_db_instance async

reboot_db_instance(
    identifier: DbInstanceIdentifier,
    *,
    config_overrides: Optional[AsyncTimestreamInfluxDBClientConfig] = None,
) -> RebootDbInstanceOutput

Reboots a Timestream for InfluxDB instance.

Parameters:

Raises:

Source code in docs_src/capo_timestream_influxdb/_services/async_timestream_influx_db.py
async def reboot_db_instance(
    self,
    identifier: "capo_timestream_influxdb.types.db_instance_identifier.DbInstanceIdentifier",
    *,
    config_overrides: Optional[AsyncTimestreamInfluxDBClientConfig] = None,
) -> "capo_timestream_influxdb.types.reboot_db_instance_output.RebootDbInstanceOutput":
    """<p>Reboots a Timestream for InfluxDB instance.</p>

    Args:
        identifier: <p>The id of the DB instance to reboot.</p>

    Raises:
        capo_timestream_influxdb.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_timestream_influxdb.errors.conflict_exception.ConflictException: <p>The request conflicts with an existing resource in Timestream for InfluxDB.</p>
        capo_timestream_influxdb.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception or failure.</p>
        capo_timestream_influxdb.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource was not found or does not exist.</p>
        capo_timestream_influxdb.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_timestream_influxdb.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by Timestream for InfluxDB.</p>
        capo_timestream_influxdb.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_timestream_influxdb.types.reboot_db_instance_input.RebootDbInstanceInput]",
    ) -> AsyncOperationResponse[
        "capo_timestream_influxdb.types.reboot_db_instance_output.RebootDbInstanceOutput"
    ]:
        import capo_timestream_influxdb._operations.amazon_timestream_influx_db.reboot_db_instance

        (
            output,
            http_response,
        ) = await capo_timestream_influxdb._operations.amazon_timestream_influx_db.reboot_db_instance.async_reboot_db_instance(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("RebootDbInstance")
    )
    input_: capo_timestream_influxdb.types.reboot_db_instance_input.RebootDbInstanceInput = {
        "identifier": identifier
    }

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