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

*****************************
batch_put_attributes_metadata
*****************************



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

  

  Writes the attribute metadata.

  

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


  **Request Syntax**
  ::

    response = client.batch_put_attributes_metadata(
        domainIdentifier='string',
        entityType='ASSET'|'LISTING',
        entityIdentifier='string',
        clientToken='string',
        attributes=[
            {
                'attributeIdentifier': 'string',
                'forms': [
                    {
                        'formName': 'string',
                        'typeIdentifier': 'string',
                        'typeRevision': 'string',
                        'content': 'string'
                    },
                ]
            },
        ]
    )
    
  :type domainIdentifier: string
  :param domainIdentifier: **[REQUIRED]** 

    The domain ID where you want to write the attribute metadata.

    

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

    The entity type for which you want to write the attribute metadata.

    

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

    The entity ID for which you want to write the attribute metadata.

    

  
  :type clientToken: string
  :param clientToken: 

    A unique, case-sensitive identifier to ensure idempotency of the request. This field is automatically populated if not provided.

    This field is autopopulated if not provided.

  
  :type attributes: list
  :param attributes: **[REQUIRED]** 

    The attributes of the metadata.

    

  
    - *(dict) --* 

      The attribute input.

      

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

        The ID of the attribute.

        

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

        The metadata forms as part of the attribute input.

        

      
        - *(dict) --* 

          The details of a metadata form.

          

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

            The name of the metadata form.

            

          
          - **typeIdentifier** *(string) --* 

            The ID of the metadata form type.

            

          
          - **typeRevision** *(string) --* 

            The revision of the metadata form type.

            

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

            The content of the metadata form.

            

          
        
    
    

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

    
    ::

      {
          'errors': [
              {
                  'attributeIdentifier': 'string',
                  'code': 'string',
                  'message': 'string'
              },
          ],
          'attributes': [
              {
                  'attributeIdentifier': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **errors** *(list) --* 

        The errors generated when the BatchPutAttributeMetadata action is invoked.

        
        

        - *(dict) --* 

          The attribute error.

          
          

          - **attributeIdentifier** *(string) --* 

            The attribute ID as part of the attribute error.

            
          

          - **code** *(string) --* 

            The code generated as part of the attribute error.

            
          

          - **message** *(string) --* 

            The message generated as part of the attribute error.

            
      
    
      

      - **attributes** *(list) --* 

        The results of the BatchPutAttributeMetadata action.

        
        

        - *(dict) --* 

          The results of the BatchPutAttribute action.

          
          

          - **attributeIdentifier** *(string) --* 

            The attribute ID.

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

  