:doc:`DataZone <../../datazone>` / Client / create_project

**************
create_project
**************



.. py:method:: DataZone.Client.create_project(**kwargs)

  

  Creates an Amazon DataZone project.

  

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


  **Request Syntax**
  ::

    response = client.create_project(
        domainIdentifier='string',
        name='string',
        description='string',
        resourceTags={
            'string': 'string'
        },
        glossaryTerms=[
            'string',
        ],
        domainUnitId='string',
        projectProfileId='string',
        userParameters=[
            {
                'environmentId': 'string',
                'environmentResolvedAccount': {
                    'awsAccountId': 'string',
                    'regionName': 'string',
                    'sourceAccountPoolId': 'string'
                },
                'environmentConfigurationName': 'string',
                'environmentParameters': [
                    {
                        'name': 'string',
                        'value': 'string'
                    },
                ]
            },
        ]
    )
    
  :type domainIdentifier: string
  :param domainIdentifier: **[REQUIRED]** 

    The ID of the Amazon DataZone domain in which this project is created.

    

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

    The name of the Amazon DataZone project.

    

  
  :type description: string
  :param description: 

    The description of the Amazon DataZone project.

    

  
  :type resourceTags: dict
  :param resourceTags: 

    The resource tags of the project.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


  :type glossaryTerms: list
  :param glossaryTerms: 

    The glossary terms that can be used in this Amazon DataZone project.

    

  
    - *(string) --* 

    

  :type domainUnitId: string
  :param domainUnitId: 

    The ID of the domain unit. This parameter is not required and if it is not specified, then the project is created at the root domain unit level.

    

  
  :type projectProfileId: string
  :param projectProfileId: 

    The ID of the project profile.

    

  
  :type userParameters: list
  :param userParameters: 

    The user parameters of the project.

    

  
    - *(dict) --* 

      The environment configuration user parameters.

      

    
      - **environmentId** *(string) --* 

        The ID of the environment.

        

      
      - **environmentResolvedAccount** *(dict) --* 

        Specifies the account/Region that is to be used during project creation for a particular blueprint.

        

      
        - **awsAccountId** *(string) --* **[REQUIRED]** 

          The ID of the resolved account.

          

        
        - **regionName** *(string) --* **[REQUIRED]** 

          The name of the resolved Region.

          

        
        - **sourceAccountPoolId** *(string) --* 

          The ID of the account pool.

          

        
      
      - **environmentConfigurationName** *(string) --* 

        The environment configuration name.

        

      
      - **environmentParameters** *(list) --* 

        The environment parameters.

        

      
        - *(dict) --* 

          The parameter details of an evironment profile.

          

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

            The name of an environment profile parameter.

            

          
          - **value** *(string) --* 

            The value of an environment profile parameter.

            

          
        
    
    

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

    
    ::

      {
          'domainId': 'string',
          'id': 'string',
          'name': 'string',
          'description': 'string',
          'projectStatus': 'ACTIVE'|'DELETING'|'DELETE_FAILED'|'UPDATING'|'UPDATE_FAILED'|'MOVING',
          'failureReasons': [
              {
                  'code': 'string',
                  'message': 'string'
              },
          ],
          'createdBy': 'string',
          'createdAt': datetime(2015, 1, 1),
          'lastUpdatedAt': datetime(2015, 1, 1),
          'resourceTags': [
              {
                  'key': 'string',
                  'value': 'string',
                  'source': 'PROJECT'|'PROJECT_PROFILE'
              },
          ],
          'glossaryTerms': [
              'string',
          ],
          'domainUnitId': 'string',
          'projectProfileId': 'string',
          'userParameters': [
              {
                  'environmentId': 'string',
                  'environmentResolvedAccount': {
                      'awsAccountId': 'string',
                      'regionName': 'string',
                      'sourceAccountPoolId': 'string'
                  },
                  'environmentConfigurationName': 'string',
                  'environmentParameters': [
                      {
                          'name': 'string',
                          'value': 'string'
                      },
                  ]
              },
          ],
          'environmentDeploymentDetails': {
              'overallDeploymentStatus': 'PENDING_DEPLOYMENT'|'IN_PROGRESS'|'SUCCESSFUL'|'FAILED_VALIDATION'|'FAILED_DEPLOYMENT',
              'environmentFailureReasons': {
                  'string': [
                      {
                          'code': 'string',
                          'message': 'string'
                      },
                  ]
              }
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **domainId** *(string) --* 

        The identifier of the Amazon DataZone domain in which the project was created.

        
      

      - **id** *(string) --* 

        The ID of the Amazon DataZone project.

        
      

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

        The name of the project.

        
      

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

        The description of the project.

        
      

      - **projectStatus** *(string) --* 

        The status of the Amazon DataZone project that was created.

        
      

      - **failureReasons** *(list) --* 

        Specifies the error message that is returned if the operation cannot be successfully completed.

        
        

        - *(dict) --* 

          Specifies the error message that is returned if the operation cannot be successfully completed.

          
          

          - **code** *(string) --* 

            The code of the project deletion error.

            
          

          - **message** *(string) --* 

            The message of the project deletion error.

            
      
    
      

      - **createdBy** *(string) --* 

        The Amazon DataZone user who created the project.

        
      

      - **createdAt** *(datetime) --* 

        The timestamp of when the project was created.

        
      

      - **lastUpdatedAt** *(datetime) --* 

        The timestamp of when the project was last updated.

        
      

      - **resourceTags** *(list) --* 

        The resource tags of the project.

        
        

        - *(dict) --* 

          The resource tag of the project.

          
          

          - **key** *(string) --* 

            The key of the resource tag of the project.

            
          

          - **value** *(string) --* 

            The value of the resource tag of the project.

            
          

          - **source** *(string) --* 

            The source of the resource tag of the project.

            
      
    
      

      - **glossaryTerms** *(list) --* 

        The glossary terms that can be used in the project.

        
        

        - *(string) --* 
    
      

      - **domainUnitId** *(string) --* 

        The ID of the domain unit.

        
      

      - **projectProfileId** *(string) --* 

        The project profile ID.

        
      

      - **userParameters** *(list) --* 

        The user parameters of the project.

        
        

        - *(dict) --* 

          The environment configuration user parameters.

          
          

          - **environmentId** *(string) --* 

            The ID of the environment.

            
          

          - **environmentResolvedAccount** *(dict) --* 

            Specifies the account/Region that is to be used during project creation for a particular blueprint.

            
            

            - **awsAccountId** *(string) --* 

              The ID of the resolved account.

              
            

            - **regionName** *(string) --* 

              The name of the resolved Region.

              
            

            - **sourceAccountPoolId** *(string) --* 

              The ID of the account pool.

              
        
          

          - **environmentConfigurationName** *(string) --* 

            The environment configuration name.

            
          

          - **environmentParameters** *(list) --* 

            The environment parameters.

            
            

            - *(dict) --* 

              The parameter details of an evironment profile.

              
              

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

                The name of an environment profile parameter.

                
              

              - **value** *(string) --* 

                The value of an environment profile parameter.

                
          
        
      
    
      

      - **environmentDeploymentDetails** *(dict) --* 

        The environment deployment details.

        
        

        - **overallDeploymentStatus** *(string) --* 

          The overall deployment status of the environment.

          
        

        - **environmentFailureReasons** *(dict) --* 

          Environment failure reasons.

          
          

          - *(string) --* 
            

            - *(list) --* 
              

              - *(dict) --* 

                The failure reasons for the environment deployment.

                
                

                - **code** *(string) --* 

                  The error code for the failure reason for the environment deployment.

                  
                

                - **message** *(string) --* 

                  The error message for the failure reason for the environment deployment.

                  
            
          
      
    
    
  
  **Exceptions**
  
  *   :py:class:`DataZone.Client.exceptions.InternalServerException`

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

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

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

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

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

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

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

  