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

******************
create_environment
******************



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

  

  Create an Amazon DataZone environment.

  

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


  **Request Syntax**
  ::

    response = client.create_environment(
        projectIdentifier='string',
        domainIdentifier='string',
        description='string',
        name='string',
        environmentProfileIdentifier='string',
        userParameters=[
            {
                'name': 'string',
                'value': 'string'
            },
        ],
        glossaryTerms=[
            'string',
        ],
        environmentAccountIdentifier='string',
        environmentAccountRegion='string',
        environmentBlueprintIdentifier='string',
        deploymentOrder=123,
        environmentConfigurationId='string'
    )
    
  :type projectIdentifier: string
  :param projectIdentifier: **[REQUIRED]** 

    The identifier of the Amazon DataZone project in which this environment is created.

    

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

    The identifier of the Amazon DataZone domain in which the environment is created.

    

  
  :type description: string
  :param description: 

    The description of the Amazon DataZone environment.

    

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

    The name of the Amazon DataZone environment.

    

  
  :type environmentProfileIdentifier: string
  :param environmentProfileIdentifier: 

    The identifier of the environment profile that is used to create this Amazon DataZone environment.

    

  
  :type userParameters: list
  :param userParameters: 

    The user parameters of this Amazon DataZone environment.

    

  
    - *(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.

        

      
    

  :type glossaryTerms: list
  :param glossaryTerms: 

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

    

  
    - *(string) --* 

    

  :type environmentAccountIdentifier: string
  :param environmentAccountIdentifier: 

    The ID of the account in which the environment is being created.

    

  
  :type environmentAccountRegion: string
  :param environmentAccountRegion: 

    The region of the account in which the environment is being created.

    

  
  :type environmentBlueprintIdentifier: string
  :param environmentBlueprintIdentifier: 

    The ID of the blueprint with which the environment is being created.

    

  
  :type deploymentOrder: integer
  :param deploymentOrder: 

    The deployment order of the environment.

    

  
  :type environmentConfigurationId: string
  :param environmentConfigurationId: 

    The configuration ID of the environment.

    

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

    
    ::

      {
          'projectId': 'string',
          'id': 'string',
          'domainId': 'string',
          'createdBy': 'string',
          'createdAt': datetime(2015, 1, 1),
          'updatedAt': datetime(2015, 1, 1),
          'name': 'string',
          'description': 'string',
          'environmentProfileId': 'string',
          'awsAccountId': 'string',
          'awsAccountRegion': 'string',
          'provider': 'string',
          'provisionedResources': [
              {
                  'provider': 'string',
                  'name': 'string',
                  'value': 'string',
                  'type': 'string'
              },
          ],
          'status': 'ACTIVE'|'CREATING'|'UPDATING'|'DELETING'|'CREATE_FAILED'|'UPDATE_FAILED'|'DELETE_FAILED'|'VALIDATION_FAILED'|'SUSPENDED'|'DISABLED'|'EXPIRED'|'DELETED'|'INACCESSIBLE',
          'environmentActions': [
              {
                  'type': 'string',
                  'auth': 'IAM'|'HTTPS',
                  'parameters': [
                      {
                          'key': 'string',
                          'value': 'string'
                      },
                  ]
              },
          ],
          'glossaryTerms': [
              'string',
          ],
          'userParameters': [
              {
                  'keyName': 'string',
                  'description': 'string',
                  'fieldType': 'string',
                  'defaultValue': 'string',
                  'isEditable': True|False,
                  'isOptional': True|False,
                  'isUpdateSupported': True|False
              },
          ],
          'lastDeployment': {
              'deploymentId': 'string',
              'deploymentType': 'CREATE'|'UPDATE'|'DELETE',
              'deploymentStatus': 'IN_PROGRESS'|'SUCCESSFUL'|'FAILED'|'PENDING_DEPLOYMENT',
              'failureReason': {
                  'code': 'string',
                  'message': 'string'
              },
              'messages': [
                  'string',
              ],
              'isDeploymentComplete': True|False
          },
          'provisioningProperties': {
              'cloudFormation': {
                  'templateUrl': 'string'
              }
          },
          'deploymentProperties': {
              'startTimeoutMinutes': 123,
              'endTimeoutMinutes': 123
          },
          'environmentBlueprintId': 'string',
          'environmentConfigurationId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **projectId** *(string) --* 

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

        
      

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

        The ID of this Amazon DataZone environment.

        
      

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

        The identifier of the Amazon DataZone domain in which the environment is created.

        
      

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

        The Amazon DataZone user who created this environment.

        
      

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

        The timestamp of when the environment was created.

        
      

      - **updatedAt** *(datetime) --* 

        The timestamp of when this environment was updated.

        
      

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

        The name of this environment.

        
      

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

        The description of this Amazon DataZone environment.

        
      

      - **environmentProfileId** *(string) --* 

        The ID of the environment profile with which this Amazon DataZone environment was created.

        
      

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

        The Amazon Web Services account in which the Amazon DataZone environment is created.

        
      

      - **awsAccountRegion** *(string) --* 

        The Amazon Web Services region in which the Amazon DataZone environment is created.

        
      

      - **provider** *(string) --* 

        The provider of this Amazon DataZone environment.

        
      

      - **provisionedResources** *(list) --* 

        The provisioned resources of this Amazon DataZone environment.

        
        

        - *(dict) --* 

          The details of a provisioned resource of this Amazon DataZone environment.

          
          

          - **provider** *(string) --* 

            The provider of a provisioned resource of this Amazon DataZone environment.

            
          

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

            The name of a provisioned resource of this Amazon DataZone environment.

            
          

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

            The value of a provisioned resource of this Amazon DataZone environment.

            
          

          - **type** *(string) --* 

            The type of a provisioned resource of this Amazon DataZone environment.

            
      
    
      

      - **status** *(string) --* 

        The status of this Amazon DataZone environment.

        
      

      - **environmentActions** *(list) --* 

        The configurable actions of this Amazon DataZone environment.

        
        

        - *(dict) --* 

          The configurable action of a Amazon DataZone environment.

          
          

          - **type** *(string) --* 

            The type of a configurable action in a Amazon DataZone environment.

            
          

          - **auth** *(string) --* 

            The authentication type of a configurable action of a Amazon DataZone environment.

            
          

          - **parameters** *(list) --* 

            The parameters of a configurable action in a Amazon DataZone environment.

            
            

            - *(dict) --* 

              The details of the parameters for the configurable environment action.

              
              

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

                The key of the configurable action parameter.

                
              

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

                The value of the configurable action parameter.

                
          
        
      
    
      

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

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

        
        

        - *(string) --* 
    
      

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

        The user parameters of this Amazon DataZone environment.

        
        

        - *(dict) --* 

          The details of user parameters of an environment blueprint.

          
          

          - **keyName** *(string) --* 

            The key name of the parameter.

            
          

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

            The description of the parameter.

            
          

          - **fieldType** *(string) --* 

            The filed type of the parameter.

            
          

          - **defaultValue** *(string) --* 

            The default value of the parameter.

            
          

          - **isEditable** *(boolean) --* 

            Specifies whether the parameter is editable.

            
          

          - **isOptional** *(boolean) --* 

            Specifies whether the custom parameter is optional.

            
          

          - **isUpdateSupported** *(boolean) --* 

            Specifies whether a parameter value can be updated after creation.

            
      
    
      

      - **lastDeployment** *(dict) --* 

        The details of the last deployment of this Amazon DataZone environment.

        
        

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

          The identifier of the last deployment of the environment.

          
        

        - **deploymentType** *(string) --* 

          The type of the last deployment of the environment.

          
        

        - **deploymentStatus** *(string) --* 

          The status of the last deployment of the environment.

          
        

        - **failureReason** *(dict) --* 

          The failure reason of the last deployment of the environment.

          
          

          - **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.

            
      
        

        - **messages** *(list) --* 

          The messages of the last deployment of the environment.

          
          

          - *(string) --* 
      
        

        - **isDeploymentComplete** *(boolean) --* 

          Specifies whether the last deployment of the environment is complete.

          
    
      

      - **provisioningProperties** *(dict) --* 

        The provisioning properties of this Amazon DataZone environment.

        .. note::    This is a Tagged Union structure. Only one of the     following top level keys will be set: ``cloudFormation``.     If a client receives an unknown member it will     set ``SDK_UNKNOWN_MEMBER`` as the top level key,     which maps to the name or tag of the unknown     member. The structure of ``SDK_UNKNOWN_MEMBER`` is     as follows::

                'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}


      
        

        - **cloudFormation** *(dict) --* 

          The cloud formation properties included as part of the provisioning properties of an environment blueprint.

          
          

          - **templateUrl** *(string) --* 

            The template URL of the cloud formation provisioning properties of the environment blueprint.

            
      
    
      

      - **deploymentProperties** *(dict) --* 

        The deployment properties of this Amazon DataZone environment.

        
        

        - **startTimeoutMinutes** *(integer) --* 

          The start timeout of the environment blueprint deployment.

          
        

        - **endTimeoutMinutes** *(integer) --* 

          The end timeout of the environment blueprint deployment.

          
    
      

      - **environmentBlueprintId** *(string) --* 

        The ID of the blueprint with which this Amazon DataZone environment was created.

        
      

      - **environmentConfigurationId** *(string) --* 

        The configuration ID of the environment.

        
  
  **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.ConflictException`

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

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

  