:doc:`Glue <../../glue>` / Client / create_usage_profile

********************
create_usage_profile
********************



.. py:method:: Glue.Client.create_usage_profile(**kwargs)

  

  Creates an Glue usage profile.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CreateUsageProfile>`_  


  **Request Syntax**
  ::

    response = client.create_usage_profile(
        Name='string',
        Description='string',
        Configuration={
            'SessionConfiguration': {
                'string': {
                    'DefaultValue': 'string',
                    'AllowedValues': [
                        'string',
                    ],
                    'MinValue': 'string',
                    'MaxValue': 'string'
                }
            },
            'JobConfiguration': {
                'string': {
                    'DefaultValue': 'string',
                    'AllowedValues': [
                        'string',
                    ],
                    'MinValue': 'string',
                    'MaxValue': 'string'
                }
            }
        },
        Tags={
            'string': 'string'
        }
    )
    
  :type Name: string
  :param Name: **[REQUIRED]** 

    The name of the usage profile.

    

  
  :type Description: string
  :param Description: 

    A description of the usage profile.

    

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

    A ``ProfileConfiguration`` object specifying the job and session values for the profile.

    

  
    - **SessionConfiguration** *(dict) --* 

      A key-value map of configuration parameters for Glue sessions.

      

    
      - *(string) --* 

      
        - *(dict) --* 

          Specifies the values that an admin sets for each job or session parameter configured in a Glue usage profile.

          

        
          - **DefaultValue** *(string) --* 

            A default value for the parameter.

            

          
          - **AllowedValues** *(list) --* 

            A list of allowed values for the parameter.

            

          
            - *(string) --* 

            
        
          - **MinValue** *(string) --* 

            A minimum allowed value for the parameter.

            

          
          - **MaxValue** *(string) --* 

            A maximum allowed value for the parameter.

            

          
        
  

    - **JobConfiguration** *(dict) --* 

      A key-value map of configuration parameters for Glue jobs.

      

    
      - *(string) --* 

      
        - *(dict) --* 

          Specifies the values that an admin sets for each job or session parameter configured in a Glue usage profile.

          

        
          - **DefaultValue** *(string) --* 

            A default value for the parameter.

            

          
          - **AllowedValues** *(list) --* 

            A list of allowed values for the parameter.

            

          
            - *(string) --* 

            
        
          - **MinValue** *(string) --* 

            A minimum allowed value for the parameter.

            

          
          - **MaxValue** *(string) --* 

            A maximum allowed value for the parameter.

            

          
        
  

  
  :type Tags: dict
  :param Tags: 

    A list of tags applied to the usage profile.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

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

    

    - *(dict) --* 
      

      - **Name** *(string) --* 

        The name of the usage profile that was created.

        
  
  **Exceptions**
  
  *   :py:class:`Glue.Client.exceptions.InvalidInputException`

  
  *   :py:class:`Glue.Client.exceptions.InternalServiceException`

  
  *   :py:class:`Glue.Client.exceptions.AlreadyExistsException`

  
  *   :py:class:`Glue.Client.exceptions.OperationTimeoutException`

  
  *   :py:class:`Glue.Client.exceptions.ResourceNumberLimitExceededException`

  
  *   :py:class:`Glue.Client.exceptions.OperationNotSupportedException`

  