@pulumi/snowflake 0.56.0-alpha.1721327760 → 0.56.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 (160) hide show
  1. package/apiAuthenticationIntegrationWithAuthorizationCodeGrant.d.ts +195 -0
  2. package/apiAuthenticationIntegrationWithAuthorizationCodeGrant.js +91 -0
  3. package/apiAuthenticationIntegrationWithAuthorizationCodeGrant.js.map +1 -0
  4. package/apiAuthenticationIntegrationWithClientCredentials.d.ts +183 -0
  5. package/apiAuthenticationIntegrationWithClientCredentials.js +89 -0
  6. package/apiAuthenticationIntegrationWithClientCredentials.js.map +1 -0
  7. package/apiAuthenticationIntegrationWithJwtBearer.d.ts +186 -0
  8. package/apiAuthenticationIntegrationWithJwtBearer.js +94 -0
  9. package/apiAuthenticationIntegrationWithJwtBearer.js.map +1 -0
  10. package/cortexSearchService.d.ts +159 -0
  11. package/cortexSearchService.js +92 -0
  12. package/cortexSearchService.js.map +1 -0
  13. package/database.d.ts +240 -77
  14. package/database.js +94 -45
  15. package/database.js.map +1 -1
  16. package/databaseOld.d.ts +187 -0
  17. package/databaseOld.js +110 -0
  18. package/databaseOld.js.map +1 -0
  19. package/externalOauthIntegration.d.ts +118 -116
  20. package/externalOauthIntegration.js +43 -55
  21. package/externalOauthIntegration.js.map +1 -1
  22. package/failoverGroup.d.ts +1 -1
  23. package/failoverGroup.js +1 -1
  24. package/getCortexSearchServices.d.ts +136 -0
  25. package/getCortexSearchServices.js +83 -0
  26. package/getCortexSearchServices.js.map +1 -0
  27. package/getDatabases.d.ts +41 -38
  28. package/getDatabases.js +8 -17
  29. package/getDatabases.js.map +1 -1
  30. package/getSecurityIntegrations.d.ts +61 -0
  31. package/getSecurityIntegrations.js +31 -0
  32. package/getSecurityIntegrations.js.map +1 -0
  33. package/getWarehouses.d.ts +53 -17
  34. package/getWarehouses.js +13 -18
  35. package/getWarehouses.js.map +1 -1
  36. package/grantPrivilegesToDatabaseRole.d.ts +0 -2
  37. package/grantPrivilegesToDatabaseRole.js +0 -2
  38. package/grantPrivilegesToDatabaseRole.js.map +1 -1
  39. package/index.d.ts +37 -82
  40. package/index.js +60 -139
  41. package/index.js.map +1 -1
  42. package/managedAccount.d.ts +3 -3
  43. package/oauthIntegration.d.ts +2 -0
  44. package/oauthIntegration.js +2 -0
  45. package/oauthIntegration.js.map +1 -1
  46. package/oauthIntegrationForCustomClients.d.ts +274 -0
  47. package/oauthIntegrationForCustomClients.js +148 -0
  48. package/oauthIntegrationForCustomClients.js.map +1 -0
  49. package/oauthIntegrationForPartnerApplications.d.ts +162 -0
  50. package/oauthIntegrationForPartnerApplications.js +84 -0
  51. package/oauthIntegrationForPartnerApplications.js.map +1 -0
  52. package/package.json +2 -2
  53. package/saml2Integration.d.ts +267 -0
  54. package/saml2Integration.js +106 -0
  55. package/saml2Integration.js.map +1 -0
  56. package/samlIntegration.d.ts +2 -0
  57. package/samlIntegration.js +2 -0
  58. package/samlIntegration.js.map +1 -1
  59. package/scimIntegration.d.ts +67 -33
  60. package/scimIntegration.js +19 -20
  61. package/scimIntegration.js.map +1 -1
  62. package/secondaryDatabase.d.ts +289 -0
  63. package/secondaryDatabase.js +103 -0
  64. package/secondaryDatabase.js.map +1 -0
  65. package/sequence.d.ts +3 -3
  66. package/sequence.js +3 -3
  67. package/sharedDatabase.d.ts +251 -0
  68. package/sharedDatabase.js +95 -0
  69. package/sharedDatabase.js.map +1 -0
  70. package/tagAssociation.d.ts +19 -19
  71. package/tagAssociation.js +19 -19
  72. package/types/input.d.ts +1015 -75
  73. package/types/output.d.ts +1835 -280
  74. package/userPasswordPolicyAttachment.d.ts +18 -0
  75. package/userPasswordPolicyAttachment.js +18 -0
  76. package/userPasswordPolicyAttachment.js.map +1 -1
  77. package/warehouse.d.ts +61 -48
  78. package/warehouse.js +8 -2
  79. package/warehouse.js.map +1 -1
  80. package/accountGrant.d.ts +0 -102
  81. package/accountGrant.js +0 -82
  82. package/accountGrant.js.map +0 -1
  83. package/databaseGrant.d.ts +0 -143
  84. package/databaseGrant.js +0 -96
  85. package/databaseGrant.js.map +0 -1
  86. package/externalTableGrant.d.ts +0 -194
  87. package/externalTableGrant.js +0 -110
  88. package/externalTableGrant.js.map +0 -1
  89. package/failoverGroupGrant.d.ts +0 -102
  90. package/failoverGroupGrant.js +0 -65
  91. package/failoverGroupGrant.js.map +0 -1
  92. package/fileFormatGrant.d.ts +0 -178
  93. package/fileFormatGrant.js +0 -104
  94. package/fileFormatGrant.js.map +0 -1
  95. package/functionGrant.d.ts +0 -210
  96. package/functionGrant.js +0 -116
  97. package/functionGrant.js.map +0 -1
  98. package/grantPrivilegesToRole.d.ts +0 -323
  99. package/grantPrivilegesToRole.js +0 -255
  100. package/grantPrivilegesToRole.js.map +0 -1
  101. package/integrationGrant.d.ts +0 -127
  102. package/integrationGrant.js +0 -90
  103. package/integrationGrant.js.map +0 -1
  104. package/maskingPolicyGrant.d.ts +0 -154
  105. package/maskingPolicyGrant.js +0 -103
  106. package/maskingPolicyGrant.js.map +0 -1
  107. package/materializedViewGrant.d.ts +0 -194
  108. package/materializedViewGrant.js +0 -107
  109. package/materializedViewGrant.js.map +0 -1
  110. package/pipeGrant.d.ts +0 -166
  111. package/pipeGrant.js +0 -99
  112. package/pipeGrant.js.map +0 -1
  113. package/procedureGrant.d.ts +0 -210
  114. package/procedureGrant.js +0 -116
  115. package/procedureGrant.js.map +0 -1
  116. package/resourceMonitorGrant.d.ts +0 -112
  117. package/resourceMonitorGrant.js +0 -85
  118. package/resourceMonitorGrant.js.map +0 -1
  119. package/roleGrants.d.ts +0 -115
  120. package/roleGrants.js +0 -98
  121. package/roleGrants.js.map +0 -1
  122. package/roleOwnershipGrant.d.ts +0 -108
  123. package/roleOwnershipGrant.js +0 -94
  124. package/roleOwnershipGrant.js.map +0 -1
  125. package/rowAccessPolicyGrant.d.ts +0 -153
  126. package/rowAccessPolicyGrant.js +0 -102
  127. package/rowAccessPolicyGrant.js.map +0 -1
  128. package/schemaGrant.d.ts +0 -172
  129. package/schemaGrant.js +0 -104
  130. package/schemaGrant.js.map +0 -1
  131. package/sequenceGrant.d.ts +0 -178
  132. package/sequenceGrant.js +0 -104
  133. package/sequenceGrant.js.map +0 -1
  134. package/stageGrant.d.ts +0 -178
  135. package/stageGrant.js +0 -104
  136. package/stageGrant.js.map +0 -1
  137. package/streamGrant.d.ts +0 -178
  138. package/streamGrant.js +0 -104
  139. package/streamGrant.js.map +0 -1
  140. package/tableGrant.d.ts +0 -188
  141. package/tableGrant.js +0 -101
  142. package/tableGrant.js.map +0 -1
  143. package/tagGrant.d.ts +0 -149
  144. package/tagGrant.js +0 -98
  145. package/tagGrant.js.map +0 -1
  146. package/taskGrant.d.ts +0 -178
  147. package/taskGrant.js +0 -104
  148. package/taskGrant.js.map +0 -1
  149. package/userGrant.d.ts +0 -115
  150. package/userGrant.js +0 -91
  151. package/userGrant.js.map +0 -1
  152. package/userOwnershipGrant.d.ts +0 -78
  153. package/userOwnershipGrant.js +0 -64
  154. package/userOwnershipGrant.js.map +0 -1
  155. package/viewGrant.d.ts +0 -205
  156. package/viewGrant.js +0 -118
  157. package/viewGrant.js.map +0 -1
  158. package/warehouseGrant.d.ts +0 -127
  159. package/warehouseGrant.js +0 -90
  160. package/warehouseGrant.js.map +0 -1
@@ -0,0 +1,136 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as snowflake from "@pulumi/snowflake";
10
+ *
11
+ * // Simple usage
12
+ * const simple = snowflake.getCortexSearchServices({});
13
+ * export const simpleOutput = simple.then(simple => simple.cortexSearchServices);
14
+ * // Filtering (like)
15
+ * const like = snowflake.getCortexSearchServices({
16
+ * like: "some-name",
17
+ * });
18
+ * export const likeOutput = like.then(like => like.cortexSearchServices);
19
+ * // Filtering (starts_with)
20
+ * const startsWith = snowflake.getCortexSearchServices({
21
+ * startsWith: "prefix-",
22
+ * });
23
+ * export const startsWithOutput = startsWith.then(startsWith => startsWith.cortexSearchServices);
24
+ * // Filtering (limit)
25
+ * const limit = snowflake.getCortexSearchServices({
26
+ * limit: {
27
+ * rows: 10,
28
+ * from: "prefix-",
29
+ * },
30
+ * });
31
+ * export const limitOutput = limit.then(limit => limit.cortexSearchServices);
32
+ * ```
33
+ */
34
+ export declare function getCortexSearchServices(args?: GetCortexSearchServicesArgs, opts?: pulumi.InvokeOptions): Promise<GetCortexSearchServicesResult>;
35
+ /**
36
+ * A collection of arguments for invoking getCortexSearchServices.
37
+ */
38
+ export interface GetCortexSearchServicesArgs {
39
+ /**
40
+ * IN clause to filter the list of cortex search services.
41
+ */
42
+ in?: inputs.GetCortexSearchServicesIn;
43
+ /**
44
+ * Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
45
+ */
46
+ 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
+ limit?: inputs.GetCortexSearchServicesLimit;
51
+ /**
52
+ * Filters the output with **case-sensitive** characters indicating the beginning of the object name.
53
+ */
54
+ startsWith?: string;
55
+ }
56
+ /**
57
+ * A collection of values returned by getCortexSearchServices.
58
+ */
59
+ export interface GetCortexSearchServicesResult {
60
+ /**
61
+ * Holds the output of SHOW CORTEX SEARCH SERVICES.
62
+ */
63
+ readonly cortexSearchServices: outputs.GetCortexSearchServicesCortexSearchService[];
64
+ /**
65
+ * The provider-assigned unique ID for this managed resource.
66
+ */
67
+ readonly id: string;
68
+ /**
69
+ * IN clause to filter the list of cortex search services.
70
+ */
71
+ readonly in?: outputs.GetCortexSearchServicesIn;
72
+ /**
73
+ * Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
74
+ */
75
+ readonly like?: string;
76
+ /**
77
+ * 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`.
78
+ */
79
+ readonly limit?: outputs.GetCortexSearchServicesLimit;
80
+ /**
81
+ * Filters the output with **case-sensitive** characters indicating the beginning of the object name.
82
+ */
83
+ readonly startsWith?: string;
84
+ }
85
+ /**
86
+ * ## Example Usage
87
+ *
88
+ * ```typescript
89
+ * import * as pulumi from "@pulumi/pulumi";
90
+ * import * as snowflake from "@pulumi/snowflake";
91
+ *
92
+ * // Simple usage
93
+ * const simple = snowflake.getCortexSearchServices({});
94
+ * export const simpleOutput = simple.then(simple => simple.cortexSearchServices);
95
+ * // Filtering (like)
96
+ * const like = snowflake.getCortexSearchServices({
97
+ * like: "some-name",
98
+ * });
99
+ * export const likeOutput = like.then(like => like.cortexSearchServices);
100
+ * // Filtering (starts_with)
101
+ * const startsWith = snowflake.getCortexSearchServices({
102
+ * startsWith: "prefix-",
103
+ * });
104
+ * export const startsWithOutput = startsWith.then(startsWith => startsWith.cortexSearchServices);
105
+ * // Filtering (limit)
106
+ * const limit = snowflake.getCortexSearchServices({
107
+ * limit: {
108
+ * rows: 10,
109
+ * from: "prefix-",
110
+ * },
111
+ * });
112
+ * export const limitOutput = limit.then(limit => limit.cortexSearchServices);
113
+ * ```
114
+ */
115
+ export declare function getCortexSearchServicesOutput(args?: GetCortexSearchServicesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetCortexSearchServicesResult>;
116
+ /**
117
+ * A collection of arguments for invoking getCortexSearchServices.
118
+ */
119
+ export interface GetCortexSearchServicesOutputArgs {
120
+ /**
121
+ * IN clause to filter the list of cortex search services.
122
+ */
123
+ in?: pulumi.Input<inputs.GetCortexSearchServicesInArgs>;
124
+ /**
125
+ * Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
126
+ */
127
+ like?: pulumi.Input<string>;
128
+ /**
129
+ * 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`.
130
+ */
131
+ limit?: pulumi.Input<inputs.GetCortexSearchServicesLimitArgs>;
132
+ /**
133
+ * Filters the output with **case-sensitive** characters indicating the beginning of the object name.
134
+ */
135
+ startsWith?: pulumi.Input<string>;
136
+ }
@@ -0,0 +1,83 @@
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.getCortexSearchServicesOutput = exports.getCortexSearchServices = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as snowflake from "@pulumi/snowflake";
14
+ *
15
+ * // Simple usage
16
+ * const simple = snowflake.getCortexSearchServices({});
17
+ * export const simpleOutput = simple.then(simple => simple.cortexSearchServices);
18
+ * // Filtering (like)
19
+ * const like = snowflake.getCortexSearchServices({
20
+ * like: "some-name",
21
+ * });
22
+ * export const likeOutput = like.then(like => like.cortexSearchServices);
23
+ * // Filtering (starts_with)
24
+ * const startsWith = snowflake.getCortexSearchServices({
25
+ * startsWith: "prefix-",
26
+ * });
27
+ * export const startsWithOutput = startsWith.then(startsWith => startsWith.cortexSearchServices);
28
+ * // Filtering (limit)
29
+ * const limit = snowflake.getCortexSearchServices({
30
+ * limit: {
31
+ * rows: 10,
32
+ * from: "prefix-",
33
+ * },
34
+ * });
35
+ * export const limitOutput = limit.then(limit => limit.cortexSearchServices);
36
+ * ```
37
+ */
38
+ function getCortexSearchServices(args, opts) {
39
+ args = args || {};
40
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
41
+ return pulumi.runtime.invoke("snowflake:index/getCortexSearchServices:getCortexSearchServices", {
42
+ "in": args.in,
43
+ "like": args.like,
44
+ "limit": args.limit,
45
+ "startsWith": args.startsWith,
46
+ }, opts);
47
+ }
48
+ exports.getCortexSearchServices = getCortexSearchServices;
49
+ /**
50
+ * ## Example Usage
51
+ *
52
+ * ```typescript
53
+ * import * as pulumi from "@pulumi/pulumi";
54
+ * import * as snowflake from "@pulumi/snowflake";
55
+ *
56
+ * // Simple usage
57
+ * const simple = snowflake.getCortexSearchServices({});
58
+ * export const simpleOutput = simple.then(simple => simple.cortexSearchServices);
59
+ * // Filtering (like)
60
+ * const like = snowflake.getCortexSearchServices({
61
+ * like: "some-name",
62
+ * });
63
+ * export const likeOutput = like.then(like => like.cortexSearchServices);
64
+ * // Filtering (starts_with)
65
+ * const startsWith = snowflake.getCortexSearchServices({
66
+ * startsWith: "prefix-",
67
+ * });
68
+ * export const startsWithOutput = startsWith.then(startsWith => startsWith.cortexSearchServices);
69
+ * // Filtering (limit)
70
+ * const limit = snowflake.getCortexSearchServices({
71
+ * limit: {
72
+ * rows: 10,
73
+ * from: "prefix-",
74
+ * },
75
+ * });
76
+ * export const limitOutput = limit.then(limit => limit.cortexSearchServices);
77
+ * ```
78
+ */
79
+ function getCortexSearchServicesOutput(args, opts) {
80
+ return pulumi.output(args).apply((a) => getCortexSearchServices(a, opts));
81
+ }
82
+ exports.getCortexSearchServicesOutput = getCortexSearchServicesOutput;
83
+ //# sourceMappingURL=getCortexSearchServices.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCortexSearchServices.js","sourceRoot":"","sources":["../getCortexSearchServices.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,SAAgB,uBAAuB,CAAC,IAAkC,EAAE,IAA2B;IACnG,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,iEAAiE,EAAE;QAC5F,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,0DAUC;AAqDD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,SAAgB,6BAA6B,CAAC,IAAwC,EAAE,IAA2B;IAC/G,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,uBAAuB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClF,CAAC;AAFD,sEAEC"}
package/getDatabases.d.ts CHANGED
@@ -1,14 +1,10 @@
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 resource 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 resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource 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 this = snowflake.getDatabases({});
11
- * ```
7
+ * Datasource used to get details of filtered databases. Filtering is aligned with the current possibilities for [SHOW DATABASES](https://docs.snowflake.com/en/sql-reference/sql/show-databases) query (`like`, `startsWith`, and `limit` are all supported). The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection.
12
8
  */
13
9
  export declare function getDatabases(args?: GetDatabasesArgs, opts?: pulumi.InvokeOptions): Promise<GetDatabasesResult>;
14
10
  /**
@@ -16,60 +12,63 @@ export declare function getDatabases(args?: GetDatabasesArgs, opts?: pulumi.Invo
16
12
  */
17
13
  export interface GetDatabasesArgs {
18
14
  /**
19
- * Optionally includes dropped databases that have not yet been purged The output also includes an additional `droppedOn` column
15
+ * Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
20
16
  */
21
- history?: boolean;
17
+ like?: string;
22
18
  /**
23
- * Optionally filters the databases by a pattern
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`.
24
20
  */
25
- pattern?: string;
21
+ limit?: inputs.GetDatabasesLimit;
26
22
  /**
27
- * Optionally filters the databases by a pattern
23
+ * Filters the output with **case-sensitive** characters indicating the beginning of the object name.
28
24
  */
29
25
  startsWith?: string;
30
26
  /**
31
- * Optionally returns only the columns `createdOn` and `name` in the results
27
+ * Runs DESC DATABASE for each database returned by SHOW DATABASES. The output of describe is saved to the description field. By default this value is set to true.
28
+ */
29
+ withDescribe?: boolean;
30
+ /**
31
+ * Runs SHOW PARAMETERS FOR DATABASE for each database returned by SHOW DATABASES. The output of describe is saved to the parameters field as a map. By default this value is set to true.
32
32
  */
33
- terse?: boolean;
33
+ withParameters?: boolean;
34
34
  }
35
35
  /**
36
36
  * A collection of values returned by getDatabases.
37
37
  */
38
38
  export interface GetDatabasesResult {
39
39
  /**
40
- * Snowflake databases
40
+ * Holds the aggregated output of all database details queries.
41
41
  */
42
42
  readonly databases: outputs.GetDatabasesDatabase[];
43
- /**
44
- * Optionally includes dropped databases that have not yet been purged The output also includes an additional `droppedOn` column
45
- */
46
- readonly history?: boolean;
47
43
  /**
48
44
  * The provider-assigned unique ID for this managed resource.
49
45
  */
50
46
  readonly id: string;
51
47
  /**
52
- * Optionally filters the databases by a pattern
48
+ * Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
49
+ */
50
+ readonly like?: string;
51
+ /**
52
+ * 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`.
53
53
  */
54
- readonly pattern?: string;
54
+ readonly limit?: outputs.GetDatabasesLimit;
55
55
  /**
56
- * Optionally filters the databases by a pattern
56
+ * Filters the output with **case-sensitive** characters indicating the beginning of the object name.
57
57
  */
58
58
  readonly startsWith?: string;
59
59
  /**
60
- * Optionally returns only the columns `createdOn` and `name` in the results
60
+ * Runs DESC DATABASE for each database returned by SHOW DATABASES. 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 DATABASE for each database returned by SHOW DATABASES. The output of describe is saved to the parameters field as a map. By default this value is set to true.
61
65
  */
62
- readonly terse?: boolean;
66
+ readonly withParameters?: boolean;
63
67
  }
64
68
  /**
65
- * ## Example Usage
69
+ * !> **V1 release candidate** This resource 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 resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
66
70
  *
67
- * ```typescript
68
- * import * as pulumi from "@pulumi/pulumi";
69
- * import * as snowflake from "@pulumi/snowflake";
70
- *
71
- * const this = snowflake.getDatabases({});
72
- * ```
71
+ * Datasource used to get details of filtered databases. Filtering is aligned with the current possibilities for [SHOW DATABASES](https://docs.snowflake.com/en/sql-reference/sql/show-databases) query (`like`, `startsWith`, and `limit` are all supported). The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection.
73
72
  */
74
73
  export declare function getDatabasesOutput(args?: GetDatabasesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetDatabasesResult>;
75
74
  /**
@@ -77,19 +76,23 @@ export declare function getDatabasesOutput(args?: GetDatabasesOutputArgs, opts?:
77
76
  */
78
77
  export interface GetDatabasesOutputArgs {
79
78
  /**
80
- * Optionally includes dropped databases that have not yet been purged The output also includes an additional `droppedOn` column
79
+ * Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
81
80
  */
82
- history?: pulumi.Input<boolean>;
81
+ like?: pulumi.Input<string>;
83
82
  /**
84
- * Optionally filters the databases by a pattern
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`.
85
84
  */
86
- pattern?: pulumi.Input<string>;
85
+ limit?: pulumi.Input<inputs.GetDatabasesLimitArgs>;
87
86
  /**
88
- * Optionally filters the databases by a pattern
87
+ * Filters the output with **case-sensitive** characters indicating the beginning of the object name.
89
88
  */
90
89
  startsWith?: pulumi.Input<string>;
91
90
  /**
92
- * Optionally returns only the columns `createdOn` and `name` in the results
91
+ * Runs DESC DATABASE for each database returned by SHOW DATABASES. 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 DATABASE for each database returned by SHOW DATABASES. The output of describe is saved to the parameters field as a map. By default this value is set to true.
93
96
  */
94
- terse?: pulumi.Input<boolean>;
97
+ withParameters?: pulumi.Input<boolean>;
95
98
  }
package/getDatabases.js CHANGED
@@ -6,35 +6,26 @@ exports.getDatabasesOutput = exports.getDatabases = 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 resource 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 resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource 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 this = snowflake.getDatabases({});
16
- * ```
11
+ * Datasource used to get details of filtered databases. Filtering is aligned with the current possibilities for [SHOW DATABASES](https://docs.snowflake.com/en/sql-reference/sql/show-databases) query (`like`, `startsWith`, and `limit` are all supported). The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection.
17
12
  */
18
13
  function getDatabases(args, opts) {
19
14
  args = args || {};
20
15
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
21
16
  return pulumi.runtime.invoke("snowflake:index/getDatabases:getDatabases", {
22
- "history": args.history,
23
- "pattern": args.pattern,
17
+ "like": args.like,
18
+ "limit": args.limit,
24
19
  "startsWith": args.startsWith,
25
- "terse": args.terse,
20
+ "withDescribe": args.withDescribe,
21
+ "withParameters": args.withParameters,
26
22
  }, opts);
27
23
  }
28
24
  exports.getDatabases = getDatabases;
29
25
  /**
30
- * ## Example Usage
31
- *
32
- * ```typescript
33
- * import * as pulumi from "@pulumi/pulumi";
34
- * import * as snowflake from "@pulumi/snowflake";
26
+ * !> **V1 release candidate** This resource 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 resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
35
27
  *
36
- * const this = snowflake.getDatabases({});
37
- * ```
28
+ * Datasource used to get details of filtered databases. Filtering is aligned with the current possibilities for [SHOW DATABASES](https://docs.snowflake.com/en/sql-reference/sql/show-databases) query (`like`, `startsWith`, and `limit` are all supported). The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection.
38
29
  */
39
30
  function getDatabasesOutput(args, opts) {
40
31
  return pulumi.output(args).apply((a) => getDatabases(a, opts));
@@ -1 +1 @@
1
- {"version":3,"file":"getDatabases.js","sourceRoot":"","sources":["../getDatabases.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;GASG;AACH,SAAgB,YAAY,CAAC,IAAuB,EAAE,IAA2B;IAC7E,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,2CAA2C,EAAE;QACtE,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,oCAUC;AAqDD;;;;;;;;;GASG;AACH,SAAgB,kBAAkB,CAAC,IAA6B,EAAE,IAA2B;IACzF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACvE,CAAC;AAFD,gDAEC"}
1
+ {"version":3,"file":"getDatabases.js","sourceRoot":"","sources":["../getDatabases.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;GAIG;AACH,SAAgB,YAAY,CAAC,IAAuB,EAAE,IAA2B;IAC7E,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,2CAA2C,EAAE;QACtE,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,oCAWC;AA6DD;;;;GAIG;AACH,SAAgB,kBAAkB,CAAC,IAA6B,EAAE,IAA2B;IACzF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACvE,CAAC;AAFD,gDAEC"}
@@ -0,0 +1,61 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * !> **V1 release candidate** This resource 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 resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
5
+ *
6
+ * Datasource used to get details of filtered security integrations. Filtering is aligned with the current possibilities for [SHOW SECURITY INTEGRATIONS](https://docs.snowflake.com/en/sql-reference/sql/show-integrations) query (only `like` is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection `securityIntegrations`.
7
+ */
8
+ export declare function getSecurityIntegrations(args?: GetSecurityIntegrationsArgs, opts?: pulumi.InvokeOptions): Promise<GetSecurityIntegrationsResult>;
9
+ /**
10
+ * A collection of arguments for invoking getSecurityIntegrations.
11
+ */
12
+ export interface GetSecurityIntegrationsArgs {
13
+ /**
14
+ * Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
15
+ */
16
+ like?: string;
17
+ /**
18
+ * Runs DESC SECURITY INTEGRATION for each security integration returned by SHOW SECURITY INTEGRATIONS. The output of describe is saved to the description field. By default this value is set to true.
19
+ */
20
+ withDescribe?: boolean;
21
+ }
22
+ /**
23
+ * A collection of values returned by getSecurityIntegrations.
24
+ */
25
+ export interface GetSecurityIntegrationsResult {
26
+ /**
27
+ * The provider-assigned unique ID for this managed resource.
28
+ */
29
+ readonly id: string;
30
+ /**
31
+ * Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
32
+ */
33
+ readonly like?: string;
34
+ /**
35
+ * Holds the aggregated output of all security integrations details queries.
36
+ */
37
+ readonly securityIntegrations: outputs.GetSecurityIntegrationsSecurityIntegration[];
38
+ /**
39
+ * Runs DESC SECURITY INTEGRATION for each security integration returned by SHOW SECURITY INTEGRATIONS. The output of describe is saved to the description field. By default this value is set to true.
40
+ */
41
+ readonly withDescribe?: boolean;
42
+ }
43
+ /**
44
+ * !> **V1 release candidate** This resource 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 resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
45
+ *
46
+ * Datasource used to get details of filtered security integrations. Filtering is aligned with the current possibilities for [SHOW SECURITY INTEGRATIONS](https://docs.snowflake.com/en/sql-reference/sql/show-integrations) query (only `like` is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection `securityIntegrations`.
47
+ */
48
+ export declare function getSecurityIntegrationsOutput(args?: GetSecurityIntegrationsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetSecurityIntegrationsResult>;
49
+ /**
50
+ * A collection of arguments for invoking getSecurityIntegrations.
51
+ */
52
+ export interface GetSecurityIntegrationsOutputArgs {
53
+ /**
54
+ * Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
55
+ */
56
+ like?: pulumi.Input<string>;
57
+ /**
58
+ * Runs DESC SECURITY INTEGRATION for each security integration returned by SHOW SECURITY INTEGRATIONS. The output of describe is saved to the description field. By default this value is set to true.
59
+ */
60
+ withDescribe?: pulumi.Input<boolean>;
61
+ }
@@ -0,0 +1,31 @@
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.getSecurityIntegrationsOutput = exports.getSecurityIntegrations = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * !> **V1 release candidate** This resource 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 resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
10
+ *
11
+ * Datasource used to get details of filtered security integrations. Filtering is aligned with the current possibilities for [SHOW SECURITY INTEGRATIONS](https://docs.snowflake.com/en/sql-reference/sql/show-integrations) query (only `like` is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection `securityIntegrations`.
12
+ */
13
+ function getSecurityIntegrations(args, opts) {
14
+ args = args || {};
15
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
16
+ return pulumi.runtime.invoke("snowflake:index/getSecurityIntegrations:getSecurityIntegrations", {
17
+ "like": args.like,
18
+ "withDescribe": args.withDescribe,
19
+ }, opts);
20
+ }
21
+ exports.getSecurityIntegrations = getSecurityIntegrations;
22
+ /**
23
+ * !> **V1 release candidate** This resource 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 resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
24
+ *
25
+ * Datasource used to get details of filtered security integrations. Filtering is aligned with the current possibilities for [SHOW SECURITY INTEGRATIONS](https://docs.snowflake.com/en/sql-reference/sql/show-integrations) query (only `like` is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection `securityIntegrations`.
26
+ */
27
+ function getSecurityIntegrationsOutput(args, opts) {
28
+ return pulumi.output(args).apply((a) => getSecurityIntegrations(a, opts));
29
+ }
30
+ exports.getSecurityIntegrationsOutput = getSecurityIntegrationsOutput;
31
+ //# sourceMappingURL=getSecurityIntegrations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSecurityIntegrations.js","sourceRoot":"","sources":["../getSecurityIntegrations.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;GAIG;AACH,SAAgB,uBAAuB,CAAC,IAAkC,EAAE,IAA2B;IACnG,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,iEAAiE,EAAE;QAC5F,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,0DAQC;AAqCD;;;;GAIG;AACH,SAAgB,6BAA6B,CAAC,IAAwC,EAAE,IAA2B;IAC/G,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,uBAAuB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClF,CAAC;AAFD,sEAEC"}
@@ -1,16 +1,28 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import * as outputs from "./types/output";
3
3
  /**
4
- * ## Example Usage
4
+ * !> **V1 release candidate** This resource 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 resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
5
5
  *
6
- * ```typescript
7
- * import * as pulumi from "@pulumi/pulumi";
8
- * import * as snowflake from "@pulumi/snowflake";
9
- *
10
- * const current = snowflake.getWarehouses({});
11
- * ```
6
+ * Datasource used to get details of filtered warehouses. Filtering is aligned with the current possibilities for [SHOW WAREHOUSES](https://docs.snowflake.com/en/sql-reference/sql/show-warehouses) query (only `like` is supported). The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection.
12
7
  */
13
- export declare function getWarehouses(opts?: pulumi.InvokeOptions): Promise<GetWarehousesResult>;
8
+ export declare function getWarehouses(args?: GetWarehousesArgs, opts?: pulumi.InvokeOptions): Promise<GetWarehousesResult>;
9
+ /**
10
+ * A collection of arguments for invoking getWarehouses.
11
+ */
12
+ export interface GetWarehousesArgs {
13
+ /**
14
+ * Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
15
+ */
16
+ like?: string;
17
+ /**
18
+ * Runs DESC WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the description field. By default this value is set to true.
19
+ */
20
+ withDescribe?: boolean;
21
+ /**
22
+ * Runs SHOW PARAMETERS FOR WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the parameters field as a map. By default this value is set to true.
23
+ */
24
+ withParameters?: boolean;
25
+ }
14
26
  /**
15
27
  * A collection of values returned by getWarehouses.
16
28
  */
@@ -20,18 +32,42 @@ export interface GetWarehousesResult {
20
32
  */
21
33
  readonly id: string;
22
34
  /**
23
- * The warehouses in the database
35
+ * Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
36
+ */
37
+ readonly like?: string;
38
+ /**
39
+ * Holds the aggregated output of all warehouse details queries.
24
40
  */
25
41
  readonly warehouses: outputs.GetWarehousesWarehouse[];
42
+ /**
43
+ * Runs DESC WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the description field. By default this value is set to true.
44
+ */
45
+ readonly withDescribe?: boolean;
46
+ /**
47
+ * Runs SHOW PARAMETERS FOR WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the parameters field as a map. By default this value is set to true.
48
+ */
49
+ readonly withParameters?: boolean;
26
50
  }
27
51
  /**
28
- * ## Example Usage
29
- *
30
- * ```typescript
31
- * import * as pulumi from "@pulumi/pulumi";
32
- * import * as snowflake from "@pulumi/snowflake";
52
+ * !> **V1 release candidate** This resource 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 resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
33
53
  *
34
- * const current = snowflake.getWarehouses({});
35
- * ```
54
+ * Datasource used to get details of filtered warehouses. Filtering is aligned with the current possibilities for [SHOW WAREHOUSES](https://docs.snowflake.com/en/sql-reference/sql/show-warehouses) query (only `like` is supported). The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection.
36
55
  */
37
- export declare function getWarehousesOutput(opts?: pulumi.InvokeOptions): pulumi.Output<GetWarehousesResult>;
56
+ export declare function getWarehousesOutput(args?: GetWarehousesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetWarehousesResult>;
57
+ /**
58
+ * A collection of arguments for invoking getWarehouses.
59
+ */
60
+ export interface GetWarehousesOutputArgs {
61
+ /**
62
+ * Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
63
+ */
64
+ like?: pulumi.Input<string>;
65
+ /**
66
+ * Runs DESC WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the description field. By default this value is set to true.
67
+ */
68
+ withDescribe?: pulumi.Input<boolean>;
69
+ /**
70
+ * Runs SHOW PARAMETERS FOR WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the parameters field as a map. By default this value is set to true.
71
+ */
72
+ withParameters?: pulumi.Input<boolean>;
73
+ }