:doc:`KafkaConnect <../../kafkaconnect>` / Client / create_worker_configuration

***************************
create_worker_configuration
***************************



.. py:method:: KafkaConnect.Client.create_worker_configuration(**kwargs)

  

  Creates a worker configuration using the specified properties.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/CreateWorkerConfiguration>`_  


  **Request Syntax**
  ::

    response = client.create_worker_configuration(
        description='string',
        name='string',
        propertiesFileContent='string',
        tags={
            'string': 'string'
        }
    )
    
  :type description: string
  :param description: 

    A summary description of the worker configuration.

    

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

    The name of the worker configuration.

    

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

    Base64 encoded contents of connect-distributed.properties file.

    

  
  :type tags: dict
  :param tags: 

    The tags you want to attach to the worker configuration.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

      {
          'creationTime': datetime(2015, 1, 1),
          'latestRevision': {
              'creationTime': datetime(2015, 1, 1),
              'description': 'string',
              'revision': 123
          },
          'name': 'string',
          'workerConfigurationArn': 'string',
          'workerConfigurationState': 'ACTIVE'|'DELETING'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **creationTime** *(datetime) --* 

        The time that the worker configuration was created.

        
      

      - **latestRevision** *(dict) --* 

        The latest revision of the worker configuration.

        
        

        - **creationTime** *(datetime) --* 

          The time that a worker configuration revision was created.

          
        

        - **description** *(string) --* 

          The description of a worker configuration revision.

          
        

        - **revision** *(integer) --* 

          The revision of a worker configuration.

          
    
      

      - **name** *(string) --* 

        The name of the worker configuration.

        
      

      - **workerConfigurationArn** *(string) --* 

        The Amazon Resource Name (ARN) that Amazon assigned to the worker configuration.

        
      

      - **workerConfigurationState** *(string) --* 

        The state of the worker configuration.

        
  
  **Exceptions**
  
  *   :py:class:`KafkaConnect.Client.exceptions.ConflictException`

  
  *   :py:class:`KafkaConnect.Client.exceptions.NotFoundException`

  
  *   :py:class:`KafkaConnect.Client.exceptions.BadRequestException`

  
  *   :py:class:`KafkaConnect.Client.exceptions.ForbiddenException`

  
  *   :py:class:`KafkaConnect.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`KafkaConnect.Client.exceptions.TooManyRequestsException`

  
  *   :py:class:`KafkaConnect.Client.exceptions.UnauthorizedException`

  
  *   :py:class:`KafkaConnect.Client.exceptions.InternalServerErrorException`

  