:doc:`MigrationHubStrategyRecommendations <../../migrationhubstrategy>` / Client / update_application_component_config

***********************************
update_application_component_config
***********************************



.. py:method:: MigrationHubStrategyRecommendations.Client.update_application_component_config(**kwargs)

  

  Updates the configuration of an application component.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/migrationhubstrategy-2020-02-19/UpdateApplicationComponentConfig>`_  


  **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'
        }
    )
    
  :type appType: string
  :param appType: 

    The type of known component.

    

  
  :type applicationComponentId: string
  :param applicationComponentId: **[REQUIRED]** 

    The ID of the application component. The ID is unique within an AWS account.

    

  
  :type configureOnly: boolean
  :param configureOnly: 

    Update the configuration request of an application component. If it is set to true, the source code and/or database credentials are updated. If it is set to false, the source code and/or database credentials are updated and an analysis is initiated.

    

  
  :type inclusionStatus: string
  :param inclusionStatus: 

    Indicates whether the application component has been included for server recommendation or not.

    

  
  :type secretsManagerKey: string
  :param secretsManagerKey: 

    Database credentials.

    

  
  :type sourceCodeList: list
  :param sourceCodeList: 

    The list of source code configurations to update for the application component.

    

  
    - *(dict) --* 

      Object containing source code information that is linked to an application component.

      

    
      - **location** *(string) --* 

        The repository name for the source code.

        

      
      - **projectName** *(string) --* 

        The name of the project.

        

      
      - **sourceVersion** *(string) --* 

        The branch of the source code.

        

      
      - **versionControl** *(string) --* 

        The type of repository to use for the source code.

        

      
    

  :type strategyOption: dict
  :param strategyOption: 

    The preferred strategy options for the application component. Use values from the  GetApplicationComponentStrategies response.

    

  
    - **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.

      

    
  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`MigrationHubStrategyRecommendations.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`MigrationHubStrategyRecommendations.Client.exceptions.ThrottlingException`

  
  *   :py:class:`MigrationHubStrategyRecommendations.Client.exceptions.ValidationException`

  
  *   :py:class:`MigrationHubStrategyRecommendations.Client.exceptions.InternalServerException`

  