:doc:`MainframeModernization <../../m2>` / Client / create_deployment

*****************
create_deployment
*****************



.. py:method:: MainframeModernization.Client.create_deployment(**kwargs)

  

  Creates and starts a deployment to deploy an application into a runtime environment.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/CreateDeployment>`_  


  **Request Syntax**
  ::

    response = client.create_deployment(
        applicationId='string',
        applicationVersion=123,
        clientToken='string',
        environmentId='string'
    )
    
  :type applicationId: string
  :param applicationId: **[REQUIRED]** 

    The application identifier.

    

  
  :type applicationVersion: integer
  :param applicationVersion: **[REQUIRED]** 

    The version of the application to deploy.

    

  
  :type clientToken: string
  :param clientToken: 

    Unique, case-sensitive identifier you provide to ensure the idempotency of the request to create a deployment. The service generates the clientToken when the API call is triggered. The token expires after one hour, so if you retry the API within this timeframe with the same clientToken, you will get the same response. The service also handles deleting the clientToken after it expires.

    This field is autopopulated if not provided.

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

    The identifier of the runtime environment where you want to deploy this application.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **deploymentId** *(string) --* 

        The unique identifier of the deployment.

        
  
  **Exceptions**
  
  *   :py:class:`MainframeModernization.Client.exceptions.ResourceNotFoundException`

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

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

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

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

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

  
  *   :py:class:`MainframeModernization.Client.exceptions.InternalServerException`

  