:doc:`AppFabric <../../appfabric>` / Client / create_ingestion

****************
create_ingestion
****************



.. py:method:: AppFabric.Client.create_ingestion(**kwargs)

  

  Creates a data ingestion for an application.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/appfabric-2023-05-19/CreateIngestion>`_  


  **Request Syntax**
  ::

    response = client.create_ingestion(
        appBundleIdentifier='string',
        app='string',
        tenantId='string',
        ingestionType='auditLog',
        clientToken='string',
        tags=[
            {
                'key': 'string',
                'value': 'string'
            },
        ]
    )
    
  :type appBundleIdentifier: string
  :param appBundleIdentifier: **[REQUIRED]** 

    The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle to use for the request.

    

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

    The name of the application.

     

    Valid values are:

     

    
    * ``SLACK``
     
    * ``ASANA``
     
    * ``JIRA``
     
    * ``M365``
     
    * ``M365AUDITLOGS``
     
    * ``ZOOM``
     
    * ``ZENDESK``
     
    * ``OKTA``
     
    * ``GOOGLE``
     
    * ``DROPBOX``
     
    * ``SMARTSHEET``
     
    * ``CISCO``
    

    

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

    The ID of the application tenant.

    

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

    The ingestion type.

    

  
  :type clientToken: string
  :param clientToken: 

    Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a `UUID type of value <https://wikipedia.org/wiki/Universally_unique_identifier>`__.

     

    If you don't provide this value, then Amazon Web Services generates a random one for you.

     

    If you retry the operation with the same ``ClientToken``, but with different parameters, the retry fails with an ``IdempotentParameterMismatch`` error.

    This field is autopopulated if not provided.

  
  :type tags: list
  :param tags: 

    A map of the key-value pairs of the tag or tags to assign to the resource.

    

  
    - *(dict) --* 

      The key or keys of the key-value pairs for the tag or tags assigned to a resource.

      

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

        Tag key.

        

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

        Tag value.

        

      
    

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

    
    ::

      {
          'ingestion': {
              'arn': 'string',
              'appBundleArn': 'string',
              'app': 'string',
              'tenantId': 'string',
              'createdAt': datetime(2015, 1, 1),
              'updatedAt': datetime(2015, 1, 1),
              'state': 'enabled'|'disabled',
              'ingestionType': 'auditLog'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ingestion** *(dict) --* 

        Contains information about an ingestion.

        
        

        - **arn** *(string) --* 

          The Amazon Resource Name (ARN) of the ingestion.

          
        

        - **appBundleArn** *(string) --* 

          The Amazon Resource Name (ARN) of the app bundle for the ingestion.

          
        

        - **app** *(string) --* 

          The name of the application.

          
        

        - **tenantId** *(string) --* 

          The ID of the application tenant.

          
        

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

          The timestamp of when the ingestion was created.

          
        

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

          The timestamp of when the ingestion was last updated.

          
        

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

          The status of the ingestion.

          
        

        - **ingestionType** *(string) --* 

          The type of the ingestion.

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

  
  *   :py:class:`AppFabric.Client.exceptions.ServiceQuotaExceededException`

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

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

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

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

  