@pulumi/snowflake 0.58.0-alpha.1726035035 → 0.58.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.
Files changed (218) hide show
  1. package/account.d.ts +8 -26
  2. package/account.js +2 -26
  3. package/account.js.map +1 -1
  4. package/accountParameter.d.ts +0 -16
  5. package/accountParameter.js +0 -16
  6. package/accountParameter.js.map +1 -1
  7. package/accountPasswordPolicyAttachment.d.ts +0 -17
  8. package/accountPasswordPolicyAttachment.js +0 -17
  9. package/accountPasswordPolicyAttachment.js.map +1 -1
  10. package/accountRole.d.ts +17 -19
  11. package/accountRole.js +2 -19
  12. package/accountRole.js.map +1 -1
  13. package/alert.d.ts +8 -21
  14. package/alert.js +2 -21
  15. package/alert.js.map +1 -1
  16. package/apiAuthenticationIntegrationWithAuthorizationCodeGrant.d.ts +11 -7
  17. package/apiAuthenticationIntegrationWithAuthorizationCodeGrant.js +2 -4
  18. package/apiAuthenticationIntegrationWithAuthorizationCodeGrant.js.map +1 -1
  19. package/apiAuthenticationIntegrationWithClientCredentials.d.ts +11 -7
  20. package/apiAuthenticationIntegrationWithClientCredentials.js +2 -4
  21. package/apiAuthenticationIntegrationWithClientCredentials.js.map +1 -1
  22. package/apiAuthenticationIntegrationWithJwtBearer.d.ts +11 -7
  23. package/apiAuthenticationIntegrationWithJwtBearer.js +2 -4
  24. package/apiAuthenticationIntegrationWithJwtBearer.js.map +1 -1
  25. package/apiIntegration.d.ts +8 -30
  26. package/apiIntegration.js +2 -30
  27. package/apiIntegration.js.map +1 -1
  28. package/cortexSearchService.d.ts +8 -42
  29. package/cortexSearchService.js +2 -42
  30. package/cortexSearchService.js.map +1 -1
  31. package/database.d.ts +23 -7
  32. package/database.js +4 -4
  33. package/database.js.map +1 -1
  34. package/databaseOld.d.ts +0 -40
  35. package/databaseOld.js +0 -40
  36. package/databaseOld.js.map +1 -1
  37. package/databaseRole.d.ts +25 -20
  38. package/databaseRole.js +5 -14
  39. package/databaseRole.js.map +1 -1
  40. package/dynamicTable.d.ts +8 -20
  41. package/dynamicTable.js +2 -20
  42. package/dynamicTable.js.map +1 -1
  43. package/emailNotificationIntegration.d.ts +8 -14
  44. package/emailNotificationIntegration.js +2 -14
  45. package/emailNotificationIntegration.js.map +1 -1
  46. package/externalFunction.d.ts +8 -27
  47. package/externalFunction.js +2 -27
  48. package/externalFunction.js.map +1 -1
  49. package/externalOauthIntegration.d.ts +11 -7
  50. package/externalOauthIntegration.js +2 -4
  51. package/externalOauthIntegration.js.map +1 -1
  52. package/externalTable.d.ts +8 -25
  53. package/externalTable.js +2 -25
  54. package/externalTable.js.map +1 -1
  55. package/failoverGroup.d.ts +8 -38
  56. package/failoverGroup.js +2 -38
  57. package/failoverGroup.js.map +1 -1
  58. package/fileFormat.d.ts +8 -14
  59. package/fileFormat.js +2 -14
  60. package/fileFormat.js.map +1 -1
  61. package/function.d.ts +8 -2
  62. package/function.js +2 -2
  63. package/function.js.map +1 -1
  64. package/getDatabaseRoles.d.ts +34 -27
  65. package/getDatabaseRoles.js +5 -21
  66. package/getDatabaseRoles.js.map +1 -1
  67. package/getUsers.d.ts +62 -27
  68. package/getUsers.js +10 -19
  69. package/getUsers.js.map +1 -1
  70. package/getViews.d.ts +56 -39
  71. package/getViews.js +8 -24
  72. package/getViews.js.map +1 -1
  73. package/grantAccountRole.d.ts +0 -2
  74. package/grantAccountRole.js +0 -2
  75. package/grantAccountRole.js.map +1 -1
  76. package/grantApplicationRole.d.ts +0 -2
  77. package/grantApplicationRole.js +0 -2
  78. package/grantApplicationRole.js.map +1 -1
  79. package/grantDatabaseRole.d.ts +0 -2
  80. package/grantDatabaseRole.js +0 -2
  81. package/grantDatabaseRole.js.map +1 -1
  82. package/grantPrivilegesToAccountRole.d.ts +2 -2
  83. package/grantPrivilegesToAccountRole.js +2 -2
  84. package/grantPrivilegesToDatabaseRole.d.ts +3 -1
  85. package/grantPrivilegesToDatabaseRole.js +3 -1
  86. package/grantPrivilegesToDatabaseRole.js.map +1 -1
  87. package/grantPrivilegesToShare.d.ts +13 -1
  88. package/grantPrivilegesToShare.js +3 -1
  89. package/grantPrivilegesToShare.js.map +1 -1
  90. package/managedAccount.d.ts +8 -2
  91. package/managedAccount.js +2 -2
  92. package/managedAccount.js.map +1 -1
  93. package/maskingPolicy.d.ts +8 -37
  94. package/maskingPolicy.js +2 -31
  95. package/maskingPolicy.js.map +1 -1
  96. package/materializedView.d.ts +8 -18
  97. package/materializedView.js +2 -18
  98. package/materializedView.js.map +1 -1
  99. package/networkPolicy.d.ts +11 -7
  100. package/networkPolicy.js +2 -4
  101. package/networkPolicy.js.map +1 -1
  102. package/networkPolicyAttachment.d.ts +0 -16
  103. package/networkPolicyAttachment.js +0 -16
  104. package/networkPolicyAttachment.js.map +1 -1
  105. package/networkRule.d.ts +8 -28
  106. package/networkRule.js +2 -22
  107. package/networkRule.js.map +1 -1
  108. package/notificationIntegration.d.ts +8 -18
  109. package/notificationIntegration.js +2 -18
  110. package/notificationIntegration.js.map +1 -1
  111. package/oauthIntegration.d.ts +0 -18
  112. package/oauthIntegration.js +0 -18
  113. package/oauthIntegration.js.map +1 -1
  114. package/oauthIntegrationForCustomClients.d.ts +11 -56
  115. package/oauthIntegrationForCustomClients.js +2 -53
  116. package/oauthIntegrationForCustomClients.js.map +1 -1
  117. package/oauthIntegrationForPartnerApplications.d.ts +11 -7
  118. package/oauthIntegrationForPartnerApplications.js +2 -4
  119. package/oauthIntegrationForPartnerApplications.js.map +1 -1
  120. package/objectParameter.d.ts +0 -55
  121. package/objectParameter.js +0 -55
  122. package/objectParameter.js.map +1 -1
  123. package/package.json +2 -2
  124. package/passwordPolicy.d.ts +8 -8
  125. package/passwordPolicy.js +2 -2
  126. package/passwordPolicy.js.map +1 -1
  127. package/pipe.d.ts +8 -2
  128. package/pipe.js +2 -2
  129. package/pipe.js.map +1 -1
  130. package/procedure.d.ts +8 -2
  131. package/procedure.js +2 -2
  132. package/procedure.js.map +1 -1
  133. package/resourceMonitor.d.ts +8 -25
  134. package/resourceMonitor.js +2 -25
  135. package/resourceMonitor.js.map +1 -1
  136. package/role.d.ts +17 -19
  137. package/role.js +2 -19
  138. package/role.js.map +1 -1
  139. package/rowAccessPolicy.d.ts +8 -18
  140. package/rowAccessPolicy.js +2 -18
  141. package/rowAccessPolicy.js.map +1 -1
  142. package/saml2Integration.d.ts +11 -7
  143. package/saml2Integration.js +2 -4
  144. package/saml2Integration.js.map +1 -1
  145. package/samlIntegration.d.ts +0 -18
  146. package/samlIntegration.js +0 -18
  147. package/samlIntegration.js.map +1 -1
  148. package/schema.d.ts +13 -9
  149. package/schema.js +4 -6
  150. package/schema.js.map +1 -1
  151. package/scimIntegration.d.ts +11 -7
  152. package/scimIntegration.js +2 -4
  153. package/scimIntegration.js.map +1 -1
  154. package/secondaryDatabase.d.ts +11 -9
  155. package/secondaryDatabase.js +2 -6
  156. package/secondaryDatabase.js.map +1 -1
  157. package/sequence.d.ts +2 -20
  158. package/sequence.js +0 -18
  159. package/sequence.js.map +1 -1
  160. package/sessionParameter.d.ts +0 -18
  161. package/sessionParameter.js +0 -18
  162. package/sessionParameter.js.map +1 -1
  163. package/share.d.ts +8 -16
  164. package/share.js +2 -16
  165. package/share.js.map +1 -1
  166. package/sharedDatabase.d.ts +11 -7
  167. package/sharedDatabase.js +2 -4
  168. package/sharedDatabase.js.map +1 -1
  169. package/stage.d.ts +8 -15
  170. package/stage.js +2 -15
  171. package/stage.js.map +1 -1
  172. package/storageIntegration.d.ts +8 -2
  173. package/storageIntegration.js +2 -2
  174. package/storageIntegration.js.map +1 -1
  175. package/stream.d.ts +8 -2
  176. package/stream.js +2 -2
  177. package/stream.js.map +1 -1
  178. package/streamlit.d.ts +12 -8
  179. package/streamlit.js +4 -6
  180. package/streamlit.js.map +1 -1
  181. package/table.d.ts +8 -10
  182. package/table.js +2 -4
  183. package/table.js.map +1 -1
  184. package/tableColumnMaskingPolicyApplication.d.ts +0 -8
  185. package/tableColumnMaskingPolicyApplication.js +0 -8
  186. package/tableColumnMaskingPolicyApplication.js.map +1 -1
  187. package/tableConstraint.d.ts +0 -82
  188. package/tableConstraint.js +0 -82
  189. package/tableConstraint.js.map +1 -1
  190. package/tag.d.ts +8 -22
  191. package/tag.js +2 -22
  192. package/tag.js.map +1 -1
  193. package/tagAssociation.d.ts +0 -66
  194. package/tagAssociation.js +0 -66
  195. package/tagAssociation.js.map +1 -1
  196. package/tagMaskingPolicyAssociation.d.ts +0 -2
  197. package/tagMaskingPolicyAssociation.js +0 -2
  198. package/tagMaskingPolicyAssociation.js.map +1 -1
  199. package/task.d.ts +8 -49
  200. package/task.js +2 -49
  201. package/task.js.map +1 -1
  202. package/types/input.d.ts +696 -15
  203. package/types/output.d.ts +1924 -720
  204. package/unsafeExecute.d.ts +0 -11
  205. package/unsafeExecute.js +0 -11
  206. package/unsafeExecute.js.map +1 -1
  207. package/user.d.ts +801 -62
  208. package/user.js +140 -33
  209. package/user.js.map +1 -1
  210. package/userPasswordPolicyAttachment.d.ts +0 -20
  211. package/userPasswordPolicyAttachment.js +0 -20
  212. package/userPasswordPolicyAttachment.js.map +1 -1
  213. package/view.d.ts +117 -63
  214. package/view.js +23 -26
  215. package/view.js.map +1 -1
  216. package/warehouse.d.ts +11 -20
  217. package/warehouse.js +2 -17
  218. package/warehouse.js.map +1 -1
package/getUsers.d.ts CHANGED
@@ -1,26 +1,36 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
2
3
  import * as outputs from "./types/output";
3
4
  /**
4
- * ## Example Usage
5
+ * !> **V1 release candidate** This data source was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the data source if needed. Any errors reported will be resolved with a higher priority. We encourage checking this data source out before the V1 release. Please follow the migration guide to use it.
5
6
  *
6
- * ```typescript
7
- * import * as pulumi from "@pulumi/pulumi";
8
- * import * as snowflake from "@pulumi/snowflake";
9
- *
10
- * const current = snowflake.getUsers({
11
- * pattern: "user1",
12
- * });
13
- * ```
7
+ * Datasource used to get details of filtered users. Filtering is aligned with the current possibilities for [SHOW USERS](https://docs.snowflake.com/en/sql-reference/sql/show-users) query. The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection. Important note is that when querying users you don't have permissions to, the querying options are limited. You won't get almost any field in `showOutput` (only empty or default values), the DESCRIBE command cannot be called, so you have to set `withDescribe = false`. Only `parameters` output is not affected by the lack of privileges.
14
8
  */
15
- export declare function getUsers(args: GetUsersArgs, opts?: pulumi.InvokeOptions): Promise<GetUsersResult>;
9
+ export declare function getUsers(args?: GetUsersArgs, opts?: pulumi.InvokeOptions): Promise<GetUsersResult>;
16
10
  /**
17
11
  * A collection of arguments for invoking getUsers.
18
12
  */
19
13
  export interface GetUsersArgs {
20
14
  /**
21
- * Users pattern for which to return metadata. Please refer to LIKE keyword from snowflake documentation : https://docs.snowflake.com/en/sql-reference/sql/show-users.html#parameters
15
+ * Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
16
+ */
17
+ like?: string;
18
+ /**
19
+ * Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `startsWith` or `like`.
20
+ */
21
+ limit?: inputs.GetUsersLimit;
22
+ /**
23
+ * Filters the output with **case-sensitive** characters indicating the beginning of the object name.
24
+ */
25
+ startsWith?: string;
26
+ /**
27
+ * Runs DESC USER for each user returned by SHOW USERS. The output of describe is saved to the description field. By default this value is set to true.
22
28
  */
23
- pattern: string;
29
+ withDescribe?: boolean;
30
+ /**
31
+ * Runs SHOW PARAMETERS FOR USER for each user returned by SHOW USERS. The output of describe is saved to the parameters field as a map. By default this value is set to true.
32
+ */
33
+ withParameters?: boolean;
24
34
  }
25
35
  /**
26
36
  * A collection of values returned by getUsers.
@@ -31,33 +41,58 @@ export interface GetUsersResult {
31
41
  */
32
42
  readonly id: string;
33
43
  /**
34
- * Users pattern for which to return metadata. Please refer to LIKE keyword from snowflake documentation : https://docs.snowflake.com/en/sql-reference/sql/show-users.html#parameters
44
+ * Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
45
+ */
46
+ readonly like?: string;
47
+ /**
48
+ * Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `startsWith` or `like`.
49
+ */
50
+ readonly limit?: outputs.GetUsersLimit;
51
+ /**
52
+ * Filters the output with **case-sensitive** characters indicating the beginning of the object name.
35
53
  */
36
- readonly pattern: string;
54
+ readonly startsWith?: string;
37
55
  /**
38
- * The users in the database
56
+ * Holds the aggregated output of all user details queries.
39
57
  */
40
58
  readonly users: outputs.GetUsersUser[];
59
+ /**
60
+ * Runs DESC USER for each user returned by SHOW USERS. The output of describe is saved to the description field. By default this value is set to true.
61
+ */
62
+ readonly withDescribe?: boolean;
63
+ /**
64
+ * Runs SHOW PARAMETERS FOR USER for each user returned by SHOW USERS. The output of describe is saved to the parameters field as a map. By default this value is set to true.
65
+ */
66
+ readonly withParameters?: boolean;
41
67
  }
42
68
  /**
43
- * ## Example Usage
69
+ * !> **V1 release candidate** This data source was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the data source if needed. Any errors reported will be resolved with a higher priority. We encourage checking this data source out before the V1 release. Please follow the migration guide to use it.
44
70
  *
45
- * ```typescript
46
- * import * as pulumi from "@pulumi/pulumi";
47
- * import * as snowflake from "@pulumi/snowflake";
48
- *
49
- * const current = snowflake.getUsers({
50
- * pattern: "user1",
51
- * });
52
- * ```
71
+ * Datasource used to get details of filtered users. Filtering is aligned with the current possibilities for [SHOW USERS](https://docs.snowflake.com/en/sql-reference/sql/show-users) query. The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection. Important note is that when querying users you don't have permissions to, the querying options are limited. You won't get almost any field in `showOutput` (only empty or default values), the DESCRIBE command cannot be called, so you have to set `withDescribe = false`. Only `parameters` output is not affected by the lack of privileges.
53
72
  */
54
- export declare function getUsersOutput(args: GetUsersOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetUsersResult>;
73
+ export declare function getUsersOutput(args?: GetUsersOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetUsersResult>;
55
74
  /**
56
75
  * A collection of arguments for invoking getUsers.
57
76
  */
58
77
  export interface GetUsersOutputArgs {
59
78
  /**
60
- * Users pattern for which to return metadata. Please refer to LIKE keyword from snowflake documentation : https://docs.snowflake.com/en/sql-reference/sql/show-users.html#parameters
79
+ * Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
80
+ */
81
+ like?: pulumi.Input<string>;
82
+ /**
83
+ * Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `startsWith` or `like`.
84
+ */
85
+ limit?: pulumi.Input<inputs.GetUsersLimitArgs>;
86
+ /**
87
+ * Filters the output with **case-sensitive** characters indicating the beginning of the object name.
88
+ */
89
+ startsWith?: pulumi.Input<string>;
90
+ /**
91
+ * Runs DESC USER for each user returned by SHOW USERS. The output of describe is saved to the description field. By default this value is set to true.
92
+ */
93
+ withDescribe?: pulumi.Input<boolean>;
94
+ /**
95
+ * Runs SHOW PARAMETERS FOR USER for each user returned by SHOW USERS. The output of describe is saved to the parameters field as a map. By default this value is set to true.
61
96
  */
62
- pattern: pulumi.Input<string>;
97
+ withParameters?: pulumi.Input<boolean>;
63
98
  }
package/getUsers.js CHANGED
@@ -6,35 +6,26 @@ exports.getUsersOutput = exports.getUsers = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * ## Example Usage
9
+ * !> **V1 release candidate** This data source was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the data source if needed. Any errors reported will be resolved with a higher priority. We encourage checking this data source out before the V1 release. Please follow the migration guide to use it.
10
10
  *
11
- * ```typescript
12
- * import * as pulumi from "@pulumi/pulumi";
13
- * import * as snowflake from "@pulumi/snowflake";
14
- *
15
- * const current = snowflake.getUsers({
16
- * pattern: "user1",
17
- * });
18
- * ```
11
+ * Datasource used to get details of filtered users. Filtering is aligned with the current possibilities for [SHOW USERS](https://docs.snowflake.com/en/sql-reference/sql/show-users) query. The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection. Important note is that when querying users you don't have permissions to, the querying options are limited. You won't get almost any field in `showOutput` (only empty or default values), the DESCRIBE command cannot be called, so you have to set `withDescribe = false`. Only `parameters` output is not affected by the lack of privileges.
19
12
  */
20
13
  function getUsers(args, opts) {
14
+ args = args || {};
21
15
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
22
16
  return pulumi.runtime.invoke("snowflake:index/getUsers:getUsers", {
23
- "pattern": args.pattern,
17
+ "like": args.like,
18
+ "limit": args.limit,
19
+ "startsWith": args.startsWith,
20
+ "withDescribe": args.withDescribe,
21
+ "withParameters": args.withParameters,
24
22
  }, opts);
25
23
  }
26
24
  exports.getUsers = getUsers;
27
25
  /**
28
- * ## Example Usage
29
- *
30
- * ```typescript
31
- * import * as pulumi from "@pulumi/pulumi";
32
- * import * as snowflake from "@pulumi/snowflake";
26
+ * !> **V1 release candidate** This data source was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the data source if needed. Any errors reported will be resolved with a higher priority. We encourage checking this data source out before the V1 release. Please follow the migration guide to use it.
33
27
  *
34
- * const current = snowflake.getUsers({
35
- * pattern: "user1",
36
- * });
37
- * ```
28
+ * Datasource used to get details of filtered users. Filtering is aligned with the current possibilities for [SHOW USERS](https://docs.snowflake.com/en/sql-reference/sql/show-users) query. The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection. Important note is that when querying users you don't have permissions to, the querying options are limited. You won't get almost any field in `showOutput` (only empty or default values), the DESCRIBE command cannot be called, so you have to set `withDescribe = false`. Only `parameters` output is not affected by the lack of privileges.
38
29
  */
39
30
  function getUsersOutput(args, opts) {
40
31
  return pulumi.output(args).apply((a) => getUsers(a, opts));
package/getUsers.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"getUsers.js","sourceRoot":"","sources":["../getUsers.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;GAWG;AACH,SAAgB,QAAQ,CAAC,IAAkB,EAAE,IAA2B;IAEpE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,mCAAmC,EAAE;QAC9D,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,4BAMC;AA6BD;;;;;;;;;;;GAWG;AACH,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAChF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACnE,CAAC;AAFD,wCAEC"}
1
+ {"version":3,"file":"getUsers.js","sourceRoot":"","sources":["../getUsers.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;GAIG;AACH,SAAgB,QAAQ,CAAC,IAAmB,EAAE,IAA2B;IACrE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,mCAAmC,EAAE;QAC9D,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,gBAAgB,EAAE,IAAI,CAAC,cAAc;KACxC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,4BAWC;AA6DD;;;;GAIG;AACH,SAAgB,cAAc,CAAC,IAAyB,EAAE,IAA2B;IACjF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACnE,CAAC;AAFD,wCAEC"}
package/getViews.d.ts CHANGED
@@ -1,77 +1,94 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
2
3
  import * as outputs from "./types/output";
3
4
  /**
4
- * ## Example Usage
5
- *
6
- * ```typescript
7
- * import * as pulumi from "@pulumi/pulumi";
8
- * import * as snowflake from "@pulumi/snowflake";
9
- *
10
- * const current = snowflake.getViews({
11
- * database: "MYDB",
12
- * schema: "MYSCHEMA",
13
- * });
14
- * ```
5
+ * Datasource used to get details of filtered views. Filtering is aligned with the current possibilities for [SHOW VIEWS](https://docs.snowflake.com/en/sql-reference/sql/show-views) query (only `like` is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection `views`.
15
6
  */
16
- export declare function getViews(args: GetViewsArgs, opts?: pulumi.InvokeOptions): Promise<GetViewsResult>;
7
+ export declare function getViews(args?: GetViewsArgs, opts?: pulumi.InvokeOptions): Promise<GetViewsResult>;
17
8
  /**
18
9
  * A collection of arguments for invoking getViews.
19
10
  */
20
11
  export interface GetViewsArgs {
21
12
  /**
22
- * The database from which to return the schemas from.
13
+ * IN clause to filter the list of views
23
14
  */
24
- database: string;
15
+ in?: inputs.GetViewsIn;
25
16
  /**
26
- * The schema from which to return the views from.
17
+ * Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
27
18
  */
28
- schema: string;
19
+ like?: string;
20
+ /**
21
+ * Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `startsWith` or `like`.
22
+ */
23
+ limit?: inputs.GetViewsLimit;
24
+ /**
25
+ * Filters the output with **case-sensitive** characters indicating the beginning of the object name.
26
+ */
27
+ startsWith?: string;
28
+ /**
29
+ * Runs DESC VIEW for each view returned by SHOW VIEWS. The output of describe is saved to the description field. By default this value is set to true.
30
+ */
31
+ withDescribe?: boolean;
29
32
  }
30
33
  /**
31
34
  * A collection of values returned by getViews.
32
35
  */
33
36
  export interface GetViewsResult {
34
- /**
35
- * The database from which to return the schemas from.
36
- */
37
- readonly database: string;
38
37
  /**
39
38
  * The provider-assigned unique ID for this managed resource.
40
39
  */
41
40
  readonly id: string;
42
41
  /**
43
- * The schema from which to return the views from.
42
+ * IN clause to filter the list of views
43
+ */
44
+ readonly in?: outputs.GetViewsIn;
45
+ /**
46
+ * Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
47
+ */
48
+ readonly like?: string;
49
+ /**
50
+ * Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `startsWith` or `like`.
51
+ */
52
+ readonly limit?: outputs.GetViewsLimit;
53
+ /**
54
+ * Filters the output with **case-sensitive** characters indicating the beginning of the object name.
44
55
  */
45
- readonly schema: string;
56
+ readonly startsWith?: string;
46
57
  /**
47
- * The views in the schema
58
+ * Holds the aggregated output of all views details queries.
48
59
  */
49
60
  readonly views: outputs.GetViewsView[];
61
+ /**
62
+ * Runs DESC VIEW for each view returned by SHOW VIEWS. The output of describe is saved to the description field. By default this value is set to true.
63
+ */
64
+ readonly withDescribe?: boolean;
50
65
  }
51
66
  /**
52
- * ## Example Usage
53
- *
54
- * ```typescript
55
- * import * as pulumi from "@pulumi/pulumi";
56
- * import * as snowflake from "@pulumi/snowflake";
57
- *
58
- * const current = snowflake.getViews({
59
- * database: "MYDB",
60
- * schema: "MYSCHEMA",
61
- * });
62
- * ```
67
+ * Datasource used to get details of filtered views. Filtering is aligned with the current possibilities for [SHOW VIEWS](https://docs.snowflake.com/en/sql-reference/sql/show-views) query (only `like` is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection `views`.
63
68
  */
64
- export declare function getViewsOutput(args: GetViewsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetViewsResult>;
69
+ export declare function getViewsOutput(args?: GetViewsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetViewsResult>;
65
70
  /**
66
71
  * A collection of arguments for invoking getViews.
67
72
  */
68
73
  export interface GetViewsOutputArgs {
69
74
  /**
70
- * The database from which to return the schemas from.
75
+ * IN clause to filter the list of views
76
+ */
77
+ in?: pulumi.Input<inputs.GetViewsInArgs>;
78
+ /**
79
+ * Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
80
+ */
81
+ like?: pulumi.Input<string>;
82
+ /**
83
+ * Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `startsWith` or `like`.
84
+ */
85
+ limit?: pulumi.Input<inputs.GetViewsLimitArgs>;
86
+ /**
87
+ * Filters the output with **case-sensitive** characters indicating the beginning of the object name.
71
88
  */
72
- database: pulumi.Input<string>;
89
+ startsWith?: pulumi.Input<string>;
73
90
  /**
74
- * The schema from which to return the views from.
91
+ * Runs DESC VIEW for each view returned by SHOW VIEWS. The output of describe is saved to the description field. By default this value is set to true.
75
92
  */
76
- schema: pulumi.Input<string>;
93
+ withDescribe?: pulumi.Input<boolean>;
77
94
  }
package/getViews.js CHANGED
@@ -6,38 +6,22 @@ exports.getViewsOutput = exports.getViews = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * ## Example Usage
10
- *
11
- * ```typescript
12
- * import * as pulumi from "@pulumi/pulumi";
13
- * import * as snowflake from "@pulumi/snowflake";
14
- *
15
- * const current = snowflake.getViews({
16
- * database: "MYDB",
17
- * schema: "MYSCHEMA",
18
- * });
19
- * ```
9
+ * Datasource used to get details of filtered views. Filtering is aligned with the current possibilities for [SHOW VIEWS](https://docs.snowflake.com/en/sql-reference/sql/show-views) query (only `like` is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection `views`.
20
10
  */
21
11
  function getViews(args, opts) {
12
+ args = args || {};
22
13
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
23
14
  return pulumi.runtime.invoke("snowflake:index/getViews:getViews", {
24
- "database": args.database,
25
- "schema": args.schema,
15
+ "in": args.in,
16
+ "like": args.like,
17
+ "limit": args.limit,
18
+ "startsWith": args.startsWith,
19
+ "withDescribe": args.withDescribe,
26
20
  }, opts);
27
21
  }
28
22
  exports.getViews = getViews;
29
23
  /**
30
- * ## Example Usage
31
- *
32
- * ```typescript
33
- * import * as pulumi from "@pulumi/pulumi";
34
- * import * as snowflake from "@pulumi/snowflake";
35
- *
36
- * const current = snowflake.getViews({
37
- * database: "MYDB",
38
- * schema: "MYSCHEMA",
39
- * });
40
- * ```
24
+ * Datasource used to get details of filtered views. Filtering is aligned with the current possibilities for [SHOW VIEWS](https://docs.snowflake.com/en/sql-reference/sql/show-views) query (only `like` is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection `views`.
41
25
  */
42
26
  function getViewsOutput(args, opts) {
43
27
  return pulumi.output(args).apply((a) => getViews(a, opts));
package/getViews.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"getViews.js","sourceRoot":"","sources":["../getViews.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF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,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,4BAWC;AA6DD;;GAEG;AACH,SAAgB,cAAc,CAAC,IAAyB,EAAE,IAA2B;IACjF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACnE,CAAC;AAFD,wCAEC"}
@@ -1,7 +1,5 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * ## Example Usage
4
- *
5
3
  * ## Import
6
4
  *
7
5
  * format is role_name (string) | grantee_object_type (ROLE|USER) | grantee_name (string)
@@ -6,8 +6,6 @@ exports.GrantAccountRole = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * ## Example Usage
10
- *
11
9
  * ## Import
12
10
  *
13
11
  * format is role_name (string) | grantee_object_type (ROLE|USER) | grantee_name (string)
@@ -1 +1 @@
1
- {"version":3,"file":"grantAccountRole.js","sourceRoot":"","sources":["../grantAccountRole.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACvE,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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G,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE;aAAM;YACH,MAAM,IAAI,GAAG,WAA+C,CAAC;YAC7D,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACrD,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACjE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AApEL,4CAqEC;AAvDG,gBAAgB;AACO,6BAAY,GAAG,mDAAmD,CAAC"}
@@ -1,7 +1,5 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * ## Example Usage
4
- *
5
3
  * ## Import
6
4
  *
7
5
  * format is application_role_name (string) | object_type (ACCOUNT_ROLE|APPLICATION) | grantee_name (string)
@@ -6,8 +6,6 @@ exports.GrantApplicationRole = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * ## Example Usage
10
- *
11
9
  * ## Import
12
10
  *
13
11
  * format is application_role_name (string) | object_type (ACCOUNT_RO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AC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3F;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;;AApEL,oDAqEC;AAvDG,gBAAgB;AACO,iCAAY,GAAG,2DAA2D,CAAC"}
@@ -1,7 +1,5 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * ## Example Usage
4
- *
5
3
  * ## Import
6
4
  *
7
5
  * format is database_role_name (string) | object_type (ROLE|DATABASE ROLE|SHARE) | grantee_name (string)
@@ -6,8 +6,6 @@ exports.GrantDatabaseRole = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * ## Example Usage
10
- *
11
9
  * ## Import
12
10
  *
13
11
  * format is database_role_name (string) | object_type (ROLE|DATABASE ROLE|SHARE) | grantee_name (string)
@@ -1 +1 @@
1
- {"version":3,"file":"grantDatabaseRole.js","sourceRoot":"","sources":["../grantDatabaseRole.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EA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AAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;;AA1EL,8CA2EC;AA7DG,gBAAgB;AACO,8BAAY,GAAG,qDAAqD,CAAC"}
@@ -2,9 +2,9 @@ import * as pulumi from "@pulumi/pulumi";
2
2
  import * as inputs from "./types/input";
3
3
  import * as outputs from "./types/output";
4
4
  /**
5
- * !> **Warning** Be careful when using `alwaysApply` field. It will always produce a plan (even when no changes were made) and can be harmful in some setups. For more details why we decided to introduce it to go our document explaining those design decisions (coming soon).
5
+ * ## Import
6
6
  *
7
- * > **Note** When granting privileges on applications (for example, the default "SNOWFLAKE" application) use `on_account_object.object_type = "DATABASE"` instead.
7
+ * ### Import examples
8
8
  *
9
9
  * #### Grant all privileges OnAccountObject (Database)
10
10
  *
@@ -6,9 +6,9 @@ exports.GrantPrivilegesToAccountRole = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * !> **Warning** Be careful when using `alwaysApply` field. It will always produce a plan (even when no changes were made) and can be harmful in some setups. For more details why we decided to introduce it to go our document explaining those design decisions (coming soon).
9
+ * ## Import
10
10
  *
11
- * > **Note** When granting privileges on applications (for example, the default "SNOWFLAKE" application) use `on_account_object.object_type = "DATABASE"` instead.
11
+ * ### Import examples
12
12
  *
13
13
  * #### Grant all privileges OnAccountObject (Database)
14
14
  *
@@ -2,7 +2,9 @@ import * as pulumi from "@pulumi/pulumi";
2
2
  import * as inputs from "./types/input";
3
3
  import * as outputs from "./types/output";
4
4
  /**
5
- * !> **Warning** Be careful when using `alwaysApply` field. It will always produce a plan (even when no changes were made) and can be harmful in some setups. For more details why we decided to introduce it to go our document explaining those design decisions (coming soon).
5
+ * ## Import
6
+ *
7
+ * ### Import examples
6
8
  *
7
9
  * #### Grant all privileges OnDatabase
8
10
  *
@@ -6,7 +6,9 @@ exports.GrantPrivilegesToDatabaseRole = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * !> **Warning** Be careful when using `alwaysApply` field. It will always produce a plan (even when no changes were made) and can be harmful in some setups. For more details why we decided to introduce it to go our document explaining those design decisions (coming soon).
9
+ * ## Import
10
+ *
11
+ * ### Import examples
10
12
  *
11
13
  * #### Grant all privileges OnDatabase
12
14
  *
@@ -1 +1 @@
1
- {"version":3,"file":"grantPrivilegesToDatabaseRole.js","sourceRoot":"","sources":["../grantPrivilegesToDatabaseRole.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,6BAA8B,SAAQ,MAAM,CAAC,cAAc;IACpE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0C,EAAE,IAAmC;QACxI,OAAO,IAAI,6BAA6B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpF,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,6BAA6B,CAAC,YAAY,CAAC;IAC9E,CAAC;IA4CD,YAAY,IAAY,EAAE,WAAoF,EAAE,IAAmC;QAC/I,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6D,CAAC;YAC5E,cAAc,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CA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C;YAC9E,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/E;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,6BAA6B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClF,CAAC;;AArGL,sEAsGC;AAxFG,gBAAgB;AACO,0CAAY,GAAG,6EAA6E,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * ## Example Usage
3
+ * ## Import
4
4
  *
5
5
  * ### OnView
6
6
  *
@@ -32,6 +32,10 @@ export declare class GrantPrivilegesToShare extends pulumi.CustomResource {
32
32
  * The fully qualified name of the database on which privileges will be granted.
33
33
  */
34
34
  readonly onDatabase: pulumi.Output<string | undefined>;
35
+ /**
36
+ * The fully qualified name of the function on which privileges will be granted.
37
+ */
38
+ readonly onFunction: pulumi.Output<string | undefined>;
35
39
  /**
36
40
  * The fully qualified name of the schema on which privileges will be granted.
37
41
  */
@@ -77,6 +81,10 @@ export interface GrantPrivilegesToShareState {
77
81
  * The fully qualified name of the database on which privileges will be granted.
78
82
  */
79
83
  onDatabase?: pulumi.Input<string>;
84
+ /**
85
+ * The fully qualified name of the function on which privileges will be granted.
86
+ */
87
+ onFunction?: pulumi.Input<string>;
80
88
  /**
81
89
  * The fully qualified name of the schema on which privileges will be granted.
82
90
  */
@@ -114,6 +122,10 @@ export interface GrantPrivilegesToShareArgs {
114
122
  * The fully qualified name of the database on which privileges will be granted.
115
123
  */
116
124
  onDatabase?: pulumi.Input<string>;
125
+ /**
126
+ * The fully qualified name of the function on which privileges will be granted.
127
+ */
128
+ onFunction?: pulumi.Input<string>;
117
129
  /**
118
130
  * The fully qualified name of the schema on which privileges will be granted.
119
131
  */
@@ -6,7 +6,7 @@ exports.GrantPrivilegesToShare = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * ## Example Usage
9
+ * ## Import
10
10
  *
11
11
  * ### OnView
12
12
  *
@@ -44,6 +44,7 @@ class GrantPrivilegesToShare extends pulumi.CustomResource {
44
44
  const state = argsOrState;
45
45
  resourceInputs["onAllTablesInSchema"] = state ? state.onAllTablesInSchema : undefined;
46
46
  resourceInputs["onDatabase"] = state ? state.onDatabase : undefined;
47
+ resourceInputs["onFunction"] = state ? state.onFunction : undefined;
47
48
  resourceInputs["onSchema"] = state ? state.onSchema : undefined;
48
49
  resourceInputs["onTable"] = state ? state.onTable : undefined;
49
50
  resourceInputs["onTag"] = state ? state.onTag : undefined;
@@ -61,6 +62,7 @@ class GrantPrivilegesToShare extends pulumi.CustomResource {
61
62
  }
62
63
  resourceInputs["onAllTablesInSchema"] = args ? args.onAllTablesInSchema : undefined;
63
64
  resourceInputs["onDatabase"] = args ? args.onDatabase : undefined;
65
+ resourceInputs["onFunction"] = args ? args.onFunction : undefined;
64
66
  resourceInputs["onSchema"] = args ? args.onSchema : undefined;
65
67
  resourceInputs["onTable"] = args ? args.onTable : undefined;
66
68
  resourceInputs["onTag"] = args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