Retrieves details about an application component.
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/async_migration_hub_strategy.py
| async def get_application_component_details(
self,
application_component_id: "capo_migrationhubstrategy.types.application_component_id.ApplicationComponentId",
*,
config_overrides: Optional[AsyncMigrationHubStrategyClientConfig] = None,
) -> "capo_migrationhubstrategy.types.get_application_component_details_response.GetApplicationComponentDetailsResponse":
"""<p> Retrieves details about an application component. </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.
"""
async def _handler(
req: "AsyncOperationRequest[capo_migrationhubstrategy.types.get_application_component_details_request.GetApplicationComponentDetailsRequest]",
) -> AsyncOperationResponse[
"capo_migrationhubstrategy.types.get_application_component_details_response.GetApplicationComponentDetailsResponse"
]:
import capo_migrationhubstrategy._operations.aws_migration_hub_strategy_recommendation.get_application_component_details
(
output,
http_response,
) = await capo_migrationhubstrategy._operations.aws_migration_hub_strategy_recommendation.get_application_component_details.async_get_application_component_details(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetApplicationComponentDetails")
)
input_: capo_migrationhubstrategy.types.get_application_component_details_request.GetApplicationComponentDetailsRequest = {
"application_component_id": application_component_id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|