@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
package/functionSql.d.ts
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
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/functionSql:FunctionSql 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 FunctionSql extends pulumi.CustomResource {
|
|
16
|
+
/**
|
|
17
|
+
* Get an existing FunctionSql 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?: FunctionSqlState, opts?: pulumi.CustomResourceOptions): FunctionSql;
|
|
26
|
+
/**
|
|
27
|
+
* Returns true if the given object is an instance of FunctionSql. 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 FunctionSql;
|
|
31
|
+
/**
|
|
32
|
+
* List of the arguments for the function. Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages) for more details.
|
|
33
|
+
*/
|
|
34
|
+
readonly arguments: pulumi.Output<outputs.FunctionSqlArgument[] | undefined>;
|
|
35
|
+
/**
|
|
36
|
+
* Specifies a comment for the function.
|
|
37
|
+
*/
|
|
38
|
+
readonly comment: pulumi.Output<string | undefined>;
|
|
39
|
+
/**
|
|
40
|
+
* The database in which to create the function. 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
|
+
* Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
49
|
+
*/
|
|
50
|
+
readonly fullyQualifiedName: pulumi.Output<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Defines the handler code executed when the UDF is called. Wrapping `$$` signs are added by the provider automatically; do not include them. The `functionDefinition` value must be SQL source code. For more information, see [Introduction to SQL UDFs](https://docs.snowflake.com/en/developer-guide/udf/sql/udf-sql-introduction). 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.
|
|
53
|
+
*/
|
|
54
|
+
readonly functionDefinition: pulumi.Output<string>;
|
|
55
|
+
/**
|
|
56
|
+
* Specifies language for the user. Used to detect external changes.
|
|
57
|
+
*/
|
|
58
|
+
readonly functionLanguage: pulumi.Output<string>;
|
|
59
|
+
readonly isSecure: pulumi.Output<string | undefined>;
|
|
60
|
+
/**
|
|
61
|
+
* LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
62
|
+
*/
|
|
63
|
+
readonly logLevel: pulumi.Output<string>;
|
|
64
|
+
/**
|
|
65
|
+
* 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).
|
|
66
|
+
*/
|
|
67
|
+
readonly metricLevel: pulumi.Output<string>;
|
|
68
|
+
/**
|
|
69
|
+
* 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](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
70
|
+
*/
|
|
71
|
+
readonly name: pulumi.Output<string>;
|
|
72
|
+
/**
|
|
73
|
+
* Outputs the result of `SHOW PARAMETERS IN FUNCTION` for the given function.
|
|
74
|
+
*/
|
|
75
|
+
readonly parameters: pulumi.Output<outputs.FunctionSqlParameter[]>;
|
|
76
|
+
/**
|
|
77
|
+
* Specifies the behavior of the function when returning results. Valid values are (case-insensitive): `VOLATILE` | `IMMUTABLE`.
|
|
78
|
+
*/
|
|
79
|
+
readonly returnResultsBehavior: pulumi.Output<string | undefined>;
|
|
80
|
+
/**
|
|
81
|
+
* 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](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages).
|
|
82
|
+
*/
|
|
83
|
+
readonly returnType: pulumi.Output<string>;
|
|
84
|
+
/**
|
|
85
|
+
* The schema in which to create the function. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
86
|
+
*/
|
|
87
|
+
readonly schema: pulumi.Output<string>;
|
|
88
|
+
/**
|
|
89
|
+
* Outputs the result of `SHOW FUNCTION` for the given function.
|
|
90
|
+
*/
|
|
91
|
+
readonly showOutputs: pulumi.Output<outputs.FunctionSqlShowOutput[]>;
|
|
92
|
+
/**
|
|
93
|
+
* 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).
|
|
94
|
+
*/
|
|
95
|
+
readonly traceLevel: pulumi.Output<string>;
|
|
96
|
+
/**
|
|
97
|
+
* Create a FunctionSql resource with the given unique name, arguments, and options.
|
|
98
|
+
*
|
|
99
|
+
* @param name The _unique_ name of the resource.
|
|
100
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
101
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
102
|
+
*/
|
|
103
|
+
constructor(name: string, args: FunctionSqlArgs, opts?: pulumi.CustomResourceOptions);
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Input properties used for looking up and filtering FunctionSql resources.
|
|
107
|
+
*/
|
|
108
|
+
export interface FunctionSqlState {
|
|
109
|
+
/**
|
|
110
|
+
* List of the arguments for the function. Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages) for more details.
|
|
111
|
+
*/
|
|
112
|
+
arguments?: pulumi.Input<pulumi.Input<inputs.FunctionSqlArgument>[]>;
|
|
113
|
+
/**
|
|
114
|
+
* Specifies a comment for the function.
|
|
115
|
+
*/
|
|
116
|
+
comment?: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* The database in which to create the function. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
119
|
+
*/
|
|
120
|
+
database?: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* 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).
|
|
123
|
+
*/
|
|
124
|
+
enableConsoleOutput?: pulumi.Input<boolean>;
|
|
125
|
+
/**
|
|
126
|
+
* Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
127
|
+
*/
|
|
128
|
+
fullyQualifiedName?: pulumi.Input<string>;
|
|
129
|
+
/**
|
|
130
|
+
* Defines the handler code executed when the UDF is called. Wrapping `$$` signs are added by the provider automatically; do not include them. The `functionDefinition` value must be SQL source code. For more information, see [Introduction to SQL UDFs](https://docs.snowflake.com/en/developer-guide/udf/sql/udf-sql-introduction). 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.
|
|
131
|
+
*/
|
|
132
|
+
functionDefinition?: pulumi.Input<string>;
|
|
133
|
+
/**
|
|
134
|
+
* Specifies language for the user. Used to detect external changes.
|
|
135
|
+
*/
|
|
136
|
+
functionLanguage?: pulumi.Input<string>;
|
|
137
|
+
isSecure?: pulumi.Input<string>;
|
|
138
|
+
/**
|
|
139
|
+
* LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
140
|
+
*/
|
|
141
|
+
logLevel?: pulumi.Input<string>;
|
|
142
|
+
/**
|
|
143
|
+
* 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).
|
|
144
|
+
*/
|
|
145
|
+
metricLevel?: pulumi.Input<string>;
|
|
146
|
+
/**
|
|
147
|
+
* 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](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
148
|
+
*/
|
|
149
|
+
name?: pulumi.Input<string>;
|
|
150
|
+
/**
|
|
151
|
+
* Outputs the result of `SHOW PARAMETERS IN FUNCTION` for the given function.
|
|
152
|
+
*/
|
|
153
|
+
parameters?: pulumi.Input<pulumi.Input<inputs.FunctionSqlParameter>[]>;
|
|
154
|
+
/**
|
|
155
|
+
* Specifies the behavior of the function when returning results. Valid values are (case-insensitive): `VOLATILE` | `IMMUTABLE`.
|
|
156
|
+
*/
|
|
157
|
+
returnResultsBehavior?: pulumi.Input<string>;
|
|
158
|
+
/**
|
|
159
|
+
* 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](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages).
|
|
160
|
+
*/
|
|
161
|
+
returnType?: pulumi.Input<string>;
|
|
162
|
+
/**
|
|
163
|
+
* The schema in which to create the function. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
164
|
+
*/
|
|
165
|
+
schema?: pulumi.Input<string>;
|
|
166
|
+
/**
|
|
167
|
+
* Outputs the result of `SHOW FUNCTION` for the given function.
|
|
168
|
+
*/
|
|
169
|
+
showOutputs?: pulumi.Input<pulumi.Input<inputs.FunctionSqlShowOutput>[]>;
|
|
170
|
+
/**
|
|
171
|
+
* 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).
|
|
172
|
+
*/
|
|
173
|
+
traceLevel?: pulumi.Input<string>;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* The set of arguments for constructing a FunctionSql resource.
|
|
177
|
+
*/
|
|
178
|
+
export interface FunctionSqlArgs {
|
|
179
|
+
/**
|
|
180
|
+
* List of the arguments for the function. Consult the [docs](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages) for more details.
|
|
181
|
+
*/
|
|
182
|
+
arguments?: pulumi.Input<pulumi.Input<inputs.FunctionSqlArgument>[]>;
|
|
183
|
+
/**
|
|
184
|
+
* Specifies a comment for the function.
|
|
185
|
+
*/
|
|
186
|
+
comment?: pulumi.Input<string>;
|
|
187
|
+
/**
|
|
188
|
+
* The database in which to create the function. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
189
|
+
*/
|
|
190
|
+
database: pulumi.Input<string>;
|
|
191
|
+
/**
|
|
192
|
+
* 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).
|
|
193
|
+
*/
|
|
194
|
+
enableConsoleOutput?: pulumi.Input<boolean>;
|
|
195
|
+
/**
|
|
196
|
+
* Defines the handler code executed when the UDF is called. Wrapping `$$` signs are added by the provider automatically; do not include them. The `functionDefinition` value must be SQL source code. For more information, see [Introduction to SQL UDFs](https://docs.snowflake.com/en/developer-guide/udf/sql/udf-sql-introduction). 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.
|
|
197
|
+
*/
|
|
198
|
+
functionDefinition: pulumi.Input<string>;
|
|
199
|
+
isSecure?: pulumi.Input<string>;
|
|
200
|
+
/**
|
|
201
|
+
* LOG*LEVEL to use when filtering events For more information, check [LOG*LEVEL docs](https://docs.snowflake.com/en/sql-reference/parameters#log-level).
|
|
202
|
+
*/
|
|
203
|
+
logLevel?: pulumi.Input<string>;
|
|
204
|
+
/**
|
|
205
|
+
* 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).
|
|
206
|
+
*/
|
|
207
|
+
metricLevel?: pulumi.Input<string>;
|
|
208
|
+
/**
|
|
209
|
+
* 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](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
210
|
+
*/
|
|
211
|
+
name?: pulumi.Input<string>;
|
|
212
|
+
/**
|
|
213
|
+
* Specifies the behavior of the function when returning results. Valid values are (case-insensitive): `VOLATILE` | `IMMUTABLE`.
|
|
214
|
+
*/
|
|
215
|
+
returnResultsBehavior?: pulumi.Input<string>;
|
|
216
|
+
/**
|
|
217
|
+
* 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](https://docs.snowflake.com/en/sql-reference/sql/create-function#all-languages).
|
|
218
|
+
*/
|
|
219
|
+
returnType: pulumi.Input<string>;
|
|
220
|
+
/**
|
|
221
|
+
* The schema in which to create the function. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
222
|
+
*/
|
|
223
|
+
schema: pulumi.Input<string>;
|
|
224
|
+
/**
|
|
225
|
+
* 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).
|
|
226
|
+
*/
|
|
227
|
+
traceLevel?: pulumi.Input<string>;
|
|
228
|
+
}
|
package/functionSql.js
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
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.FunctionSql = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Import
|
|
10
|
+
*
|
|
11
|
+
* ```sh
|
|
12
|
+
* $ pulumi import snowflake:index/functionSql:FunctionSql 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 FunctionSql extends pulumi.CustomResource {
|
|
20
|
+
/**
|
|
21
|
+
* Get an existing FunctionSql 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 FunctionSql(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Returns true if the given object is an instance of FunctionSql. 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'] === FunctionSql.__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["fullyQualifiedName"] = state ? state.fullyQualifiedName : undefined;
|
|
52
|
+
resourceInputs["functionDefinition"] = state ? state.functionDefinition : undefined;
|
|
53
|
+
resourceInputs["functionLanguage"] = state ? state.functionLanguage : undefined;
|
|
54
|
+
resourceInputs["isSecure"] = state ? state.isSecure : undefined;
|
|
55
|
+
resourceInputs["logLevel"] = state ? state.logLevel : undefined;
|
|
56
|
+
resourceInputs["metricLevel"] = state ? state.metricLevel : undefined;
|
|
57
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
58
|
+
resourceInputs["parameters"] = state ? state.parameters : undefined;
|
|
59
|
+
resourceInputs["returnResultsBehavior"] = state ? state.returnResultsBehavior : undefined;
|
|
60
|
+
resourceInputs["returnType"] = state ? state.returnType : undefined;
|
|
61
|
+
resourceInputs["schema"] = state ? state.schema : undefined;
|
|
62
|
+
resourceInputs["showOutputs"] = state ? state.showOutputs : undefined;
|
|
63
|
+
resourceInputs["traceLevel"] = state ? state.traceLevel : undefined;
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
const args = argsOrState;
|
|
67
|
+
if ((!args || args.database === undefined) && !opts.urn) {
|
|
68
|
+
throw new Error("Missing required property 'database'");
|
|
69
|
+
}
|
|
70
|
+
if ((!args || args.functionDefinition === undefined) && !opts.urn) {
|
|
71
|
+
throw new Error("Missing required property 'functionDefinition'");
|
|
72
|
+
}
|
|
73
|
+
if ((!args || args.returnType === undefined) && !opts.urn) {
|
|
74
|
+
throw new Error("Missing required property 'returnType'");
|
|
75
|
+
}
|
|
76
|
+
if ((!args || args.schema === undefined) && !opts.urn) {
|
|
77
|
+
throw new Error("Missing required property 'schema'");
|
|
78
|
+
}
|
|
79
|
+
resourceInputs["arguments"] = args ? args.arguments : undefined;
|
|
80
|
+
resourceInputs["comment"] = args ? args.comment : undefined;
|
|
81
|
+
resourceInputs["database"] = args ? args.database : undefined;
|
|
82
|
+
resourceInputs["enableConsoleOutput"] = args ? args.enableConsoleOutput : undefined;
|
|
83
|
+
resourceInputs["functionDefinition"] = args ? args.functionDefinition : undefined;
|
|
84
|
+
resourceInputs["isSecure"] = args ? args.isSecure : undefined;
|
|
85
|
+
resourceInputs["logLevel"] = args ? args.logLevel : undefined;
|
|
86
|
+
resourceInputs["metricLevel"] = args ? args.metricLevel : undefined;
|
|
87
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
88
|
+
resourceInputs["returnResultsBehavior"] = args ? args.returnResultsBehavior : undefined;
|
|
89
|
+
resourceInputs["returnType"] = args ? args.returnType : undefined;
|
|
90
|
+
resourceInputs["schema"] = args ? args.schema : undefined;
|
|
91
|
+
resourceInputs["traceLevel"] = args ? args.traceLevel : undefined;
|
|
92
|
+
resourceInputs["fullyQualifiedName"] = undefined /*out*/;
|
|
93
|
+
resourceInputs["functionLanguage"] = undefined /*out*/;
|
|
94
|
+
resourceInputs["parameters"] = undefined /*out*/;
|
|
95
|
+
resourceInputs["showOutputs"] = undefined /*out*/;
|
|
96
|
+
}
|
|
97
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
98
|
+
super(FunctionSql.__pulumiType, name, resourceInputs, opts);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
exports.FunctionSql = FunctionSql;
|
|
102
|
+
/** @internal */
|
|
103
|
+
FunctionSql.__pulumiType = 'snowflake:index/functionSql:FunctionSql';
|
|
104
|
+
//# sourceMappingURL=functionSql.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"functionSql.js","sourceRoot":"","sources":["../functionSql.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IA4ED,YAAY,IAAY,EAAE,WAA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,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;YACxF,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACzD,cAAc,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACvD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACrD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AA9JL,kCA+JC;AAjJG,gBAAgB;AACO,wBAAY,GAAG,yCAAyC,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Data source used to get details of filtered account roles. Filtering is aligned with the current possibilities for [SHOW ROLES](https://docs.snowflake.com/en/sql-reference/sql/show-roles) query (`like` and `inClass` are all supported). The results of SHOW are encapsulated in one output collection.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getAccountRoles(args?: GetAccountRolesArgs, opts?: pulumi.InvokeOptions): Promise<GetAccountRolesResult>;
|
|
7
|
+
/**
|
|
8
|
+
* A collection of arguments for invoking getAccountRoles.
|
|
9
|
+
*/
|
|
10
|
+
export interface GetAccountRolesArgs {
|
|
11
|
+
/**
|
|
12
|
+
* Filters the SHOW GRANTS output by class name.
|
|
13
|
+
*/
|
|
14
|
+
inClass?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
17
|
+
*/
|
|
18
|
+
like?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A collection of values returned by getAccountRoles.
|
|
22
|
+
*/
|
|
23
|
+
export interface GetAccountRolesResult {
|
|
24
|
+
/**
|
|
25
|
+
* Holds the aggregated output of all account role details queries.
|
|
26
|
+
*/
|
|
27
|
+
readonly accountRoles: outputs.GetAccountRolesAccountRole[];
|
|
28
|
+
/**
|
|
29
|
+
* The provider-assigned unique ID for this managed resource.
|
|
30
|
+
*/
|
|
31
|
+
readonly id: string;
|
|
32
|
+
/**
|
|
33
|
+
* Filters the SHOW GRANTS output by class name.
|
|
34
|
+
*/
|
|
35
|
+
readonly inClass?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
38
|
+
*/
|
|
39
|
+
readonly like?: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Data source used to get details of filtered account roles. Filtering is aligned with the current possibilities for [SHOW ROLES](https://docs.snowflake.com/en/sql-reference/sql/show-roles) query (`like` and `inClass` are all supported). The results of SHOW are encapsulated in one output collection.
|
|
43
|
+
*/
|
|
44
|
+
export declare function getAccountRolesOutput(args?: GetAccountRolesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAccountRolesResult>;
|
|
45
|
+
/**
|
|
46
|
+
* A collection of arguments for invoking getAccountRoles.
|
|
47
|
+
*/
|
|
48
|
+
export interface GetAccountRolesOutputArgs {
|
|
49
|
+
/**
|
|
50
|
+
* Filters the SHOW GRANTS output by class name.
|
|
51
|
+
*/
|
|
52
|
+
inClass?: pulumi.Input<string>;
|
|
53
|
+
/**
|
|
54
|
+
* Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
55
|
+
*/
|
|
56
|
+
like?: pulumi.Input<string>;
|
|
57
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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.getAccountRolesOutput = exports.getAccountRoles = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Data source used to get details of filtered account roles. Filtering is aligned with the current possibilities for [SHOW ROLES](https://docs.snowflake.com/en/sql-reference/sql/show-roles) query (`like` and `inClass` are all supported). The results of SHOW are encapsulated in one output collection.
|
|
10
|
+
*/
|
|
11
|
+
function getAccountRoles(args, opts) {
|
|
12
|
+
args = args || {};
|
|
13
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
14
|
+
return pulumi.runtime.invoke("snowflake:index/getAccountRoles:getAccountRoles", {
|
|
15
|
+
"inClass": args.inClass,
|
|
16
|
+
"like": args.like,
|
|
17
|
+
}, opts);
|
|
18
|
+
}
|
|
19
|
+
exports.getAccountRoles = getAccountRoles;
|
|
20
|
+
/**
|
|
21
|
+
* Data source used to get details of filtered account roles. Filtering is aligned with the current possibilities for [SHOW ROLES](https://docs.snowflake.com/en/sql-reference/sql/show-roles) query (`like` and `inClass` are all supported). The results of SHOW are encapsulated in one output collection.
|
|
22
|
+
*/
|
|
23
|
+
function getAccountRolesOutput(args, opts) {
|
|
24
|
+
args = args || {};
|
|
25
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
26
|
+
return pulumi.runtime.invokeOutput("snowflake:index/getAccountRoles:getAccountRoles", {
|
|
27
|
+
"inClass": args.inClass,
|
|
28
|
+
"like": args.like,
|
|
29
|
+
}, opts);
|
|
30
|
+
}
|
|
31
|
+
exports.getAccountRolesOutput = getAccountRolesOutput;
|
|
32
|
+
//# sourceMappingURL=getAccountRoles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAccountRoles.js","sourceRoot":"","sources":["../getAccountRoles.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAA2B;IACnF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,iDAAiD,EAAE;QAC5E,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,0CAOC;AAqCD;;GAEG;AACH,SAAgB,qBAAqB,CAAC,IAAgC,EAAE,IAAiC;IACrG,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,iDAAiD,EAAE;QAClF,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,sDAOC"}
|
package/getAccounts.d.ts
CHANGED
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Data source used to get details of filtered accounts. Filtering is aligned with the current possibilities for [SHOW ACCOUNTS](https://docs.snowflake.com/en/sql-reference/sql/show-accounts) query. The results of SHOW are encapsulated in one output collection `accounts`.
|
|
5
|
+
*/
|
|
3
6
|
export declare function getAccounts(args?: GetAccountsArgs, opts?: pulumi.InvokeOptions): Promise<GetAccountsResult>;
|
|
4
7
|
/**
|
|
5
8
|
* A collection of arguments for invoking getAccounts.
|
|
6
9
|
*/
|
|
7
10
|
export interface GetAccountsArgs {
|
|
8
11
|
/**
|
|
9
|
-
*
|
|
12
|
+
* Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
10
13
|
*/
|
|
11
|
-
|
|
14
|
+
like?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Includes dropped accounts that have not yet been deleted.
|
|
17
|
+
*/
|
|
18
|
+
withHistory?: boolean;
|
|
12
19
|
}
|
|
13
20
|
/**
|
|
14
21
|
* A collection of values returned by getAccounts.
|
|
15
22
|
*/
|
|
16
23
|
export interface GetAccountsResult {
|
|
17
24
|
/**
|
|
18
|
-
*
|
|
25
|
+
* Holds the aggregated output of all accounts details queries.
|
|
19
26
|
*/
|
|
20
27
|
readonly accounts: outputs.GetAccountsAccount[];
|
|
21
28
|
/**
|
|
@@ -23,17 +30,28 @@ export interface GetAccountsResult {
|
|
|
23
30
|
*/
|
|
24
31
|
readonly id: string;
|
|
25
32
|
/**
|
|
26
|
-
*
|
|
33
|
+
* Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
34
|
+
*/
|
|
35
|
+
readonly like?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Includes dropped accounts that have not yet been deleted.
|
|
27
38
|
*/
|
|
28
|
-
readonly
|
|
39
|
+
readonly withHistory?: boolean;
|
|
29
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Data source used to get details of filtered accounts. Filtering is aligned with the current possibilities for [SHOW ACCOUNTS](https://docs.snowflake.com/en/sql-reference/sql/show-accounts) query. The results of SHOW are encapsulated in one output collection `accounts`.
|
|
43
|
+
*/
|
|
30
44
|
export declare function getAccountsOutput(args?: GetAccountsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAccountsResult>;
|
|
31
45
|
/**
|
|
32
46
|
* A collection of arguments for invoking getAccounts.
|
|
33
47
|
*/
|
|
34
48
|
export interface GetAccountsOutputArgs {
|
|
35
49
|
/**
|
|
36
|
-
*
|
|
50
|
+
* Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
51
|
+
*/
|
|
52
|
+
like?: pulumi.Input<string>;
|
|
53
|
+
/**
|
|
54
|
+
* Includes dropped accounts that have not yet been deleted.
|
|
37
55
|
*/
|
|
38
|
-
|
|
56
|
+
withHistory?: pulumi.Input<boolean>;
|
|
39
57
|
}
|
package/getAccounts.js
CHANGED
|
@@ -5,19 +5,27 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.getAccountsOutput = exports.getAccounts = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Data source used to get details of filtered accounts. Filtering is aligned with the current possibilities for [SHOW ACCOUNTS](https://docs.snowflake.com/en/sql-reference/sql/show-accounts) query. The results of SHOW are encapsulated in one output collection `accounts`.
|
|
10
|
+
*/
|
|
8
11
|
function getAccounts(args, opts) {
|
|
9
12
|
args = args || {};
|
|
10
13
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
11
14
|
return pulumi.runtime.invoke("snowflake:index/getAccounts:getAccounts", {
|
|
12
|
-
"
|
|
15
|
+
"like": args.like,
|
|
16
|
+
"withHistory": args.withHistory,
|
|
13
17
|
}, opts);
|
|
14
18
|
}
|
|
15
19
|
exports.getAccounts = getAccounts;
|
|
20
|
+
/**
|
|
21
|
+
* Data source used to get details of filtered accounts. Filtering is aligned with the current possibilities for [SHOW ACCOUNTS](https://docs.snowflake.com/en/sql-reference/sql/show-accounts) query. The results of SHOW are encapsulated in one output collection `accounts`.
|
|
22
|
+
*/
|
|
16
23
|
function getAccountsOutput(args, opts) {
|
|
17
24
|
args = args || {};
|
|
18
25
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
19
26
|
return pulumi.runtime.invokeOutput("snowflake:index/getAccounts:getAccounts", {
|
|
20
|
-
"
|
|
27
|
+
"like": args.like,
|
|
28
|
+
"withHistory": args.withHistory,
|
|
21
29
|
}, opts);
|
|
22
30
|
}
|
|
23
31
|
exports.getAccountsOutput = getAccountsOutput;
|
package/getAccounts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAccounts.js","sourceRoot":"","sources":["../getAccounts.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,SAAgB,WAAW,CAAC,IAAsB,EAAE,IAA2B;IAC3E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,yCAAyC,EAAE;QACpE,
|
|
1
|
+
{"version":3,"file":"getAccounts.js","sourceRoot":"","sources":["../getAccounts.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,WAAW,CAAC,IAAsB,EAAE,IAA2B;IAC3E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,yCAAyC,EAAE;QACpE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,kCAOC;AAqCD;;GAEG;AACH,SAAgB,iBAAiB,CAAC,IAA4B,EAAE,IAAiC;IAC7F,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,yCAAyC,EAAE;QAC1E,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,8CAOC"}
|
package/getAlerts.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import * as outputs from "./types/output";
|
|
3
3
|
/**
|
|
4
|
+
* !> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `previewFeaturesEnabled field` in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
|
|
5
|
+
*
|
|
4
6
|
* ## Example Usage
|
|
5
7
|
*
|
|
6
8
|
* ```typescript
|
|
@@ -57,6 +59,8 @@ export interface GetAlertsResult {
|
|
|
57
59
|
readonly schema?: string;
|
|
58
60
|
}
|
|
59
61
|
/**
|
|
62
|
+
* !> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `previewFeaturesEnabled field` in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
|
|
63
|
+
*
|
|
60
64
|
* ## Example Usage
|
|
61
65
|
*
|
|
62
66
|
* ```typescript
|
package/getAlerts.js
CHANGED
|
@@ -6,6 +6,8 @@ exports.getAlertsOutput = exports.getAlerts = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
+
* !> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `previewFeaturesEnabled field` in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
|
|
10
|
+
*
|
|
9
11
|
* ## Example Usage
|
|
10
12
|
*
|
|
11
13
|
* ```typescript
|
|
@@ -29,6 +31,8 @@ function getAlerts(args, opts) {
|
|
|
29
31
|
}
|
|
30
32
|
exports.getAlerts = getAlerts;
|
|
31
33
|
/**
|
|
34
|
+
* !> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `previewFeaturesEnabled field` in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
|
|
35
|
+
*
|
|
32
36
|
* ## Example Usage
|
|
33
37
|
*
|
|
34
38
|
* ```typescript
|
package/getAlerts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAlerts.js","sourceRoot":"","sources":["../getAlerts.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getAlerts.js","sourceRoot":"","sources":["../getAlerts.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,SAAgB,SAAS,CAAC,IAAoB,EAAE,IAA2B;IACvE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,qCAAqC,EAAE;QAChE,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,8BAQC;AA6CD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAAiC;IACzF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,qCAAqC,EAAE;QACtE,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,0CAQC"}
|