:doc:`LaunchWizard <../../launch-wizard>` / Client / create_deployment

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



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

  

  Creates a deployment for the given workload. Deployments created by this operation are not available in the Launch Wizard console to use the ``Clone deployment`` action on.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/launch-wizard-2018-05-10/CreateDeployment>`_  


  **Request Syntax**
  ::

    response = client.create_deployment(
        workloadName='string',
        deploymentPatternName='string',
        name='string',
        specifications={
            'string': 'string'
        },
        dryRun=True|False,
        tags={
            'string': 'string'
        }
    )
    
  :type workloadName: string
  :param workloadName: **[REQUIRED]** 

    The name of the workload. You can use the `ListWorkloads <https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_ListWorkloads.html>`__ operation to discover supported values for this parameter.

    

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

    The name of the deployment pattern supported by a given workload. You can use the `ListWorkloadDeploymentPatterns <https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_ListWorkloadDeploymentPatterns.html>`__ operation to discover supported values for this parameter.

    

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

    The name of the deployment.

    

  
  :type specifications: dict
  :param specifications: **[REQUIRED]** 

    The settings specified for the deployment. These settings define how to deploy and configure your resources created by the deployment. For more information about the specifications required for creating a deployment for a SAP workload, see `SAP deployment specifications <https://docs.aws.amazon.com/launchwizard/latest/APIReference/launch-wizard-specifications-sap.html>`__. To retrieve the specifications required to create a deployment for other workloads, use the `GetWorkloadDeploymentPattern <https://docs.aws.amazon.com/launchwizard/latest/APIReference/API_GetWorkloadDeploymentPattern.html>`__ operation.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


  :type dryRun: boolean
  :param dryRun: 

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is ``DryRunOperation``. Otherwise, it is ``UnauthorizedOperation``.

    

  
  :type tags: dict
  :param tags: 

    The tags to add to the deployment.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

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

    

    - *(dict) --* 
      

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

        The ID of the deployment.

        
  
  **Exceptions**
  
  *   :py:class:`LaunchWizard.Client.exceptions.ResourceLimitException`

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

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

  
  *   :py:class:`LaunchWizard.Client.exceptions.ResourceNotFoundException`

  