Table of Contents
MigrationHubStrategyRecommendations.
Client
¶A low-level client representing Migration Hub Strategy Recommendations
<p>This API reference provides descriptions, syntax, and other details about each of the actions and data types for Migration Hub Strategy Recommendations (Strategy Recommendations). The topic for each action shows the API request parameters and the response. Alternatively, you can use one of the AWS SDKs to access an API that is tailored to the programming language or platform that you're using. For more information, see <a href="http://aws.amazon.com/tools/#SDKs">AWS SDKs</a>.</p>
import boto3 client = boto3.client('migrationhubstrategy')
These are the available methods:
can_paginate()
close()
get_application_component_details()
get_application_component_strategies()
get_assessment()
get_import_file_task()
get_latest_assessment_id()
get_paginator()
get_portfolio_preferences()
get_portfolio_summary()
get_recommendation_report_details()
get_server_details()
get_server_strategies()
get_waiter()
list_application_components()
list_collectors()
list_import_file_task()
list_servers()
put_portfolio_preferences()
start_assessment()
start_import_file_task()
start_recommendation_report_generation()
stop_assessment()
update_application_component_config()
update_server_config()
can_paginate
(operation_name)¶Check if an operation can be paginated.
create_foo
, and you'd normally invoke the
operation as client.create_foo(**kwargs)
, if the
create_foo
operation can be paginated, you can use the
call client.get_paginator("create_foo")
.True
if the operation can be paginated,
False
otherwise.close
()¶Closes underlying endpoint connections.
get_application_component_details
(**kwargs)¶Retrieves details about an application component.
See also: AWS API Documentation
Request Syntax
response = client.get_application_component_details(
applicationComponentId='string'
)
[REQUIRED]
The ID of the application component. The ID is unique within an AWS account.
{
'applicationComponentDetail': {
'analysisStatus': 'ANALYSIS_TO_BE_SCHEDULED'|'ANALYSIS_STARTED'|'ANALYSIS_SUCCESS'|'ANALYSIS_FAILED'|'ANALYSIS_PARTIAL_SUCCESS'|'UNCONFIGURED'|'CONFIGURED',
'antipatternReportS3Object': {
's3Bucket': 'string',
's3key': 'string'
},
'antipatternReportStatus': 'FAILED'|'IN_PROGRESS'|'SUCCESS',
'antipatternReportStatusMessage': 'string',
'appType': 'DotNetFramework'|'Java'|'SQLServer'|'IIS'|'Oracle'|'Other'|'Tomcat'|'JBoss'|'Spring'|'Mongo DB'|'DB2'|'Maria DB'|'MySQL'|'Sybase'|'PostgreSQLServer'|'Cassandra'|'IBM WebSphere'|'Oracle WebLogic'|'Visual Basic'|'Unknown'|'DotnetCore'|'Dotnet',
'appUnitError': {
'appUnitErrorCategory': 'CREDENTIAL_ERROR'|'CONNECTIVITY_ERROR'|'PERMISSION_ERROR'|'UNSUPPORTED_ERROR'|'OTHER_ERROR'
},
'associatedServerId': 'string',
'databaseConfigDetail': {
'secretName': 'string'
},
'id': 'string',
'inclusionStatus': 'excludeFromAssessment'|'includeInAssessment',
'lastAnalyzedTimestamp': datetime(2015, 1, 1),
'listAntipatternSeveritySummary': [
{
'count': 123,
'severity': 'HIGH'|'MEDIUM'|'LOW'
},
],
'moreServerAssociationExists': True|False,
'name': 'string',
'osDriver': 'string',
'osVersion': 'string',
'recommendationSet': {
'strategy': 'Rehost'|'Retirement'|'Refactor'|'Replatform'|'Retain'|'Relocate'|'Repurchase',
'targetDestination': 'None specified'|'AWS Elastic BeanStalk'|'AWS Fargate'|'Amazon Elastic Cloud Compute (EC2)'|'Amazon Elastic Container Service (ECS)'|'Amazon Elastic Kubernetes Service (EKS)'|'Aurora MySQL'|'Aurora PostgreSQL'|'Amazon Relational Database Service on MySQL'|'Amazon Relational Database Service on PostgreSQL'|'Amazon DocumentDB'|'Amazon DynamoDB'|'Amazon Relational Database Service'|'Babelfish for Aurora PostgreSQL',
'transformationTool': {
'description': 'string',
'name': 'App2Container'|'Porting Assistant For .NET'|'End of Support Migration'|'Windows Web Application Migration Assistant'|'Application Migration Service'|'Strategy Recommendation Support'|'In Place Operating System Upgrade'|'Schema Conversion Tool'|'Database Migration Service'|'Native SQL Server Backup/Restore',
'tranformationToolInstallationLink': 'string'
}
},
'resourceSubType': 'Database'|'Process'|'DatabaseProcess',
'runtimeStatus': 'ANALYSIS_TO_BE_SCHEDULED'|'ANALYSIS_STARTED'|'ANALYSIS_SUCCESS'|'ANALYSIS_FAILED',
'runtimeStatusMessage': 'string',
'sourceCodeRepositories': [
{
'branch': 'string',
'projectName': 'string',
'repository': 'string',
'versionControlType': 'string'
},
],
'statusMessage': 'string'
},
'associatedApplications': [
{
'id': 'string',
'name': 'string'
},
],
'associatedServerIds': [
'string',
],
'moreApplicationResource': True|False
}
Response Structure
Detailed information about an application component.
The status of analysis, if the application component has source code or an associated database.
The S3 bucket name and the Amazon S3 key name for the anti-pattern report.
The S3 bucket name.
The Amazon S3 key name.
The status of the anti-pattern report generation.
The status message for the anti-pattern.
The type of application component.
The error in the analysis of the source code or database.
The category of the error.
The ID of the server that the application component is running on.
Configuration details for the database associated with the application component.
AWS Secrets Manager key that holds the credentials that you use to connect to a database.
The ID of the application component.
Indicates whether the application component has been included for server recommendation or not.
The timestamp of when the application component was assessed.
A list of anti-pattern severity summaries.
Contains the summary of anti-patterns and their severity.
Contains the count of anti-patterns.
Contains the severity of anti-patterns.
Set to true if the application component is running on multiple servers.
The name of application component.
OS driver.
OS version.
The top recommendation set for the application component.
The recommended strategy.
The recommended target destination.
The target destination for the recommendation set.
Description of the tool.
Name of the tool.
URL for installing the tool.
The application component subtype.
The status of the application unit.
The status message for the application unit.
Details about the source code repository associated with the application component.
Object containing source code information that is linked to an application component.
The branch of the source code.
The name of the project.
The repository name for the source code.
The type of repository to use for the source code.
A detailed description of the analysis status and any failure message.
The associated application group as defined in AWS Application Discovery Service.
Object containing details about applications as defined in Application Discovery Service.
ID of the application as defined in Application Discovery Service.
Name of the application as defined in Application Discovery Service.
A list of the IDs of the servers on which the application component is running.
Set to true if the application component belongs to more than one application group.
Exceptions
MigrationHubStrategyRecommendations.Client.exceptions.ResourceNotFoundException
MigrationHubStrategyRecommendations.Client.exceptions.ThrottlingException
MigrationHubStrategyRecommendations.Client.exceptions.InternalServerException
get_application_component_strategies
(**kwargs)¶Retrieves a list of all the recommended strategies and tools for an application component running on a server.
See also: AWS API Documentation
Request Syntax
response = client.get_application_component_strategies(
applicationComponentId='string'
)
[REQUIRED]
The ID of the application component. The ID is unique within an AWS account.
{
'applicationComponentStrategies': [
{
'isPreferred': True|False,
'recommendation': {
'strategy': 'Rehost'|'Retirement'|'Refactor'|'Replatform'|'Retain'|'Relocate'|'Repurchase',
'targetDestination': 'None specified'|'AWS Elastic BeanStalk'|'AWS Fargate'|'Amazon Elastic Cloud Compute (EC2)'|'Amazon Elastic Container Service (ECS)'|'Amazon Elastic Kubernetes Service (EKS)'|'Aurora MySQL'|'Aurora PostgreSQL'|'Amazon Relational Database Service on MySQL'|'Amazon Relational Database Service on PostgreSQL'|'Amazon DocumentDB'|'Amazon DynamoDB'|'Amazon Relational Database Service'|'Babelfish for Aurora PostgreSQL',
'transformationTool': {
'description': 'string',
'name': 'App2Container'|'Porting Assistant For .NET'|'End of Support Migration'|'Windows Web Application Migration Assistant'|'Application Migration Service'|'Strategy Recommendation Support'|'In Place Operating System Upgrade'|'Schema Conversion Tool'|'Database Migration Service'|'Native SQL Server Backup/Restore',
'tranformationToolInstallationLink': 'string'
}
},
'status': 'recommended'|'viableOption'|'notRecommended'|'potential'
},
]
}
Response Structure
A list of application component strategy recommendations.
Contains information about a strategy recommendation for an application component.
Set to true if the recommendation is set as preferred.
Strategy recommendation for the application component.
The recommended strategy.
The recommended target destination.
The target destination for the recommendation set.
Description of the tool.
Name of the tool.
URL for installing the tool.
The recommendation status of a strategy for an application component.
Exceptions
MigrationHubStrategyRecommendations.Client.exceptions.ResourceNotFoundException
MigrationHubStrategyRecommendations.Client.exceptions.ThrottlingException
MigrationHubStrategyRecommendations.Client.exceptions.InternalServerException
get_assessment
(**kwargs)¶Retrieves the status of an on-going assessment.
See also: AWS API Documentation
Request Syntax
response = client.get_assessment(
id='string'
)
[REQUIRED]
The assessmentid
returned by StartAssessment.
{
'assessmentTargets': [
{
'condition': 'EQUALS'|'NOT_EQUALS'|'CONTAINS'|'NOT_CONTAINS',
'name': 'string',
'values': [
'string',
]
},
],
'dataCollectionDetails': {
'completionTime': datetime(2015, 1, 1),
'failed': 123,
'inProgress': 123,
'servers': 123,
'startTime': datetime(2015, 1, 1),
'status': 'IN_PROGRESS'|'COMPLETE'|'FAILED'|'STOPPED',
'statusMessage': 'string',
'success': 123
},
'id': 'string'
}
Response Structure
List of criteria for assessment.
Defines the criteria of assessment.
Condition of an assessment.
Name of an assessment.
Values of an assessment.
Detailed information about the assessment.
The time the assessment completes.
The number of failed servers in the assessment.
The number of servers with the assessment status IN_PROGESS
.
The total number of servers in the assessment.
The start time of assessment.
The status of the assessment.
The status message of the assessment.
The number of successful servers in the assessment.
The ID for the specific assessment task.
Exceptions
MigrationHubStrategyRecommendations.Client.exceptions.ResourceNotFoundException
MigrationHubStrategyRecommendations.Client.exceptions.AccessDeniedException
MigrationHubStrategyRecommendations.Client.exceptions.ThrottlingException
MigrationHubStrategyRecommendations.Client.exceptions.InternalServerException
get_import_file_task
(**kwargs)¶Retrieves the details about a specific import task.
See also: AWS API Documentation
Request Syntax
response = client.get_import_file_task(
id='string'
)
[REQUIRED]
The ID of the import file task. This ID is returned in the response of StartImportFileTask.
{
'completionTime': datetime(2015, 1, 1),
'id': 'string',
'importName': 'string',
'inputS3Bucket': 'string',
'inputS3Key': 'string',
'numberOfRecordsFailed': 123,
'numberOfRecordsSuccess': 123,
'startTime': datetime(2015, 1, 1),
'status': 'ImportInProgress'|'ImportFailed'|'ImportPartialSuccess'|'ImportSuccess'|'DeleteInProgress'|'DeleteFailed'|'DeletePartialSuccess'|'DeleteSuccess',
'statusReportS3Bucket': 'string',
'statusReportS3Key': 'string'
}
Response Structure
The time that the import task completed.
The import file task id
returned in the response of StartImportFileTask.
The name of the import task given in StartImportFileTask.
The S3 bucket where import file is located.
The Amazon S3 key name of the import file.
The number of records that failed to be imported.
The number of records successfully imported.
Start time of the import task.
Status of import file task.
The S3 bucket name for status report of import task.
The Amazon S3 key name for status report of import task. The report contains details about whether each record imported successfully or why it did not.
Exceptions
MigrationHubStrategyRecommendations.Client.exceptions.ResourceNotFoundException
MigrationHubStrategyRecommendations.Client.exceptions.AccessDeniedException
MigrationHubStrategyRecommendations.Client.exceptions.ThrottlingException
MigrationHubStrategyRecommendations.Client.exceptions.ValidationException
MigrationHubStrategyRecommendations.Client.exceptions.InternalServerException
get_latest_assessment_id
()¶Retrieve the latest ID of a specific assessment task.
See also: AWS API Documentation
Request Syntax
response = client.get_latest_assessment_id()
{
'id': 'string'
}
Response Structure
The latest ID for the specific assessment task.
Exceptions
MigrationHubStrategyRecommendations.Client.exceptions.DependencyException
MigrationHubStrategyRecommendations.Client.exceptions.AccessDeniedException
MigrationHubStrategyRecommendations.Client.exceptions.ValidationException
MigrationHubStrategyRecommendations.Client.exceptions.InternalServerException
get_paginator
(operation_name)¶Create a paginator for an operation.
create_foo
, and you'd normally invoke the
operation as client.create_foo(**kwargs)
, if the
create_foo
operation can be paginated, you can use the
call client.get_paginator("create_foo")
.client.can_paginate
method to
check if an operation is pageable.get_portfolio_preferences
()¶Retrieves your migration and modernization preferences.
See also: AWS API Documentation
Request Syntax
response = client.get_portfolio_preferences()
{
'applicationMode': 'ALL'|'KNOWN'|'UNKNOWN',
'applicationPreferences': {
'managementPreference': {
'awsManagedResources': {
'targetDestination': [
'None specified'|'AWS Elastic BeanStalk'|'AWS Fargate',
]
},
'noPreference': {
'targetDestination': [
'None specified'|'AWS Elastic BeanStalk'|'AWS Fargate'|'Amazon Elastic Cloud Compute (EC2)'|'Amazon Elastic Container Service (ECS)'|'Amazon Elastic Kubernetes Service (EKS)',
]
},
'selfManageResources': {
'targetDestination': [
'None specified'|'Amazon Elastic Cloud Compute (EC2)'|'Amazon Elastic Container Service (ECS)'|'Amazon Elastic Kubernetes Service (EKS)',
]
}
}
},
'databasePreferences': {
'databaseManagementPreference': 'AWS-managed'|'Self-manage'|'No preference',
'databaseMigrationPreference': {
'heterogeneous': {
'targetDatabaseEngine': [
'None specified'|'Amazon Aurora'|'AWS PostgreSQL'|'MySQL'|'Microsoft SQL Server'|'Oracle Database'|'MariaDB'|'SAP'|'Db2 LUW'|'MongoDB',
]
},
'homogeneous': {
'targetDatabaseEngine': [
'None specified',
]
},
'noPreference': {
'targetDatabaseEngine': [
'None specified'|'Amazon Aurora'|'AWS PostgreSQL'|'MySQL'|'Microsoft SQL Server'|'Oracle Database'|'MariaDB'|'SAP'|'Db2 LUW'|'MongoDB',
]
}
}
},
'prioritizeBusinessGoals': {
'businessGoals': {
'licenseCostReduction': 123,
'modernizeInfrastructureWithCloudNativeTechnologies': 123,
'reduceOperationalOverheadWithManagedServices': 123,
'speedOfMigration': 123
}
}
}
Response Structure
The classification for application component types.
The transformation preferences for non-database applications.
Application preferences that you specify to prefer managed environment.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set: awsManagedResources
, noPreference
, selfManageResources
. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER
is as follows:
'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
Indicates interest in solutions that are managed by AWS.
The choice of application destination that you specify.
No specific preference.
The choice of application destination that you specify.
Indicates interest in managing your own resources on AWS.
Self-managed resources target destination.
The transformation preferences for database applications.
Specifies whether you're interested in self-managed databases or databases managed by AWS.
Specifies your preferred migration path.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set: heterogeneous
, homogeneous
, noPreference
. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER
is as follows:
'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
Indicates whether you are interested in moving from one type of database to another. For example, from SQL Server to Amazon Aurora MySQL-Compatible Edition.
The target database engine for heterogeneous database migration preference.
Indicates whether you are interested in moving to the same type of database into AWS. For example, from SQL Server in your environment to SQL Server on AWS.
The target database engine for homogeneous database migration preferences.
Indicated that you do not prefer heterogeneous or homogeneous.
The target database engine for database migration preference that you specify.
The rank of business goals based on priority.
Rank of business goals based on priority.
Business goal to reduce license costs.
Business goal to modernize infrastructure by moving to cloud native technologies.
Business goal to reduce the operational overhead on the team by moving into managed services.
Business goal to achieve migration at a fast pace.
Exceptions
MigrationHubStrategyRecommendations.Client.exceptions.ResourceNotFoundException
MigrationHubStrategyRecommendations.Client.exceptions.AccessDeniedException
MigrationHubStrategyRecommendations.Client.exceptions.ThrottlingException
MigrationHubStrategyRecommendations.Client.exceptions.InternalServerException
get_portfolio_summary
()¶Retrieves overall summary including the number of servers to rehost and the overall number of anti-patterns.
See also: AWS API Documentation
Request Syntax
response = client.get_portfolio_summary()
{
'assessmentSummary': {
'antipatternReportS3Object': {
's3Bucket': 'string',
's3key': 'string'
},
'antipatternReportStatus': 'FAILED'|'IN_PROGRESS'|'SUCCESS',
'antipatternReportStatusMessage': 'string',
'lastAnalyzedTimestamp': datetime(2015, 1, 1),
'listAntipatternSeveritySummary': [
{
'count': 123,
'severity': 'HIGH'|'MEDIUM'|'LOW'
},
],
'listApplicationComponentStatusSummary': [
{
'count': 123,
'srcCodeOrDbAnalysisStatus': 'ANALYSIS_TO_BE_SCHEDULED'|'ANALYSIS_STARTED'|'ANALYSIS_SUCCESS'|'ANALYSIS_FAILED'|'ANALYSIS_PARTIAL_SUCCESS'|'UNCONFIGURED'|'CONFIGURED'
},
],
'listApplicationComponentStrategySummary': [
{
'count': 123,
'strategy': 'Rehost'|'Retirement'|'Refactor'|'Replatform'|'Retain'|'Relocate'|'Repurchase'
},
],
'listApplicationComponentSummary': [
{
'appType': 'DotNetFramework'|'Java'|'SQLServer'|'IIS'|'Oracle'|'Other'|'Tomcat'|'JBoss'|'Spring'|'Mongo DB'|'DB2'|'Maria DB'|'MySQL'|'Sybase'|'PostgreSQLServer'|'Cassandra'|'IBM WebSphere'|'Oracle WebLogic'|'Visual Basic'|'Unknown'|'DotnetCore'|'Dotnet',
'count': 123
},
],
'listServerStatusSummary': [
{
'count': 123,
'runTimeAssessmentStatus': 'dataCollectionTaskToBeScheduled'|'dataCollectionTaskScheduled'|'dataCollectionTaskStarted'|'dataCollectionTaskStopped'|'dataCollectionTaskSuccess'|'dataCollectionTaskFailed'|'dataCollectionTaskPartialSuccess'
},
],
'listServerStrategySummary': [
{
'count': 123,
'strategy': 'Rehost'|'Retirement'|'Refactor'|'Replatform'|'Retain'|'Relocate'|'Repurchase'
},
],
'listServerSummary': [
{
'ServerOsType': 'WindowsServer'|'AmazonLinux'|'EndOfSupportWindowsServer'|'Redhat'|'Other',
'count': 123
},
]
}
}
Response Structure
An assessment summary for the portfolio including the number of servers to rehost and the overall number of anti-patterns.
The Amazon S3 object containing the anti-pattern report.
The S3 bucket name.
The Amazon S3 key name.
The status of the anti-pattern report.
The status message of the anti-pattern report.
The time the assessment was performed.
List of AntipatternSeveritySummary.
Contains the summary of anti-patterns and their severity.
Contains the count of anti-patterns.
Contains the severity of anti-patterns.
List of status summaries of the analyzed application components.
Summary of the analysis status of the application component.
The number of application components successfully analyzed, partially successful or failed analysis.
The status of database analysis.
List of ApplicationComponentStrategySummary.
Object containing the summary of the strategy recommendations.
The count of recommendations per strategy.
The name of recommended strategy.
List of ApplicationComponentSummary.
Contains the summary of application components.
Contains the name of application types.
Contains the count of application type.
List of status summaries of the analyzed servers.
The status summary of the server analysis.
The number of servers successfully analyzed, partially successful or failed analysis.
The status of the run time.
List of ServerStrategySummary.
Object containing the summary of the strategy recommendations.
The count of recommendations per strategy.
The name of recommended strategy.
List of ServerSummary.
Object containing details about the servers imported by Application Discovery Service
Type of operating system for the servers.
Number of servers.
Exceptions
MigrationHubStrategyRecommendations.Client.exceptions.AccessDeniedException
MigrationHubStrategyRecommendations.Client.exceptions.ThrottlingException
MigrationHubStrategyRecommendations.Client.exceptions.InternalServerException
get_recommendation_report_details
(**kwargs)¶Retrieves detailed information about the specified recommendation report.
See also: AWS API Documentation
Request Syntax
response = client.get_recommendation_report_details(
id='string'
)
[REQUIRED]
The recommendation report generation task id
returned by StartRecommendationReportGeneration.
{
'id': 'string',
'recommendationReportDetails': {
'completionTime': datetime(2015, 1, 1),
's3Bucket': 'string',
's3Keys': [
'string',
],
'startTime': datetime(2015, 1, 1),
'status': 'FAILED'|'IN_PROGRESS'|'SUCCESS',
'statusMessage': 'string'
}
}
Response Structure
The ID of the recommendation report generation task. See the response of StartRecommendationReportGeneration.
Detailed information about the recommendation report.
The time that the recommendation report generation task completes.
The S3 bucket where the report file is located.
The Amazon S3 key name of the report file.
The time that the recommendation report generation task starts.
The status of the recommendation report generation task.
The status message for recommendation report generation.
Exceptions
MigrationHubStrategyRecommendations.Client.exceptions.ResourceNotFoundException
MigrationHubStrategyRecommendations.Client.exceptions.AccessDeniedException
MigrationHubStrategyRecommendations.Client.exceptions.ThrottlingException
MigrationHubStrategyRecommendations.Client.exceptions.ValidationException
MigrationHubStrategyRecommendations.Client.exceptions.InternalServerException
get_server_details
(**kwargs)¶Retrieves detailed information about a specified server.
See also: AWS API Documentation
Request Syntax
response = client.get_server_details(
maxResults=123,
nextToken='string',
serverId='string'
)
maxResults
to 10. You'll receive a set of 10 results along with a token. You then use the returned token to retrieve the next set of 10.[REQUIRED]
The ID of the server.
dict
Response Syntax
{
'associatedApplications': [
{
'id': 'string',
'name': 'string'
},
],
'nextToken': 'string',
'serverDetail': {
'antipatternReportS3Object': {
's3Bucket': 'string',
's3key': 'string'
},
'antipatternReportStatus': 'FAILED'|'IN_PROGRESS'|'SUCCESS',
'antipatternReportStatusMessage': 'string',
'applicationComponentStrategySummary': [
{
'count': 123,
'strategy': 'Rehost'|'Retirement'|'Refactor'|'Replatform'|'Retain'|'Relocate'|'Repurchase'
},
],
'dataCollectionStatus': 'dataCollectionTaskToBeScheduled'|'dataCollectionTaskScheduled'|'dataCollectionTaskStarted'|'dataCollectionTaskStopped'|'dataCollectionTaskSuccess'|'dataCollectionTaskFailed'|'dataCollectionTaskPartialSuccess',
'id': 'string',
'lastAnalyzedTimestamp': datetime(2015, 1, 1),
'listAntipatternSeveritySummary': [
{
'count': 123,
'severity': 'HIGH'|'MEDIUM'|'LOW'
},
],
'name': 'string',
'recommendationSet': {
'strategy': 'Rehost'|'Retirement'|'Refactor'|'Replatform'|'Retain'|'Relocate'|'Repurchase',
'targetDestination': 'None specified'|'AWS Elastic BeanStalk'|'AWS Fargate'|'Amazon Elastic Cloud Compute (EC2)'|'Amazon Elastic Container Service (ECS)'|'Amazon Elastic Kubernetes Service (EKS)'|'Aurora MySQL'|'Aurora PostgreSQL'|'Amazon Relational Database Service on MySQL'|'Amazon Relational Database Service on PostgreSQL'|'Amazon DocumentDB'|'Amazon DynamoDB'|'Amazon Relational Database Service'|'Babelfish for Aurora PostgreSQL',
'transformationTool': {
'description': 'string',
'name': 'App2Container'|'Porting Assistant For .NET'|'End of Support Migration'|'Windows Web Application Migration Assistant'|'Application Migration Service'|'Strategy Recommendation Support'|'In Place Operating System Upgrade'|'Schema Conversion Tool'|'Database Migration Service'|'Native SQL Server Backup/Restore',
'tranformationToolInstallationLink': 'string'
}
},
'serverError': {
'serverErrorCategory': 'CONNECTIVITY_ERROR'|'CREDENTIAL_ERROR'|'PERMISSION_ERROR'|'ARCHITECTURE_ERROR'|'OTHER_ERROR'
},
'serverType': 'string',
'statusMessage': 'string',
'systemInfo': {
'cpuArchitecture': 'string',
'fileSystemType': 'string',
'networkInfoList': [
{
'interfaceName': 'string',
'ipAddress': 'string',
'macAddress': 'string',
'netMask': 'string'
},
],
'osInfo': {
'type': 'LINUX'|'WINDOWS',
'version': 'string'
}
}
}
}
Response Structure
(dict) --
associatedApplications (list) --
The associated application group the server belongs to, as defined in AWS Application Discovery Service.
(dict) --
Object containing details about applications as defined in Application Discovery Service.
id (string) --
ID of the application as defined in Application Discovery Service.
name (string) --
Name of the application as defined in Application Discovery Service.
nextToken (string) --
The token you use to retrieve the next set of results, or null if there are no more results.
serverDetail (dict) --
Detailed information about the server.
antipatternReportS3Object (dict) --
The S3 bucket name and Amazon S3 key name for anti-pattern report.
s3Bucket (string) --
The S3 bucket name.
s3key (string) --
The Amazon S3 key name.
antipatternReportStatus (string) --
The status of the anti-pattern report generation.
antipatternReportStatusMessage (string) --
A message about the status of the anti-pattern report generation.
applicationComponentStrategySummary (list) --
A list of strategy summaries.
(dict) --
Object containing the summary of the strategy recommendations.
count (integer) --
The count of recommendations per strategy.
strategy (string) --
The name of recommended strategy.
dataCollectionStatus (string) --
The status of assessment for the server.
id (string) --
The server ID.
lastAnalyzedTimestamp (datetime) --
The timestamp of when the server was assessed.
listAntipatternSeveritySummary (list) --
A list of anti-pattern severity summaries.
(dict) --
Contains the summary of anti-patterns and their severity.
count (integer) --
Contains the count of anti-patterns.
severity (string) --
Contains the severity of anti-patterns.
name (string) --
The name of the server.
recommendationSet (dict) --
A set of recommendations.
strategy (string) --
The recommended strategy.
targetDestination (string) --
The recommended target destination.
transformationTool (dict) --
The target destination for the recommendation set.
description (string) --
Description of the tool.
name (string) --
Name of the tool.
tranformationToolInstallationLink (string) --
URL for installing the tool.
serverError (dict) --
The error in server analysis.
serverErrorCategory (string) --
The error category of server analysis.
serverType (string) --
The type of server.
statusMessage (string) --
A message about the status of data collection, which contains detailed descriptions of any error messages.
systemInfo (dict) --
System information about the server.
cpuArchitecture (string) --
CPU architecture type for the server.
fileSystemType (string) --
File system type for the server.
networkInfoList (list) --
Networking information related to a server.
(dict) --
Information about the server's network for which the assessment was run.
interfaceName (string) --
Information about the name of the interface of the server for which the assessment was run.
ipAddress (string) --
Information about the IP address of the server for which the assessment was run.
macAddress (string) --
Information about the MAC address of the server for which the assessment was run.
netMask (string) --
Information about the subnet mask of the server for which the assessment was run.
osInfo (dict) --
Operating system corresponding to a server.
type (string) --
Information about the type of operating system.
version (string) --
Information about the version of operating system.
Exceptions
MigrationHubStrategyRecommendations.Client.exceptions.ResourceNotFoundException
MigrationHubStrategyRecommendations.Client.exceptions.AccessDeniedException
MigrationHubStrategyRecommendations.Client.exceptions.ThrottlingException
MigrationHubStrategyRecommendations.Client.exceptions.ValidationException
MigrationHubStrategyRecommendations.Client.exceptions.InternalServerException
get_server_strategies
(**kwargs)¶Retrieves recommended strategies and tools for the specified server.
See also: AWS API Documentation
Request Syntax
response = client.get_server_strategies(
serverId='string'
)
[REQUIRED]
The ID of the server.
{
'serverStrategies': [
{
'isPreferred': True|False,
'numberOfApplicationComponents': 123,
'recommendation': {
'strategy': 'Rehost'|'Retirement'|'Refactor'|'Replatform'|'Retain'|'Relocate'|'Repurchase',
'targetDestination': 'None specified'|'AWS Elastic BeanStalk'|'AWS Fargate'|'Amazon Elastic Cloud Compute (EC2)'|'Amazon Elastic Container Service (ECS)'|'Amazon Elastic Kubernetes Service (EKS)'|'Aurora MySQL'|'Aurora PostgreSQL'|'Amazon Relational Database Service on MySQL'|'Amazon Relational Database Service on PostgreSQL'|'Amazon DocumentDB'|'Amazon DynamoDB'|'Amazon Relational Database Service'|'Babelfish for Aurora PostgreSQL',
'transformationTool': {
'description': 'string',
'name': 'App2Container'|'Porting Assistant For .NET'|'End of Support Migration'|'Windows Web Application Migration Assistant'|'Application Migration Service'|'Strategy Recommendation Support'|'In Place Operating System Upgrade'|'Schema Conversion Tool'|'Database Migration Service'|'Native SQL Server Backup/Restore',
'tranformationToolInstallationLink': 'string'
}
},
'status': 'recommended'|'viableOption'|'notRecommended'|'potential'
},
]
}
Response Structure
A list of strategy recommendations for the server.
Contains information about a strategy recommendation for a server.
Set to true if the recommendation is set as preferred.
The number of application components with this strategy recommendation running on the server.
Strategy recommendation for the server.
The recommended strategy.
The recommended target destination.
The target destination for the recommendation set.
Description of the tool.
Name of the tool.
URL for installing the tool.
The recommendation status of the strategy for the server.
Exceptions
MigrationHubStrategyRecommendations.Client.exceptions.ResourceNotFoundException
MigrationHubStrategyRecommendations.Client.exceptions.AccessDeniedException
MigrationHubStrategyRecommendations.Client.exceptions.ThrottlingException
MigrationHubStrategyRecommendations.Client.exceptions.ValidationException
MigrationHubStrategyRecommendations.Client.exceptions.InternalServerException
get_waiter
(waiter_name)¶Returns an object that can wait for some condition.
list_application_components
(**kwargs)¶Retrieves a list of all the application components (processes).
See also: AWS API Documentation
Request Syntax
response = client.list_application_components(
applicationComponentCriteria='NOT_DEFINED'|'APP_NAME'|'SERVER_ID'|'APP_TYPE'|'STRATEGY'|'DESTINATION'|'ANALYSIS_STATUS'|'ERROR_CATEGORY',
filterValue='string',
groupIdFilter=[
{
'name': 'ExternalId',
'value': 'string'
},
],
maxResults=123,
nextToken='string',
sort='ASC'|'DESC'
)
applicationComponentCriteria
is set to SERVER_ID
and filterValue
is set to server1
, then ListApplicationComponents returns all the application components running on server1.The group ID specified in to filter on.
The object containing information about distinct imports or groups for Strategy Recommendations.
The key of the specific import group.
The value of the specific import group.
maxResults
to 10. You'll receive a set of 10 results along with a token. You then use the returned token to retrieve the next set of 10.ASC
) or descending ( DESC
) order.dict
Response Syntax
{
'applicationComponentInfos': [
{
'analysisStatus': 'ANALYSIS_TO_BE_SCHEDULED'|'ANALYSIS_STARTED'|'ANALYSIS_SUCCESS'|'ANALYSIS_FAILED'|'ANALYSIS_PARTIAL_SUCCESS'|'UNCONFIGURED'|'CONFIGURED',
'antipatternReportS3Object': {
's3Bucket': 'string',
's3key': 'string'
},
'antipatternReportStatus': 'FAILED'|'IN_PROGRESS'|'SUCCESS',
'antipatternReportStatusMessage': 'string',
'appType': 'DotNetFramework'|'Java'|'SQLServer'|'IIS'|'Oracle'|'Other'|'Tomcat'|'JBoss'|'Spring'|'Mongo DB'|'DB2'|'Maria DB'|'MySQL'|'Sybase'|'PostgreSQLServer'|'Cassandra'|'IBM WebSphere'|'Oracle WebLogic'|'Visual Basic'|'Unknown'|'DotnetCore'|'Dotnet',
'appUnitError': {
'appUnitErrorCategory': 'CREDENTIAL_ERROR'|'CONNECTIVITY_ERROR'|'PERMISSION_ERROR'|'UNSUPPORTED_ERROR'|'OTHER_ERROR'
},
'associatedServerId': 'string',
'databaseConfigDetail': {
'secretName': 'string'
},
'id': 'string',
'inclusionStatus': 'excludeFromAssessment'|'includeInAssessment',
'lastAnalyzedTimestamp': datetime(2015, 1, 1),
'listAntipatternSeveritySummary': [
{
'count': 123,
'severity': 'HIGH'|'MEDIUM'|'LOW'
},
],
'moreServerAssociationExists': True|False,
'name': 'string',
'osDriver': 'string',
'osVersion': 'string',
'recommendationSet': {
'strategy': 'Rehost'|'Retirement'|'Refactor'|'Replatform'|'Retain'|'Relocate'|'Repurchase',
'targetDestination': 'None specified'|'AWS Elastic BeanStalk'|'AWS Fargate'|'Amazon Elastic Cloud Compute (EC2)'|'Amazon Elastic Container Service (ECS)'|'Amazon Elastic Kubernetes Service (EKS)'|'Aurora MySQL'|'Aurora PostgreSQL'|'Amazon Relational Database Service on MySQL'|'Amazon Relational Database Service on PostgreSQL'|'Amazon DocumentDB'|'Amazon DynamoDB'|'Amazon Relational Database Service'|'Babelfish for Aurora PostgreSQL',
'transformationTool': {
'description': 'string',
'name': 'App2Container'|'Porting Assistant For .NET'|'End of Support Migration'|'Windows Web Application Migration Assistant'|'Application Migration Service'|'Strategy Recommendation Support'|'In Place Operating System Upgrade'|'Schema Conversion Tool'|'Database Migration Service'|'Native SQL Server Backup/Restore',
'tranformationToolInstallationLink': 'string'
}
},
'resourceSubType': 'Database'|'Process'|'DatabaseProcess',
'runtimeStatus': 'ANALYSIS_TO_BE_SCHEDULED'|'ANALYSIS_STARTED'|'ANALYSIS_SUCCESS'|'ANALYSIS_FAILED',
'runtimeStatusMessage': 'string',
'sourceCodeRepositories': [
{
'branch': 'string',
'projectName': 'string',
'repository': 'string',
'versionControlType': 'string'
},
],
'statusMessage': 'string'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
applicationComponentInfos (list) --
The list of application components with detailed information about each component.
(dict) --
Contains detailed information about an application component.
analysisStatus (string) --
The status of analysis, if the application component has source code or an associated database.
antipatternReportS3Object (dict) --
The S3 bucket name and the Amazon S3 key name for the anti-pattern report.
s3Bucket (string) --
The S3 bucket name.
s3key (string) --
The Amazon S3 key name.
antipatternReportStatus (string) --
The status of the anti-pattern report generation.
antipatternReportStatusMessage (string) --
The status message for the anti-pattern.
appType (string) --
The type of application component.
appUnitError (dict) --
The error in the analysis of the source code or database.
appUnitErrorCategory (string) --
The category of the error.
associatedServerId (string) --
The ID of the server that the application component is running on.
databaseConfigDetail (dict) --
Configuration details for the database associated with the application component.
secretName (string) --
AWS Secrets Manager key that holds the credentials that you use to connect to a database.
id (string) --
The ID of the application component.
inclusionStatus (string) --
Indicates whether the application component has been included for server recommendation or not.
lastAnalyzedTimestamp (datetime) --
The timestamp of when the application component was assessed.
listAntipatternSeveritySummary (list) --
A list of anti-pattern severity summaries.
(dict) --
Contains the summary of anti-patterns and their severity.
count (integer) --
Contains the count of anti-patterns.
severity (string) --
Contains the severity of anti-patterns.
moreServerAssociationExists (boolean) --
Set to true if the application component is running on multiple servers.
name (string) --
The name of application component.
osDriver (string) --
OS driver.
osVersion (string) --
OS version.
recommendationSet (dict) --
The top recommendation set for the application component.
strategy (string) --
The recommended strategy.
targetDestination (string) --
The recommended target destination.
transformationTool (dict) --
The target destination for the recommendation set.
description (string) --
Description of the tool.
name (string) --
Name of the tool.
tranformationToolInstallationLink (string) --
URL for installing the tool.
resourceSubType (string) --
The application component subtype.
runtimeStatus (string) --
The status of the application unit.
runtimeStatusMessage (string) --
The status message for the application unit.
sourceCodeRepositories (list) --
Details about the source code repository associated with the application component.
(dict) --
Object containing source code information that is linked to an application component.
branch (string) --
The branch of the source code.
projectName (string) --
The name of the project.
repository (string) --
The repository name for the source code.
versionControlType (string) --
The type of repository to use for the source code.
statusMessage (string) --
A detailed description of the analysis status and any failure message.
nextToken (string) --
The token you use to retrieve the next set of results, or null if there are no more results.
Exceptions
MigrationHubStrategyRecommendations.Client.exceptions.AccessDeniedException
MigrationHubStrategyRecommendations.Client.exceptions.ServiceLinkedRoleLockClientException
MigrationHubStrategyRecommendations.Client.exceptions.ValidationException
MigrationHubStrategyRecommendations.Client.exceptions.InternalServerException
list_collectors
(**kwargs)¶Retrieves a list of all the installed collectors.
See also: AWS API Documentation
Request Syntax
response = client.list_collectors(
maxResults=123,
nextToken='string'
)
maxResults
to 10. You'll receive a set of 10 results along with a token. You then use the returned token to retrieve the next set of 10.dict
Response Syntax
{
'Collectors': [
{
'collectorHealth': 'COLLECTOR_HEALTHY'|'COLLECTOR_UNHEALTHY',
'collectorId': 'string',
'collectorVersion': 'string',
'configurationSummary': {
'ipAddressBasedRemoteInfoList': [
{
'authType': 'NTLM'|'SSH'|'CERT',
'ipAddressConfigurationTimeStamp': 'string',
'osType': 'LINUX'|'WINDOWS'
},
],
'pipelineInfoList': [
{
'pipelineConfigurationTimeStamp': 'string',
'pipelineType': 'AZURE_DEVOPS'
},
],
'remoteSourceCodeAnalysisServerInfo': {
'remoteSourceCodeAnalysisServerConfigurationTimestamp': 'string'
},
'vcenterBasedRemoteInfoList': [
{
'osType': 'LINUX'|'WINDOWS',
'vcenterConfigurationTimeStamp': 'string'
},
],
'versionControlInfoList': [
{
'versionControlConfigurationTimeStamp': 'string',
'versionControlType': 'GITHUB'|'GITHUB_ENTERPRISE'|'AZURE_DEVOPS_GIT'
},
]
},
'hostName': 'string',
'ipAddress': 'string',
'lastActivityTimeStamp': 'string',
'registeredTimeStamp': 'string'
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
Collectors (list) --
The list of all the installed collectors.
(dict) --
Process data collector that runs in the environment that you specify.
collectorHealth (string) --
Indicates the health of a collector.
collectorId (string) --
The ID of the collector.
collectorVersion (string) --
Current version of the collector that is running in the environment that you specify.
configurationSummary (dict) --
Summary of the collector configuration.
ipAddressBasedRemoteInfoList (list) --
IP address based configurations.
(dict) --
IP address based configurations.
authType (string) --
The type of authorization.
ipAddressConfigurationTimeStamp (string) --
The time stamp of the configuration.
osType (string) --
The type of the operating system.
pipelineInfoList (list) --
The list of pipeline info configurations.
(dict) --
Detailed information of the pipeline.
pipelineConfigurationTimeStamp (string) --
The time when the pipeline info was configured.
pipelineType (string) --
The type of pipeline.
remoteSourceCodeAnalysisServerInfo (dict) --
Info about the remote server source code configuration.
remoteSourceCodeAnalysisServerConfigurationTimestamp (string) --
The time when the remote source code server was configured.
vcenterBasedRemoteInfoList (list) --
The list of vCenter configurations.
(dict) --
Details about the server in vCenter.
osType (string) --
The type of the operating system.
vcenterConfigurationTimeStamp (string) --
The time when the remote server based on vCenter was last configured.
versionControlInfoList (list) --
The list of the version control configurations.
(dict) --
Details about the version control configuration.
versionControlConfigurationTimeStamp (string) --
The time when the version control system was last configured.
versionControlType (string) --
The type of version control.
hostName (string) --
Hostname of the server that is hosting the collector.
ipAddress (string) --
IP address of the server that is hosting the collector.
lastActivityTimeStamp (string) --
Time when the collector last pinged the service.
registeredTimeStamp (string) --
Time when the collector registered with the service.
nextToken (string) --
The token you use to retrieve the next set of results, or null if there are no more results.
Exceptions
MigrationHubStrategyRecommendations.Client.exceptions.AccessDeniedException
MigrationHubStrategyRecommendations.Client.exceptions.ThrottlingException
MigrationHubStrategyRecommendations.Client.exceptions.ValidationException
MigrationHubStrategyRecommendations.Client.exceptions.InternalServerException
list_import_file_task
(**kwargs)¶Retrieves a list of all the imports performed.
See also: AWS API Documentation
Request Syntax
response = client.list_import_file_task(
maxResults=123,
nextToken='string'
)
maxResults
to 10. You'll receive a set of 10 results along with a token. You then use the returned token to retrieve the next set of 10.dict
Response Syntax
{
'nextToken': 'string',
'taskInfos': [
{
'completionTime': datetime(2015, 1, 1),
'id': 'string',
'importName': 'string',
'inputS3Bucket': 'string',
'inputS3Key': 'string',
'numberOfRecordsFailed': 123,
'numberOfRecordsSuccess': 123,
'startTime': datetime(2015, 1, 1),
'status': 'ImportInProgress'|'ImportFailed'|'ImportPartialSuccess'|'ImportSuccess'|'DeleteInProgress'|'DeleteFailed'|'DeletePartialSuccess'|'DeleteSuccess',
'statusReportS3Bucket': 'string',
'statusReportS3Key': 'string'
},
]
}
Response Structure
(dict) --
nextToken (string) --
The token you use to retrieve the next set of results, or null if there are no more results.
taskInfos (list) --
Lists information about the files you import.
(dict) --
Information about the import file tasks you request.
completionTime (datetime) --
The time that the import task completes.
id (string) --
The ID of the import file task.
importName (string) --
The name of the import task given in StartImportFileTask
.
inputS3Bucket (string) --
The S3 bucket where the import file is located.
inputS3Key (string) --
The Amazon S3 key name of the import file.
numberOfRecordsFailed (integer) --
The number of records that failed to be imported.
numberOfRecordsSuccess (integer) --
The number of records successfully imported.
startTime (datetime) --
Start time of the import task.
status (string) --
Status of import file task.
statusReportS3Bucket (string) --
The S3 bucket name for status report of import task.
statusReportS3Key (string) --
The Amazon S3 key name for status report of import task. The report contains details about whether each record imported successfully or why it did not.
Exceptions
MigrationHubStrategyRecommendations.Client.exceptions.AccessDeniedException
MigrationHubStrategyRecommendations.Client.exceptions.ThrottlingException
MigrationHubStrategyRecommendations.Client.exceptions.ValidationException
MigrationHubStrategyRecommendations.Client.exceptions.InternalServerException
list_servers
(**kwargs)¶Returns a list of all the servers.
See also: AWS API Documentation
Request Syntax
response = client.list_servers(
filterValue='string',
groupIdFilter=[
{
'name': 'ExternalId',
'value': 'string'
},
],
maxResults=123,
nextToken='string',
serverCriteria='NOT_DEFINED'|'OS_NAME'|'STRATEGY'|'DESTINATION'|'SERVER_ID'|'ANALYSIS_STATUS'|'ERROR_CATEGORY',
sort='ASC'|'DESC'
)
serverCriteria
is OS_NAME
, and the filterValue
is equal to WindowsServer
, then ListServers
returns all of the servers matching the OS name WindowsServer
.Specifies the group ID to filter on.
The object containing information about distinct imports or groups for Strategy Recommendations.
The key of the specific import group.
The value of the specific import group.
maxResults
to 10. You'll receive a set of 10 results along with a token. You then use the returned token to retrieve the next set of 10.ASC
) or descending ( DESC
) order.dict
Response Syntax
{
'nextToken': 'string',
'serverInfos': [
{
'antipatternReportS3Object': {
's3Bucket': 'string',
's3key': 'string'
},
'antipatternReportStatus': 'FAILED'|'IN_PROGRESS'|'SUCCESS',
'antipatternReportStatusMessage': 'string',
'applicationComponentStrategySummary': [
{
'count': 123,
'strategy': 'Rehost'|'Retirement'|'Refactor'|'Replatform'|'Retain'|'Relocate'|'Repurchase'
},
],
'dataCollectionStatus': 'dataCollectionTaskToBeScheduled'|'dataCollectionTaskScheduled'|'dataCollectionTaskStarted'|'dataCollectionTaskStopped'|'dataCollectionTaskSuccess'|'dataCollectionTaskFailed'|'dataCollectionTaskPartialSuccess',
'id': 'string',
'lastAnalyzedTimestamp': datetime(2015, 1, 1),
'listAntipatternSeveritySummary': [
{
'count': 123,
'severity': 'HIGH'|'MEDIUM'|'LOW'
},
],
'name': 'string',
'recommendationSet': {
'strategy': 'Rehost'|'Retirement'|'Refactor'|'Replatform'|'Retain'|'Relocate'|'Repurchase',
'targetDestination': 'None specified'|'AWS Elastic BeanStalk'|'AWS Fargate'|'Amazon Elastic Cloud Compute (EC2)'|'Amazon Elastic Container Service (ECS)'|'Amazon Elastic Kubernetes Service (EKS)'|'Aurora MySQL'|'Aurora PostgreSQL'|'Amazon Relational Database Service on MySQL'|'Amazon Relational Database Service on PostgreSQL'|'Amazon DocumentDB'|'Amazon DynamoDB'|'Amazon Relational Database Service'|'Babelfish for Aurora PostgreSQL',
'transformationTool': {
'description': 'string',
'name': 'App2Container'|'Porting Assistant For .NET'|'End of Support Migration'|'Windows Web Application Migration Assistant'|'Application Migration Service'|'Strategy Recommendation Support'|'In Place Operating System Upgrade'|'Schema Conversion Tool'|'Database Migration Service'|'Native SQL Server Backup/Restore',
'tranformationToolInstallationLink': 'string'
}
},
'serverError': {
'serverErrorCategory': 'CONNECTIVITY_ERROR'|'CREDENTIAL_ERROR'|'PERMISSION_ERROR'|'ARCHITECTURE_ERROR'|'OTHER_ERROR'
},
'serverType': 'string',
'statusMessage': 'string',
'systemInfo': {
'cpuArchitecture': 'string',
'fileSystemType': 'string',
'networkInfoList': [
{
'interfaceName': 'string',
'ipAddress': 'string',
'macAddress': 'string',
'netMask': 'string'
},
],
'osInfo': {
'type': 'LINUX'|'WINDOWS',
'version': 'string'
}
}
},
]
}
Response Structure
(dict) --
nextToken (string) --
The token you use to retrieve the next set of results, or null if there are no more results.
serverInfos (list) --
The list of servers with detailed information about each server.
(dict) --
Detailed information about a server.
antipatternReportS3Object (dict) --
The S3 bucket name and Amazon S3 key name for anti-pattern report.
s3Bucket (string) --
The S3 bucket name.
s3key (string) --
The Amazon S3 key name.
antipatternReportStatus (string) --
The status of the anti-pattern report generation.
antipatternReportStatusMessage (string) --
A message about the status of the anti-pattern report generation.
applicationComponentStrategySummary (list) --
A list of strategy summaries.
(dict) --
Object containing the summary of the strategy recommendations.
count (integer) --
The count of recommendations per strategy.
strategy (string) --
The name of recommended strategy.
dataCollectionStatus (string) --
The status of assessment for the server.
id (string) --
The server ID.
lastAnalyzedTimestamp (datetime) --
The timestamp of when the server was assessed.
listAntipatternSeveritySummary (list) --
A list of anti-pattern severity summaries.
(dict) --
Contains the summary of anti-patterns and their severity.
count (integer) --
Contains the count of anti-patterns.
severity (string) --
Contains the severity of anti-patterns.
name (string) --
The name of the server.
recommendationSet (dict) --
A set of recommendations.
strategy (string) --
The recommended strategy.
targetDestination (string) --
The recommended target destination.
transformationTool (dict) --
The target destination for the recommendation set.
description (string) --
Description of the tool.
name (string) --
Name of the tool.
tranformationToolInstallationLink (string) --
URL for installing the tool.
serverError (dict) --
The error in server analysis.
serverErrorCategory (string) --
The error category of server analysis.
serverType (string) --
The type of server.
statusMessage (string) --
A message about the status of data collection, which contains detailed descriptions of any error messages.
systemInfo (dict) --
System information about the server.
cpuArchitecture (string) --
CPU architecture type for the server.
fileSystemType (string) --
File system type for the server.
networkInfoList (list) --
Networking information related to a server.
(dict) --
Information about the server's network for which the assessment was run.
interfaceName (string) --
Information about the name of the interface of the server for which the assessment was run.
ipAddress (string) --
Information about the IP address of the server for which the assessment was run.
macAddress (string) --
Information about the MAC address of the server for which the assessment was run.
netMask (string) --
Information about the subnet mask of the server for which the assessment was run.
osInfo (dict) --
Operating system corresponding to a server.
type (string) --
Information about the type of operating system.
version (string) --
Information about the version of operating system.
Exceptions
MigrationHubStrategyRecommendations.Client.exceptions.AccessDeniedException
MigrationHubStrategyRecommendations.Client.exceptions.ThrottlingException
MigrationHubStrategyRecommendations.Client.exceptions.ValidationException
MigrationHubStrategyRecommendations.Client.exceptions.InternalServerException
put_portfolio_preferences
(**kwargs)¶Saves the specified migration and modernization preferences.
See also: AWS API Documentation
Request Syntax
response = client.put_portfolio_preferences(
applicationMode='ALL'|'KNOWN'|'UNKNOWN',
applicationPreferences={
'managementPreference': {
'awsManagedResources': {
'targetDestination': [
'None specified'|'AWS Elastic BeanStalk'|'AWS Fargate',
]
},
'noPreference': {
'targetDestination': [
'None specified'|'AWS Elastic BeanStalk'|'AWS Fargate'|'Amazon Elastic Cloud Compute (EC2)'|'Amazon Elastic Container Service (ECS)'|'Amazon Elastic Kubernetes Service (EKS)',
]
},
'selfManageResources': {
'targetDestination': [
'None specified'|'Amazon Elastic Cloud Compute (EC2)'|'Amazon Elastic Container Service (ECS)'|'Amazon Elastic Kubernetes Service (EKS)',
]
}
}
},
databasePreferences={
'databaseManagementPreference': 'AWS-managed'|'Self-manage'|'No preference',
'databaseMigrationPreference': {
'heterogeneous': {
'targetDatabaseEngine': [
'None specified'|'Amazon Aurora'|'AWS PostgreSQL'|'MySQL'|'Microsoft SQL Server'|'Oracle Database'|'MariaDB'|'SAP'|'Db2 LUW'|'MongoDB',
]
},
'homogeneous': {
'targetDatabaseEngine': [
'None specified',
]
},
'noPreference': {
'targetDatabaseEngine': [
'None specified'|'Amazon Aurora'|'AWS PostgreSQL'|'MySQL'|'Microsoft SQL Server'|'Oracle Database'|'MariaDB'|'SAP'|'Db2 LUW'|'MongoDB',
]
}
}
},
prioritizeBusinessGoals={
'businessGoals': {
'licenseCostReduction': 123,
'modernizeInfrastructureWithCloudNativeTechnologies': 123,
'reduceOperationalOverheadWithManagedServices': 123,
'speedOfMigration': 123
}
}
)
The transformation preferences for non-database applications.
Application preferences that you specify to prefer managed environment.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: awsManagedResources
, noPreference
, selfManageResources
.
Indicates interest in solutions that are managed by AWS.
The choice of application destination that you specify.
No specific preference.
The choice of application destination that you specify.
Indicates interest in managing your own resources on AWS.
Self-managed resources target destination.
The transformation preferences for database applications.
Specifies whether you're interested in self-managed databases or databases managed by AWS.
Specifies your preferred migration path.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: heterogeneous
, homogeneous
, noPreference
.
Indicates whether you are interested in moving from one type of database to another. For example, from SQL Server to Amazon Aurora MySQL-Compatible Edition.
The target database engine for heterogeneous database migration preference.
Indicates whether you are interested in moving to the same type of database into AWS. For example, from SQL Server in your environment to SQL Server on AWS.
The target database engine for homogeneous database migration preferences.
Indicated that you do not prefer heterogeneous or homogeneous.
The target database engine for database migration preference that you specify.
The rank of the business goals based on priority.
Rank of business goals based on priority.
Business goal to reduce license costs.
Business goal to modernize infrastructure by moving to cloud native technologies.
Business goal to reduce the operational overhead on the team by moving into managed services.
Business goal to achieve migration at a fast pace.
dict
Response Syntax
{}
Response Structure
Exceptions
MigrationHubStrategyRecommendations.Client.exceptions.AccessDeniedException
MigrationHubStrategyRecommendations.Client.exceptions.ThrottlingException
MigrationHubStrategyRecommendations.Client.exceptions.ValidationException
MigrationHubStrategyRecommendations.Client.exceptions.ConflictException
MigrationHubStrategyRecommendations.Client.exceptions.InternalServerException
start_assessment
(**kwargs)¶Starts the assessment of an on-premises environment.
See also: AWS API Documentation
Request Syntax
response = client.start_assessment(
assessmentTargets=[
{
'condition': 'EQUALS'|'NOT_EQUALS'|'CONTAINS'|'NOT_CONTAINS',
'name': 'string',
'values': [
'string',
]
},
],
s3bucketForAnalysisData='string',
s3bucketForReportData='string'
)
List of criteria for assessment.
Defines the criteria of assessment.
Condition of an assessment.
Name of an assessment.
Values of an assessment.
migrationhub-strategy-
.migrationhub-strategy-
.dict
Response Syntax
{
'assessmentId': 'string'
}
Response Structure
(dict) --
assessmentId (string) --
The ID of the assessment.
Exceptions
MigrationHubStrategyRecommendations.Client.exceptions.AccessDeniedException
MigrationHubStrategyRecommendations.Client.exceptions.ThrottlingException
MigrationHubStrategyRecommendations.Client.exceptions.ServiceQuotaExceededException
MigrationHubStrategyRecommendations.Client.exceptions.InternalServerException
start_import_file_task
(**kwargs)¶Starts a file import.
See also: AWS API Documentation
Request Syntax
response = client.start_import_file_task(
S3Bucket='string',
dataSourceType='ApplicationDiscoveryService'|'MPA',
groupId=[
{
'name': 'ExternalId',
'value': 'string'
},
],
name='string',
s3bucketForReportData='string',
s3key='string'
)
[REQUIRED]
The S3 bucket where the import file is located. The bucket name is required to begin with migrationhub-strategy-
.
Groups the resources in the import file together with a unique name. This ID can be as filter in ListApplicationComponents
and ListServers
.
The object containing information about distinct imports or groups for Strategy Recommendations.
The key of the specific import group.
The value of the specific import group.
[REQUIRED]
A descriptive name for the request.
[REQUIRED]
The Amazon S3 key name of the import file.
dict
Response Syntax
{
'id': 'string'
}
Response Structure
(dict) --
id (string) --
The ID for a specific import task. The ID is unique within an AWS account.
Exceptions
MigrationHubStrategyRecommendations.Client.exceptions.AccessDeniedException
MigrationHubStrategyRecommendations.Client.exceptions.ThrottlingException
MigrationHubStrategyRecommendations.Client.exceptions.ServiceQuotaExceededException
MigrationHubStrategyRecommendations.Client.exceptions.ValidationException
MigrationHubStrategyRecommendations.Client.exceptions.InternalServerException
start_recommendation_report_generation
(**kwargs)¶Starts generating a recommendation report.
See also: AWS API Documentation
Request Syntax
response = client.start_recommendation_report_generation(
groupIdFilter=[
{
'name': 'ExternalId',
'value': 'string'
},
],
outputFormat='Excel'|'Json'
)
Groups the resources in the recommendation report with a unique name.
The object containing information about distinct imports or groups for Strategy Recommendations.
The key of the specific import group.
The value of the specific import group.
dict
Response Syntax
{
'id': 'string'
}
Response Structure
(dict) --
id (string) --
The ID of the recommendation report generation task.
Exceptions
MigrationHubStrategyRecommendations.Client.exceptions.AccessDeniedException
MigrationHubStrategyRecommendations.Client.exceptions.ThrottlingException
MigrationHubStrategyRecommendations.Client.exceptions.ValidationException
MigrationHubStrategyRecommendations.Client.exceptions.ConflictException
MigrationHubStrategyRecommendations.Client.exceptions.InternalServerException
stop_assessment
(**kwargs)¶Stops the assessment of an on-premises environment.
See also: AWS API Documentation
Request Syntax
response = client.stop_assessment(
assessmentId='string'
)
[REQUIRED]
The assessmentId
returned by StartAssessment.
{}
Response Structure
Exceptions
MigrationHubStrategyRecommendations.Client.exceptions.AccessDeniedException
MigrationHubStrategyRecommendations.Client.exceptions.ThrottlingException
MigrationHubStrategyRecommendations.Client.exceptions.ValidationException
MigrationHubStrategyRecommendations.Client.exceptions.InternalServerException
update_application_component_config
(**kwargs)¶Updates the configuration of an application component.
See also: AWS API Documentation
Request Syntax
response = client.update_application_component_config(
appType='DotNetFramework'|'Java'|'SQLServer'|'IIS'|'Oracle'|'Other'|'Tomcat'|'JBoss'|'Spring'|'Mongo DB'|'DB2'|'Maria DB'|'MySQL'|'Sybase'|'PostgreSQLServer'|'Cassandra'|'IBM WebSphere'|'Oracle WebLogic'|'Visual Basic'|'Unknown'|'DotnetCore'|'Dotnet',
applicationComponentId='string',
configureOnly=True|False,
inclusionStatus='excludeFromAssessment'|'includeInAssessment',
secretsManagerKey='string',
sourceCodeList=[
{
'location': 'string',
'projectName': 'string',
'sourceVersion': 'string',
'versionControl': 'GITHUB'|'GITHUB_ENTERPRISE'|'AZURE_DEVOPS_GIT'
},
],
strategyOption={
'isPreferred': True|False,
'strategy': 'Rehost'|'Retirement'|'Refactor'|'Replatform'|'Retain'|'Relocate'|'Repurchase',
'targetDestination': 'None specified'|'AWS Elastic BeanStalk'|'AWS Fargate'|'Amazon Elastic Cloud Compute (EC2)'|'Amazon Elastic Container Service (ECS)'|'Amazon Elastic Kubernetes Service (EKS)'|'Aurora MySQL'|'Aurora PostgreSQL'|'Amazon Relational Database Service on MySQL'|'Amazon Relational Database Service on PostgreSQL'|'Amazon DocumentDB'|'Amazon DynamoDB'|'Amazon Relational Database Service'|'Babelfish for Aurora PostgreSQL',
'toolName': 'App2Container'|'Porting Assistant For .NET'|'End of Support Migration'|'Windows Web Application Migration Assistant'|'Application Migration Service'|'Strategy Recommendation Support'|'In Place Operating System Upgrade'|'Schema Conversion Tool'|'Database Migration Service'|'Native SQL Server Backup/Restore'
}
)
[REQUIRED]
The ID of the application component. The ID is unique within an AWS account.
The list of source code configurations to update for the application component.
Object containing source code information that is linked to an application component.
The repository name for the source code.
The name of the project.
The branch of the source code.
The type of repository to use for the source code.
The preferred strategy options for the application component. Use values from the GetApplicationComponentStrategies response.
Indicates if a specific strategy is preferred for the application component.
Type of transformation. For example, Rehost, Replatform, and so on.
Destination information about where the application component can migrate to. For example, EC2
, ECS
, and so on.
The name of the tool that can be used to transform an application component using this strategy.
dict
Response Syntax
{}
Response Structure
Exceptions
MigrationHubStrategyRecommendations.Client.exceptions.ResourceNotFoundException
MigrationHubStrategyRecommendations.Client.exceptions.ThrottlingException
MigrationHubStrategyRecommendations.Client.exceptions.ValidationException
MigrationHubStrategyRecommendations.Client.exceptions.InternalServerException
update_server_config
(**kwargs)¶Updates the configuration of the specified server.
See also: AWS API Documentation
Request Syntax
response = client.update_server_config(
serverId='string',
strategyOption={
'isPreferred': True|False,
'strategy': 'Rehost'|'Retirement'|'Refactor'|'Replatform'|'Retain'|'Relocate'|'Repurchase',
'targetDestination': 'None specified'|'AWS Elastic BeanStalk'|'AWS Fargate'|'Amazon Elastic Cloud Compute (EC2)'|'Amazon Elastic Container Service (ECS)'|'Amazon Elastic Kubernetes Service (EKS)'|'Aurora MySQL'|'Aurora PostgreSQL'|'Amazon Relational Database Service on MySQL'|'Amazon Relational Database Service on PostgreSQL'|'Amazon DocumentDB'|'Amazon DynamoDB'|'Amazon Relational Database Service'|'Babelfish for Aurora PostgreSQL',
'toolName': 'App2Container'|'Porting Assistant For .NET'|'End of Support Migration'|'Windows Web Application Migration Assistant'|'Application Migration Service'|'Strategy Recommendation Support'|'In Place Operating System Upgrade'|'Schema Conversion Tool'|'Database Migration Service'|'Native SQL Server Backup/Restore'
}
)
[REQUIRED]
The ID of the server.
The preferred strategy options for the application component. See the response from GetServerStrategies.
Indicates if a specific strategy is preferred for the application component.
Type of transformation. For example, Rehost, Replatform, and so on.
Destination information about where the application component can migrate to. For example, EC2
, ECS
, and so on.
The name of the tool that can be used to transform an application component using this strategy.
dict
Response Syntax
{}
Response Structure
Exceptions
MigrationHubStrategyRecommendations.Client.exceptions.ResourceNotFoundException
MigrationHubStrategyRecommendations.Client.exceptions.ThrottlingException
MigrationHubStrategyRecommendations.Client.exceptions.ValidationException
MigrationHubStrategyRecommendations.Client.exceptions.InternalServerException
The available paginators are:
MigrationHubStrategyRecommendations.Paginator.GetServerDetails
MigrationHubStrategyRecommendations.Paginator.ListApplicationComponents
MigrationHubStrategyRecommendations.Paginator.ListCollectors
MigrationHubStrategyRecommendations.Paginator.ListImportFileTask
MigrationHubStrategyRecommendations.Paginator.ListServers
MigrationHubStrategyRecommendations.Paginator.
GetServerDetails
¶paginator = client.get_paginator('get_server_details')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from MigrationHubStrategyRecommendations.Client.get_server_details()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
serverId='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
[REQUIRED]
The ID of the server.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'associatedApplications': [
{
'id': 'string',
'name': 'string'
},
],
'serverDetail': {
'antipatternReportS3Object': {
's3Bucket': 'string',
's3key': 'string'
},
'antipatternReportStatus': 'FAILED'|'IN_PROGRESS'|'SUCCESS',
'antipatternReportStatusMessage': 'string',
'applicationComponentStrategySummary': [
{
'count': 123,
'strategy': 'Rehost'|'Retirement'|'Refactor'|'Replatform'|'Retain'|'Relocate'|'Repurchase'
},
],
'dataCollectionStatus': 'dataCollectionTaskToBeScheduled'|'dataCollectionTaskScheduled'|'dataCollectionTaskStarted'|'dataCollectionTaskStopped'|'dataCollectionTaskSuccess'|'dataCollectionTaskFailed'|'dataCollectionTaskPartialSuccess',
'id': 'string',
'lastAnalyzedTimestamp': datetime(2015, 1, 1),
'listAntipatternSeveritySummary': [
{
'count': 123,
'severity': 'HIGH'|'MEDIUM'|'LOW'
},
],
'name': 'string',
'recommendationSet': {
'strategy': 'Rehost'|'Retirement'|'Refactor'|'Replatform'|'Retain'|'Relocate'|'Repurchase',
'targetDestination': 'None specified'|'AWS Elastic BeanStalk'|'AWS Fargate'|'Amazon Elastic Cloud Compute (EC2)'|'Amazon Elastic Container Service (ECS)'|'Amazon Elastic Kubernetes Service (EKS)'|'Aurora MySQL'|'Aurora PostgreSQL'|'Amazon Relational Database Service on MySQL'|'Amazon Relational Database Service on PostgreSQL'|'Amazon DocumentDB'|'Amazon DynamoDB'|'Amazon Relational Database Service'|'Babelfish for Aurora PostgreSQL',
'transformationTool': {
'description': 'string',
'name': 'App2Container'|'Porting Assistant For .NET'|'End of Support Migration'|'Windows Web Application Migration Assistant'|'Application Migration Service'|'Strategy Recommendation Support'|'In Place Operating System Upgrade'|'Schema Conversion Tool'|'Database Migration Service'|'Native SQL Server Backup/Restore',
'tranformationToolInstallationLink': 'string'
}
},
'serverError': {
'serverErrorCategory': 'CONNECTIVITY_ERROR'|'CREDENTIAL_ERROR'|'PERMISSION_ERROR'|'ARCHITECTURE_ERROR'|'OTHER_ERROR'
},
'serverType': 'string',
'statusMessage': 'string',
'systemInfo': {
'cpuArchitecture': 'string',
'fileSystemType': 'string',
'networkInfoList': [
{
'interfaceName': 'string',
'ipAddress': 'string',
'macAddress': 'string',
'netMask': 'string'
},
],
'osInfo': {
'type': 'LINUX'|'WINDOWS',
'version': 'string'
}
}
},
'NextToken': 'string'
}
Response Structure
(dict) --
associatedApplications (list) --
The associated application group the server belongs to, as defined in AWS Application Discovery Service.
(dict) --
Object containing details about applications as defined in Application Discovery Service.
id (string) --
ID of the application as defined in Application Discovery Service.
name (string) --
Name of the application as defined in Application Discovery Service.
serverDetail (dict) --
Detailed information about the server.
antipatternReportS3Object (dict) --
The S3 bucket name and Amazon S3 key name for anti-pattern report.
s3Bucket (string) --
The S3 bucket name.
s3key (string) --
The Amazon S3 key name.
antipatternReportStatus (string) --
The status of the anti-pattern report generation.
antipatternReportStatusMessage (string) --
A message about the status of the anti-pattern report generation.
applicationComponentStrategySummary (list) --
A list of strategy summaries.
(dict) --
Object containing the summary of the strategy recommendations.
count (integer) --
The count of recommendations per strategy.
strategy (string) --
The name of recommended strategy.
dataCollectionStatus (string) --
The status of assessment for the server.
id (string) --
The server ID.
lastAnalyzedTimestamp (datetime) --
The timestamp of when the server was assessed.
listAntipatternSeveritySummary (list) --
A list of anti-pattern severity summaries.
(dict) --
Contains the summary of anti-patterns and their severity.
count (integer) --
Contains the count of anti-patterns.
severity (string) --
Contains the severity of anti-patterns.
name (string) --
The name of the server.
recommendationSet (dict) --
A set of recommendations.
strategy (string) --
The recommended strategy.
targetDestination (string) --
The recommended target destination.
transformationTool (dict) --
The target destination for the recommendation set.
description (string) --
Description of the tool.
name (string) --
Name of the tool.
tranformationToolInstallationLink (string) --
URL for installing the tool.
serverError (dict) --
The error in server analysis.
serverErrorCategory (string) --
The error category of server analysis.
serverType (string) --
The type of server.
statusMessage (string) --
A message about the status of data collection, which contains detailed descriptions of any error messages.
systemInfo (dict) --
System information about the server.
cpuArchitecture (string) --
CPU architecture type for the server.
fileSystemType (string) --
File system type for the server.
networkInfoList (list) --
Networking information related to a server.
(dict) --
Information about the server's network for which the assessment was run.
interfaceName (string) --
Information about the name of the interface of the server for which the assessment was run.
ipAddress (string) --
Information about the IP address of the server for which the assessment was run.
macAddress (string) --
Information about the MAC address of the server for which the assessment was run.
netMask (string) --
Information about the subnet mask of the server for which the assessment was run.
osInfo (dict) --
Operating system corresponding to a server.
type (string) --
Information about the type of operating system.
version (string) --
Information about the version of operating system.
NextToken (string) --
A token to resume pagination.
MigrationHubStrategyRecommendations.Paginator.
ListApplicationComponents
¶paginator = client.get_paginator('list_application_components')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from MigrationHubStrategyRecommendations.Client.list_application_components()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
applicationComponentCriteria='NOT_DEFINED'|'APP_NAME'|'SERVER_ID'|'APP_TYPE'|'STRATEGY'|'DESTINATION'|'ANALYSIS_STATUS'|'ERROR_CATEGORY',
filterValue='string',
groupIdFilter=[
{
'name': 'ExternalId',
'value': 'string'
},
],
sort='ASC'|'DESC',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
applicationComponentCriteria
is set to SERVER_ID
and filterValue
is set to server1
, then ListApplicationComponents returns all the application components running on server1.The group ID specified in to filter on.
The object containing information about distinct imports or groups for Strategy Recommendations.
The key of the specific import group.
The value of the specific import group.
ASC
) or descending ( DESC
) order.A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'applicationComponentInfos': [
{
'analysisStatus': 'ANALYSIS_TO_BE_SCHEDULED'|'ANALYSIS_STARTED'|'ANALYSIS_SUCCESS'|'ANALYSIS_FAILED'|'ANALYSIS_PARTIAL_SUCCESS'|'UNCONFIGURED'|'CONFIGURED',
'antipatternReportS3Object': {
's3Bucket': 'string',
's3key': 'string'
},
'antipatternReportStatus': 'FAILED'|'IN_PROGRESS'|'SUCCESS',
'antipatternReportStatusMessage': 'string',
'appType': 'DotNetFramework'|'Java'|'SQLServer'|'IIS'|'Oracle'|'Other'|'Tomcat'|'JBoss'|'Spring'|'Mongo DB'|'DB2'|'Maria DB'|'MySQL'|'Sybase'|'PostgreSQLServer'|'Cassandra'|'IBM WebSphere'|'Oracle WebLogic'|'Visual Basic'|'Unknown'|'DotnetCore'|'Dotnet',
'appUnitError': {
'appUnitErrorCategory': 'CREDENTIAL_ERROR'|'CONNECTIVITY_ERROR'|'PERMISSION_ERROR'|'UNSUPPORTED_ERROR'|'OTHER_ERROR'
},
'associatedServerId': 'string',
'databaseConfigDetail': {
'secretName': 'string'
},
'id': 'string',
'inclusionStatus': 'excludeFromAssessment'|'includeInAssessment',
'lastAnalyzedTimestamp': datetime(2015, 1, 1),
'listAntipatternSeveritySummary': [
{
'count': 123,
'severity': 'HIGH'|'MEDIUM'|'LOW'
},
],
'moreServerAssociationExists': True|False,
'name': 'string',
'osDriver': 'string',
'osVersion': 'string',
'recommendationSet': {
'strategy': 'Rehost'|'Retirement'|'Refactor'|'Replatform'|'Retain'|'Relocate'|'Repurchase',
'targetDestination': 'None specified'|'AWS Elastic BeanStalk'|'AWS Fargate'|'Amazon Elastic Cloud Compute (EC2)'|'Amazon Elastic Container Service (ECS)'|'Amazon Elastic Kubernetes Service (EKS)'|'Aurora MySQL'|'Aurora PostgreSQL'|'Amazon Relational Database Service on MySQL'|'Amazon Relational Database Service on PostgreSQL'|'Amazon DocumentDB'|'Amazon DynamoDB'|'Amazon Relational Database Service'|'Babelfish for Aurora PostgreSQL',
'transformationTool': {
'description': 'string',
'name': 'App2Container'|'Porting Assistant For .NET'|'End of Support Migration'|'Windows Web Application Migration Assistant'|'Application Migration Service'|'Strategy Recommendation Support'|'In Place Operating System Upgrade'|'Schema Conversion Tool'|'Database Migration Service'|'Native SQL Server Backup/Restore',
'tranformationToolInstallationLink': 'string'
}
},
'resourceSubType': 'Database'|'Process'|'DatabaseProcess',
'runtimeStatus': 'ANALYSIS_TO_BE_SCHEDULED'|'ANALYSIS_STARTED'|'ANALYSIS_SUCCESS'|'ANALYSIS_FAILED',
'runtimeStatusMessage': 'string',
'sourceCodeRepositories': [
{
'branch': 'string',
'projectName': 'string',
'repository': 'string',
'versionControlType': 'string'
},
],
'statusMessage': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
applicationComponentInfos (list) --
The list of application components with detailed information about each component.
(dict) --
Contains detailed information about an application component.
analysisStatus (string) --
The status of analysis, if the application component has source code or an associated database.
antipatternReportS3Object (dict) --
The S3 bucket name and the Amazon S3 key name for the anti-pattern report.
s3Bucket (string) --
The S3 bucket name.
s3key (string) --
The Amazon S3 key name.
antipatternReportStatus (string) --
The status of the anti-pattern report generation.
antipatternReportStatusMessage (string) --
The status message for the anti-pattern.
appType (string) --
The type of application component.
appUnitError (dict) --
The error in the analysis of the source code or database.
appUnitErrorCategory (string) --
The category of the error.
associatedServerId (string) --
The ID of the server that the application component is running on.
databaseConfigDetail (dict) --
Configuration details for the database associated with the application component.
secretName (string) --
AWS Secrets Manager key that holds the credentials that you use to connect to a database.
id (string) --
The ID of the application component.
inclusionStatus (string) --
Indicates whether the application component has been included for server recommendation or not.
lastAnalyzedTimestamp (datetime) --
The timestamp of when the application component was assessed.
listAntipatternSeveritySummary (list) --
A list of anti-pattern severity summaries.
(dict) --
Contains the summary of anti-patterns and their severity.
count (integer) --
Contains the count of anti-patterns.
severity (string) --
Contains the severity of anti-patterns.
moreServerAssociationExists (boolean) --
Set to true if the application component is running on multiple servers.
name (string) --
The name of application component.
osDriver (string) --
OS driver.
osVersion (string) --
OS version.
recommendationSet (dict) --
The top recommendation set for the application component.
strategy (string) --
The recommended strategy.
targetDestination (string) --
The recommended target destination.
transformationTool (dict) --
The target destination for the recommendation set.
description (string) --
Description of the tool.
name (string) --
Name of the tool.
tranformationToolInstallationLink (string) --
URL for installing the tool.
resourceSubType (string) --
The application component subtype.
runtimeStatus (string) --
The status of the application unit.
runtimeStatusMessage (string) --
The status message for the application unit.
sourceCodeRepositories (list) --
Details about the source code repository associated with the application component.
(dict) --
Object containing source code information that is linked to an application component.
branch (string) --
The branch of the source code.
projectName (string) --
The name of the project.
repository (string) --
The repository name for the source code.
versionControlType (string) --
The type of repository to use for the source code.
statusMessage (string) --
A detailed description of the analysis status and any failure message.
NextToken (string) --
A token to resume pagination.
MigrationHubStrategyRecommendations.Paginator.
ListCollectors
¶paginator = client.get_paginator('list_collectors')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from MigrationHubStrategyRecommendations.Client.list_collectors()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
{
'Collectors': [
{
'collectorHealth': 'COLLECTOR_HEALTHY'|'COLLECTOR_UNHEALTHY',
'collectorId': 'string',
'collectorVersion': 'string',
'configurationSummary': {
'ipAddressBasedRemoteInfoList': [
{
'authType': 'NTLM'|'SSH'|'CERT',
'ipAddressConfigurationTimeStamp': 'string',
'osType': 'LINUX'|'WINDOWS'
},
],
'pipelineInfoList': [
{
'pipelineConfigurationTimeStamp': 'string',
'pipelineType': 'AZURE_DEVOPS'
},
],
'remoteSourceCodeAnalysisServerInfo': {
'remoteSourceCodeAnalysisServerConfigurationTimestamp': 'string'
},
'vcenterBasedRemoteInfoList': [
{
'osType': 'LINUX'|'WINDOWS',
'vcenterConfigurationTimeStamp': 'string'
},
],
'versionControlInfoList': [
{
'versionControlConfigurationTimeStamp': 'string',
'versionControlType': 'GITHUB'|'GITHUB_ENTERPRISE'|'AZURE_DEVOPS_GIT'
},
]
},
'hostName': 'string',
'ipAddress': 'string',
'lastActivityTimeStamp': 'string',
'registeredTimeStamp': 'string'
},
],
'NextToken': 'string'
}
Response Structure
The list of all the installed collectors.
Process data collector that runs in the environment that you specify.
Indicates the health of a collector.
The ID of the collector.
Current version of the collector that is running in the environment that you specify.
Summary of the collector configuration.
IP address based configurations.
IP address based configurations.
The type of authorization.
The time stamp of the configuration.
The type of the operating system.
The list of pipeline info configurations.
Detailed information of the pipeline.
The time when the pipeline info was configured.
The type of pipeline.
Info about the remote server source code configuration.
The time when the remote source code server was configured.
The list of vCenter configurations.
Details about the server in vCenter.
The type of the operating system.
The time when the remote server based on vCenter was last configured.
The list of the version control configurations.
Details about the version control configuration.
The time when the version control system was last configured.
The type of version control.
Hostname of the server that is hosting the collector.
IP address of the server that is hosting the collector.
Time when the collector last pinged the service.
Time when the collector registered with the service.
A token to resume pagination.
MigrationHubStrategyRecommendations.Paginator.
ListImportFileTask
¶paginator = client.get_paginator('list_import_file_task')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from MigrationHubStrategyRecommendations.Client.list_import_file_task()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
{
'taskInfos': [
{
'completionTime': datetime(2015, 1, 1),
'id': 'string',
'importName': 'string',
'inputS3Bucket': 'string',
'inputS3Key': 'string',
'numberOfRecordsFailed': 123,
'numberOfRecordsSuccess': 123,
'startTime': datetime(2015, 1, 1),
'status': 'ImportInProgress'|'ImportFailed'|'ImportPartialSuccess'|'ImportSuccess'|'DeleteInProgress'|'DeleteFailed'|'DeletePartialSuccess'|'DeleteSuccess',
'statusReportS3Bucket': 'string',
'statusReportS3Key': 'string'
},
],
'NextToken': 'string'
}
Response Structure
Lists information about the files you import.
Information about the import file tasks you request.
The time that the import task completes.
The ID of the import file task.
The name of the import task given in StartImportFileTask
.
The S3 bucket where the import file is located.
The Amazon S3 key name of the import file.
The number of records that failed to be imported.
The number of records successfully imported.
Start time of the import task.
Status of import file task.
The S3 bucket name for status report of import task.
The Amazon S3 key name for status report of import task. The report contains details about whether each record imported successfully or why it did not.
A token to resume pagination.
MigrationHubStrategyRecommendations.Paginator.
ListServers
¶paginator = client.get_paginator('list_servers')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from MigrationHubStrategyRecommendations.Client.list_servers()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
filterValue='string',
groupIdFilter=[
{
'name': 'ExternalId',
'value': 'string'
},
],
serverCriteria='NOT_DEFINED'|'OS_NAME'|'STRATEGY'|'DESTINATION'|'SERVER_ID'|'ANALYSIS_STATUS'|'ERROR_CATEGORY',
sort='ASC'|'DESC',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
serverCriteria
is OS_NAME
, and the filterValue
is equal to WindowsServer
, then ListServers
returns all of the servers matching the OS name WindowsServer
.Specifies the group ID to filter on.
The object containing information about distinct imports or groups for Strategy Recommendations.
The key of the specific import group.
The value of the specific import group.
ASC
) or descending ( DESC
) order.A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'serverInfos': [
{
'antipatternReportS3Object': {
's3Bucket': 'string',
's3key': 'string'
},
'antipatternReportStatus': 'FAILED'|'IN_PROGRESS'|'SUCCESS',
'antipatternReportStatusMessage': 'string',
'applicationComponentStrategySummary': [
{
'count': 123,
'strategy': 'Rehost'|'Retirement'|'Refactor'|'Replatform'|'Retain'|'Relocate'|'Repurchase'
},
],
'dataCollectionStatus': 'dataCollectionTaskToBeScheduled'|'dataCollectionTaskScheduled'|'dataCollectionTaskStarted'|'dataCollectionTaskStopped'|'dataCollectionTaskSuccess'|'dataCollectionTaskFailed'|'dataCollectionTaskPartialSuccess',
'id': 'string',
'lastAnalyzedTimestamp': datetime(2015, 1, 1),
'listAntipatternSeveritySummary': [
{
'count': 123,
'severity': 'HIGH'|'MEDIUM'|'LOW'
},
],
'name': 'string',
'recommendationSet': {
'strategy': 'Rehost'|'Retirement'|'Refactor'|'Replatform'|'Retain'|'Relocate'|'Repurchase',
'targetDestination': 'None specified'|'AWS Elastic BeanStalk'|'AWS Fargate'|'Amazon Elastic Cloud Compute (EC2)'|'Amazon Elastic Container Service (ECS)'|'Amazon Elastic Kubernetes Service (EKS)'|'Aurora MySQL'|'Aurora PostgreSQL'|'Amazon Relational Database Service on MySQL'|'Amazon Relational Database Service on PostgreSQL'|'Amazon DocumentDB'|'Amazon DynamoDB'|'Amazon Relational Database Service'|'Babelfish for Aurora PostgreSQL',
'transformationTool': {
'description': 'string',
'name': 'App2Container'|'Porting Assistant For .NET'|'End of Support Migration'|'Windows Web Application Migration Assistant'|'Application Migration Service'|'Strategy Recommendation Support'|'In Place Operating System Upgrade'|'Schema Conversion Tool'|'Database Migration Service'|'Native SQL Server Backup/Restore',
'tranformationToolInstallationLink': 'string'
}
},
'serverError': {
'serverErrorCategory': 'CONNECTIVITY_ERROR'|'CREDENTIAL_ERROR'|'PERMISSION_ERROR'|'ARCHITECTURE_ERROR'|'OTHER_ERROR'
},
'serverType': 'string',
'statusMessage': 'string',
'systemInfo': {
'cpuArchitecture': 'string',
'fileSystemType': 'string',
'networkInfoList': [
{
'interfaceName': 'string',
'ipAddress': 'string',
'macAddress': 'string',
'netMask': 'string'
},
],
'osInfo': {
'type': 'LINUX'|'WINDOWS',
'version': 'string'
}
}
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
serverInfos (list) --
The list of servers with detailed information about each server.
(dict) --
Detailed information about a server.
antipatternReportS3Object (dict) --
The S3 bucket name and Amazon S3 key name for anti-pattern report.
s3Bucket (string) --
The S3 bucket name.
s3key (string) --
The Amazon S3 key name.
antipatternReportStatus (string) --
The status of the anti-pattern report generation.
antipatternReportStatusMessage (string) --
A message about the status of the anti-pattern report generation.
applicationComponentStrategySummary (list) --
A list of strategy summaries.
(dict) --
Object containing the summary of the strategy recommendations.
count (integer) --
The count of recommendations per strategy.
strategy (string) --
The name of recommended strategy.
dataCollectionStatus (string) --
The status of assessment for the server.
id (string) --
The server ID.
lastAnalyzedTimestamp (datetime) --
The timestamp of when the server was assessed.
listAntipatternSeveritySummary (list) --
A list of anti-pattern severity summaries.
(dict) --
Contains the summary of anti-patterns and their severity.
count (integer) --
Contains the count of anti-patterns.
severity (string) --
Contains the severity of anti-patterns.
name (string) --
The name of the server.
recommendationSet (dict) --
A set of recommendations.
strategy (string) --
The recommended strategy.
targetDestination (string) --
The recommended target destination.
transformationTool (dict) --
The target destination for the recommendation set.
description (string) --
Description of the tool.
name (string) --
Name of the tool.
tranformationToolInstallationLink (string) --
URL for installing the tool.
serverError (dict) --
The error in server analysis.
serverErrorCategory (string) --
The error category of server analysis.
serverType (string) --
The type of server.
statusMessage (string) --
A message about the status of data collection, which contains detailed descriptions of any error messages.
systemInfo (dict) --
System information about the server.
cpuArchitecture (string) --
CPU architecture type for the server.
fileSystemType (string) --
File system type for the server.
networkInfoList (list) --
Networking information related to a server.
(dict) --
Information about the server's network for which the assessment was run.
interfaceName (string) --
Information about the name of the interface of the server for which the assessment was run.
ipAddress (string) --
Information about the IP address of the server for which the assessment was run.
macAddress (string) --
Information about the MAC address of the server for which the assessment was run.
netMask (string) --
Information about the subnet mask of the server for which the assessment was run.
osInfo (dict) --
Operating system corresponding to a server.
type (string) --
Information about the type of operating system.
version (string) --
Information about the version of operating system.
NextToken (string) --
A token to resume pagination.