Retrieves a list of all the recommended strategies and tools for an application component running on a server.
Parameters:
-
application_component_id
(ApplicationComponentId)
–
The ID of the application component. The ID is unique within an AWS account.
Raises:
Source code in docs_src/capo_migrationhubstrategy/_services/migration_hub_strategy.py
| def get_application_component_strategies(
self,
application_component_id: "capo_migrationhubstrategy.types.application_component_id.ApplicationComponentId",
*,
config_overrides: Optional[MigrationHubStrategyClientConfig] = None,
) -> "capo_migrationhubstrategy.types.get_application_component_strategies_response.GetApplicationComponentStrategiesResponse":
"""<p> Retrieves a list of all the recommended strategies and tools for an application component running on a server. </p>
Args:
application_component_id: <p> The ID of the application component. The ID is unique within an AWS account.</p>
Raises:
capo_migrationhubstrategy.errors.internal_server_exception.InternalServerException: <p> The server experienced an internal error. Try again. </p>
capo_migrationhubstrategy.errors.resource_not_found_exception.ResourceNotFoundException: <p> The specified ID in the request is not found. </p>
capo_migrationhubstrategy.errors.throttling_exception.ThrottlingException: <p> The request was denied due to request throttling. </p>
capo_migrationhubstrategy.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_migrationhubstrategy.types.get_application_component_strategies_request.GetApplicationComponentStrategiesRequest]",
) -> OperationResponse[
"capo_migrationhubstrategy.types.get_application_component_strategies_response.GetApplicationComponentStrategiesResponse"
]:
import capo_migrationhubstrategy._operations.aws_migration_hub_strategy_recommendation.get_application_component_strategies
output, http_response = (
capo_migrationhubstrategy._operations.aws_migration_hub_strategy_recommendation.get_application_component_strategies.get_application_component_strategies(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetApplicationComponentStrategies")
)
input_: capo_migrationhubstrategy.types.get_application_component_strategies_request.GetApplicationComponentStrategiesRequest = {
"application_component_id": application_component_id
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|