Skip to content

RDS  >  Operations  >  modify_db_recommendation

modify_db_recommendation

Operation

modify_db_recommendation async

modify_db_recommendation(request: ModifyDBRecommendationInput | ModifyDBRecommendationInputDict, /, *, plugins: list[Plugin] | None = None) -> ModifyDBRecommendationOutput
modify_db_recommendation(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[ModifyDBRecommendationInputDict]) -> ModifyDBRecommendationOutput

Updates the recommendation status and recommended action status for the specified recommendation.

Parameters:

Name Type Description Default
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
ModifyDBRecommendationOutput

An instance of ModifyDBRecommendationOutput.

Input

Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.

Model

ModifyDBRecommendationInput dataclass

Bases: _SerdeShape

Dataclass for ModifyDBRecommendationInput structure.

Attributes
locale class-attribute instance-attribute
locale: str | None = ...

The language of the modified recommendation.

recommendation_id class-attribute instance-attribute
recommendation_id: str | None = ...

The identifier of the recommendation to update.

recommended_action_updates class-attribute instance-attribute
recommended_action_updates: list[RecommendedActionUpdate] | None = ...

The list of recommended action status to update. You can update multiple recommended actions at one time.

status class-attribute instance-attribute
status: str | None = ...

The recommendation status to update.

Valid values:

  • active

  • dismissed

Dictionaries

ModifyDBRecommendationInputDict

Bases: TypedDict

Dictionary form of ModifyDBRecommendationInput.

Attributes
locale instance-attribute
locale: str | None

The language of the modified recommendation.

recommendation_id instance-attribute
recommendation_id: Required[str]

The identifier of the recommendation to update.

recommended_action_updates instance-attribute
recommended_action_updates: Sequence[RecommendedActionUpdate | RecommendedActionUpdateDict] | None

The list of recommended action status to update. You can update multiple recommended actions at one time.

status instance-attribute
status: str | None

The recommendation status to update.

Valid values:

  • active

  • dismissed

Output

ModifyDBRecommendationOutput dataclass

Bases: _SerdeShape

Dataclass for ModifyDBRecommendationOutput structure.

Attributes

db_recommendation class-attribute instance-attribute
db_recommendation: DBRecommendation | None = ...

The recommendation for your DB instances, DB clusters, and DB parameter groups.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.