MigrationHubStrategyRecommendationsClient
Index > MigrationHubStrategyRecommendations > MigrationHubStrategyRecommendationsClient
Auto-generated documentation for MigrationHubStrategyRecommendations type annotations stubs module types-aiobotocore-migrationhubstrategy.
MigrationHubStrategyRecommendationsClient
Type annotations and code completion for session.client("migrationhubstrategy")
boto3 documentation
from aioboto3.session import Session
from types_aiobotocore_migrationhubstrategy.client import MigrationHubStrategyRecommendationsClient
session = Session()
async with session.client("migrationhubstrategy") as client:
client: MigrationHubStrategyRecommendationsClient
Exceptions
aioboto3
client exceptions are generated in runtime.
This class provides code completion for session.client("migrationhubstrategy").exceptions
structure.
async with session.client("migrationhubstrategy") as client:
try:
do_something(client)
except (
client.AccessDeniedException,
client.ClientError,
client.ConflictException,
client.InternalServerException,
client.ResourceNotFoundException,
client.ServiceLinkedRoleLockClientException,
client.ServiceQuotaExceededException,
client.ThrottlingException,
client.ValidationException,
) as e:
print(e)
from types_aiobotocore_migrationhubstrategy.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods
can_paginate
Check if an operation can be paginated.
Type annotations and code completion for session.client("migrationhubstrategy").can_paginate
method.
boto3 documentation
close
Closes underlying endpoint connections.
Type annotations and code completion for session.client("migrationhubstrategy").close
method.
boto3 documentation
generate_presigned_url
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for session.client("migrationhubstrategy").generate_presigned_url
method.
boto3 documentation
await def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
get_application_component_details
Retrieves details about an application component.
Type annotations and code completion for session.client("migrationhubstrategy").get_application_component_details
method.
boto3 documentation
await def get_application_component_details(
self,
*,
applicationComponentId: str,
) -> GetApplicationComponentDetailsResponseTypeDef: # (1)
...
kwargs: GetApplicationComponentDetailsRequestRequestTypeDef = { # (1)
"applicationComponentId": ...,
}
parent.get_application_component_details(**kwargs)
get_application_component_strategies
Retrieves a list of all the recommended strategies and tools for an application component running on a server.
Type annotations and code completion for session.client("migrationhubstrategy").get_application_component_strategies
method.
boto3 documentation
await def get_application_component_strategies(
self,
*,
applicationComponentId: str,
) -> GetApplicationComponentStrategiesResponseTypeDef: # (1)
...
kwargs: GetApplicationComponentStrategiesRequestRequestTypeDef = { # (1)
"applicationComponentId": ...,
}
parent.get_application_component_strategies(**kwargs)
get_assessment
Retrieves the status of an on-going assessment.
Type annotations and code completion for session.client("migrationhubstrategy").get_assessment
method.
boto3 documentation
await def get_assessment(
self,
*,
id: str,
) -> GetAssessmentResponseTypeDef: # (1)
...
kwargs: GetAssessmentRequestRequestTypeDef = { # (1)
"id": ...,
}
parent.get_assessment(**kwargs)
get_import_file_task
Retrieves the details about a specific import task.
Type annotations and code completion for session.client("migrationhubstrategy").get_import_file_task
method.
boto3 documentation
await def get_import_file_task(
self,
*,
id: str,
) -> GetImportFileTaskResponseTypeDef: # (1)
...
kwargs: GetImportFileTaskRequestRequestTypeDef = { # (1)
"id": ...,
}
parent.get_import_file_task(**kwargs)
get_portfolio_preferences
Retrieves your migration and modernization preferences.
Type annotations and code completion for session.client("migrationhubstrategy").get_portfolio_preferences
method.
boto3 documentation
await def get_portfolio_preferences(
self,
) -> GetPortfolioPreferencesResponseTypeDef: # (1)
...
get_portfolio_summary
Retrieves overall summary including the number of servers to rehost and the overall number of anti-patterns.
Type annotations and code completion for session.client("migrationhubstrategy").get_portfolio_summary
method.
boto3 documentation
await def get_portfolio_summary(
self,
) -> GetPortfolioSummaryResponseTypeDef: # (1)
...
get_recommendation_report_details
Retrieves detailed information about the specified recommendation report.
Type annotations and code completion for session.client("migrationhubstrategy").get_recommendation_report_details
method.
boto3 documentation
await def get_recommendation_report_details(
self,
*,
id: str,
) -> GetRecommendationReportDetailsResponseTypeDef: # (1)
...
kwargs: GetRecommendationReportDetailsRequestRequestTypeDef = { # (1)
"id": ...,
}
parent.get_recommendation_report_details(**kwargs)
get_server_details
Retrieves detailed information about a specified server.
Type annotations and code completion for session.client("migrationhubstrategy").get_server_details
method.
boto3 documentation
await def get_server_details(
self,
*,
serverId: str,
maxResults: int = ...,
nextToken: str = ...,
) -> GetServerDetailsResponseTypeDef: # (1)
...
kwargs: GetServerDetailsRequestRequestTypeDef = { # (1)
"serverId": ...,
}
parent.get_server_details(**kwargs)
get_server_strategies
Retrieves recommended strategies and tools for the specified server.
Type annotations and code completion for session.client("migrationhubstrategy").get_server_strategies
method.
boto3 documentation
await def get_server_strategies(
self,
*,
serverId: str,
) -> GetServerStrategiesResponseTypeDef: # (1)
...
kwargs: GetServerStrategiesRequestRequestTypeDef = { # (1)
"serverId": ...,
}
parent.get_server_strategies(**kwargs)
list_application_components
Retrieves a list of all the application components (processes).
Type annotations and code completion for session.client("migrationhubstrategy").list_application_components
method.
boto3 documentation
await def list_application_components(
self,
*,
applicationComponentCriteria: ApplicationComponentCriteriaType = ..., # (1)
filterValue: str = ...,
groupIdFilter: Sequence[GroupTypeDef] = ..., # (2)
maxResults: int = ...,
nextToken: str = ...,
sort: SortOrderType = ..., # (3)
) -> ListApplicationComponentsResponseTypeDef: # (4)
...
- See ApplicationComponentCriteriaType
- See GroupTypeDef
- See SortOrderType
- See ListApplicationComponentsResponseTypeDef
kwargs: ListApplicationComponentsRequestRequestTypeDef = { # (1)
"applicationComponentCriteria": ...,
}
parent.list_application_components(**kwargs)
list_collectors
Retrieves a list of all the installed collectors.
Type annotations and code completion for session.client("migrationhubstrategy").list_collectors
method.
boto3 documentation
await def list_collectors(
self,
*,
maxResults: int = ...,
nextToken: str = ...,
) -> ListCollectorsResponseTypeDef: # (1)
...
kwargs: ListCollectorsRequestRequestTypeDef = { # (1)
"maxResults": ...,
}
parent.list_collectors(**kwargs)
list_import_file_task
Retrieves a list of all the imports performed.
Type annotations and code completion for session.client("migrationhubstrategy").list_import_file_task
method.
boto3 documentation
await def list_import_file_task(
self,
*,
maxResults: int = ...,
nextToken: str = ...,
) -> ListImportFileTaskResponseTypeDef: # (1)
...
kwargs: ListImportFileTaskRequestRequestTypeDef = { # (1)
"maxResults": ...,
}
parent.list_import_file_task(**kwargs)
list_servers
Returns a list of all the servers.
Type annotations and code completion for session.client("migrationhubstrategy").list_servers
method.
boto3 documentation
await def list_servers(
self,
*,
filterValue: str = ...,
groupIdFilter: Sequence[GroupTypeDef] = ..., # (1)
maxResults: int = ...,
nextToken: str = ...,
serverCriteria: ServerCriteriaType = ..., # (2)
sort: SortOrderType = ..., # (3)
) -> ListServersResponseTypeDef: # (4)
...
- See GroupTypeDef
- See ServerCriteriaType
- See SortOrderType
- See ListServersResponseTypeDef
kwargs: ListServersRequestRequestTypeDef = { # (1)
"filterValue": ...,
}
parent.list_servers(**kwargs)
put_portfolio_preferences
Saves the specified migration and modernization preferences.
Type annotations and code completion for session.client("migrationhubstrategy").put_portfolio_preferences
method.
boto3 documentation
await def put_portfolio_preferences(
self,
*,
applicationPreferences: ApplicationPreferencesTypeDef = ..., # (1)
databasePreferences: DatabasePreferencesTypeDef = ..., # (2)
prioritizeBusinessGoals: PrioritizeBusinessGoalsTypeDef = ..., # (3)
) -> Dict[str, Any]:
...
kwargs: PutPortfolioPreferencesRequestRequestTypeDef = { # (1)
"applicationPreferences": ...,
}
parent.put_portfolio_preferences(**kwargs)
start_assessment
Starts the assessment of an on-premises environment.
Type annotations and code completion for session.client("migrationhubstrategy").start_assessment
method.
boto3 documentation
await def start_assessment(
self,
*,
s3bucketForAnalysisData: str = ...,
s3bucketForReportData: str = ...,
) -> StartAssessmentResponseTypeDef: # (1)
...
kwargs: StartAssessmentRequestRequestTypeDef = { # (1)
"s3bucketForAnalysisData": ...,
}
parent.start_assessment(**kwargs)
start_import_file_task
Starts a file import.
Type annotations and code completion for session.client("migrationhubstrategy").start_import_file_task
method.
boto3 documentation
await def start_import_file_task(
self,
*,
S3Bucket: str,
name: str,
s3key: str,
dataSourceType: DataSourceTypeType = ..., # (1)
groupId: Sequence[GroupTypeDef] = ..., # (2)
s3bucketForReportData: str = ...,
) -> StartImportFileTaskResponseTypeDef: # (3)
...
kwargs: StartImportFileTaskRequestRequestTypeDef = { # (1)
"S3Bucket": ...,
"name": ...,
"s3key": ...,
}
parent.start_import_file_task(**kwargs)
start_recommendation_report_generation
Starts generating a recommendation report.
Type annotations and code completion for session.client("migrationhubstrategy").start_recommendation_report_generation
method.
boto3 documentation
await def start_recommendation_report_generation(
self,
*,
groupIdFilter: Sequence[GroupTypeDef] = ..., # (1)
outputFormat: OutputFormatType = ..., # (2)
) -> StartRecommendationReportGenerationResponseTypeDef: # (3)
...
kwargs: StartRecommendationReportGenerationRequestRequestTypeDef = { # (1)
"groupIdFilter": ...,
}
parent.start_recommendation_report_generation(**kwargs)
stop_assessment
Stops the assessment of an on-premises environment.
Type annotations and code completion for session.client("migrationhubstrategy").stop_assessment
method.
boto3 documentation
kwargs: StopAssessmentRequestRequestTypeDef = { # (1)
"assessmentId": ...,
}
parent.stop_assessment(**kwargs)
update_application_component_config
Updates the configuration of an application component.
Type annotations and code completion for session.client("migrationhubstrategy").update_application_component_config
method.
boto3 documentation
await def update_application_component_config(
self,
*,
applicationComponentId: str,
inclusionStatus: InclusionStatusType = ..., # (1)
secretsManagerKey: str = ...,
sourceCodeList: Sequence[SourceCodeTypeDef] = ..., # (2)
strategyOption: StrategyOptionTypeDef = ..., # (3)
) -> Dict[str, Any]:
...
kwargs: UpdateApplicationComponentConfigRequestRequestTypeDef = { # (1)
"applicationComponentId": ...,
}
parent.update_application_component_config(**kwargs)
update_server_config
Updates the configuration of the specified server.
Type annotations and code completion for session.client("migrationhubstrategy").update_server_config
method.
boto3 documentation
await def update_server_config(
self,
*,
serverId: str,
strategyOption: StrategyOptionTypeDef = ..., # (1)
) -> Dict[str, Any]:
...
kwargs: UpdateServerConfigRequestRequestTypeDef = { # (1)
"serverId": ...,
}
parent.update_server_config(**kwargs)
__aenter__
Type annotations and code completion for session.client("migrationhubstrategy").__aenter__
method.
boto3 documentation
__aexit__
Type annotations and code completion for session.client("migrationhubstrategy").__aexit__
method.
boto3 documentation
get_paginator
Type annotations and code completion for session.client("migrationhubstrategy").get_paginator
method with overloads.
client.get_paginator("get_server_details")
-> GetServerDetailsPaginatorclient.get_paginator("list_application_components")
-> ListApplicationComponentsPaginatorclient.get_paginator("list_collectors")
-> ListCollectorsPaginatorclient.get_paginator("list_import_file_task")
-> ListImportFileTaskPaginatorclient.get_paginator("list_servers")
-> ListServersPaginator