Skip to content

describe_db_recommendations async

describe_db_recommendations(
    *,
    config_overrides: Optional[AsyncRDSClientConfig] = None,
    last_updated_after: Optional[TStamp] = None,
    last_updated_before: Optional[TStamp] = None,
    locale: Optional[String] = None,
    filters: Optional[FilterList] = None,
    max_records: Optional[IntegerOptional] = None,
    marker: Optional[String] = None,
) -> DBRecommendationsMessage

Describes the recommendations to resolve the issues for your DB instances, DB clusters, and DB parameter groups.

Parameters:

  • last_updated_after (Optional[TStamp], default: None ) –

    A filter to include only the recommendations that were updated after this specified time.

  • last_updated_before (Optional[TStamp], default: None ) –

    A filter to include only the recommendations that were updated before this specified time.

  • locale (Optional[String], default: None ) –

    The language that you choose to return the list of recommendations.

    Valid values:

    • en

    • en_UK

    • de

    • es

    • fr

    • id

    • it

    • ja

    • ko

    • pt_BR

    • zh_TW

    • zh_CN

  • filters (Optional[FilterList], default: None ) –

    A filter that specifies one or more recommendations to describe.

    Supported Filters:

    • recommendation-id - Accepts a list of recommendation identifiers. The results list only includes the recommendations whose identifier is one of the specified filter values.

    • status - Accepts a list of recommendation statuses.

      Valid values:

      • active - The recommendations which are ready for you to apply.

      • pending - The applied or scheduled recommendations which are in progress.

      • resolved - The recommendations which are completed.

      • dismissed - The recommendations that you dismissed.

      The results list only includes the recommendations whose status is one of the specified filter values.

    • severity - Accepts a list of recommendation severities. The results list only includes the recommendations whose severity is one of the specified filter values.

      Valid values:

      • high

      • medium

      • low

      • informational

    • type-id - Accepts a list of recommendation type identifiers. The results list only includes the recommendations whose type is one of the specified filter values.

    • dbi-resource-id - Accepts a list of database resource identifiers. The results list only includes the recommendations that generated for the specified databases.

    • cluster-resource-id - Accepts a list of cluster resource identifiers. The results list only includes the recommendations that generated for the specified clusters.

    • pg-arn - Accepts a list of parameter group ARNs. The results list only includes the recommendations that generated for the specified parameter groups.

    • cluster-pg-arn - Accepts a list of cluster parameter group ARNs. The results list only includes the recommendations that generated for the specified cluster parameter groups.

  • max_records (Optional[IntegerOptional], default: None ) –

    The maximum number of recommendations to include in the response. If more records exist than the specified MaxRecords value, a pagination token called a marker is included in the response so that you can retrieve the remaining results.

  • marker (Optional[String], default: None ) –

    An optional pagination token provided by a previous DescribeDBRecommendations request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

Raises:

Source code in docs_src/capo_rds/_services/async_rds.py
async def describe_db_recommendations(
    self,
    *,
    config_overrides: Optional[AsyncRDSClientConfig] = None,
    last_updated_after: Optional["capo_rds.types.t_stamp.TStamp"] = None,
    last_updated_before: Optional["capo_rds.types.t_stamp.TStamp"] = None,
    locale: Optional["capo_rds.types.string.String"] = None,
    filters: Optional["capo_rds.types.filter_list.FilterList"] = None,
    max_records: Optional["capo_rds.types.integer_optional.IntegerOptional"] = None,
    marker: Optional["capo_rds.types.string.String"] = None,
) -> "capo_rds.types.db_recommendations_message.DBRecommendationsMessage":
    """<p>Describes the recommendations to resolve the issues for your DB instances, DB clusters, and DB parameter groups.</p>

    Args:
        last_updated_after: <p>A filter to include only the recommendations that were updated after this specified time.</p>
        last_updated_before: <p>A filter to include only the recommendations that were updated before this specified time.</p>
        locale: <p>The language that you choose to return the list of recommendations.</p> <p>Valid values:</p> <ul> <li> <p> <code>en</code> </p> </li> <li> <p> <code>en_UK</code> </p> </li> <li> <p> <code>de</code> </p> </li> <li> <p> <code>es</code> </p> </li> <li> <p> <code>fr</code> </p> </li> <li> <p> <code>id</code> </p> </li> <li> <p> <code>it</code> </p> </li> <li> <p> <code>ja</code> </p> </li> <li> <p> <code>ko</code> </p> </li> <li> <p> <code>pt_BR</code> </p> </li> <li> <p> <code>zh_TW</code> </p> </li> <li> <p> <code>zh_CN</code> </p> </li> </ul>
        filters: <p>A filter that specifies one or more recommendations to describe.</p> <p>Supported Filters:</p> <ul> <li> <p> <code>recommendation-id</code> - Accepts a list of recommendation identifiers. The results list only includes the recommendations whose identifier is one of the specified filter values.</p> </li> <li> <p> <code>status</code> - Accepts a list of recommendation statuses.</p> <p>Valid values:</p> <ul> <li> <p> <code>active</code> - The recommendations which are ready for you to apply.</p> </li> <li> <p> <code>pending</code> - The applied or scheduled recommendations which are in progress.</p> </li> <li> <p> <code>resolved</code> - The recommendations which are completed.</p> </li> <li> <p> <code>dismissed</code> - The recommendations that you dismissed.</p> </li> </ul> <p>The results list only includes the recommendations whose status is one of the specified filter values.</p> </li> <li> <p> <code>severity</code> - Accepts a list of recommendation severities. The results list only includes the recommendations whose severity is one of the specified filter values.</p> <p>Valid values:</p> <ul> <li> <p> <code>high</code> </p> </li> <li> <p> <code>medium</code> </p> </li> <li> <p> <code>low</code> </p> </li> <li> <p> <code>informational</code> </p> </li> </ul> </li> <li> <p> <code>type-id</code> - Accepts a list of recommendation type identifiers. The results list only includes the recommendations whose type is one of the specified filter values.</p> </li> <li> <p> <code>dbi-resource-id</code> - Accepts a list of database resource identifiers. The results list only includes the recommendations that generated for the specified databases.</p> </li> <li> <p> <code>cluster-resource-id</code> - Accepts a list of cluster resource identifiers. The results list only includes the recommendations that generated for the specified clusters.</p> </li> <li> <p> <code>pg-arn</code> - Accepts a list of parameter group ARNs. The results list only includes the recommendations that generated for the specified parameter groups.</p> </li> <li> <p> <code>cluster-pg-arn</code> - Accepts a list of cluster parameter group ARNs. The results list only includes the recommendations that generated for the specified cluster parameter groups.</p> </li> </ul>
        max_records: <p>The maximum number of recommendations to include in the response. If more records exist than the specified <code>MaxRecords</code> value, a pagination token called a marker is included in the response so that you can retrieve the remaining results.</p>
        marker: <p>An optional pagination token provided by a previous <code>DescribeDBRecommendations</code> request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>. </p>

    Raises:
        capo_rds.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_rds.types.describe_db_recommendations_message.DescribeDBRecommendationsMessage]",
    ) -> AsyncOperationResponse[
        "capo_rds.types.db_recommendations_message.DBRecommendationsMessage"
    ]:
        import capo_rds._operations.amazon_rd_sv19.describe_db_recommendations

        (
            output,
            http_response,
        ) = await capo_rds._operations.amazon_rd_sv19.describe_db_recommendations.async_describe_db_recommendations(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeDBRecommendations")
    )
    input_: capo_rds.types.describe_db_recommendations_message.DescribeDBRecommendationsMessage = {}
    if last_updated_after is not None:
        input_["last_updated_after"] = last_updated_after
    if last_updated_before is not None:
        input_["last_updated_before"] = last_updated_before
    if locale is not None:
        input_["locale"] = locale
    if filters is not None:
        input_["filters"] = filters
    if max_records is not None:
        input_["max_records"] = max_records
    if marker is not None:
        input_["marker"] = marker

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