@pulumi/snowflake 0.63.0-alpha.1734439451 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/account.d.ts +40 -86
- package/account.js +12 -5
- package/account.js.map +1 -1
- package/accountParameter.d.ts +7 -7
- package/accountParameter.js +1 -1
- package/accountRole.d.ts +4 -4
- package/accountRole.js +1 -1
- package/apiAuthenticationIntegrationWithAuthorizationCodeGrant.d.ts +4 -13
- package/apiAuthenticationIntegrationWithAuthorizationCodeGrant.js +1 -1
- package/apiAuthenticationIntegrationWithAuthorizationCodeGrant.js.map +1 -1
- package/apiAuthenticationIntegrationWithClientCredentials.d.ts +4 -13
- package/apiAuthenticationIntegrationWithClientCredentials.js +1 -1
- package/apiAuthenticationIntegrationWithClientCredentials.js.map +1 -1
- package/apiAuthenticationIntegrationWithJwtBearer.d.ts +4 -13
- package/apiAuthenticationIntegrationWithJwtBearer.js +1 -1
- package/apiAuthenticationIntegrationWithJwtBearer.js.map +1 -1
- package/authenticationPolicy.d.ts +9 -9
- package/config/vars.d.ts +6 -74
- package/config/vars.js +6 -83
- package/config/vars.js.map +1 -1
- package/database.d.ts +4 -4
- package/database.js +1 -1
- package/databaseRole.d.ts +6 -6
- package/{unsafeExecute.d.ts → execute.d.ts} +21 -14
- package/{unsafeExecute.js → execute.js} +17 -10
- package/execute.js.map +1 -0
- package/externalOauthIntegration.d.ts +12 -12
- package/externalOauthIntegration.js +1 -1
- package/externalVolume.d.ts +5 -3
- package/externalVolume.js +2 -0
- package/externalVolume.js.map +1 -1
- package/functionJava.d.ts +324 -0
- package/{function.js → functionJava.js} +40 -22
- package/functionJava.js.map +1 -0
- package/functionJavascript.d.ts +240 -0
- package/functionJavascript.js +106 -0
- package/functionJavascript.js.map +1 -0
- package/functionPython.d.ts +324 -0
- package/functionPython.js +123 -0
- package/functionPython.js.map +1 -0
- package/functionScala.d.ts +324 -0
- package/functionScala.js +123 -0
- package/functionScala.js.map +1 -0
- package/functionSql.d.ts +228 -0
- package/functionSql.js +104 -0
- package/functionSql.js.map +1 -0
- package/getAccountRoles.d.ts +57 -0
- package/getAccountRoles.js +32 -0
- package/getAccountRoles.js.map +1 -0
- package/getAccounts.d.ts +25 -7
- package/getAccounts.js +10 -2
- package/getAccounts.js.map +1 -1
- package/getAlerts.d.ts +4 -0
- package/getAlerts.js +4 -0
- package/getAlerts.js.map +1 -1
- package/getConnections.d.ts +2 -48
- package/getConnections.js +2 -48
- package/getConnections.js.map +1 -1
- package/getCortexSearchServices.d.ts +4 -0
- package/getCortexSearchServices.js +4 -0
- package/getCortexSearchServices.js.map +1 -1
- package/getCurrentAccount.d.ts +4 -0
- package/getCurrentAccount.js +4 -0
- package/getCurrentAccount.js.map +1 -1
- package/getCurrentRole.d.ts +6 -0
- package/getCurrentRole.js +6 -0
- package/getCurrentRole.js.map +1 -1
- package/getDatabase.d.ts +4 -0
- package/getDatabase.js +4 -0
- package/getDatabase.js.map +1 -1
- package/getDatabaseRole.d.ts +4 -0
- package/getDatabaseRole.js +4 -0
- package/getDatabaseRole.js.map +1 -1
- package/getDatabaseRoles.d.ts +2 -6
- package/getDatabaseRoles.js +2 -6
- package/getDatabaseRoles.js.map +1 -1
- package/getDatabases.d.ts +2 -6
- package/getDatabases.js +2 -6
- package/getDatabases.js.map +1 -1
- package/getDynamicTables.d.ts +6 -0
- package/getDynamicTables.js +6 -0
- package/getDynamicTables.js.map +1 -1
- package/getExternalFunctions.d.ts +4 -0
- package/getExternalFunctions.js +4 -0
- package/getExternalFunctions.js.map +1 -1
- package/getExternalTables.d.ts +4 -0
- package/getExternalTables.js +4 -0
- package/getExternalTables.js.map +1 -1
- package/getFailoverGroups.d.ts +6 -0
- package/getFailoverGroups.js +6 -0
- package/getFailoverGroups.js.map +1 -1
- package/getFileFormats.d.ts +4 -0
- package/getFileFormats.js +4 -0
- package/getFileFormats.js.map +1 -1
- package/getFunctions.d.ts +4 -0
- package/getFunctions.js +4 -0
- package/getFunctions.js.map +1 -1
- package/getGrants.d.ts +0 -4
- package/getGrants.js +0 -4
- package/getGrants.js.map +1 -1
- package/getMaskingPolicies.d.ts +2 -6
- package/getMaskingPolicies.js +2 -6
- package/getMaskingPolicies.js.map +1 -1
- package/getMaterializedViews.d.ts +4 -0
- package/getMaterializedViews.js +4 -0
- package/getMaterializedViews.js.map +1 -1
- package/getNetworkPolicies.d.ts +2 -6
- package/getNetworkPolicies.js +2 -6
- package/getNetworkPolicies.js.map +1 -1
- package/getParameters.d.ts +4 -0
- package/getParameters.js +4 -0
- package/getParameters.js.map +1 -1
- package/getPipes.d.ts +4 -0
- package/getPipes.js +4 -0
- package/getPipes.js.map +1 -1
- package/getProcedures.d.ts +4 -0
- package/getProcedures.js +4 -0
- package/getProcedures.js.map +1 -1
- package/getResourceMonitors.d.ts +2 -6
- package/getResourceMonitors.js +2 -6
- package/getResourceMonitors.js.map +1 -1
- package/getRowAccessPolicies.d.ts +2 -6
- package/getRowAccessPolicies.js +2 -6
- package/getRowAccessPolicies.js.map +1 -1
- package/getSchemas.d.ts +6 -4
- package/getSchemas.js +6 -4
- package/getSchemas.js.map +1 -1
- package/getSecrets.d.ts +2 -6
- package/getSecrets.js +2 -6
- package/getSecrets.js.map +1 -1
- package/getSecurityIntegrations.d.ts +2 -6
- package/getSecurityIntegrations.js +2 -6
- package/getSecurityIntegrations.js.map +1 -1
- package/getSequences.d.ts +4 -0
- package/getSequences.js +4 -0
- package/getSequences.js.map +1 -1
- package/getShares.d.ts +4 -0
- package/getShares.js +4 -0
- package/getShares.js.map +1 -1
- package/getStages.d.ts +4 -0
- package/getStages.js +4 -0
- package/getStages.js.map +1 -1
- package/getStorageIntegrations.d.ts +4 -0
- package/getStorageIntegrations.js +4 -0
- package/getStorageIntegrations.js.map +1 -1
- package/getStreamlits.d.ts +2 -6
- package/getStreamlits.js +2 -6
- package/getStreamlits.js.map +1 -1
- package/getStreams.d.ts +2 -6
- package/getStreams.js +2 -6
- package/getStreams.js.map +1 -1
- package/getSystemGenerateScimAccessToken.d.ts +4 -0
- package/getSystemGenerateScimAccessToken.js +4 -0
- package/getSystemGenerateScimAccessToken.js.map +1 -1
- package/getSystemGetPrivateLinkConfig.d.ts +4 -0
- package/getSystemGetPrivateLinkConfig.js +4 -0
- package/getSystemGetPrivateLinkConfig.js.map +1 -1
- package/getSystemGetSnowflakePlatformInfo.d.ts +6 -0
- package/getSystemGetSnowflakePlatformInfo.js +6 -0
- package/getSystemGetSnowflakePlatformInfo.js.map +1 -1
- package/getTables.d.ts +4 -0
- package/getTables.js +4 -0
- package/getTables.js.map +1 -1
- package/getTags.d.ts +2 -6
- package/getTags.js +2 -6
- package/getTags.js.map +1 -1
- package/getTasks.d.ts +0 -4
- package/getTasks.js +0 -4
- package/getTasks.js.map +1 -1
- package/getUsers.d.ts +2 -6
- package/getUsers.js +2 -6
- package/getUsers.js.map +1 -1
- package/getViews.d.ts +2 -6
- package/getViews.js +2 -6
- package/getViews.js.map +1 -1
- package/getWarehouses.d.ts +2 -6
- package/getWarehouses.js +2 -6
- package/getWarehouses.js.map +1 -1
- package/grantAccountRole.d.ts +9 -9
- package/grantApplicationRole.d.ts +3 -3
- package/grantDatabaseRole.d.ts +12 -12
- package/grantOwnership.d.ts +6 -6
- package/grantPrivilegesToAccountRole.d.ts +6 -6
- package/grantPrivilegesToDatabaseRole.d.ts +6 -6
- package/grantPrivilegesToShare.d.ts +18 -18
- package/index.d.ts +36 -36
- package/index.js +62 -60
- package/index.js.map +1 -1
- package/legacyServiceUser.d.ts +9 -9
- package/maskingPolicy.d.ts +9 -9
- package/networkPolicy.d.ts +10 -10
- package/networkPolicy.js +1 -1
- package/oauthIntegrationForCustomClients.d.ts +23 -15
- package/oauthIntegrationForCustomClients.js +3 -4
- package/oauthIntegrationForCustomClients.js.map +1 -1
- package/oauthIntegrationForPartnerApplications.d.ts +16 -8
- package/oauthIntegrationForPartnerApplications.js +2 -3
- package/oauthIntegrationForPartnerApplications.js.map +1 -1
- package/package.json +2 -2
- package/passwordPolicy.d.ts +7 -0
- package/passwordPolicy.js +7 -0
- package/passwordPolicy.js.map +1 -1
- package/primaryConnection.d.ts +7 -7
- package/primaryConnection.js +1 -1
- package/procedureJava.d.ts +345 -0
- package/procedureJava.js +128 -0
- package/procedureJava.js.map +1 -0
- package/procedureJavascript.d.ts +249 -0
- package/procedureJavascript.js +106 -0
- package/procedureJavascript.js.map +1 -0
- package/procedurePython.d.ts +333 -0
- package/procedurePython.js +126 -0
- package/procedurePython.js.map +1 -0
- package/procedureScala.d.ts +345 -0
- package/procedureScala.js +128 -0
- package/procedureScala.js.map +1 -0
- package/procedureSql.d.ts +249 -0
- package/{procedure.js → procedureSql.js} +36 -32
- package/procedureSql.js.map +1 -0
- package/provider.d.ts +11 -182
- package/provider.js +10 -21
- package/provider.js.map +1 -1
- package/resourceMonitor.d.ts +7 -9
- package/resourceMonitor.js +1 -3
- package/resourceMonitor.js.map +1 -1
- package/rowAccessPolicy.d.ts +9 -9
- package/saml2Integration.d.ts +4 -4
- package/saml2Integration.js +1 -1
- package/schema.d.ts +6 -8
- package/schema.js +0 -2
- package/schema.js.map +1 -1
- package/scimIntegration.d.ts +7 -7
- package/scimIntegration.js +1 -1
- package/secondaryConnection.d.ts +7 -7
- package/secondaryConnection.js +1 -1
- package/secondaryDatabase.d.ts +7 -7
- package/secondaryDatabase.js +1 -1
- package/secretWithAuthorizationCodeGrant.d.ts +12 -12
- package/secretWithBasicAuthentication.d.ts +9 -9
- package/secretWithClientCredentials.d.ts +12 -12
- package/secretWithGenericString.d.ts +9 -9
- package/serviceUser.d.ts +9 -9
- package/sharedDatabase.d.ts +7 -7
- package/sharedDatabase.js +1 -1
- package/streamOnDirectoryTable.d.ts +12 -21
- package/streamOnDirectoryTable.js.map +1 -1
- package/streamOnExternalTable.d.ts +12 -21
- package/streamOnExternalTable.js.map +1 -1
- package/streamOnTable.d.ts +12 -21
- package/streamOnTable.js.map +1 -1
- package/streamOnView.d.ts +12 -21
- package/streamOnView.js.map +1 -1
- package/streamlit.d.ts +18 -20
- package/streamlit.js +0 -2
- package/streamlit.js.map +1 -1
- package/tag.d.ts +12 -12
- package/tagAssociation.d.ts +11 -31
- package/tagAssociation.js +2 -4
- package/tagAssociation.js.map +1 -1
- package/task.d.ts +25 -27
- package/task.js +1 -3
- package/task.js.map +1 -1
- package/types/input.d.ts +828 -47
- package/types/output.d.ts +846 -94
- package/user.d.ts +9 -9
- package/view.d.ts +12 -21
- package/view.js.map +1 -1
- package/warehouse.d.ts +7 -7
- package/warehouse.js +1 -1
- package/databaseOld.d.ts +0 -147
- package/databaseOld.js +0 -70
- package/databaseOld.js.map +0 -1
- package/function.d.ts +0 -247
- package/function.js.map +0 -1
- package/getRole.d.ts +0 -66
- package/getRole.js +0 -50
- package/getRole.js.map +0 -1
- package/getRoles.d.ts +0 -61
- package/getRoles.js +0 -36
- package/getRoles.js.map +0 -1
- package/oauthIntegration.d.ts +0 -171
- package/oauthIntegration.js +0 -79
- package/oauthIntegration.js.map +0 -1
- package/procedure.d.ts +0 -253
- package/procedure.js.map +0 -1
- package/role.d.ts +0 -76
- package/role.js +0 -62
- package/role.js.map +0 -1
- package/samlIntegration.d.ts +0 -243
- package/samlIntegration.js +0 -104
- package/samlIntegration.js.map +0 -1
- package/sessionParameter.d.ts +0 -91
- package/sessionParameter.js +0 -68
- package/sessionParameter.js.map +0 -1
- package/stream.d.ts +0 -181
- package/stream.js +0 -86
- package/stream.js.map +0 -1
- package/tagMaskingPolicyAssociation.d.ts +0 -69
- package/tagMaskingPolicyAssociation.js +0 -66
- package/tagMaskingPolicyAssociation.js.map +0 -1
- package/unsafeExecute.js.map +0 -1
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* ## Import
|
|
6
|
+
*
|
|
7
|
+
* ```sh
|
|
8
|
+
* $ pulumi import snowflake:index/procedurePython:ProcedurePython example '"<database_name>"."<schema_name>"."<function_name>"(varchar, varchar, varchar)'
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* 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).
|
|
12
|
+
*
|
|
13
|
+
* 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.
|
|
14
|
+
*/
|
|
15
|
+
export declare class ProcedurePython extends pulumi.CustomResource {
|
|
16
|
+
/**
|
|
17
|
+
* Get an existing ProcedurePython resource's state with the given name, ID, and optional extra
|
|
18
|
+
* properties used to qualify the lookup.
|
|
19
|
+
*
|
|
20
|
+
* @param name The _unique_ name of the resulting resource.
|
|
21
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
22
|
+
* @param state Any extra arguments used during the lookup.
|
|
23
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
24
|
+
*/
|
|
25
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProcedurePythonState, opts?: pulumi.CustomResourceOptions): ProcedurePython;
|
|
26
|
+
/**
|
|
27
|
+
* Returns true if the given object is an instance of ProcedurePython. This is designed to work even
|
|
28
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
29
|
+
*/
|
|
30
|
+
static isInstance(obj: any): obj is ProcedurePython;
|
|
31
|
+
/**
|
|
32
|
+
* List of the arguments for the procedure. Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-procedure#all-languages) for more details.
|
|
33
|
+
*/
|
|
34
|
+
readonly arguments: pulumi.Output<outputs.ProcedurePythonArgument[] | undefined>;
|
|
35
|
+
/**
|
|
36
|
+
* Specifies a comment for the procedure.
|
|
37
|
+
*/
|
|
38
|
+
readonly comment: pulumi.Output<string | undefined>;
|
|
39
|
+
/**
|
|
40
|
+
* The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
41
|
+
*/
|
|
42
|
+
readonly database: pulumi.Output<string>;
|
|
43
|
+
/**
|
|
44
|
+
* Enable stdout/stderr fast path logging for anonyous stored procs. This is a public parameter (similar to LOG*LEVEL). For more information, check [ENABLE*CONSOLE_OUTPUT docs](https://docs.snowflake.com/en/sql-reference/parameters#enable-console-output).
|
|
45
|
+
*/
|
|
46
|
+
readonly enableConsoleOutput: pulumi.Output<boolean>;
|
|
47
|
+
/**
|
|
48
|
+
* Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
|
|
49
|
+
*/
|
|
50
|
+
readonly executeAs: pulumi.Output<string | undefined>;
|
|
51
|
+
/**
|
|
52
|
+
* The names of [external access integrations](https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration) needed in order for this procedure’s handler code to access external networks. An external access integration specifies [network rules](https://docs.snowflake.com/en/sql-reference/sql/create-network-rule) and [secrets](https://docs.snowflake.com/en/sql-reference/sql/create-secret) 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.
|
|
53
|
+
*/
|
|
54
|
+
readonly externalAccessIntegrations: pulumi.Output<string[] | undefined>;
|
|
55
|
+
/**
|
|
56
|
+
* Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
57
|
+
*/
|
|
58
|
+
readonly fullyQualifiedName: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* Use the name of the stored procedure’s function or method. This can differ depending on whether the code is in-line or referenced at a stage. When the code is in-line, you can specify just the function name. When the code is imported from a stage, specify the fully-qualified handler function name as `<module_name>.<function_name>`.
|
|
61
|
+
*/
|
|
62
|
+
readonly handler: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* The location (stage), path, and name of the file(s) to import. You must set the IMPORTS clause to include any files that your stored procedure depends on. If you are writing an in-line stored procedure, you can omit this clause, unless your code depends on classes defined outside the stored procedure or resource files. If your stored procedure’s code will be on a stage, you must also include a path to the module file your code is in. The IMPORTS definition cannot reference variables from arguments that are passed into the stored procedure. Each file in the IMPORTS clause must have a unique name, even if the files are in different subdirectories or different stages.
|
|
65
|
+
*/
|
|
66
|
+
readonly imports: pulumi.Output<outputs.ProcedurePythonImport[] | undefined>;
|
|
67
|
+
/**
|
|
68
|
+
* Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
69
|
+
*/
|
|
70
|
+
readonly isSecure: pulumi.Output<string | undefined>;
|
|
71
|
+
/**
|
|
72
|
+
* LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
73
|
+
*/
|
|
74
|
+
readonly logLevel: pulumi.Output<string>;
|
|
75
|
+
/**
|
|
76
|
+
* METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check [METRIC*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#metric-level).
|
|
77
|
+
*/
|
|
78
|
+
readonly metricLevel: pulumi.Output<string>;
|
|
79
|
+
/**
|
|
80
|
+
* The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
81
|
+
*/
|
|
82
|
+
readonly name: pulumi.Output<string>;
|
|
83
|
+
/**
|
|
84
|
+
* Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
85
|
+
*/
|
|
86
|
+
readonly nullInputBehavior: pulumi.Output<string | undefined>;
|
|
87
|
+
/**
|
|
88
|
+
* List of the names of packages deployed in Snowflake that should be included in the handler code’s execution environment. The Snowpark package is required for stored procedures, but is specified in the `snowparkPackage` attribute. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
89
|
+
*/
|
|
90
|
+
readonly packages: pulumi.Output<string[] | undefined>;
|
|
91
|
+
/**
|
|
92
|
+
* Outputs the result of `SHOW PARAMETERS IN PROCEDURE` for the given procedure.
|
|
93
|
+
*/
|
|
94
|
+
readonly parameters: pulumi.Output<outputs.ProcedurePythonParameter[]>;
|
|
95
|
+
/**
|
|
96
|
+
* Defines the code executed by the stored procedure. The definition can consist of any valid code. Wrapping `$$` signs are added by the provider automatically; do not include them. The `procedureDefinition` value must be Python source code. For more information, see [Python (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/python/procedure-python-overview). 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.
|
|
97
|
+
*/
|
|
98
|
+
readonly procedureDefinition: pulumi.Output<string | undefined>;
|
|
99
|
+
/**
|
|
100
|
+
* Specifies language for the procedure. Used to detect external changes.
|
|
101
|
+
*/
|
|
102
|
+
readonly procedureLanguage: pulumi.Output<string>;
|
|
103
|
+
/**
|
|
104
|
+
* Specifies the type of the result returned by the stored procedure. For `<result_data_type>`, use the Snowflake data type that corresponds to the type of the language that you are using (see [SQL-Python Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-python-data-type-mappings)). For `RETURNS TABLE ( [ colName col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
|
|
105
|
+
*/
|
|
106
|
+
readonly returnType: pulumi.Output<string>;
|
|
107
|
+
/**
|
|
108
|
+
* The language runtime version to use. Currently, the supported versions are: 3.9, 3.10, and 3.11.
|
|
109
|
+
*/
|
|
110
|
+
readonly runtimeVersion: pulumi.Output<string>;
|
|
111
|
+
/**
|
|
112
|
+
* The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
113
|
+
*/
|
|
114
|
+
readonly schema: pulumi.Output<string>;
|
|
115
|
+
/**
|
|
116
|
+
* Assigns the names of [secrets](https://docs.snowflake.com/en/sql-reference/sql/create-secret) 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](https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration) specified as a value of this CREATE FUNCTION command’s EXTERNAL*ACCESS*INTEGRATIONS parameter.
|
|
117
|
+
*/
|
|
118
|
+
readonly secrets: pulumi.Output<outputs.ProcedurePythonSecret[] | undefined>;
|
|
119
|
+
/**
|
|
120
|
+
* Outputs the result of `SHOW PROCEDURE` for the given procedure.
|
|
121
|
+
*/
|
|
122
|
+
readonly showOutputs: pulumi.Output<outputs.ProcedurePythonShowOutput[]>;
|
|
123
|
+
/**
|
|
124
|
+
* The Snowpark package is required for stored procedures, so it must always be present. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
125
|
+
*/
|
|
126
|
+
readonly snowparkPackage: pulumi.Output<string>;
|
|
127
|
+
/**
|
|
128
|
+
* Trace level value to use when generating/filtering trace events For more information, check [TRACE_LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#trace-level).
|
|
129
|
+
*/
|
|
130
|
+
readonly traceLevel: pulumi.Output<string>;
|
|
131
|
+
/**
|
|
132
|
+
* Create a ProcedurePython resource with the given unique name, arguments, and options.
|
|
133
|
+
*
|
|
134
|
+
* @param name The _unique_ name of the resource.
|
|
135
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
136
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
137
|
+
*/
|
|
138
|
+
constructor(name: string, args: ProcedurePythonArgs, opts?: pulumi.CustomResourceOptions);
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Input properties used for looking up and filtering ProcedurePython resources.
|
|
142
|
+
*/
|
|
143
|
+
export interface ProcedurePythonState {
|
|
144
|
+
/**
|
|
145
|
+
* List of the arguments for the procedure. Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-procedure#all-languages) for more details.
|
|
146
|
+
*/
|
|
147
|
+
arguments?: pulumi.Input<pulumi.Input<inputs.ProcedurePythonArgument>[]>;
|
|
148
|
+
/**
|
|
149
|
+
* Specifies a comment for the procedure.
|
|
150
|
+
*/
|
|
151
|
+
comment?: pulumi.Input<string>;
|
|
152
|
+
/**
|
|
153
|
+
* The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
154
|
+
*/
|
|
155
|
+
database?: pulumi.Input<string>;
|
|
156
|
+
/**
|
|
157
|
+
* Enable stdout/stderr fast path logging for anonyous stored procs. This is a public parameter (similar to LOG*LEVEL). For more information, check [ENABLE*CONSOLE_OUTPUT docs](https://docs.snowflake.com/en/sql-reference/parameters#enable-console-output).
|
|
158
|
+
*/
|
|
159
|
+
enableConsoleOutput?: pulumi.Input<boolean>;
|
|
160
|
+
/**
|
|
161
|
+
* Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
|
|
162
|
+
*/
|
|
163
|
+
executeAs?: pulumi.Input<string>;
|
|
164
|
+
/**
|
|
165
|
+
* The names of [external access integrations](https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration) needed in order for this procedure’s handler code to access external networks. An external access integration specifies [network rules](https://docs.snowflake.com/en/sql-reference/sql/create-network-rule) and [secrets](https://docs.snowflake.com/en/sql-reference/sql/create-secret) 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.
|
|
166
|
+
*/
|
|
167
|
+
externalAccessIntegrations?: pulumi.Input<pulumi.Input<string>[]>;
|
|
168
|
+
/**
|
|
169
|
+
* Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
170
|
+
*/
|
|
171
|
+
fullyQualifiedName?: pulumi.Input<string>;
|
|
172
|
+
/**
|
|
173
|
+
* Use the name of the stored procedure’s function or method. This can differ depending on whether the code is in-line or referenced at a stage. When the code is in-line, you can specify just the function name. When the code is imported from a stage, specify the fully-qualified handler function name as `<module_name>.<function_name>`.
|
|
174
|
+
*/
|
|
175
|
+
handler?: pulumi.Input<string>;
|
|
176
|
+
/**
|
|
177
|
+
* The location (stage), path, and name of the file(s) to import. You must set the IMPORTS clause to include any files that your stored procedure depends on. If you are writing an in-line stored procedure, you can omit this clause, unless your code depends on classes defined outside the stored procedure or resource files. If your stored procedure’s code will be on a stage, you must also include a path to the module file your code is in. The IMPORTS definition cannot reference variables from arguments that are passed into the stored procedure. Each file in the IMPORTS clause must have a unique name, even if the files are in different subdirectories or different stages.
|
|
178
|
+
*/
|
|
179
|
+
imports?: pulumi.Input<pulumi.Input<inputs.ProcedurePythonImport>[]>;
|
|
180
|
+
/**
|
|
181
|
+
* Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
182
|
+
*/
|
|
183
|
+
isSecure?: pulumi.Input<string>;
|
|
184
|
+
/**
|
|
185
|
+
* LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
186
|
+
*/
|
|
187
|
+
logLevel?: pulumi.Input<string>;
|
|
188
|
+
/**
|
|
189
|
+
* METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check [METRIC*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#metric-level).
|
|
190
|
+
*/
|
|
191
|
+
metricLevel?: pulumi.Input<string>;
|
|
192
|
+
/**
|
|
193
|
+
* The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
194
|
+
*/
|
|
195
|
+
name?: pulumi.Input<string>;
|
|
196
|
+
/**
|
|
197
|
+
* Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
198
|
+
*/
|
|
199
|
+
nullInputBehavior?: pulumi.Input<string>;
|
|
200
|
+
/**
|
|
201
|
+
* List of the names of packages deployed in Snowflake that should be included in the handler code’s execution environment. The Snowpark package is required for stored procedures, but is specified in the `snowparkPackage` attribute. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
202
|
+
*/
|
|
203
|
+
packages?: pulumi.Input<pulumi.Input<string>[]>;
|
|
204
|
+
/**
|
|
205
|
+
* Outputs the result of `SHOW PARAMETERS IN PROCEDURE` for the given procedure.
|
|
206
|
+
*/
|
|
207
|
+
parameters?: pulumi.Input<pulumi.Input<inputs.ProcedurePythonParameter>[]>;
|
|
208
|
+
/**
|
|
209
|
+
* Defines the code executed by the stored procedure. The definition can consist of any valid code. Wrapping `$$` signs are added by the provider automatically; do not include them. The `procedureDefinition` value must be Python source code. For more information, see [Python (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/python/procedure-python-overview). 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.
|
|
210
|
+
*/
|
|
211
|
+
procedureDefinition?: pulumi.Input<string>;
|
|
212
|
+
/**
|
|
213
|
+
* Specifies language for the procedure. Used to detect external changes.
|
|
214
|
+
*/
|
|
215
|
+
procedureLanguage?: pulumi.Input<string>;
|
|
216
|
+
/**
|
|
217
|
+
* Specifies the type of the result returned by the stored procedure. For `<result_data_type>`, use the Snowflake data type that corresponds to the type of the language that you are using (see [SQL-Python Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-python-data-type-mappings)). For `RETURNS TABLE ( [ colName col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
|
|
218
|
+
*/
|
|
219
|
+
returnType?: pulumi.Input<string>;
|
|
220
|
+
/**
|
|
221
|
+
* The language runtime version to use. Currently, the supported versions are: 3.9, 3.10, and 3.11.
|
|
222
|
+
*/
|
|
223
|
+
runtimeVersion?: pulumi.Input<string>;
|
|
224
|
+
/**
|
|
225
|
+
* The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
226
|
+
*/
|
|
227
|
+
schema?: pulumi.Input<string>;
|
|
228
|
+
/**
|
|
229
|
+
* Assigns the names of [secrets](https://docs.snowflake.com/en/sql-reference/sql/create-secret) 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](https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration) specified as a value of this CREATE FUNCTION command’s EXTERNAL*ACCESS*INTEGRATIONS parameter.
|
|
230
|
+
*/
|
|
231
|
+
secrets?: pulumi.Input<pulumi.Input<inputs.ProcedurePythonSecret>[]>;
|
|
232
|
+
/**
|
|
233
|
+
* Outputs the result of `SHOW PROCEDURE` for the given procedure.
|
|
234
|
+
*/
|
|
235
|
+
showOutputs?: pulumi.Input<pulumi.Input<inputs.ProcedurePythonShowOutput>[]>;
|
|
236
|
+
/**
|
|
237
|
+
* The Snowpark package is required for stored procedures, so it must always be present. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
238
|
+
*/
|
|
239
|
+
snowparkPackage?: pulumi.Input<string>;
|
|
240
|
+
/**
|
|
241
|
+
* Trace level value to use when generating/filtering trace events For more information, check [TRACE_LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#trace-level).
|
|
242
|
+
*/
|
|
243
|
+
traceLevel?: pulumi.Input<string>;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* The set of arguments for constructing a ProcedurePython resource.
|
|
247
|
+
*/
|
|
248
|
+
export interface ProcedurePythonArgs {
|
|
249
|
+
/**
|
|
250
|
+
* List of the arguments for the procedure. Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-procedure#all-languages) for more details.
|
|
251
|
+
*/
|
|
252
|
+
arguments?: pulumi.Input<pulumi.Input<inputs.ProcedurePythonArgument>[]>;
|
|
253
|
+
/**
|
|
254
|
+
* Specifies a comment for the procedure.
|
|
255
|
+
*/
|
|
256
|
+
comment?: pulumi.Input<string>;
|
|
257
|
+
/**
|
|
258
|
+
* The database in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
259
|
+
*/
|
|
260
|
+
database: pulumi.Input<string>;
|
|
261
|
+
/**
|
|
262
|
+
* Enable stdout/stderr fast path logging for anonyous stored procs. This is a public parameter (similar to LOG*LEVEL). For more information, check [ENABLE*CONSOLE_OUTPUT docs](https://docs.snowflake.com/en/sql-reference/parameters#enable-console-output).
|
|
263
|
+
*/
|
|
264
|
+
enableConsoleOutput?: pulumi.Input<boolean>;
|
|
265
|
+
/**
|
|
266
|
+
* Specifies whether the stored procedure executes with the privileges of the owner (an “owner’s rights” stored procedure) or with the privileges of the caller (a “caller’s rights” stored procedure). If you execute the statement CREATE PROCEDURE … EXECUTE AS CALLER, then in the future the procedure will execute as a caller’s rights procedure. If you execute CREATE PROCEDURE … EXECUTE AS OWNER, then the procedure will execute as an owner’s rights procedure. For more information, see [Understanding caller’s rights and owner’s rights stored procedures](https://docs.snowflake.com/en/developer-guide/stored-procedure/stored-procedures-rights). Valid values are (case-insensitive): `CALLER` | `OWNER`.
|
|
267
|
+
*/
|
|
268
|
+
executeAs?: pulumi.Input<string>;
|
|
269
|
+
/**
|
|
270
|
+
* The names of [external access integrations](https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration) needed in order for this procedure’s handler code to access external networks. An external access integration specifies [network rules](https://docs.snowflake.com/en/sql-reference/sql/create-network-rule) and [secrets](https://docs.snowflake.com/en/sql-reference/sql/create-secret) 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.
|
|
271
|
+
*/
|
|
272
|
+
externalAccessIntegrations?: pulumi.Input<pulumi.Input<string>[]>;
|
|
273
|
+
/**
|
|
274
|
+
* Use the name of the stored procedure’s function or method. This can differ depending on whether the code is in-line or referenced at a stage. When the code is in-line, you can specify just the function name. When the code is imported from a stage, specify the fully-qualified handler function name as `<module_name>.<function_name>`.
|
|
275
|
+
*/
|
|
276
|
+
handler: pulumi.Input<string>;
|
|
277
|
+
/**
|
|
278
|
+
* The location (stage), path, and name of the file(s) to import. You must set the IMPORTS clause to include any files that your stored procedure depends on. If you are writing an in-line stored procedure, you can omit this clause, unless your code depends on classes defined outside the stored procedure or resource files. If your stored procedure’s code will be on a stage, you must also include a path to the module file your code is in. The IMPORTS definition cannot reference variables from arguments that are passed into the stored procedure. Each file in the IMPORTS clause must have a unique name, even if the files are in different subdirectories or different stages.
|
|
279
|
+
*/
|
|
280
|
+
imports?: pulumi.Input<pulumi.Input<inputs.ProcedurePythonImport>[]>;
|
|
281
|
+
/**
|
|
282
|
+
* Specifies that the procedure is secure. For more information about secure procedures, see [Protecting Sensitive Information with Secure UDFs and Stored Procedures](https://docs.snowflake.com/en/developer-guide/secure-udf-procedure). Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
283
|
+
*/
|
|
284
|
+
isSecure?: pulumi.Input<string>;
|
|
285
|
+
/**
|
|
286
|
+
* LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
287
|
+
*/
|
|
288
|
+
logLevel?: pulumi.Input<string>;
|
|
289
|
+
/**
|
|
290
|
+
* METRIC*LEVEL value to control whether to emit metrics to Event Table For more information, check [METRIC*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#metric-level).
|
|
291
|
+
*/
|
|
292
|
+
metricLevel?: pulumi.Input<string>;
|
|
293
|
+
/**
|
|
294
|
+
* The name of the procedure; the identifier does not need to be unique for the schema in which the procedure is created because stored procedures are [identified and resolved by the combination of the name and argument types](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-naming-conventions.html#label-procedure-function-name-overloading). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
295
|
+
*/
|
|
296
|
+
name?: pulumi.Input<string>;
|
|
297
|
+
/**
|
|
298
|
+
* Specifies the behavior of the procedure when called with null inputs. Valid values are (case-insensitive): `CALLED ON NULL INPUT` | `RETURNS NULL ON NULL INPUT`.
|
|
299
|
+
*/
|
|
300
|
+
nullInputBehavior?: pulumi.Input<string>;
|
|
301
|
+
/**
|
|
302
|
+
* List of the names of packages deployed in Snowflake that should be included in the handler code’s execution environment. The Snowpark package is required for stored procedures, but is specified in the `snowparkPackage` attribute. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
303
|
+
*/
|
|
304
|
+
packages?: pulumi.Input<pulumi.Input<string>[]>;
|
|
305
|
+
/**
|
|
306
|
+
* Defines the code executed by the stored procedure. The definition can consist of any valid code. Wrapping `$$` signs are added by the provider automatically; do not include them. The `procedureDefinition` value must be Python source code. For more information, see [Python (using Snowpark)](https://docs.snowflake.com/en/developer-guide/stored-procedure/python/procedure-python-overview). 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.
|
|
307
|
+
*/
|
|
308
|
+
procedureDefinition?: pulumi.Input<string>;
|
|
309
|
+
/**
|
|
310
|
+
* Specifies the type of the result returned by the stored procedure. For `<result_data_type>`, use the Snowflake data type that corresponds to the type of the language that you are using (see [SQL-Python Data Type Mappings](https://docs.snowflake.com/en/developer-guide/udf-stored-procedure-data-type-mapping.html#label-sql-python-data-type-mappings)). For `RETURNS TABLE ( [ colName col_data_type [ , ... ] ] )`, if you know the Snowflake data types of the columns in the returned table, specify the column names and types. Otherwise (e.g. if you are determining the column types during run time), you can omit the column names and types (i.e. `TABLE ()`).
|
|
311
|
+
*/
|
|
312
|
+
returnType: pulumi.Input<string>;
|
|
313
|
+
/**
|
|
314
|
+
* The language runtime version to use. Currently, the supported versions are: 3.9, 3.10, and 3.11.
|
|
315
|
+
*/
|
|
316
|
+
runtimeVersion: pulumi.Input<string>;
|
|
317
|
+
/**
|
|
318
|
+
* The schema in which to create the procedure. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
319
|
+
*/
|
|
320
|
+
schema: pulumi.Input<string>;
|
|
321
|
+
/**
|
|
322
|
+
* Assigns the names of [secrets](https://docs.snowflake.com/en/sql-reference/sql/create-secret) 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](https://docs.snowflake.com/en/sql-reference/sql/create-external-access-integration) specified as a value of this CREATE FUNCTION command’s EXTERNAL*ACCESS*INTEGRATIONS parameter.
|
|
323
|
+
*/
|
|
324
|
+
secrets?: pulumi.Input<pulumi.Input<inputs.ProcedurePythonSecret>[]>;
|
|
325
|
+
/**
|
|
326
|
+
* The Snowpark package is required for stored procedures, so it must always be present. For more information about Snowpark, see [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/index).
|
|
327
|
+
*/
|
|
328
|
+
snowparkPackage: pulumi.Input<string>;
|
|
329
|
+
/**
|
|
330
|
+
* Trace level value to use when generating/filtering trace events For more information, check [TRACE_LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#trace-level).
|
|
331
|
+
*/
|
|
332
|
+
traceLevel?: pulumi.Input<string>;
|
|
333
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.ProcedurePython = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Import
|
|
10
|
+
*
|
|
11
|
+
* ```sh
|
|
12
|
+
* $ pulumi import snowflake:index/procedurePython:ProcedurePython example '"<database_name>"."<schema_name>"."<function_name>"(varchar, varchar, varchar)'
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* 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).
|
|
16
|
+
*
|
|
17
|
+
* 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.
|
|
18
|
+
*/
|
|
19
|
+
class ProcedurePython extends pulumi.CustomResource {
|
|
20
|
+
/**
|
|
21
|
+
* Get an existing ProcedurePython resource's state with the given name, ID, and optional extra
|
|
22
|
+
* properties used to qualify the lookup.
|
|
23
|
+
*
|
|
24
|
+
* @param name The _unique_ name of the resulting resource.
|
|
25
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
26
|
+
* @param state Any extra arguments used during the lookup.
|
|
27
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
28
|
+
*/
|
|
29
|
+
static get(name, id, state, opts) {
|
|
30
|
+
return new ProcedurePython(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Returns true if the given object is an instance of ProcedurePython. This is designed to work even
|
|
34
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
35
|
+
*/
|
|
36
|
+
static isInstance(obj) {
|
|
37
|
+
if (obj === undefined || obj === null) {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
return obj['__pulumiType'] === ProcedurePython.__pulumiType;
|
|
41
|
+
}
|
|
42
|
+
constructor(name, argsOrState, opts) {
|
|
43
|
+
let resourceInputs = {};
|
|
44
|
+
opts = opts || {};
|
|
45
|
+
if (opts.id) {
|
|
46
|
+
const state = argsOrState;
|
|
47
|
+
resourceInputs["arguments"] = state ? state.arguments : undefined;
|
|
48
|
+
resourceInputs["comment"] = state ? state.comment : undefined;
|
|
49
|
+
resourceInputs["database"] = state ? state.database : undefined;
|
|
50
|
+
resourceInputs["enableConsoleOutput"] = state ? state.enableConsoleOutput : undefined;
|
|
51
|
+
resourceInputs["executeAs"] = state ? state.executeAs : undefined;
|
|
52
|
+
resourceInputs["externalAccessIntegrations"] = state ? state.externalAccessIntegrations : undefined;
|
|
53
|
+
resourceInputs["fullyQualifiedName"] = state ? state.fullyQualifiedName : undefined;
|
|
54
|
+
resourceInputs["handler"] = state ? state.handler : undefined;
|
|
55
|
+
resourceInputs["imports"] = state ? state.imports : undefined;
|
|
56
|
+
resourceInputs["isSecure"] = state ? state.isSecure : undefined;
|
|
57
|
+
resourceInputs["logLevel"] = state ? state.logLevel : undefined;
|
|
58
|
+
resourceInputs["metricLevel"] = state ? state.metricLevel : undefined;
|
|
59
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
60
|
+
resourceInputs["nullInputBehavior"] = state ? state.nullInputBehavior : undefined;
|
|
61
|
+
resourceInputs["packages"] = state ? state.packages : undefined;
|
|
62
|
+
resourceInputs["parameters"] = state ? state.parameters : undefined;
|
|
63
|
+
resourceInputs["procedureDefinition"] = state ? state.procedureDefinition : undefined;
|
|
64
|
+
resourceInputs["procedureLanguage"] = state ? state.procedureLanguage : undefined;
|
|
65
|
+
resourceInputs["returnType"] = state ? state.returnType : undefined;
|
|
66
|
+
resourceInputs["runtimeVersion"] = state ? state.runtimeVersion : undefined;
|
|
67
|
+
resourceInputs["schema"] = state ? state.schema : undefined;
|
|
68
|
+
resourceInputs["secrets"] = state ? state.secrets : undefined;
|
|
69
|
+
resourceInputs["showOutputs"] = state ? state.showOutputs : undefined;
|
|
70
|
+
resourceInputs["snowparkPackage"] = state ? state.snowparkPackage : undefined;
|
|
71
|
+
resourceInputs["traceLevel"] = state ? state.traceLevel : undefined;
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
const args = argsOrState;
|
|
75
|
+
if ((!args || args.database === undefined) && !opts.urn) {
|
|
76
|
+
throw new Error("Missing required property 'database'");
|
|
77
|
+
}
|
|
78
|
+
if ((!args || args.handler === undefined) && !opts.urn) {
|
|
79
|
+
throw new Error("Missing required property 'handler'");
|
|
80
|
+
}
|
|
81
|
+
if ((!args || args.returnType === undefined) && !opts.urn) {
|
|
82
|
+
throw new Error("Missing required property 'returnType'");
|
|
83
|
+
}
|
|
84
|
+
if ((!args || args.runtimeVersion === undefined) && !opts.urn) {
|
|
85
|
+
throw new Error("Missing required property 'runtimeVersion'");
|
|
86
|
+
}
|
|
87
|
+
if ((!args || args.schema === undefined) && !opts.urn) {
|
|
88
|
+
throw new Error("Missing required property 'schema'");
|
|
89
|
+
}
|
|
90
|
+
if ((!args || args.snowparkPackage === undefined) && !opts.urn) {
|
|
91
|
+
throw new Error("Missing required property 'snowparkPackage'");
|
|
92
|
+
}
|
|
93
|
+
resourceInputs["arguments"] = args ? args.arguments : undefined;
|
|
94
|
+
resourceInputs["comment"] = args ? args.comment : undefined;
|
|
95
|
+
resourceInputs["database"] = args ? args.database : undefined;
|
|
96
|
+
resourceInputs["enableConsoleOutput"] = args ? args.enableConsoleOutput : undefined;
|
|
97
|
+
resourceInputs["executeAs"] = args ? args.executeAs : undefined;
|
|
98
|
+
resourceInputs["externalAccessIntegrations"] = args ? args.externalAccessIntegrations : undefined;
|
|
99
|
+
resourceInputs["handler"] = args ? args.handler : undefined;
|
|
100
|
+
resourceInputs["imports"] = args ? args.imports : undefined;
|
|
101
|
+
resourceInputs["isSecure"] = args ? args.isSecure : undefined;
|
|
102
|
+
resourceInputs["logLevel"] = args ? args.logLevel : undefined;
|
|
103
|
+
resourceInputs["metricLevel"] = args ? args.metricLevel : undefined;
|
|
104
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
105
|
+
resourceInputs["nullInputBehavior"] = args ? args.nullInputBehavior : undefined;
|
|
106
|
+
resourceInputs["packages"] = args ? args.packages : undefined;
|
|
107
|
+
resourceInputs["procedureDefinition"] = args ? args.procedureDefinition : undefined;
|
|
108
|
+
resourceInputs["returnType"] = args ? args.returnType : undefined;
|
|
109
|
+
resourceInputs["runtimeVersion"] = args ? args.runtimeVersion : undefined;
|
|
110
|
+
resourceInputs["schema"] = args ? args.schema : undefined;
|
|
111
|
+
resourceInputs["secrets"] = args ? args.secrets : undefined;
|
|
112
|
+
resourceInputs["snowparkPackage"] = args ? args.snowparkPackage : undefined;
|
|
113
|
+
resourceInputs["traceLevel"] = args ? args.traceLevel : undefined;
|
|
114
|
+
resourceInputs["fullyQualifiedName"] = undefined /*out*/;
|
|
115
|
+
resourceInputs["parameters"] = undefined /*out*/;
|
|
116
|
+
resourceInputs["procedureLanguage"] = undefined /*out*/;
|
|
117
|
+
resourceInputs["showOutputs"] = undefined /*out*/;
|
|
118
|
+
}
|
|
119
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
120
|
+
super(ProcedurePython.__pulumiType, name, resourceInputs, opts);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
exports.ProcedurePython = ProcedurePython;
|
|
124
|
+
/** @internal */
|
|
125
|
+
ProcedurePython.__pulumiType = 'snowflake:index/procedurePython:ProcedurePython';
|
|
126
|
+
//# sourceMappingURL=procedurePython.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"procedurePython.js","sourceRoot":"","sources":["../procedurePython.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACtE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;IA+GD,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA+C,CAAC;YAC9D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS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