Table of Contents
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:
Check if an operation can be paginated.
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',
'antipatternReportS3Object': {
's3Bucket': 'string',
's3key': 'string'
},
'antipatternReportStatus': 'FAILED'|'IN_PROGRESS'|'SUCCESS',
'antipatternReportStatusMessage': 'string',
'appType': 'DotNetFramework'|'Java'|'SQLServer'|'IIS'|'Oracle'|'Other',
'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',
'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',
'sourceCodeRepositories': [
{
'branch': '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 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.
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 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
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',
'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'
},
]
}
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
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 .
{
'dataCollectionDetails': {
'completionTime': datetime(2015, 1, 1),
'failed': 123,
'inProgress': 123,
'servers': 123,
'startTime': datetime(2015, 1, 1),
'status': 'IN_PROGRESS'|'COMPLETE'|'FAILED'|'STOPPED',
'success': 123
},
'id': 'string'
}
Response Structure
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 number of successful servers in the assessment.
The ID for the specific assessment task.
Exceptions
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
Create a paginator for an operation.
Retrieves your migration and modernization preferences.
See also: AWS API Documentation
Request Syntax
response = client.get_portfolio_preferences()
{
'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 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
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'
},
],
'listApplicationComponentStrategySummary': [
{
'count': 123,
'strategy': 'Rehost'|'Retirement'|'Refactor'|'Replatform'|'Retain'|'Relocate'|'Repurchase'
},
],
'listApplicationComponentSummary': [
{
'appType': 'DotNetFramework'|'Java'|'SQLServer'|'IIS'|'Oracle'|'Other',
'count': 123
},
],
'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 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 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
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
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'
)
[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',
'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'
}
},
'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.
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
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',
'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'
},
]
}
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
Returns an object that can wait for some condition.
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',
filterValue='string',
groupIdFilter=[
{
'name': 'ExternalId',
'value': 'string'
},
],
maxResults=123,
nextToken='string',
sort='ASC'|'DESC'
)
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.
dict
Response Syntax
{
'applicationComponentInfos': [
{
'analysisStatus': 'ANALYSIS_TO_BE_SCHEDULED'|'ANALYSIS_STARTED'|'ANALYSIS_SUCCESS'|'ANALYSIS_FAILED',
'antipatternReportS3Object': {
's3Bucket': 'string',
's3key': 'string'
},
'antipatternReportStatus': 'FAILED'|'IN_PROGRESS'|'SUCCESS',
'antipatternReportStatusMessage': 'string',
'appType': 'DotNetFramework'|'Java'|'SQLServer'|'IIS'|'Oracle'|'Other',
'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',
'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',
'sourceCodeRepositories': [
{
'branch': '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.
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.
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.
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
Retrieves a list of all the installed collectors.
See also: AWS API Documentation
Request Syntax
response = client.list_collectors(
maxResults=123,
nextToken='string'
)
dict
Response Syntax
{
'Collectors': [
{
'collectorHealth': 'COLLECTOR_HEALTHY'|'COLLECTOR_UNHEALTHY',
'collectorId': 'string',
'collectorVersion': 'string',
'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.
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
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'
)
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
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',
sort='ASC'|'DESC'
)
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.
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',
'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'
}
},
'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.
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
Saves the specified migration and modernization preferences.
See also: AWS API Documentation
Request Syntax
response = client.put_portfolio_preferences(
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
Starts the assessment of an on-premises environment.
See also: AWS API Documentation
Request Syntax
response = client.start_assessment(
s3bucketForAnalysisData='string',
s3bucketForReportData='string'
)
dict
Response Syntax
{
'assessmentId': 'string'
}
Response Structure
(dict) --
assessmentId (string) --
The ID of the assessment.
Exceptions
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
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
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
Updates the configuration of an application component.
See also: AWS API Documentation
Request Syntax
response = client.update_application_component_config(
applicationComponentId='string',
inclusionStatus='excludeFromAssessment'|'includeInAssessment',
secretsManagerKey='string',
sourceCodeList=[
{
'location': 'string',
'sourceVersion': 'string',
'versionControl': 'GITHUB'|'GITHUB_ENTERPRISE'
},
],
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',
'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 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
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',
'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
The available paginators are:
paginator = client.get_paginator('get_server_details')
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',
'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'
}
},
'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.
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.
paginator = client.get_paginator('list_application_components')
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',
filterValue='string',
groupIdFilter=[
{
'name': 'ExternalId',
'value': 'string'
},
],
sort='ASC'|'DESC',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
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.
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',
'antipatternReportS3Object': {
's3Bucket': 'string',
's3key': 'string'
},
'antipatternReportStatus': 'FAILED'|'IN_PROGRESS'|'SUCCESS',
'antipatternReportStatusMessage': 'string',
'appType': 'DotNetFramework'|'Java'|'SQLServer'|'IIS'|'Oracle'|'Other',
'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',
'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',
'sourceCodeRepositories': [
{
'branch': '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.
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.
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.
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.
paginator = client.get_paginator('list_collectors')
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',
'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.
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.
paginator = client.get_paginator('list_import_file_task')
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.
paginator = client.get_paginator('list_servers')
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',
sort='ASC'|'DESC',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
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.
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',
'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'
}
},
'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.
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.