:doc:`Greengrass <../../greengrass>` / Client / create_connector_definition

***************************
create_connector_definition
***************************



.. py:method:: Greengrass.Client.create_connector_definition(**kwargs)

  Creates a connector definition. You may provide the initial version of the connector definition now or use ''CreateConnectorDefinitionVersion'' at a later time.

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateConnectorDefinition>`_  


  **Request Syntax**
  ::

    response = client.create_connector_definition(
        AmznClientToken='string',
        InitialVersion={
            'Connectors': [
                {
                    'ConnectorArn': 'string',
                    'Id': 'string',
                    'Parameters': {
                        'string': 'string'
                    }
                },
            ]
        },
        Name='string',
        tags={
            'string': 'string'
        }
    )
    
  :type AmznClientToken: string
  :param AmznClientToken: A client token used to correlate requests and responses.

  
  :type InitialVersion: dict
  :param InitialVersion: Information about the initial version of the connector definition.

  
    - **Connectors** *(list) --* A list of references to connectors in this version, with their corresponding configuration settings.

    
      - *(dict) --* Information about a connector. Connectors run on the Greengrass core and contain built-in integration with local infrastructure, device protocols, AWS, and other cloud services.

      
        - **ConnectorArn** *(string) --* **[REQUIRED]** The ARN of the connector.

        
        - **Id** *(string) --* **[REQUIRED]** A descriptive or arbitrary ID for the connector. This value must be unique within the connector definition version. Max length is 128 characters with pattern [a-zA-Z0-9:_-]+.

        
        - **Parameters** *(dict) --* The parameters or configuration that the connector uses.

        
          - *(string) --* 

          
            - *(string) --* 

            
      
    
      
  
  
  :type Name: string
  :param Name: The name of the connector definition.

  
  :type tags: dict
  :param tags: Tag(s) to add to the new resource.

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

      {
          'Arn': 'string',
          'CreationTimestamp': 'string',
          'Id': 'string',
          'LastUpdatedTimestamp': 'string',
          'LatestVersion': 'string',
          'LatestVersionArn': 'string',
          'Name': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Arn** *(string) --* The ARN of the definition.
      

      - **CreationTimestamp** *(string) --* The time, in milliseconds since the epoch, when the definition was created.
      

      - **Id** *(string) --* The ID of the definition.
      

      - **LastUpdatedTimestamp** *(string) --* The time, in milliseconds since the epoch, when the definition was last updated.
      

      - **LatestVersion** *(string) --* The ID of the latest version associated with the definition.
      

      - **LatestVersionArn** *(string) --* The ARN of the latest version associated with the definition.
      

      - **Name** *(string) --* The name of the definition.
  
  **Exceptions**
  
  *   :py:class:`Greengrass.Client.exceptions.BadRequestException`

  