1. Packages
  2. Snowflake Provider
  3. API Docs
  4. FunctionScala
Snowflake v1.2.0 published on Monday, Apr 14, 2025 by Pulumi

snowflake.FunctionScala

Explore with Pulumi AI

Import

$ pulumi import snowflake:index/functionScala:FunctionScala example '"<database_name>"."<schema_name>"."<function_name>"(varchar, varchar, varchar)'
Copy

Note: Snowflake is not returning all information needed to populate the state correctly after import (e.g. data types with attributes like NUMBER(32, 10) are returned as NUMBER, default values for arguments are not returned at all).

Also, ALTER for functions is very limited so most of the attributes on this resource are marked as force new. Because of that, in multiple situations plan won’t be empty after importing and manual state operations may be required.

Create FunctionScala Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new FunctionScala(name: string, args: FunctionScalaArgs, opts?: CustomResourceOptions);
@overload
def FunctionScala(resource_name: str,
                  args: FunctionScalaArgs,
                  opts: Optional[ResourceOptions] = None)

@overload
def FunctionScala(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  handler: Optional[str] = None,
                  schema: Optional[str] = None,
                  database: Optional[str] = None,
                  runtime_version: Optional[str] = None,
                  return_type: Optional[str] = None,
                  function_definition: Optional[str] = None,
                  null_input_behavior: Optional[str] = None,
                  imports: Optional[Sequence[FunctionScalaImportArgs]] = None,
                  is_secure: Optional[str] = None,
                  log_level: Optional[str] = None,
                  metric_level: Optional[str] = None,
                  name: Optional[str] = None,
                  arguments: Optional[Sequence[FunctionScalaArgumentArgs]] = None,
                  packages: Optional[Sequence[str]] = None,
                  return_results_behavior: Optional[str] = None,
                  external_access_integrations: Optional[Sequence[str]] = None,
                  enable_console_output: Optional[bool] = None,
                  comment: Optional[str] = None,
                  secrets: Optional[Sequence[FunctionScalaSecretArgs]] = None,
                  target_path: Optional[FunctionScalaTargetPathArgs] = None,
                  trace_level: Optional[str] = None)
func NewFunctionScala(ctx *Context, name string, args FunctionScalaArgs, opts ...ResourceOption) (*FunctionScala, error)
public FunctionScala(string name, FunctionScalaArgs args, CustomResourceOptions? opts = null)
public FunctionScala(String name, FunctionScalaArgs args)
public FunctionScala(String name, FunctionScalaArgs args, CustomResourceOptions options)
type: snowflake:FunctionScala
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. FunctionScalaArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. FunctionScalaArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. FunctionScalaArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. FunctionScalaArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. FunctionScalaArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var functionScalaResource = new Snowflake.FunctionScala("functionScalaResource", new()
{
    Handler = "string",
    Schema = "string",
    Database = "string",
    RuntimeVersion = "string",
    ReturnType = "string",
    FunctionDefinition = "string",
    NullInputBehavior = "string",
    Imports = new[]
    {
        new Snowflake.Inputs.FunctionScalaImportArgs
        {
            PathOnStage = "string",
            StageLocation = "string",
        },
    },
    IsSecure = "string",
    LogLevel = "string",
    MetricLevel = "string",
    Name = "string",
    Arguments = new[]
    {
        new Snowflake.Inputs.FunctionScalaArgumentArgs
        {
            ArgDataType = "string",
            ArgName = "string",
            ArgDefaultValue = "string",
        },
    },
    Packages = new[]
    {
        "string",
    },
    ReturnResultsBehavior = "string",
    ExternalAccessIntegrations = new[]
    {
        "string",
    },
    EnableConsoleOutput = false,
    Comment = "string",
    Secrets = new[]
    {
        new Snowflake.Inputs.FunctionScalaSecretArgs
        {
            SecretId = "string",
            SecretVariableName = "string",
        },
    },
    TargetPath = new Snowflake.Inputs.FunctionScalaTargetPathArgs
    {
        PathOnStage = "string",
        StageLocation = "string",
    },
    TraceLevel = "string",
});
Copy
example, err := snowflake.NewFunctionScala(ctx, "functionScalaResource", &snowflake.FunctionScalaArgs{
	Handler:            pulumi.String("string"),
	Schema:             pulumi.String("string"),
	Database:           pulumi.String("string"),
	RuntimeVersion:     pulumi.String("string"),
	ReturnType:         pulumi.String("string"),
	FunctionDefinition: pulumi.String("string"),
	NullInputBehavior:  pulumi.String("string"),
	Imports: snowflake.FunctionScalaImportArray{
		&snowflake.FunctionScalaImportArgs{
			PathOnStage:   pulumi.String("string"),
			StageLocation: pulumi.String("string"),
		},
	},
	IsSecure:    pulumi.String("string"),
	LogLevel:    pulumi.String("string"),
	MetricLevel: pulumi.String("string"),
	Name:        pulumi.String("string"),
	Arguments: snowflake.FunctionScalaArgumentArray{
		&snowflake.FunctionScalaArgumentArgs{
			ArgDataType:     pulumi.String("string"),
			ArgName:         pulumi.String("string"),
			ArgDefaultValue: pulumi.String("string"),
		},
	},
	Packages: pulumi.StringArray{
		pulumi.String("string"),
	},
	ReturnResultsBehavior: pulumi.String("string"),
	ExternalAccessIntegrations: pulumi.StringArray{
		pulumi.String("string"),
	},
	EnableConsoleOutput: pulumi.Bool(false),
	Comment:             pulumi.String("string"),
	Secrets: snowflake.FunctionScalaSecretArray{
		&snowflake.FunctionScalaSecretArgs{
			SecretId:           pulumi.String("string"),
			SecretVariableName: pulumi.String("string"),
		},
	},
	TargetPath: &snowflake.FunctionScalaTargetPathArgs{
		PathOnStage:   pulumi.String("string"),
		StageLocation: pulumi.String("string"),
	},
	TraceLevel: pulumi.String("string"),
})
Copy
var functionScalaResource = new FunctionScala("functionScalaResource", FunctionScalaArgs.builder()
    .handler("string")
    .schema("string")
    .database("string")
    .runtimeVersion("string")
    .returnType("string")
    .functionDefinition("string")
    .nullInputBehavior("string")
    .imports(FunctionScalaImportArgs.builder()
        .pathOnStage("string")
        .stageLocation("string")
        .build())
    .isSecure("string")
    .logLevel("string")
    .metricLevel("string")
    .name("string")
    .arguments(FunctionScalaArgumentArgs.builder()
        .argDataType("string")
        .argName("string")
        .argDefaultValue("string")
        .build())
    .packages("string")
    .returnResultsBehavior("string")
    .externalAccessIntegrations("string")
    .enableConsoleOutput(false)
    .comment("string")
    .secrets(FunctionScalaSecretArgs.builder()
        .secretId("string")
        .secretVariableName("string")
        .build())
    .targetPath(FunctionScalaTargetPathArgs.builder()
        .pathOnStage("string")
        .stageLocation("string")
        .build())
    .traceLevel("string")
    .build());
Copy
function_scala_resource = snowflake.FunctionScala("functionScalaResource",
    handler="string",
    schema="string",
    database="string",
    runtime_version="string",
    return_type="string",
    function_definition="string",
    null_input_behavior="string",
    imports=[{
        "path_on_stage": "string",
        "stage_location": "string",
    }],
    is_secure="string",
    log_level="string",
    metric_level="string",
    name="string",
    arguments=[{
        "arg_data_type": "string",
        "arg_name": "string",
        "arg_default_value": "string",
    }],
    packages=["string"],
    return_results_behavior="string",
    external_access_integrations=["string"],
    enable_console_output=False,
    comment="string",
    secrets=[{
        "secret_id": "string",
        "secret_variable_name": "string",
    }],
    target_path={
        "path_on_stage": "string",
        "stage_location": "string",
    },
    trace_level="string")
Copy
const functionScalaResource = new snowflake.FunctionScala("functionScalaResource", {
    handler: "string",
    schema: "string",
    database: "string",
    runtimeVersion: "string",
    returnType: "string",
    functionDefinition: "string",
    nullInputBehavior: "string",
    imports: [{
        pathOnStage: "string",
        stageLocation: "string",
    }],
    isSecure: "string",
    logLevel: "string",
    metricLevel: "string",
    name: "string",
    arguments: [{
        argDataType: "string",
        argName: "string",
        argDefaultValue: "string",
    }],
    packages: ["string"],
    returnResultsBehavior: "string",
    externalAccessIntegrations: ["string"],
    enableConsoleOutput: false,
    comment: "string",
    secrets: [{
        secretId: "string",
        secretVariableName: "string",
    }],
    targetPath: {
        pathOnStage: "string",
        stageLocation: "string",
    },
    traceLevel: "string",
});
Copy
type: snowflake:FunctionScala
properties:
    arguments:
        - argDataType: string
          argDefaultValue: string
          argName: string
    comment: string
    database: string
    enableConsoleOutput: false
    externalAccessIntegrations:
        - string
    functionDefinition: string
    handler: string
    imports:
        - pathOnStage: string
          stageLocation: string
    isSecure: string
    logLevel: string
    metricLevel: string
    name: string
    nullInputBehavior: string
    packages:
        - string
    returnResultsBehavior: string
    returnType: string
    runtimeVersion: string
    schema: string
    secrets:
        - secretId: string
          secretVariableName: string
    targetPath:
        pathOnStage: string
        stageLocation: string
    traceLevel: string
Copy

FunctionScala Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The FunctionScala resource accepts the following input properties:

Database
This property is required.
Changes to this property will trigger replacement.
string
The database in which to create the function. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
Handler
This property is required.
Changes to this property will trigger replacement.
string
The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: MyClass.myMethod.
ReturnType
This property is required.
Changes to this property will trigger replacement.
string
Specifies the results returned by the UDF, which determines the UDF type. Use <result_data_type> to create a scalar UDF that returns a single value with the specified data type. Use TABLE (col_name col_data_type, ...) to creates a table UDF that returns tabular results with the specified table column(s) and column type(s). For the details, consult the docs.
RuntimeVersion
This property is required.
Changes to this property will trigger replacement.
string
Specifies the Scala runtime version to use. The supported versions of Scala are: 2.12.
Schema
This property is required.
Changes to this property will trigger replacement.
string
The schema in which to create the function. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
Arguments Changes to this property will trigger replacement. List<FunctionScalaArgument>
List of the arguments for the function. Consult the docs for more details.
Comment string
(Default: user-defined function) Specifies a comment for the function.
EnableConsoleOutput bool
Enable stdout/stderr fast path logging for anonymous stored procs. This is a public parameter (similar to LOGLEVEL). For more information, check CONSOLE_OUTPUT docsENABLE.
ExternalAccessIntegrations List<string>
The names of external access integrations needed in order for this function’s handler code to access external networks. An external access integration specifies network rules and secrets that specify external locations and credentials (if any) allowed for use by handler code when making requests of an external network, such as an external REST API.
FunctionDefinition Changes to this property will trigger replacement. string
Defines the handler code executed when the UDF is called. Wrapping $$ signs are added by the provider automatically; do not include them. The function_definition value must be Scala source code. For more information, see Introduction to Scala UDFs. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
Imports Changes to this property will trigger replacement. List<FunctionScalaImport>
The location (stage), path, and name of the file(s) to import, such as a JAR or other kind of file. The JAR file might contain handler dependency libraries. It can contain one or more .class files and zero or more resource files. JNI (Java Native Interface) is not supported. Snowflake prohibits loading libraries that contain native code (as opposed to Java bytecode). A non-JAR file might a file read by handler code. For an example, see Reading a file specified statically in IMPORTS. Consult the docs.
IsSecure string
LogLevel string
LOG*LEVEL to use when filtering events For more information, check LOG*LEVEL docs.
MetricLevel string
METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check METRIC*LEVEL docs.
Name string
The name of the function; the identifier does not need to be unique for the schema in which the function is created because UDFs are identified and resolved by the combination of the name and argument types. Check the docs. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
NullInputBehavior Changes to this property will trigger replacement. string
Specifies the behavior of the function when called with null inputs. Valid values are (case-insensitive): CALLED ON NULL INPUT | RETURNS NULL ON NULL INPUT.
Packages Changes to this property will trigger replacement. List<string>
The name and version number of Snowflake system packages required as dependencies. The value should be of the form package_name:version_number, where package_name is snowflake_domain:package.
ReturnResultsBehavior Changes to this property will trigger replacement. string
Specifies the behavior of the function when returning results. Valid values are (case-insensitive): VOLATILE | IMMUTABLE.
Secrets List<FunctionScalaSecret>
Assigns the names of secrets to variables so that you can use the variables to reference the secrets when retrieving information from secrets in handler code. Secrets you specify here must be allowed by the external access integration specified as a value of this CREATE FUNCTION command’s EXTERNALACCESSINTEGRATIONS parameter.
TargetPath Changes to this property will trigger replacement. FunctionScalaTargetPath
The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: MyClass.myMethod.
TraceLevel string
Trace level value to use when generating/filtering trace events For more information, check TRACE_LEVEL docs.
Database
This property is required.
Changes to this property will trigger replacement.
string
The database in which to create the function. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
Handler
This property is required.
Changes to this property will trigger replacement.
string
The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: MyClass.myMethod.
ReturnType
This property is required.
Changes to this property will trigger replacement.
string
Specifies the results returned by the UDF, which determines the UDF type. Use <result_data_type> to create a scalar UDF that returns a single value with the specified data type. Use TABLE (col_name col_data_type, ...) to creates a table UDF that returns tabular results with the specified table column(s) and column type(s). For the details, consult the docs.
RuntimeVersion
This property is required.
Changes to this property will trigger replacement.
string
Specifies the Scala runtime version to use. The supported versions of Scala are: 2.12.
Schema
This property is required.
Changes to this property will trigger replacement.
string
The schema in which to create the function. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
Arguments Changes to this property will trigger replacement. []FunctionScalaArgumentArgs
List of the arguments for the function. Consult the docs for more details.
Comment string
(Default: user-defined function) Specifies a comment for the function.
EnableConsoleOutput bool
Enable stdout/stderr fast path logging for anonymous stored procs. This is a public parameter (similar to LOGLEVEL). For more information, check CONSOLE_OUTPUT docsENABLE.
ExternalAccessIntegrations []string
The names of external access integrations needed in order for this function’s handler code to access external networks. An external access integration specifies network rules and secrets that specify external locations and credentials (if any) allowed for use by handler code when making requests of an external network, such as an external REST API.
FunctionDefinition Changes to this property will trigger replacement. string
Defines the handler code executed when the UDF is called. Wrapping $$ signs are added by the provider automatically; do not include them. The function_definition value must be Scala source code. For more information, see Introduction to Scala UDFs. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
Imports Changes to this property will trigger replacement. []FunctionScalaImportArgs
The location (stage), path, and name of the file(s) to import, such as a JAR or other kind of file. The JAR file might contain handler dependency libraries. It can contain one or more .class files and zero or more resource files. JNI (Java Native Interface) is not supported. Snowflake prohibits loading libraries that contain native code (as opposed to Java bytecode). A non-JAR file might a file read by handler code. For an example, see Reading a file specified statically in IMPORTS. Consult the docs.
IsSecure string
LogLevel string
LOG*LEVEL to use when filtering events For more information, check LOG*LEVEL docs.
MetricLevel string
METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check METRIC*LEVEL docs.
Name string
The name of the function; the identifier does not need to be unique for the schema in which the function is created because UDFs are identified and resolved by the combination of the name and argument types. Check the docs. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
NullInputBehavior Changes to this property will trigger replacement. string
Specifies the behavior of the function when called with null inputs. Valid values are (case-insensitive): CALLED ON NULL INPUT | RETURNS NULL ON NULL INPUT.
Packages Changes to this property will trigger replacement. []string
The name and version number of Snowflake system packages required as dependencies. The value should be of the form package_name:version_number, where package_name is snowflake_domain:package.
ReturnResultsBehavior Changes to this property will trigger replacement. string
Specifies the behavior of the function when returning results. Valid values are (case-insensitive): VOLATILE | IMMUTABLE.
Secrets []FunctionScalaSecretArgs
Assigns the names of secrets to variables so that you can use the variables to reference the secrets when retrieving information from secrets in handler code. Secrets you specify here must be allowed by the external access integration specified as a value of this CREATE FUNCTION command’s EXTERNALACCESSINTEGRATIONS parameter.
TargetPath Changes to this property will trigger replacement. FunctionScalaTargetPathArgs
The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: MyClass.myMethod.
TraceLevel string
Trace level value to use when generating/filtering trace events For more information, check TRACE_LEVEL docs.
database
This property is required.
Changes to this property will trigger replacement.
String
The database in which to create the function. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
handler
This property is required.
Changes to this property will trigger replacement.
String
The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: MyClass.myMethod.
returnType
This property is required.
Changes to this property will trigger replacement.
String
Specifies the results returned by the UDF, which determines the UDF type. Use <result_data_type> to create a scalar UDF that returns a single value with the specified data type. Use TABLE (col_name col_data_type, ...) to creates a table UDF that returns tabular results with the specified table column(s) and column type(s). For the details, consult the docs.
runtimeVersion
This property is required.
Changes to this property will trigger replacement.
String
Specifies the Scala runtime version to use. The supported versions of Scala are: 2.12.
schema
This property is required.
Changes to this property will trigger replacement.
String
The schema in which to create the function. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
arguments Changes to this property will trigger replacement. List<FunctionScalaArgument>
List of the arguments for the function. Consult the docs for more details.
comment String
(Default: user-defined function) Specifies a comment for the function.
enableConsoleOutput Boolean
Enable stdout/stderr fast path logging for anonymous stored procs. This is a public parameter (similar to LOGLEVEL). For more information, check CONSOLE_OUTPUT docsENABLE.
externalAccessIntegrations List<String>
The names of external access integrations needed in order for this function’s handler code to access external networks. An external access integration specifies network rules and secrets that specify external locations and credentials (if any) allowed for use by handler code when making requests of an external network, such as an external REST API.
functionDefinition Changes to this property will trigger replacement. String
Defines the handler code executed when the UDF is called. Wrapping $$ signs are added by the provider automatically; do not include them. The function_definition value must be Scala source code. For more information, see Introduction to Scala UDFs. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
imports Changes to this property will trigger replacement. List<FunctionScalaImport>
The location (stage), path, and name of the file(s) to import, such as a JAR or other kind of file. The JAR file might contain handler dependency libraries. It can contain one or more .class files and zero or more resource files. JNI (Java Native Interface) is not supported. Snowflake prohibits loading libraries that contain native code (as opposed to Java bytecode). A non-JAR file might a file read by handler code. For an example, see Reading a file specified statically in IMPORTS. Consult the docs.
isSecure String
logLevel String
LOG*LEVEL to use when filtering events For more information, check LOG*LEVEL docs.
metricLevel String
METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check METRIC*LEVEL docs.
name String
The name of the function; the identifier does not need to be unique for the schema in which the function is created because UDFs are identified and resolved by the combination of the name and argument types. Check the docs. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
nullInputBehavior Changes to this property will trigger replacement. String
Specifies the behavior of the function when called with null inputs. Valid values are (case-insensitive): CALLED ON NULL INPUT | RETURNS NULL ON NULL INPUT.
packages Changes to this property will trigger replacement. List<String>
The name and version number of Snowflake system packages required as dependencies. The value should be of the form package_name:version_number, where package_name is snowflake_domain:package.
returnResultsBehavior Changes to this property will trigger replacement. String
Specifies the behavior of the function when returning results. Valid values are (case-insensitive): VOLATILE | IMMUTABLE.
secrets List<FunctionScalaSecret>
Assigns the names of secrets to variables so that you can use the variables to reference the secrets when retrieving information from secrets in handler code. Secrets you specify here must be allowed by the external access integration specified as a value of this CREATE FUNCTION command’s EXTERNALACCESSINTEGRATIONS parameter.
targetPath Changes to this property will trigger replacement. FunctionScalaTargetPath
The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: MyClass.myMethod.
traceLevel String
Trace level value to use when generating/filtering trace events For more information, check TRACE_LEVEL docs.
database
This property is required.
Changes to this property will trigger replacement.
string
The database in which to create the function. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
handler
This property is required.
Changes to this property will trigger replacement.
string
The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: MyClass.myMethod.
returnType
This property is required.
Changes to this property will trigger replacement.
string
Specifies the results returned by the UDF, which determines the UDF type. Use <result_data_type> to create a scalar UDF that returns a single value with the specified data type. Use TABLE (col_name col_data_type, ...) to creates a table UDF that returns tabular results with the specified table column(s) and column type(s). For the details, consult the docs.
runtimeVersion
This property is required.
Changes to this property will trigger replacement.
string
Specifies the Scala runtime version to use. The supported versions of Scala are: 2.12.
schema
This property is required.
Changes to this property will trigger replacement.
string
The schema in which to create the function. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
arguments Changes to this property will trigger replacement. FunctionScalaArgument[]
List of the arguments for the function. Consult the docs for more details.
comment string
(Default: user-defined function) Specifies a comment for the function.
enableConsoleOutput boolean
Enable stdout/stderr fast path logging for anonymous stored procs. This is a public parameter (similar to LOGLEVEL). For more information, check CONSOLE_OUTPUT docsENABLE.
externalAccessIntegrations string[]
The names of external access integrations needed in order for this function’s handler code to access external networks. An external access integration specifies network rules and secrets that specify external locations and credentials (if any) allowed for use by handler code when making requests of an external network, such as an external REST API.
functionDefinition Changes to this property will trigger replacement. string
Defines the handler code executed when the UDF is called. Wrapping $$ signs are added by the provider automatically; do not include them. The function_definition value must be Scala source code. For more information, see Introduction to Scala UDFs. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
imports Changes to this property will trigger replacement. FunctionScalaImport[]
The location (stage), path, and name of the file(s) to import, such as a JAR or other kind of file. The JAR file might contain handler dependency libraries. It can contain one or more .class files and zero or more resource files. JNI (Java Native Interface) is not supported. Snowflake prohibits loading libraries that contain native code (as opposed to Java bytecode). A non-JAR file might a file read by handler code. For an example, see Reading a file specified statically in IMPORTS. Consult the docs.
isSecure string
logLevel string
LOG*LEVEL to use when filtering events For more information, check LOG*LEVEL docs.
metricLevel string
METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check METRIC*LEVEL docs.
name string
The name of the function; the identifier does not need to be unique for the schema in which the function is created because UDFs are identified and resolved by the combination of the name and argument types. Check the docs. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
nullInputBehavior Changes to this property will trigger replacement. string
Specifies the behavior of the function when called with null inputs. Valid values are (case-insensitive): CALLED ON NULL INPUT | RETURNS NULL ON NULL INPUT.
packages Changes to this property will trigger replacement. string[]
The name and version number of Snowflake system packages required as dependencies. The value should be of the form package_name:version_number, where package_name is snowflake_domain:package.
returnResultsBehavior Changes to this property will trigger replacement. string
Specifies the behavior of the function when returning results. Valid values are (case-insensitive): VOLATILE | IMMUTABLE.
secrets FunctionScalaSecret[]
Assigns the names of secrets to variables so that you can use the variables to reference the secrets when retrieving information from secrets in handler code. Secrets you specify here must be allowed by the external access integration specified as a value of this CREATE FUNCTION command’s EXTERNALACCESSINTEGRATIONS parameter.
targetPath Changes to this property will trigger replacement. FunctionScalaTargetPath
The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: MyClass.myMethod.
traceLevel string
Trace level value to use when generating/filtering trace events For more information, check TRACE_LEVEL docs.
database
This property is required.
Changes to this property will trigger replacement.
str
The database in which to create the function. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
handler
This property is required.
Changes to this property will trigger replacement.
str
The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: MyClass.myMethod.
return_type
This property is required.
Changes to this property will trigger replacement.
str
Specifies the results returned by the UDF, which determines the UDF type. Use <result_data_type> to create a scalar UDF that returns a single value with the specified data type. Use TABLE (col_name col_data_type, ...) to creates a table UDF that returns tabular results with the specified table column(s) and column type(s). For the details, consult the docs.
runtime_version
This property is required.
Changes to this property will trigger replacement.
str
Specifies the Scala runtime version to use. The supported versions of Scala are: 2.12.
schema
This property is required.
Changes to this property will trigger replacement.
str
The schema in which to create the function. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
arguments Changes to this property will trigger replacement. Sequence[FunctionScalaArgumentArgs]
List of the arguments for the function. Consult the docs for more details.
comment str
(Default: user-defined function) Specifies a comment for the function.
enable_console_output bool
Enable stdout/stderr fast path logging for anonymous stored procs. This is a public parameter (similar to LOGLEVEL). For more information, check CONSOLE_OUTPUT docsENABLE.
external_access_integrations Sequence[str]
The names of external access integrations needed in order for this function’s handler code to access external networks. An external access integration specifies network rules and secrets that specify external locations and credentials (if any) allowed for use by handler code when making requests of an external network, such as an external REST API.
function_definition Changes to this property will trigger replacement. str
Defines the handler code executed when the UDF is called. Wrapping $$ signs are added by the provider automatically; do not include them. The function_definition value must be Scala source code. For more information, see Introduction to Scala UDFs. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
imports Changes to this property will trigger replacement. Sequence[FunctionScalaImportArgs]
The location (stage), path, and name of the file(s) to import, such as a JAR or other kind of file. The JAR file might contain handler dependency libraries. It can contain one or more .class files and zero or more resource files. JNI (Java Native Interface) is not supported. Snowflake prohibits loading libraries that contain native code (as opposed to Java bytecode). A non-JAR file might a file read by handler code. For an example, see Reading a file specified statically in IMPORTS. Consult the docs.
is_secure str
log_level str
LOG*LEVEL to use when filtering events For more information, check LOG*LEVEL docs.
metric_level str
METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check METRIC*LEVEL docs.
name str
The name of the function; the identifier does not need to be unique for the schema in which the function is created because UDFs are identified and resolved by the combination of the name and argument types. Check the docs. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
null_input_behavior Changes to this property will trigger replacement. str
Specifies the behavior of the function when called with null inputs. Valid values are (case-insensitive): CALLED ON NULL INPUT | RETURNS NULL ON NULL INPUT.
packages Changes to this property will trigger replacement. Sequence[str]
The name and version number of Snowflake system packages required as dependencies. The value should be of the form package_name:version_number, where package_name is snowflake_domain:package.
return_results_behavior Changes to this property will trigger replacement. str
Specifies the behavior of the function when returning results. Valid values are (case-insensitive): VOLATILE | IMMUTABLE.
secrets Sequence[FunctionScalaSecretArgs]
Assigns the names of secrets to variables so that you can use the variables to reference the secrets when retrieving information from secrets in handler code. Secrets you specify here must be allowed by the external access integration specified as a value of this CREATE FUNCTION command’s EXTERNALACCESSINTEGRATIONS parameter.
target_path Changes to this property will trigger replacement. FunctionScalaTargetPathArgs
The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: MyClass.myMethod.
trace_level str
Trace level value to use when generating/filtering trace events For more information, check TRACE_LEVEL docs.
database
This property is required.
Changes to this property will trigger replacement.
String
The database in which to create the function. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
handler
This property is required.
Changes to this property will trigger replacement.
String
The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: MyClass.myMethod.
returnType
This property is required.
Changes to this property will trigger replacement.
String
Specifies the results returned by the UDF, which determines the UDF type. Use <result_data_type> to create a scalar UDF that returns a single value with the specified data type. Use TABLE (col_name col_data_type, ...) to creates a table UDF that returns tabular results with the specified table column(s) and column type(s). For the details, consult the docs.
runtimeVersion
This property is required.
Changes to this property will trigger replacement.
String
Specifies the Scala runtime version to use. The supported versions of Scala are: 2.12.
schema
This property is required.
Changes to this property will trigger replacement.
String
The schema in which to create the function. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
arguments Changes to this property will trigger replacement. List<Property Map>
List of the arguments for the function. Consult the docs for more details.
comment String
(Default: user-defined function) Specifies a comment for the function.
enableConsoleOutput Boolean
Enable stdout/stderr fast path logging for anonymous stored procs. This is a public parameter (similar to LOGLEVEL). For more information, check CONSOLE_OUTPUT docsENABLE.
externalAccessIntegrations List<String>
The names of external access integrations needed in order for this function’s handler code to access external networks. An external access integration specifies network rules and secrets that specify external locations and credentials (if any) allowed for use by handler code when making requests of an external network, such as an external REST API.
functionDefinition Changes to this property will trigger replacement. String
Defines the handler code executed when the UDF is called. Wrapping $$ signs are added by the provider automatically; do not include them. The function_definition value must be Scala source code. For more information, see Introduction to Scala UDFs. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
imports Changes to this property will trigger replacement. List<Property Map>
The location (stage), path, and name of the file(s) to import, such as a JAR or other kind of file. The JAR file might contain handler dependency libraries. It can contain one or more .class files and zero or more resource files. JNI (Java Native Interface) is not supported. Snowflake prohibits loading libraries that contain native code (as opposed to Java bytecode). A non-JAR file might a file read by handler code. For an example, see Reading a file specified statically in IMPORTS. Consult the docs.
isSecure String
logLevel String
LOG*LEVEL to use when filtering events For more information, check LOG*LEVEL docs.
metricLevel String
METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check METRIC*LEVEL docs.
name String
The name of the function; the identifier does not need to be unique for the schema in which the function is created because UDFs are identified and resolved by the combination of the name and argument types. Check the docs. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
nullInputBehavior Changes to this property will trigger replacement. String
Specifies the behavior of the function when called with null inputs. Valid values are (case-insensitive): CALLED ON NULL INPUT | RETURNS NULL ON NULL INPUT.
packages Changes to this property will trigger replacement. List<String>
The name and version number of Snowflake system packages required as dependencies. The value should be of the form package_name:version_number, where package_name is snowflake_domain:package.
returnResultsBehavior Changes to this property will trigger replacement. String
Specifies the behavior of the function when returning results. Valid values are (case-insensitive): VOLATILE | IMMUTABLE.
secrets List<Property Map>
Assigns the names of secrets to variables so that you can use the variables to reference the secrets when retrieving information from secrets in handler code. Secrets you specify here must be allowed by the external access integration specified as a value of this CREATE FUNCTION command’s EXTERNALACCESSINTEGRATIONS parameter.
targetPath Changes to this property will trigger replacement. Property Map
The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: MyClass.myMethod.
traceLevel String
Trace level value to use when generating/filtering trace events For more information, check TRACE_LEVEL docs.

Outputs

All input properties are implicitly available as output properties. Additionally, the FunctionScala resource produces the following output properties:

FullyQualifiedName string
Fully qualified name of the resource. For more information, see object name resolution.
FunctionLanguage string
Specifies language for the user. Used to detect external changes.
Id string
The provider-assigned unique ID for this managed resource.
Parameters List<FunctionScalaParameter>
Outputs the result of SHOW PARAMETERS IN FUNCTION for the given function.
ShowOutputs List<FunctionScalaShowOutput>
Outputs the result of SHOW FUNCTION for the given function.
FullyQualifiedName string
Fully qualified name of the resource. For more information, see object name resolution.
FunctionLanguage string
Specifies language for the user. Used to detect external changes.
Id string
The provider-assigned unique ID for this managed resource.
Parameters []FunctionScalaParameter
Outputs the result of SHOW PARAMETERS IN FUNCTION for the given function.
ShowOutputs []FunctionScalaShowOutput
Outputs the result of SHOW FUNCTION for the given function.
fullyQualifiedName String
Fully qualified name of the resource. For more information, see object name resolution.
functionLanguage String
Specifies language for the user. Used to detect external changes.
id String
The provider-assigned unique ID for this managed resource.
parameters List<FunctionScalaParameter>
Outputs the result of SHOW PARAMETERS IN FUNCTION for the given function.
showOutputs List<FunctionScalaShowOutput>
Outputs the result of SHOW FUNCTION for the given function.
fullyQualifiedName string
Fully qualified name of the resource. For more information, see object name resolution.
functionLanguage string
Specifies language for the user. Used to detect external changes.
id string
The provider-assigned unique ID for this managed resource.
parameters FunctionScalaParameter[]
Outputs the result of SHOW PARAMETERS IN FUNCTION for the given function.
showOutputs FunctionScalaShowOutput[]
Outputs the result of SHOW FUNCTION for the given function.
fully_qualified_name str
Fully qualified name of the resource. For more information, see object name resolution.
function_language str
Specifies language for the user. Used to detect external changes.
id str
The provider-assigned unique ID for this managed resource.
parameters Sequence[FunctionScalaParameter]
Outputs the result of SHOW PARAMETERS IN FUNCTION for the given function.
show_outputs Sequence[FunctionScalaShowOutput]
Outputs the result of SHOW FUNCTION for the given function.
fullyQualifiedName String
Fully qualified name of the resource. For more information, see object name resolution.
functionLanguage String
Specifies language for the user. Used to detect external changes.
id String
The provider-assigned unique ID for this managed resource.
parameters List<Property Map>
Outputs the result of SHOW PARAMETERS IN FUNCTION for the given function.
showOutputs List<Property Map>
Outputs the result of SHOW FUNCTION for the given function.

Look up Existing FunctionScala Resource

Get an existing FunctionScala resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: FunctionScalaState, opts?: CustomResourceOptions): FunctionScala
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arguments: Optional[Sequence[FunctionScalaArgumentArgs]] = None,
        comment: Optional[str] = None,
        database: Optional[str] = None,
        enable_console_output: Optional[bool] = None,
        external_access_integrations: Optional[Sequence[str]] = None,
        fully_qualified_name: Optional[str] = None,
        function_definition: Optional[str] = None,
        function_language: Optional[str] = None,
        handler: Optional[str] = None,
        imports: Optional[Sequence[FunctionScalaImportArgs]] = None,
        is_secure: Optional[str] = None,
        log_level: Optional[str] = None,
        metric_level: Optional[str] = None,
        name: Optional[str] = None,
        null_input_behavior: Optional[str] = None,
        packages: Optional[Sequence[str]] = None,
        parameters: Optional[Sequence[FunctionScalaParameterArgs]] = None,
        return_results_behavior: Optional[str] = None,
        return_type: Optional[str] = None,
        runtime_version: Optional[str] = None,
        schema: Optional[str] = None,
        secrets: Optional[Sequence[FunctionScalaSecretArgs]] = None,
        show_outputs: Optional[Sequence[FunctionScalaShowOutputArgs]] = None,
        target_path: Optional[FunctionScalaTargetPathArgs] = None,
        trace_level: Optional[str] = None) -> FunctionScala
func GetFunctionScala(ctx *Context, name string, id IDInput, state *FunctionScalaState, opts ...ResourceOption) (*FunctionScala, error)
public static FunctionScala Get(string name, Input<string> id, FunctionScalaState? state, CustomResourceOptions? opts = null)
public static FunctionScala get(String name, Output<String> id, FunctionScalaState state, CustomResourceOptions options)
resources:  _:    type: snowflake:FunctionScala    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Arguments Changes to this property will trigger replacement. List<FunctionScalaArgument>
List of the arguments for the function. Consult the docs for more details.
Comment string
(Default: user-defined function) Specifies a comment for the function.
Database Changes to this property will trigger replacement. string
The database in which to create the function. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
EnableConsoleOutput bool
Enable stdout/stderr fast path logging for anonymous stored procs. This is a public parameter (similar to LOGLEVEL). For more information, check CONSOLE_OUTPUT docsENABLE.
ExternalAccessIntegrations List<string>
The names of external access integrations needed in order for this function’s handler code to access external networks. An external access integration specifies network rules and secrets that specify external locations and credentials (if any) allowed for use by handler code when making requests of an external network, such as an external REST API.
FullyQualifiedName string
Fully qualified name of the resource. For more information, see object name resolution.
FunctionDefinition Changes to this property will trigger replacement. string
Defines the handler code executed when the UDF is called. Wrapping $$ signs are added by the provider automatically; do not include them. The function_definition value must be Scala source code. For more information, see Introduction to Scala UDFs. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
FunctionLanguage string
Specifies language for the user. Used to detect external changes.
Handler Changes to this property will trigger replacement. string
The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: MyClass.myMethod.
Imports Changes to this property will trigger replacement. List<FunctionScalaImport>
The location (stage), path, and name of the file(s) to import, such as a JAR or other kind of file. The JAR file might contain handler dependency libraries. It can contain one or more .class files and zero or more resource files. JNI (Java Native Interface) is not supported. Snowflake prohibits loading libraries that contain native code (as opposed to Java bytecode). A non-JAR file might a file read by handler code. For an example, see Reading a file specified statically in IMPORTS. Consult the docs.
IsSecure string
LogLevel string
LOG*LEVEL to use when filtering events For more information, check LOG*LEVEL docs.
MetricLevel string
METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check METRIC*LEVEL docs.
Name string
The name of the function; the identifier does not need to be unique for the schema in which the function is created because UDFs are identified and resolved by the combination of the name and argument types. Check the docs. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
NullInputBehavior Changes to this property will trigger replacement. string
Specifies the behavior of the function when called with null inputs. Valid values are (case-insensitive): CALLED ON NULL INPUT | RETURNS NULL ON NULL INPUT.
Packages Changes to this property will trigger replacement. List<string>
The name and version number of Snowflake system packages required as dependencies. The value should be of the form package_name:version_number, where package_name is snowflake_domain:package.
Parameters List<FunctionScalaParameter>
Outputs the result of SHOW PARAMETERS IN FUNCTION for the given function.
ReturnResultsBehavior Changes to this property will trigger replacement. string
Specifies the behavior of the function when returning results. Valid values are (case-insensitive): VOLATILE | IMMUTABLE.
ReturnType Changes to this property will trigger replacement. string
Specifies the results returned by the UDF, which determines the UDF type. Use <result_data_type> to create a scalar UDF that returns a single value with the specified data type. Use TABLE (col_name col_data_type, ...) to creates a table UDF that returns tabular results with the specified table column(s) and column type(s). For the details, consult the docs.
RuntimeVersion Changes to this property will trigger replacement. string
Specifies the Scala runtime version to use. The supported versions of Scala are: 2.12.
Schema Changes to this property will trigger replacement. string
The schema in which to create the function. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
Secrets List<FunctionScalaSecret>
Assigns the names of secrets to variables so that you can use the variables to reference the secrets when retrieving information from secrets in handler code. Secrets you specify here must be allowed by the external access integration specified as a value of this CREATE FUNCTION command’s EXTERNALACCESSINTEGRATIONS parameter.
ShowOutputs List<FunctionScalaShowOutput>
Outputs the result of SHOW FUNCTION for the given function.
TargetPath Changes to this property will trigger replacement. FunctionScalaTargetPath
The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: MyClass.myMethod.
TraceLevel string
Trace level value to use when generating/filtering trace events For more information, check TRACE_LEVEL docs.
Arguments Changes to this property will trigger replacement. []FunctionScalaArgumentArgs
List of the arguments for the function. Consult the docs for more details.
Comment string
(Default: user-defined function) Specifies a comment for the function.
Database Changes to this property will trigger replacement. string
The database in which to create the function. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
EnableConsoleOutput bool
Enable stdout/stderr fast path logging for anonymous stored procs. This is a public parameter (similar to LOGLEVEL). For more information, check CONSOLE_OUTPUT docsENABLE.
ExternalAccessIntegrations []string
The names of external access integrations needed in order for this function’s handler code to access external networks. An external access integration specifies network rules and secrets that specify external locations and credentials (if any) allowed for use by handler code when making requests of an external network, such as an external REST API.
FullyQualifiedName string
Fully qualified name of the resource. For more information, see object name resolution.
FunctionDefinition Changes to this property will trigger replacement. string
Defines the handler code executed when the UDF is called. Wrapping $$ signs are added by the provider automatically; do not include them. The function_definition value must be Scala source code. For more information, see Introduction to Scala UDFs. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
FunctionLanguage string
Specifies language for the user. Used to detect external changes.
Handler Changes to this property will trigger replacement. string
The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: MyClass.myMethod.
Imports Changes to this property will trigger replacement. []FunctionScalaImportArgs
The location (stage), path, and name of the file(s) to import, such as a JAR or other kind of file. The JAR file might contain handler dependency libraries. It can contain one or more .class files and zero or more resource files. JNI (Java Native Interface) is not supported. Snowflake prohibits loading libraries that contain native code (as opposed to Java bytecode). A non-JAR file might a file read by handler code. For an example, see Reading a file specified statically in IMPORTS. Consult the docs.
IsSecure string
LogLevel string
LOG*LEVEL to use when filtering events For more information, check LOG*LEVEL docs.
MetricLevel string
METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check METRIC*LEVEL docs.
Name string
The name of the function; the identifier does not need to be unique for the schema in which the function is created because UDFs are identified and resolved by the combination of the name and argument types. Check the docs. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
NullInputBehavior Changes to this property will trigger replacement. string
Specifies the behavior of the function when called with null inputs. Valid values are (case-insensitive): CALLED ON NULL INPUT | RETURNS NULL ON NULL INPUT.
Packages Changes to this property will trigger replacement. []string
The name and version number of Snowflake system packages required as dependencies. The value should be of the form package_name:version_number, where package_name is snowflake_domain:package.
Parameters []FunctionScalaParameterArgs
Outputs the result of SHOW PARAMETERS IN FUNCTION for the given function.
ReturnResultsBehavior Changes to this property will trigger replacement. string
Specifies the behavior of the function when returning results. Valid values are (case-insensitive): VOLATILE | IMMUTABLE.
ReturnType Changes to this property will trigger replacement. string
Specifies the results returned by the UDF, which determines the UDF type. Use <result_data_type> to create a scalar UDF that returns a single value with the specified data type. Use TABLE (col_name col_data_type, ...) to creates a table UDF that returns tabular results with the specified table column(s) and column type(s). For the details, consult the docs.
RuntimeVersion Changes to this property will trigger replacement. string
Specifies the Scala runtime version to use. The supported versions of Scala are: 2.12.
Schema Changes to this property will trigger replacement. string
The schema in which to create the function. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
Secrets []FunctionScalaSecretArgs
Assigns the names of secrets to variables so that you can use the variables to reference the secrets when retrieving information from secrets in handler code. Secrets you specify here must be allowed by the external access integration specified as a value of this CREATE FUNCTION command’s EXTERNALACCESSINTEGRATIONS parameter.
ShowOutputs []FunctionScalaShowOutputArgs
Outputs the result of SHOW FUNCTION for the given function.
TargetPath Changes to this property will trigger replacement. FunctionScalaTargetPathArgs
The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: MyClass.myMethod.
TraceLevel string
Trace level value to use when generating/filtering trace events For more information, check TRACE_LEVEL docs.
arguments Changes to this property will trigger replacement. List<FunctionScalaArgument>
List of the arguments for the function. Consult the docs for more details.
comment String
(Default: user-defined function) Specifies a comment for the function.
database Changes to this property will trigger replacement. String
The database in which to create the function. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
enableConsoleOutput Boolean
Enable stdout/stderr fast path logging for anonymous stored procs. This is a public parameter (similar to LOGLEVEL). For more information, check CONSOLE_OUTPUT docsENABLE.
externalAccessIntegrations List<String>
The names of external access integrations needed in order for this function’s handler code to access external networks. An external access integration specifies network rules and secrets that specify external locations and credentials (if any) allowed for use by handler code when making requests of an external network, such as an external REST API.
fullyQualifiedName String
Fully qualified name of the resource. For more information, see object name resolution.
functionDefinition Changes to this property will trigger replacement. String
Defines the handler code executed when the UDF is called. Wrapping $$ signs are added by the provider automatically; do not include them. The function_definition value must be Scala source code. For more information, see Introduction to Scala UDFs. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
functionLanguage String
Specifies language for the user. Used to detect external changes.
handler Changes to this property will trigger replacement. String
The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: MyClass.myMethod.
imports Changes to this property will trigger replacement. List<FunctionScalaImport>
The location (stage), path, and name of the file(s) to import, such as a JAR or other kind of file. The JAR file might contain handler dependency libraries. It can contain one or more .class files and zero or more resource files. JNI (Java Native Interface) is not supported. Snowflake prohibits loading libraries that contain native code (as opposed to Java bytecode). A non-JAR file might a file read by handler code. For an example, see Reading a file specified statically in IMPORTS. Consult the docs.
isSecure String
logLevel String
LOG*LEVEL to use when filtering events For more information, check LOG*LEVEL docs.
metricLevel String
METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check METRIC*LEVEL docs.
name String
The name of the function; the identifier does not need to be unique for the schema in which the function is created because UDFs are identified and resolved by the combination of the name and argument types. Check the docs. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
nullInputBehavior Changes to this property will trigger replacement. String
Specifies the behavior of the function when called with null inputs. Valid values are (case-insensitive): CALLED ON NULL INPUT | RETURNS NULL ON NULL INPUT.
packages Changes to this property will trigger replacement. List<String>
The name and version number of Snowflake system packages required as dependencies. The value should be of the form package_name:version_number, where package_name is snowflake_domain:package.
parameters List<FunctionScalaParameter>
Outputs the result of SHOW PARAMETERS IN FUNCTION for the given function.
returnResultsBehavior Changes to this property will trigger replacement. String
Specifies the behavior of the function when returning results. Valid values are (case-insensitive): VOLATILE | IMMUTABLE.
returnType Changes to this property will trigger replacement. String
Specifies the results returned by the UDF, which determines the UDF type. Use <result_data_type> to create a scalar UDF that returns a single value with the specified data type. Use TABLE (col_name col_data_type, ...) to creates a table UDF that returns tabular results with the specified table column(s) and column type(s). For the details, consult the docs.
runtimeVersion Changes to this property will trigger replacement. String
Specifies the Scala runtime version to use. The supported versions of Scala are: 2.12.
schema Changes to this property will trigger replacement. String
The schema in which to create the function. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
secrets List<FunctionScalaSecret>
Assigns the names of secrets to variables so that you can use the variables to reference the secrets when retrieving information from secrets in handler code. Secrets you specify here must be allowed by the external access integration specified as a value of this CREATE FUNCTION command’s EXTERNALACCESSINTEGRATIONS parameter.
showOutputs List<FunctionScalaShowOutput>
Outputs the result of SHOW FUNCTION for the given function.
targetPath Changes to this property will trigger replacement. FunctionScalaTargetPath
The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: MyClass.myMethod.
traceLevel String
Trace level value to use when generating/filtering trace events For more information, check TRACE_LEVEL docs.
arguments Changes to this property will trigger replacement. FunctionScalaArgument[]
List of the arguments for the function. Consult the docs for more details.
comment string
(Default: user-defined function) Specifies a comment for the function.
database Changes to this property will trigger replacement. string
The database in which to create the function. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
enableConsoleOutput boolean
Enable stdout/stderr fast path logging for anonymous stored procs. This is a public parameter (similar to LOGLEVEL). For more information, check CONSOLE_OUTPUT docsENABLE.
externalAccessIntegrations string[]
The names of external access integrations needed in order for this function’s handler code to access external networks. An external access integration specifies network rules and secrets that specify external locations and credentials (if any) allowed for use by handler code when making requests of an external network, such as an external REST API.
fullyQualifiedName string
Fully qualified name of the resource. For more information, see object name resolution.
functionDefinition Changes to this property will trigger replacement. string
Defines the handler code executed when the UDF is called. Wrapping $$ signs are added by the provider automatically; do not include them. The function_definition value must be Scala source code. For more information, see Introduction to Scala UDFs. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
functionLanguage string
Specifies language for the user. Used to detect external changes.
handler Changes to this property will trigger replacement. string
The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: MyClass.myMethod.
imports Changes to this property will trigger replacement. FunctionScalaImport[]
The location (stage), path, and name of the file(s) to import, such as a JAR or other kind of file. The JAR file might contain handler dependency libraries. It can contain one or more .class files and zero or more resource files. JNI (Java Native Interface) is not supported. Snowflake prohibits loading libraries that contain native code (as opposed to Java bytecode). A non-JAR file might a file read by handler code. For an example, see Reading a file specified statically in IMPORTS. Consult the docs.
isSecure string
logLevel string
LOG*LEVEL to use when filtering events For more information, check LOG*LEVEL docs.
metricLevel string
METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check METRIC*LEVEL docs.
name string
The name of the function; the identifier does not need to be unique for the schema in which the function is created because UDFs are identified and resolved by the combination of the name and argument types. Check the docs. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
nullInputBehavior Changes to this property will trigger replacement. string
Specifies the behavior of the function when called with null inputs. Valid values are (case-insensitive): CALLED ON NULL INPUT | RETURNS NULL ON NULL INPUT.
packages Changes to this property will trigger replacement. string[]
The name and version number of Snowflake system packages required as dependencies. The value should be of the form package_name:version_number, where package_name is snowflake_domain:package.
parameters FunctionScalaParameter[]
Outputs the result of SHOW PARAMETERS IN FUNCTION for the given function.
returnResultsBehavior Changes to this property will trigger replacement. string
Specifies the behavior of the function when returning results. Valid values are (case-insensitive): VOLATILE | IMMUTABLE.
returnType Changes to this property will trigger replacement. string
Specifies the results returned by the UDF, which determines the UDF type. Use <result_data_type> to create a scalar UDF that returns a single value with the specified data type. Use TABLE (col_name col_data_type, ...) to creates a table UDF that returns tabular results with the specified table column(s) and column type(s). For the details, consult the docs.
runtimeVersion Changes to this property will trigger replacement. string
Specifies the Scala runtime version to use. The supported versions of Scala are: 2.12.
schema Changes to this property will trigger replacement. string
The schema in which to create the function. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
secrets FunctionScalaSecret[]
Assigns the names of secrets to variables so that you can use the variables to reference the secrets when retrieving information from secrets in handler code. Secrets you specify here must be allowed by the external access integration specified as a value of this CREATE FUNCTION command’s EXTERNALACCESSINTEGRATIONS parameter.
showOutputs FunctionScalaShowOutput[]
Outputs the result of SHOW FUNCTION for the given function.
targetPath Changes to this property will trigger replacement. FunctionScalaTargetPath
The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: MyClass.myMethod.
traceLevel string
Trace level value to use when generating/filtering trace events For more information, check TRACE_LEVEL docs.
arguments Changes to this property will trigger replacement. Sequence[FunctionScalaArgumentArgs]
List of the arguments for the function. Consult the docs for more details.
comment str
(Default: user-defined function) Specifies a comment for the function.
database Changes to this property will trigger replacement. str
The database in which to create the function. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
enable_console_output bool
Enable stdout/stderr fast path logging for anonymous stored procs. This is a public parameter (similar to LOGLEVEL). For more information, check CONSOLE_OUTPUT docsENABLE.
external_access_integrations Sequence[str]
The names of external access integrations needed in order for this function’s handler code to access external networks. An external access integration specifies network rules and secrets that specify external locations and credentials (if any) allowed for use by handler code when making requests of an external network, such as an external REST API.
fully_qualified_name str
Fully qualified name of the resource. For more information, see object name resolution.
function_definition Changes to this property will trigger replacement. str
Defines the handler code executed when the UDF is called. Wrapping $$ signs are added by the provider automatically; do not include them. The function_definition value must be Scala source code. For more information, see Introduction to Scala UDFs. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
function_language str
Specifies language for the user. Used to detect external changes.
handler Changes to this property will trigger replacement. str
The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: MyClass.myMethod.
imports Changes to this property will trigger replacement. Sequence[FunctionScalaImportArgs]
The location (stage), path, and name of the file(s) to import, such as a JAR or other kind of file. The JAR file might contain handler dependency libraries. It can contain one or more .class files and zero or more resource files. JNI (Java Native Interface) is not supported. Snowflake prohibits loading libraries that contain native code (as opposed to Java bytecode). A non-JAR file might a file read by handler code. For an example, see Reading a file specified statically in IMPORTS. Consult the docs.
is_secure str
log_level str
LOG*LEVEL to use when filtering events For more information, check LOG*LEVEL docs.
metric_level str
METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check METRIC*LEVEL docs.
name str
The name of the function; the identifier does not need to be unique for the schema in which the function is created because UDFs are identified and resolved by the combination of the name and argument types. Check the docs. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
null_input_behavior Changes to this property will trigger replacement. str
Specifies the behavior of the function when called with null inputs. Valid values are (case-insensitive): CALLED ON NULL INPUT | RETURNS NULL ON NULL INPUT.
packages Changes to this property will trigger replacement. Sequence[str]
The name and version number of Snowflake system packages required as dependencies. The value should be of the form package_name:version_number, where package_name is snowflake_domain:package.
parameters Sequence[FunctionScalaParameterArgs]
Outputs the result of SHOW PARAMETERS IN FUNCTION for the given function.
return_results_behavior Changes to this property will trigger replacement. str
Specifies the behavior of the function when returning results. Valid values are (case-insensitive): VOLATILE | IMMUTABLE.
return_type Changes to this property will trigger replacement. str
Specifies the results returned by the UDF, which determines the UDF type. Use <result_data_type> to create a scalar UDF that returns a single value with the specified data type. Use TABLE (col_name col_data_type, ...) to creates a table UDF that returns tabular results with the specified table column(s) and column type(s). For the details, consult the docs.
runtime_version Changes to this property will trigger replacement. str
Specifies the Scala runtime version to use. The supported versions of Scala are: 2.12.
schema Changes to this property will trigger replacement. str
The schema in which to create the function. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
secrets Sequence[FunctionScalaSecretArgs]
Assigns the names of secrets to variables so that you can use the variables to reference the secrets when retrieving information from secrets in handler code. Secrets you specify here must be allowed by the external access integration specified as a value of this CREATE FUNCTION command’s EXTERNALACCESSINTEGRATIONS parameter.
show_outputs Sequence[FunctionScalaShowOutputArgs]
Outputs the result of SHOW FUNCTION for the given function.
target_path Changes to this property will trigger replacement. FunctionScalaTargetPathArgs
The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: MyClass.myMethod.
trace_level str
Trace level value to use when generating/filtering trace events For more information, check TRACE_LEVEL docs.
arguments Changes to this property will trigger replacement. List<Property Map>
List of the arguments for the function. Consult the docs for more details.
comment String
(Default: user-defined function) Specifies a comment for the function.
database Changes to this property will trigger replacement. String
The database in which to create the function. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
enableConsoleOutput Boolean
Enable stdout/stderr fast path logging for anonymous stored procs. This is a public parameter (similar to LOGLEVEL). For more information, check CONSOLE_OUTPUT docsENABLE.
externalAccessIntegrations List<String>
The names of external access integrations needed in order for this function’s handler code to access external networks. An external access integration specifies network rules and secrets that specify external locations and credentials (if any) allowed for use by handler code when making requests of an external network, such as an external REST API.
fullyQualifiedName String
Fully qualified name of the resource. For more information, see object name resolution.
functionDefinition Changes to this property will trigger replacement. String
Defines the handler code executed when the UDF is called. Wrapping $$ signs are added by the provider automatically; do not include them. The function_definition value must be Scala source code. For more information, see Introduction to Scala UDFs. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
functionLanguage String
Specifies language for the user. Used to detect external changes.
handler Changes to this property will trigger replacement. String
The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: MyClass.myMethod.
imports Changes to this property will trigger replacement. List<Property Map>
The location (stage), path, and name of the file(s) to import, such as a JAR or other kind of file. The JAR file might contain handler dependency libraries. It can contain one or more .class files and zero or more resource files. JNI (Java Native Interface) is not supported. Snowflake prohibits loading libraries that contain native code (as opposed to Java bytecode). A non-JAR file might a file read by handler code. For an example, see Reading a file specified statically in IMPORTS. Consult the docs.
isSecure String
logLevel String
LOG*LEVEL to use when filtering events For more information, check LOG*LEVEL docs.
metricLevel String
METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check METRIC*LEVEL docs.
name String
The name of the function; the identifier does not need to be unique for the schema in which the function is created because UDFs are identified and resolved by the combination of the name and argument types. Check the docs. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
nullInputBehavior Changes to this property will trigger replacement. String
Specifies the behavior of the function when called with null inputs. Valid values are (case-insensitive): CALLED ON NULL INPUT | RETURNS NULL ON NULL INPUT.
packages Changes to this property will trigger replacement. List<String>
The name and version number of Snowflake system packages required as dependencies. The value should be of the form package_name:version_number, where package_name is snowflake_domain:package.
parameters List<Property Map>
Outputs the result of SHOW PARAMETERS IN FUNCTION for the given function.
returnResultsBehavior Changes to this property will trigger replacement. String
Specifies the behavior of the function when returning results. Valid values are (case-insensitive): VOLATILE | IMMUTABLE.
returnType Changes to this property will trigger replacement. String
Specifies the results returned by the UDF, which determines the UDF type. Use <result_data_type> to create a scalar UDF that returns a single value with the specified data type. Use TABLE (col_name col_data_type, ...) to creates a table UDF that returns tabular results with the specified table column(s) and column type(s). For the details, consult the docs.
runtimeVersion Changes to this property will trigger replacement. String
Specifies the Scala runtime version to use. The supported versions of Scala are: 2.12.
schema Changes to this property will trigger replacement. String
The schema in which to create the function. Due to technical limitations (read more here), avoid using the following characters: |, ., ".
secrets List<Property Map>
Assigns the names of secrets to variables so that you can use the variables to reference the secrets when retrieving information from secrets in handler code. Secrets you specify here must be allowed by the external access integration specified as a value of this CREATE FUNCTION command’s EXTERNALACCESSINTEGRATIONS parameter.
showOutputs List<Property Map>
Outputs the result of SHOW FUNCTION for the given function.
targetPath Changes to this property will trigger replacement. Property Map
The name of the handler method or class. If the handler is for a scalar UDF, returning a non-tabular value, the HANDLER value should be a method name, as in the following form: MyClass.myMethod.
traceLevel String
Trace level value to use when generating/filtering trace events For more information, check TRACE_LEVEL docs.

Supporting Types

FunctionScalaArgument
, FunctionScalaArgumentArgs

ArgDataType This property is required. string
The argument type.
ArgName This property is required. string
The argument name. The provider wraps it in double quotes by default, so be aware of that while referencing the argument in the function definition.
ArgDefaultValue string
ArgDataType This property is required. string
The argument type.
ArgName This property is required. string
The argument name. The provider wraps it in double quotes by default, so be aware of that while referencing the argument in the function definition.
ArgDefaultValue string
argDataType This property is required. String
The argument type.
argName This property is required. String
The argument name. The provider wraps it in double quotes by default, so be aware of that while referencing the argument in the function definition.
argDefaultValue String
argDataType This property is required. string
The argument type.
argName This property is required. string
The argument name. The provider wraps it in double quotes by default, so be aware of that while referencing the argument in the function definition.
argDefaultValue string
arg_data_type This property is required. str
The argument type.
arg_name This property is required. str
The argument name. The provider wraps it in double quotes by default, so be aware of that while referencing the argument in the function definition.
arg_default_value str
argDataType This property is required. String
The argument type.
argName This property is required. String
The argument name. The provider wraps it in double quotes by default, so be aware of that while referencing the argument in the function definition.
argDefaultValue String

FunctionScalaImport
, FunctionScalaImportArgs

PathOnStage This property is required. string
Path for import on stage, without the leading /.
StageLocation This property is required. string
PathOnStage This property is required. string
Path for import on stage, without the leading /.
StageLocation This property is required. string
pathOnStage This property is required. String
Path for import on stage, without the leading /.
stageLocation This property is required. String
pathOnStage This property is required. string
Path for import on stage, without the leading /.
stageLocation This property is required. string
path_on_stage This property is required. str
Path for import on stage, without the leading /.
stage_location This property is required. str
pathOnStage This property is required. String
Path for import on stage, without the leading /.
stageLocation This property is required. String

FunctionScalaParameter
, FunctionScalaParameterArgs

FunctionScalaParameterEnableConsoleOutput
, FunctionScalaParameterEnableConsoleOutputArgs

Default string
Description string
Key string
Level string
Value string
Default string
Description string
Key string
Level string
Value string
default_ String
description String
key String
level String
value String
default string
description string
key string
level string
value string
default String
description String
key String
level String
value String

FunctionScalaParameterLogLevel
, FunctionScalaParameterLogLevelArgs

Default string
Description string
Key string
Level string
Value string
Default string
Description string
Key string
Level string
Value string
default_ String
description String
key String
level String
value String
default string
description string
key string
level string
value string
default String
description String
key String
level String
value String

FunctionScalaParameterMetricLevel
, FunctionScalaParameterMetricLevelArgs

Default string
Description string
Key string
Level string
Value string
Default string
Description string
Key string
Level string
Value string
default_ String
description String
key String
level String
value String
default string
description string
key string
level string
value string
default String
description String
key String
level String
value String

FunctionScalaParameterTraceLevel
, FunctionScalaParameterTraceLevelArgs

Default string
Description string
Key string
Level string
Value string
Default string
Description string
Key string
Level string
Value string
default_ String
description String
key String
level String
value String
default string
description string
key string
level string
value string
default String
description String
key String
level String
value String

FunctionScalaSecret
, FunctionScalaSecretArgs

SecretId This property is required. string
Fully qualified name of the allowed secret. You will receive an error if you specify a SECRETS value whose secret isn’t also included in an integration specified by the EXTERNALACCESSINTEGRATIONS parameter.
SecretVariableName This property is required. string
The variable that will be used in handler code when retrieving information from the secret.
SecretId This property is required. string
Fully qualified name of the allowed secret. You will receive an error if you specify a SECRETS value whose secret isn’t also included in an integration specified by the EXTERNALACCESSINTEGRATIONS parameter.
SecretVariableName This property is required. string
The variable that will be used in handler code when retrieving information from the secret.
secretId This property is required. String
Fully qualified name of the allowed secret. You will receive an error if you specify a SECRETS value whose secret isn’t also included in an integration specified by the EXTERNALACCESSINTEGRATIONS parameter.
secretVariableName This property is required. String
The variable that will be used in handler code when retrieving information from the secret.
secretId This property is required. string
Fully qualified name of the allowed secret. You will receive an error if you specify a SECRETS value whose secret isn’t also included in an integration specified by the EXTERNALACCESSINTEGRATIONS parameter.
secretVariableName This property is required. string
The variable that will be used in handler code when retrieving information from the secret.
secret_id This property is required. str
Fully qualified name of the allowed secret. You will receive an error if you specify a SECRETS value whose secret isn’t also included in an integration specified by the EXTERNALACCESSINTEGRATIONS parameter.
secret_variable_name This property is required. str
The variable that will be used in handler code when retrieving information from the secret.
secretId This property is required. String
Fully qualified name of the allowed secret. You will receive an error if you specify a SECRETS value whose secret isn’t also included in an integration specified by the EXTERNALACCESSINTEGRATIONS parameter.
secretVariableName This property is required. String
The variable that will be used in handler code when retrieving information from the secret.

FunctionScalaShowOutput
, FunctionScalaShowOutputArgs

FunctionScalaTargetPath
, FunctionScalaTargetPathArgs

PathOnStage This property is required. string
Path for import on stage, without the leading /.
StageLocation This property is required. string
PathOnStage This property is required. string
Path for import on stage, without the leading /.
StageLocation This property is required. string
pathOnStage This property is required. String
Path for import on stage, without the leading /.
stageLocation This property is required. String
pathOnStage This property is required. string
Path for import on stage, without the leading /.
stageLocation This property is required. string
path_on_stage This property is required. str
Path for import on stage, without the leading /.
stage_location This property is required. str
pathOnStage This property is required. String
Path for import on stage, without the leading /.
stageLocation This property is required. String

Package Details

Repository
Snowflake pulumi/pulumi-snowflake
License
Apache-2.0
Notes
This Pulumi package is based on the snowflake Terraform Provider.