Glue / Client / create_usage_profile

create_usage_profile#

Glue.Client.create_usage_profile(**kwargs)#

Creates an Glue usage profile.

See also: AWS API Documentation

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'
    }
)
Parameters:
  • Name (string) –

    [REQUIRED]

    The name of the usage profile.

  • Description (string) – A description of the usage profile.

  • Configuration (dict) –

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

  • Tags (dict) –

    A list of tags applied to the usage profile.

    • (string) –

      • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'Name': 'string'
}

Response Structure

  • (dict) –

    • Name (string) –

      The name of the usage profile that was created.

Exceptions