Skip to content

get_db_parameter_group

get_db_parameter_group(
    identifier: DbParameterGroupIdentifier,
    *,
    config_overrides: Optional[TimestreamInfluxDBClientConfig] = None,
) -> GetDbParameterGroupOutput

Returns a Timestream for InfluxDB DB parameter group.

Parameters:

Raises:

Source code in docs_src/capo_timestream_influxdb/_services/timestream_influx_db.py
def get_db_parameter_group(
    self,
    identifier: "capo_timestream_influxdb.types.db_parameter_group_identifier.DbParameterGroupIdentifier",
    *,
    config_overrides: Optional[TimestreamInfluxDBClientConfig] = None,
) -> "capo_timestream_influxdb.types.get_db_parameter_group_output.GetDbParameterGroupOutput":
    """<p>Returns a Timestream for InfluxDB DB parameter group.</p>

    Args:
        identifier: <p>The id of the DB parameter group.</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.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.
    """

    def _handler(
        req: "OperationRequest[capo_timestream_influxdb.types.get_db_parameter_group_input.GetDbParameterGroupInput]",
    ) -> OperationResponse[
        "capo_timestream_influxdb.types.get_db_parameter_group_output.GetDbParameterGroupOutput"
    ]:
        import capo_timestream_influxdb._operations.amazon_timestream_influx_db.get_db_parameter_group

        output, http_response = (
            capo_timestream_influxdb._operations.amazon_timestream_influx_db.get_db_parameter_group.get_db_parameter_group(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetDbParameterGroup")
    )
    input_: capo_timestream_influxdb.types.get_db_parameter_group_input.GetDbParameterGroupInput = {
        "identifier": identifier
    }

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