:doc:`SageMaker <../../sagemaker>` / Client / update_partner_app

******************
update_partner_app
******************



.. py:method:: SageMaker.Client.update_partner_app(**kwargs)

  

  Updates all of the SageMaker Partner AI Apps in an account.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdatePartnerApp>`_  


  **Request Syntax**
  ::

    response = client.update_partner_app(
        Arn='string',
        MaintenanceConfig={
            'MaintenanceWindowStart': 'string'
        },
        Tier='string',
        ApplicationConfig={
            'AdminUsers': [
                'string',
            ],
            'Arguments': {
                'string': 'string'
            },
            'AssignedGroupPatterns': [
                'string',
            ],
            'RoleGroupAssignments': [
                {
                    'RoleName': 'string',
                    'GroupPatterns': [
                        'string',
                    ]
                },
            ]
        },
        EnableIamSessionBasedIdentity=True|False,
        EnableAutoMinorVersionUpgrade=True|False,
        AppVersion='string',
        ClientToken='string',
        Tags=[
            {
                'Key': 'string',
                'Value': 'string'
            },
        ]
    )
    
  :type Arn: string
  :param Arn: **[REQUIRED]** 

    The ARN of the SageMaker Partner AI App to update.

    

  
  :type MaintenanceConfig: dict
  :param MaintenanceConfig: 

    Maintenance configuration settings for the SageMaker Partner AI App.

    

  
    - **MaintenanceWindowStart** *(string) --* 

      The day and time of the week in Coordinated Universal Time (UTC) 24-hour standard time that weekly maintenance updates are scheduled. This value must take the following format: ``3-letter-day:24-h-hour:minute``. For example: ``TUE:03:30``.

      

    
  
  :type Tier: string
  :param Tier: 

    Indicates the instance type and size of the cluster attached to the SageMaker Partner AI App.

    

  
  :type ApplicationConfig: dict
  :param ApplicationConfig: 

    Configuration settings for the SageMaker Partner AI App.

    

  
    - **AdminUsers** *(list) --* 

      The list of users that are given admin access to the SageMaker Partner AI App.

      

    
      - *(string) --* 

      
  
    - **Arguments** *(dict) --* 

      This is a map of required inputs for a SageMaker Partner AI App. Based on the application type, the map is populated with a key and value pair that is specific to the user and application.

      

    
      - *(string) --* 

      
        - *(string) --* 

        
  

    - **AssignedGroupPatterns** *(list) --* 

      A list of Amazon Web Services IAM Identity Center group patterns that can access the SageMaker Partner AI App. Group names support wildcard matching using ``*``. An empty list indicates the app will not use Identity Center group features. All groups specified in ``RoleGroupAssignments`` must match patterns in this list.

      

    
      - *(string) --* 

      
  
    - **RoleGroupAssignments** *(list) --* 

      A map of in-app roles to Amazon Web Services IAM Identity Center group patterns. Groups assigned to specific roles receive those permissions, while groups in ``AssignedGroupPatterns`` but not in this map receive default in-app role depending on app type. Group patterns support wildcard matching using ``*``. Currently supported by Fiddler version 1.3 and later with roles: ``ORG_MEMBER`` (default) and ``ORG_ADMIN``.

      

    
      - *(dict) --* 

        Defines the mapping between an in-app role and the Amazon Web Services IAM Identity Center group patterns that should be assigned to that role within the SageMaker Partner AI App.

        

      
        - **RoleName** *(string) --* **[REQUIRED]** 

          The name of the in-app role within the SageMaker Partner AI App. The specific roles available depend on the app type and version.

          

        
        - **GroupPatterns** *(list) --* **[REQUIRED]** 

          A list of Amazon Web Services IAM Identity Center group patterns that should be assigned to the specified role. Group patterns support wildcard matching using ``*``.

          

        
          - *(string) --* 

          
      
      
  
  
  :type EnableIamSessionBasedIdentity: boolean
  :param EnableIamSessionBasedIdentity: 

    When set to ``TRUE``, the SageMaker Partner AI App sets the Amazon Web Services IAM session name or the authenticated IAM user as the identity of the SageMaker Partner AI App user.

    

  
  :type EnableAutoMinorVersionUpgrade: boolean
  :param EnableAutoMinorVersionUpgrade: 

    When set to ``TRUE``, the SageMaker Partner AI App is automatically upgraded to the latest minor version during the next scheduled maintenance window, if one is available.

    

  
  :type AppVersion: string
  :param AppVersion: 

    The semantic version to upgrade the SageMaker Partner AI App to. Must be the same semantic version returned in the ``AvailableUpgrade`` field from ``DescribePartnerApp``. Version skipping and downgrades are not supported.

    

  
  :type ClientToken: string
  :param ClientToken: 

    A unique token that guarantees that the call to this API is idempotent.

    This field is autopopulated if not provided.

  
  :type Tags: list
  :param Tags: 

    Each tag consists of a key and an optional value. Tag keys must be unique per resource.

    

  
    - *(dict) --* 

      A tag object that consists of a key and an optional value, used to manage metadata for SageMaker Amazon Web Services resources.

       

      You can add tags to notebook instances, training jobs, hyperparameter tuning jobs, batch transform jobs, models, labeling jobs, work teams, endpoint configurations, and endpoints. For more information on adding tags to SageMaker resources, see `AddTags <https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_AddTags.html>`__.

       

      For more information on adding metadata to your Amazon Web Services resources with tagging, see `Tagging Amazon Web Services resources <https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html>`__. For advice on best practices for managing Amazon Web Services resources with tagging, see `Tagging Best Practices\: Implement an Effective Amazon Web Services Resource Tagging Strategy <https://d1.awsstatic.com/whitepapers/aws-tagging-best-practices.pdf>`__.

      

    
      - **Key** *(string) --* **[REQUIRED]** 

        The tag key. Tag keys must be unique per resource.

        

      
      - **Value** *(string) --* **[REQUIRED]** 

        The tag value.

        

      
    

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

    
    ::

      {
          'Arn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Arn** *(string) --* 

        The ARN of the SageMaker Partner AI App that was updated.

        
  
  **Exceptions**
  
  *   :py:class:`SageMaker.Client.exceptions.ConflictException`

  
  *   :py:class:`SageMaker.Client.exceptions.ResourceNotFound`

  