:doc:`IoTSiteWise <../../iotsitewise>` / Client / delete_asset_model_interface_relationship

*****************************************
delete_asset_model_interface_relationship
*****************************************



.. py:method:: IoTSiteWise.Client.delete_asset_model_interface_relationship(**kwargs)

  

  Deletes an interface relationship between an asset model and an interface asset model.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/DeleteAssetModelInterfaceRelationship>`_  


  **Request Syntax**
  ::

    response = client.delete_asset_model_interface_relationship(
        assetModelId='string',
        interfaceAssetModelId='string',
        clientToken='string'
    )
    
  :type assetModelId: string
  :param assetModelId: **[REQUIRED]** 

    The ID of the asset model. This can be either the actual ID in UUID format, or else externalId: followed by the external ID.

    

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

    The ID of the interface asset model. This can be either the actual ID in UUID format, or else externalId: followed by the external ID.

    

  
  :type clientToken: string
  :param clientToken: 

    A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.

    This field is autopopulated if not provided.

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

    
    ::

      {
          'assetModelId': 'string',
          'interfaceAssetModelId': 'string',
          'assetModelArn': 'string',
          'assetModelStatus': {
              'state': 'CREATING'|'ACTIVE'|'UPDATING'|'PROPAGATING'|'DELETING'|'FAILED',
              'error': {
                  'code': 'VALIDATION_ERROR'|'INTERNAL_FAILURE',
                  'message': 'string',
                  'details': [
                      {
                          'code': 'INCOMPATIBLE_COMPUTE_LOCATION'|'INCOMPATIBLE_FORWARDING_CONFIGURATION',
                          'message': 'string'
                      },
                  ]
              }
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **assetModelId** *(string) --* 

        The ID of the asset model.

        
      

      - **interfaceAssetModelId** *(string) --* 

        The ID of the interface asset model.

        
      

      - **assetModelArn** *(string) --* 

        The ARN of the asset model, which has the following format. ``arn:${Partition}:iotsitewise:${Region}:${Account}:asset-model/${AssetModelId}``

        
      

      - **assetModelStatus** *(dict) --* 

        Contains current status information for an asset model. For more information, see `Asset and model states <https://docs.aws.amazon.com/iot-sitewise/latest/userguide/asset-and-model-states.html>`__ in the *IoT SiteWise User Guide*.

        
        

        - **state** *(string) --* 

          The current state of the asset model.

          
        

        - **error** *(dict) --* 

          Contains associated error information, if any.

          
          

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

            The error code.

            
          

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

            The error message.

            
          

          - **details** *(list) --* 

            A list of detailed errors.

            
            

            - *(dict) --* 

              Contains detailed error information.

              
              

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

                The error code.

                
              

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

                The error message.

                
          
        
      
    
  
  **Exceptions**
  
  *   :py:class:`IoTSiteWise.Client.exceptions.InvalidRequestException`

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

  
  *   :py:class:`IoTSiteWise.Client.exceptions.InternalFailureException`

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

  
  *   :py:class:`IoTSiteWise.Client.exceptions.ConflictingOperationException`

  