:doc:`CodeDeploy <../../codedeploy>` / Client / create_application

******************
create_application
******************



.. py:method:: CodeDeploy.Client.create_application(**kwargs)

  

  Creates an application.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateApplication>`_  


  **Request Syntax**
  ::

    response = client.create_application(
        applicationName='string',
        computePlatform='Server'|'Lambda'|'ECS',
        tags=[
            {
                'Key': 'string',
                'Value': 'string'
            },
        ]
    )
    
  :type applicationName: string
  :param applicationName: **[REQUIRED]** 

    The name of the application. This name must be unique with the applicable user or Amazon Web Services account.

    

  
  :type computePlatform: string
  :param computePlatform: 

    The destination platform type for the deployment ( ``Lambda``, ``Server``, or ``ECS``).

    

  
  :type tags: list
  :param tags: 

    The metadata that you apply to CodeDeploy applications to help you organize and categorize them. Each tag consists of a key and an optional value, both of which you define.

    

  
    - *(dict) --* 

      Information about a tag.

      

    
      - **Key** *(string) --* 

        The tag's key.

        

      
      - **Value** *(string) --* 

        The tag's value.

        

      
    

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

    
    ::

      {
          'applicationId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      Represents the output of a ``CreateApplication`` operation.

      
      

      - **applicationId** *(string) --* 

        A unique application ID.

        
  
  **Exceptions**
  
  *   :py:class:`CodeDeploy.Client.exceptions.ApplicationNameRequiredException`

  
  *   :py:class:`CodeDeploy.Client.exceptions.InvalidApplicationNameException`

  
  *   :py:class:`CodeDeploy.Client.exceptions.ApplicationAlreadyExistsException`

  
  *   :py:class:`CodeDeploy.Client.exceptions.ApplicationLimitExceededException`

  
  *   :py:class:`CodeDeploy.Client.exceptions.InvalidComputePlatformException`

  
  *   :py:class:`CodeDeploy.Client.exceptions.InvalidTagsToAddException`

  