update_server_config

MigrationHubStrategyRecommendations.Client.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'
    }
)
Parameters
  • serverId (string) --

    [REQUIRED]

    The ID of the server.

  • strategyOption (dict) --

    The preferred strategy options for the application component. See the response from GetServerStrategies.

    • isPreferred (boolean) --

      Indicates if a specific strategy is preferred for the application component.

    • strategy (string) --

      Type of transformation. For example, Rehost, Replatform, and so on.

    • targetDestination (string) --

      Destination information about where the application component can migrate to. For example, EC2 , ECS , and so on.

    • toolName (string) --

      The name of the tool that can be used to transform an application component using this strategy.

Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

  • MigrationHubStrategyRecommendations.Client.exceptions.ResourceNotFoundException
  • MigrationHubStrategyRecommendations.Client.exceptions.ThrottlingException
  • MigrationHubStrategyRecommendations.Client.exceptions.ValidationException
  • MigrationHubStrategyRecommendations.Client.exceptions.InternalServerException