Skip to content

MigrationHubStrategyRecommendationsClient#

Index > MigrationHubStrategyRecommendations > MigrationHubStrategyRecommendationsClient

Auto-generated documentation for MigrationHubStrategyRecommendations type annotations stubs module mypy-boto3-migrationhubstrategy.

MigrationHubStrategyRecommendationsClient#

Type annotations and code completion for boto3.client("migrationhubstrategy"). boto3 documentation

# MigrationHubStrategyRecommendationsClient usage example

from boto3.session import Session
from mypy_boto3_migrationhubstrategy.client import MigrationHubStrategyRecommendationsClient

def get_migrationhubstrategy_client() -> MigrationHubStrategyRecommendationsClient:
    return Session().client("migrationhubstrategy")

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("migrationhubstrategy").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("migrationhubstrategy")

try:
    do_something(client)
except (
    client.exceptions.AccessDeniedException,
    client.exceptions.ClientError,
    client.exceptions.ConflictException,
    client.exceptions.DependencyException,
    client.exceptions.InternalServerException,
    client.exceptions.ResourceNotFoundException,
    client.exceptions.ServiceLinkedRoleLockClientException,
    client.exceptions.ServiceQuotaExceededException,
    client.exceptions.ThrottlingException,
    client.exceptions.ValidationException,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_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 boto3.client("migrationhubstrategy").can_paginate method. boto3 documentation

# can_paginate method definition

def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close#

Closes underlying endpoint connections.

Type annotations and code completion for boto3.client("migrationhubstrategy").close method. boto3 documentation

# close method definition

def close(
    self,
) -> None:
    ...

generate_presigned_url#

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for boto3.client("migrationhubstrategy").generate_presigned_url method. boto3 documentation

# generate_presigned_url method definition

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 boto3.client("migrationhubstrategy").get_application_component_details method. boto3 documentation

# get_application_component_details method definition

def get_application_component_details(
    self,
    *,
    applicationComponentId: str,
) -> GetApplicationComponentDetailsResponseTypeDef:  # (1)
    ...
  1. See GetApplicationComponentDetailsResponseTypeDef
# get_application_component_details method usage example with argument unpacking

kwargs: GetApplicationComponentDetailsRequestRequestTypeDef = {  # (1)
    "applicationComponentId": ...,
}

parent.get_application_component_details(**kwargs)
  1. See GetApplicationComponentDetailsRequestRequestTypeDef

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 boto3.client("migrationhubstrategy").get_application_component_strategies method. boto3 documentation

# get_application_component_strategies method definition

def get_application_component_strategies(
    self,
    *,
    applicationComponentId: str,
) -> GetApplicationComponentStrategiesResponseTypeDef:  # (1)
    ...
  1. See GetApplicationComponentStrategiesResponseTypeDef
# get_application_component_strategies method usage example with argument unpacking

kwargs: GetApplicationComponentStrategiesRequestRequestTypeDef = {  # (1)
    "applicationComponentId": ...,
}

parent.get_application_component_strategies(**kwargs)
  1. See GetApplicationComponentStrategiesRequestRequestTypeDef

get_assessment#

Retrieves the status of an on-going assessment.

Type annotations and code completion for boto3.client("migrationhubstrategy").get_assessment method. boto3 documentation

# get_assessment method definition

def get_assessment(
    self,
    *,
    id: str,
) -> GetAssessmentResponseTypeDef:  # (1)
    ...
  1. See GetAssessmentResponseTypeDef
# get_assessment method usage example with argument unpacking

kwargs: GetAssessmentRequestRequestTypeDef = {  # (1)
    "id": ...,
}

parent.get_assessment(**kwargs)
  1. See GetAssessmentRequestRequestTypeDef

get_import_file_task#

Retrieves the details about a specific import task.

Type annotations and code completion for boto3.client("migrationhubstrategy").get_import_file_task method. boto3 documentation

# get_import_file_task method definition

def get_import_file_task(
    self,
    *,
    id: str,
) -> GetImportFileTaskResponseTypeDef:  # (1)
    ...
  1. See GetImportFileTaskResponseTypeDef
# get_import_file_task method usage example with argument unpacking

kwargs: GetImportFileTaskRequestRequestTypeDef = {  # (1)
    "id": ...,
}

parent.get_import_file_task(**kwargs)
  1. See GetImportFileTaskRequestRequestTypeDef

get_latest_assessment_id#

Retrieve the latest ID of a specific assessment task.

Type annotations and code completion for boto3.client("migrationhubstrategy").get_latest_assessment_id method. boto3 documentation

# get_latest_assessment_id method definition

def get_latest_assessment_id(
    self,
) -> GetLatestAssessmentIdResponseTypeDef:  # (1)
    ...
  1. See GetLatestAssessmentIdResponseTypeDef

get_portfolio_preferences#

Retrieves your migration and modernization preferences.

Type annotations and code completion for boto3.client("migrationhubstrategy").get_portfolio_preferences method. boto3 documentation

# get_portfolio_preferences method definition

def get_portfolio_preferences(
    self,
) -> GetPortfolioPreferencesResponseTypeDef:  # (1)
    ...
  1. See GetPortfolioPreferencesResponseTypeDef

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 boto3.client("migrationhubstrategy").get_portfolio_summary method. boto3 documentation

# get_portfolio_summary method definition

def get_portfolio_summary(
    self,
) -> GetPortfolioSummaryResponseTypeDef:  # (1)
    ...
  1. See GetPortfolioSummaryResponseTypeDef

get_recommendation_report_details#

Retrieves detailed information about the specified recommendation report.

Type annotations and code completion for boto3.client("migrationhubstrategy").get_recommendation_report_details method. boto3 documentation

# get_recommendation_report_details method definition

def get_recommendation_report_details(
    self,
    *,
    id: str,
) -> GetRecommendationReportDetailsResponseTypeDef:  # (1)
    ...
  1. See GetRecommendationReportDetailsResponseTypeDef
# get_recommendation_report_details method usage example with argument unpacking

kwargs: GetRecommendationReportDetailsRequestRequestTypeDef = {  # (1)
    "id": ...,
}

parent.get_recommendation_report_details(**kwargs)
  1. See GetRecommendationReportDetailsRequestRequestTypeDef

get_server_details#

Retrieves detailed information about a specified server.

Type annotations and code completion for boto3.client("migrationhubstrategy").get_server_details method. boto3 documentation

# get_server_details method definition

def get_server_details(
    self,
    *,
    serverId: str,
    maxResults: int = ...,
    nextToken: str = ...,
) -> GetServerDetailsResponseTypeDef:  # (1)
    ...
  1. See GetServerDetailsResponseTypeDef
# get_server_details method usage example with argument unpacking

kwargs: GetServerDetailsRequestRequestTypeDef = {  # (1)
    "serverId": ...,
}

parent.get_server_details(**kwargs)
  1. See GetServerDetailsRequestRequestTypeDef

get_server_strategies#

Retrieves recommended strategies and tools for the specified server.

Type annotations and code completion for boto3.client("migrationhubstrategy").get_server_strategies method. boto3 documentation

# get_server_strategies method definition

def get_server_strategies(
    self,
    *,
    serverId: str,
) -> GetServerStrategiesResponseTypeDef:  # (1)
    ...
  1. See GetServerStrategiesResponseTypeDef
# get_server_strategies method usage example with argument unpacking

kwargs: GetServerStrategiesRequestRequestTypeDef = {  # (1)
    "serverId": ...,
}

parent.get_server_strategies(**kwargs)
  1. See GetServerStrategiesRequestRequestTypeDef

list_analyzable_servers#

Retrieves a list of all the servers fetched from customer vCenter using Strategy Recommendation Collector.

Type annotations and code completion for boto3.client("migrationhubstrategy").list_analyzable_servers method. boto3 documentation

# list_analyzable_servers method definition

def list_analyzable_servers(
    self,
    *,
    maxResults: int = ...,
    nextToken: str = ...,
    sort: SortOrderType = ...,  # (1)
) -> ListAnalyzableServersResponseTypeDef:  # (2)
    ...
  1. See SortOrderType
  2. See ListAnalyzableServersResponseTypeDef
# list_analyzable_servers method usage example with argument unpacking

kwargs: ListAnalyzableServersRequestRequestTypeDef = {  # (1)
    "maxResults": ...,
}

parent.list_analyzable_servers(**kwargs)
  1. See ListAnalyzableServersRequestRequestTypeDef

list_application_components#

Retrieves a list of all the application components (processes).

Type annotations and code completion for boto3.client("migrationhubstrategy").list_application_components method. boto3 documentation

# list_application_components method definition

def list_application_components(
    self,
    *,
    applicationComponentCriteria: ApplicationComponentCriteriaType = ...,  # (1)
    filterValue: str = ...,
    groupIdFilter: Sequence[GroupTypeDef] = ...,  # (2)
    maxResults: int = ...,
    nextToken: str = ...,
    sort: SortOrderType = ...,  # (3)
) -> ListApplicationComponentsResponseTypeDef:  # (4)
    ...
  1. See ApplicationComponentCriteriaType
  2. See GroupTypeDef
  3. See SortOrderType
  4. See ListApplicationComponentsResponseTypeDef
# list_application_components method usage example with argument unpacking

kwargs: ListApplicationComponentsRequestRequestTypeDef = {  # (1)
    "applicationComponentCriteria": ...,
}

parent.list_application_components(**kwargs)
  1. See ListApplicationComponentsRequestRequestTypeDef

list_collectors#

Retrieves a list of all the installed collectors.

Type annotations and code completion for boto3.client("migrationhubstrategy").list_collectors method. boto3 documentation

# list_collectors method definition

def list_collectors(
    self,
    *,
    maxResults: int = ...,
    nextToken: str = ...,
) -> ListCollectorsResponseTypeDef:  # (1)
    ...
  1. See ListCollectorsResponseTypeDef
# list_collectors method usage example with argument unpacking

kwargs: ListCollectorsRequestRequestTypeDef = {  # (1)
    "maxResults": ...,
}

parent.list_collectors(**kwargs)
  1. See