:doc:`AppIntegrationsService <../../appintegrations>` / Client / create_data_integration_association

***********************************
create_data_integration_association
***********************************



.. py:method:: AppIntegrationsService.Client.create_data_integration_association(**kwargs)

  

  Creates and persists a DataIntegrationAssociation resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/appintegrations-2020-07-29/CreateDataIntegrationAssociation>`_  


  **Request Syntax**
  ::

    response = client.create_data_integration_association(
        DataIntegrationIdentifier='string',
        ClientId='string',
        ObjectConfiguration={
            'string': {
                'string': [
                    'string',
                ]
            }
        },
        DestinationURI='string',
        ClientAssociationMetadata={
            'string': 'string'
        },
        ClientToken='string',
        ExecutionConfiguration={
            'ExecutionMode': 'ON_DEMAND'|'SCHEDULED',
            'OnDemandConfiguration': {
                'StartTime': 'string',
                'EndTime': 'string'
            },
            'ScheduleConfiguration': {
                'FirstExecutionFrom': 'string',
                'Object': 'string',
                'ScheduleExpression': 'string'
            }
        }
    )
    
  :type DataIntegrationIdentifier: string
  :param DataIntegrationIdentifier: **[REQUIRED]** 

    A unique identifier for the DataIntegration.

    

  
  :type ClientId: string
  :param ClientId: 

    The identifier for the client that is associated with the DataIntegration association.

    

  
  :type ObjectConfiguration: dict
  :param ObjectConfiguration: 

    The configuration for what data should be pulled from the source.

    

  
    - *(string) --* 

    
      - *(dict) --* 

      
        - *(string) --* 

        
          - *(list) --* 

          
            - *(string) --* 

            
        
    
  


  :type DestinationURI: string
  :param DestinationURI: 

    The URI of the data destination.

    

  
  :type ClientAssociationMetadata: dict
  :param ClientAssociationMetadata: 

    The mapping of metadata to be extracted from the data.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


  :type ClientToken: string
  :param ClientToken: 

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see `Making retries safe with idempotent APIs <https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/>`__.

    This field is autopopulated if not provided.

  
  :type ExecutionConfiguration: dict
  :param ExecutionConfiguration: 

    The configuration for how the files should be pulled from the source.

    

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

      The mode for data import/export execution.

      

    
    - **OnDemandConfiguration** *(dict) --* 

      The start and end time for data pull from the source.

      

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

        The start time for data pull from the source as an Unix/epoch string in milliseconds

        

      
      - **EndTime** *(string) --* 

        The end time for data pull from the source as an Unix/epoch string in milliseconds

        

      
    
    - **ScheduleConfiguration** *(dict) --* 

      The name of the data and how often it should be pulled from the source.

      

    
      - **FirstExecutionFrom** *(string) --* 

        The start date for objects to import in the first flow run as an Unix/epoch timestamp in milliseconds or in ISO-8601 format.

        

      
      - **Object** *(string) --* 

        The name of the object to pull from the data source.

        

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

        How often the data should be pulled from data source.

        

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

    
    ::

      {
          'DataIntegrationAssociationId': 'string',
          'DataIntegrationArn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **DataIntegrationAssociationId** *(string) --* 

        A unique identifier. for the DataIntegrationAssociation.

        
      

      - **DataIntegrationArn** *(string) --* 

        The Amazon Resource Name (ARN) for the DataIntegration.

        
  
  **Exceptions**
  
  *   :py:class:`AppIntegrationsService.Client.exceptions.InternalServiceError`

  
  *   :py:class:`AppIntegrationsService.Client.exceptions.ResourceQuotaExceededException`

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

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

  
  *   :py:class:`AppIntegrationsService.Client.exceptions.InvalidRequestException`

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

  