:doc:`DataZone <../../datazone>` / Client / update_subscription_target

**************************
update_subscription_target
**************************



.. py:method:: DataZone.Client.update_subscription_target(**kwargs)

  

  Updates the specified subscription target in Amazon DataZone.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/datazone-2018-05-10/UpdateSubscriptionTarget>`_  


  **Request Syntax**
  ::

    response = client.update_subscription_target(
        domainIdentifier='string',
        environmentIdentifier='string',
        identifier='string',
        name='string',
        authorizedPrincipals=[
            'string',
        ],
        applicableAssetTypes=[
            'string',
        ],
        subscriptionTargetConfig=[
            {
                'formName': 'string',
                'content': 'string'
            },
        ],
        manageAccessRole='string',
        provider='string',
        subscriptionGrantCreationMode='AUTOMATIC'|'MANUAL'
    )
    
  :type domainIdentifier: string
  :param domainIdentifier: **[REQUIRED]** 

    The identifier of the Amazon DataZone domain in which a subscription target is to be updated.

    

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

    The identifier of the environment in which a subscription target is to be updated.

    

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

    Identifier of the subscription target that is to be updated.

    

  
  :type name: string
  :param name: 

    The name to be updated as part of the ``UpdateSubscriptionTarget`` action.

    

  
  :type authorizedPrincipals: list
  :param authorizedPrincipals: 

    The authorized principals to be updated as part of the ``UpdateSubscriptionTarget`` action.

    

  
    - *(string) --* 

    

  :type applicableAssetTypes: list
  :param applicableAssetTypes: 

    The applicable asset types to be updated as part of the ``UpdateSubscriptionTarget`` action.

    

  
    - *(string) --* 

    

  :type subscriptionTargetConfig: list
  :param subscriptionTargetConfig: 

    The configuration to be updated as part of the ``UpdateSubscriptionTarget`` action.

    

  
    - *(dict) --* 

      The details of the subscription target configuration.

      

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

        The form name included in the subscription target configuration.

        

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

        The content of the subscription target configuration.

        

      
    

  :type manageAccessRole: string
  :param manageAccessRole: 

    The manage access role to be updated as part of the ``UpdateSubscriptionTarget`` action.

    

  
  :type provider: string
  :param provider: 

    The provider to be updated as part of the ``UpdateSubscriptionTarget`` action.

    

  
  :type subscriptionGrantCreationMode: string
  :param subscriptionGrantCreationMode: 

    Determines the subscription grant creation mode for this target, defining if grants are auto-created upon subscription approval or managed manually.

    

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

    
    ::

      {
          'id': 'string',
          'authorizedPrincipals': [
              'string',
          ],
          'domainId': 'string',
          'projectId': 'string',
          'environmentId': 'string',
          'name': 'string',
          'type': 'string',
          'createdBy': 'string',
          'updatedBy': 'string',
          'createdAt': datetime(2015, 1, 1),
          'updatedAt': datetime(2015, 1, 1),
          'manageAccessRole': 'string',
          'applicableAssetTypes': [
              'string',
          ],
          'subscriptionTargetConfig': [
              {
                  'formName': 'string',
                  'content': 'string'
              },
          ],
          'provider': 'string',
          'subscriptionGrantCreationMode': 'AUTOMATIC'|'MANUAL'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **id** *(string) --* 

        Identifier of the subscription target that is to be updated.

        
      

      - **authorizedPrincipals** *(list) --* 

        The authorized principals to be updated as part of the ``UpdateSubscriptionTarget`` action. Updates are supported in batches of 5 at a time.

        
        

        - *(string) --* 
    
      

      - **domainId** *(string) --* 

        The identifier of the Amazon DataZone domain in which a subscription target is to be updated.

        
      

      - **projectId** *(string) --* 

        The identifier of the project in which a subscription target is to be updated.

        
      

      - **environmentId** *(string) --* 

        The identifier of the environment in which a subscription target is to be updated.

        
      

      - **name** *(string) --* 

        The name to be updated as part of the ``UpdateSubscriptionTarget`` action.

        
      

      - **type** *(string) --* 

        The type to be updated as part of the ``UpdateSubscriptionTarget`` action.

        
      

      - **createdBy** *(string) --* 

        The Amazon DataZone user who created the subscription target.

        
      

      - **updatedBy** *(string) --* 

        The Amazon DataZone user who updated the subscription target.

        
      

      - **createdAt** *(datetime) --* 

        The timestamp of when a subscription target was created.

        
      

      - **updatedAt** *(datetime) --* 

        The timestamp of when the subscription target was updated.

        
      

      - **manageAccessRole** *(string) --* 

        The manage access role to be updated as part of the ``UpdateSubscriptionTarget`` action.

        
      

      - **applicableAssetTypes** *(list) --* 

        The applicable asset types to be updated as part of the ``UpdateSubscriptionTarget`` action.

        
        

        - *(string) --* 
    
      

      - **subscriptionTargetConfig** *(list) --* 

        The configuration to be updated as part of the ``UpdateSubscriptionTarget`` action.

        
        

        - *(dict) --* 

          The details of the subscription target configuration.

          
          

          - **formName** *(string) --* 

            The form name included in the subscription target configuration.

            
          

          - **content** *(string) --* 

            The content of the subscription target configuration.

            
      
    
      

      - **provider** *(string) --* 

        The provider to be updated as part of the ``UpdateSubscriptionTarget`` action.

        
      

      - **subscriptionGrantCreationMode** *(string) --* 

        Determines the subscription grant creation mode for this target, defining if grants are auto-created upon subscription approval or managed manually.

        
  
  **Exceptions**
  
  *   :py:class:`DataZone.Client.exceptions.InternalServerException`

  
  *   :py:class:`DataZone.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`DataZone.Client.exceptions.AccessDeniedException`

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

  
  *   :py:class:`DataZone.Client.exceptions.ConflictException`

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

  
  *   :py:class:`DataZone.Client.exceptions.UnauthorizedException`

  