Skip to content

reboot_db_shard_group

reboot_db_shard_group(
    *,
    config_overrides: Optional[RDSClientConfig] = None,
    db_shard_group_identifier: Optional[DBShardGroupIdentifier] = None,
) -> DBShardGroup

You might need to reboot your DB shard group, usually for maintenance reasons. For example, if you make certain modifications, reboot the DB shard group for the changes to take effect.

This operation applies only to Aurora Limitless Database DBb shard groups.

Parameters:

Raises:

Source code in docs_src/capo_rds/_services/rds.py
def reboot_db_shard_group(
    self,
    *,
    config_overrides: Optional[RDSClientConfig] = None,
    db_shard_group_identifier: Optional[
        "capo_rds.types.db_shard_group_identifier.DBShardGroupIdentifier"
    ] = None,
) -> "capo_rds.types.db_shard_group.DBShardGroup":
    """<p>You might need to reboot your DB shard group, usually for maintenance reasons. For example, if you make certain modifications, reboot the DB shard group for the changes to take effect.</p> <p>This operation applies only to Aurora Limitless Database DBb shard groups.</p>

    Args:
        db_shard_group_identifier: <p>The name of the DB shard group to reboot.</p>

    Raises:
        capo_rds.errors.db_shard_group_not_found_fault.DBShardGroupNotFoundFault: <p>The specified DB shard group name wasn't found.</p>
        capo_rds.errors.invalid_db_shard_group_state_fault.InvalidDBShardGroupStateFault: <p>The DB shard group must be in the available state.</p>
        capo_rds.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_rds.types.reboot_db_shard_group_message.RebootDBShardGroupMessage]",
    ) -> OperationResponse["capo_rds.types.db_shard_group.DBShardGroup"]:
        import capo_rds._operations.amazon_rd_sv19.reboot_db_shard_group

        output, http_response = (
            capo_rds._operations.amazon_rd_sv19.reboot_db_shard_group.reboot_db_shard_group(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("RebootDBShardGroup")
    )
    input_: capo_rds.types.reboot_db_shard_group_message.RebootDBShardGroupMessage = {}
    if db_shard_group_identifier is not None:
        input_["db_shard_group_identifier"] = db_shard_group_identifier

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