@pulumi/snowflake 0.61.0-alpha.1731393894 → 0.61.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 (87) hide show
  1. package/accountAuthenticationPolicyAttachment.d.ts +48 -0
  2. package/accountAuthenticationPolicyAttachment.js +52 -0
  3. package/accountAuthenticationPolicyAttachment.js.map +1 -0
  4. package/authenticationPolicy.d.ts +177 -0
  5. package/authenticationPolicy.js +84 -0
  6. package/authenticationPolicy.js.map +1 -0
  7. package/config/vars.d.ts +79 -36
  8. package/config/vars.js +46 -4
  9. package/config/vars.js.map +1 -1
  10. package/externalVolume.d.ts +113 -0
  11. package/externalVolume.js +67 -0
  12. package/externalVolume.js.map +1 -0
  13. package/getConnections.d.ts +91 -0
  14. package/getConnections.js +76 -0
  15. package/getConnections.js.map +1 -0
  16. package/getGrants.d.ts +4 -0
  17. package/getGrants.js +4 -0
  18. package/getGrants.js.map +1 -1
  19. package/getSecrets.d.ts +140 -0
  20. package/getSecrets.js +104 -0
  21. package/getSecrets.js.map +1 -0
  22. package/getStreams.d.ts +58 -37
  23. package/getStreams.js +16 -24
  24. package/getStreams.js.map +1 -1
  25. package/grantAccountRole.d.ts +1 -1
  26. package/grantAccountRole.js +1 -1
  27. package/grantApplicationRole.d.ts +1 -1
  28. package/grantApplicationRole.js +1 -1
  29. package/grantDatabaseRole.d.ts +1 -1
  30. package/grantDatabaseRole.js +1 -1
  31. package/grantOwnership.d.ts +7 -7
  32. package/grantOwnership.js +7 -7
  33. package/grantPrivilegesToAccountRole.d.ts +4 -4
  34. package/grantPrivilegesToAccountRole.js +4 -4
  35. package/grantPrivilegesToDatabaseRole.d.ts +4 -4
  36. package/grantPrivilegesToDatabaseRole.js +4 -4
  37. package/grantPrivilegesToShare.d.ts +1 -1
  38. package/grantPrivilegesToShare.js +1 -1
  39. package/index.d.ts +42 -0
  40. package/index.js +70 -4
  41. package/index.js.map +1 -1
  42. package/legacyServiceUser.d.ts +2 -0
  43. package/legacyServiceUser.js +2 -0
  44. package/legacyServiceUser.js.map +1 -1
  45. package/package.json +2 -2
  46. package/primaryConnection.d.ts +99 -0
  47. package/primaryConnection.js +66 -0
  48. package/primaryConnection.js.map +1 -0
  49. package/provider.d.ts +158 -54
  50. package/provider.js +11 -4
  51. package/provider.js.map +1 -1
  52. package/secondaryConnection.d.ts +105 -0
  53. package/secondaryConnection.js +69 -0
  54. package/secondaryConnection.js.map +1 -0
  55. package/secretWithAuthorizationCodeGrant.d.ts +152 -0
  56. package/secretWithAuthorizationCodeGrant.js +93 -0
  57. package/secretWithAuthorizationCodeGrant.js.map +1 -0
  58. package/secretWithBasicAuthentication.d.ts +140 -0
  59. package/secretWithBasicAuthentication.js +88 -0
  60. package/secretWithBasicAuthentication.js.map +1 -0
  61. package/secretWithClientCredentials.d.ts +149 -0
  62. package/secretWithClientCredentials.js +86 -0
  63. package/secretWithClientCredentials.js.map +1 -0
  64. package/secretWithGenericString.d.ts +128 -0
  65. package/secretWithGenericString.js +83 -0
  66. package/secretWithGenericString.js.map +1 -0
  67. package/streamOnDirectoryTable.d.ts +151 -0
  68. package/streamOnDirectoryTable.js +85 -0
  69. package/streamOnDirectoryTable.js.map +1 -0
  70. package/streamOnExternalTable.d.ts +10 -0
  71. package/streamOnExternalTable.js +4 -0
  72. package/streamOnExternalTable.js.map +1 -1
  73. package/streamOnTable.d.ts +10 -0
  74. package/streamOnTable.js +4 -0
  75. package/streamOnTable.js.map +1 -1
  76. package/streamOnView.d.ts +172 -0
  77. package/streamOnView.js +93 -0
  78. package/streamOnView.js.map +1 -0
  79. package/tagAssociation.d.ts +3 -3
  80. package/types/input.d.ts +407 -4
  81. package/types/output.d.ts +448 -7
  82. package/user.d.ts +2 -0
  83. package/user.js +2 -0
  84. package/user.js.map +1 -1
  85. package/userAuthenticationPolicyAttachment.d.ts +60 -0
  86. package/userAuthenticationPolicyAttachment.js +57 -0
  87. package/userAuthenticationPolicyAttachment.js.map +1 -0
@@ -0,0 +1,140 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * !> **V1 release candidate** This data source 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.
6
+ *
7
+ * Datasource used to get details of filtered secrets. Filtering is aligned with the current possibilities for [SHOW SECRETS](https://docs.snowflake.com/en/sql-reference/sql/show-secrets) query. The results of SHOW and DESCRIBE are encapsulated in one output collection `secrets`.
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.getSecrets({});
17
+ * export const simpleOutput = simple.then(simple => simple.secrets);
18
+ * // Filtering (like)
19
+ * const like = snowflake.getSecrets({
20
+ * like: "secret-name",
21
+ * });
22
+ * export const likeOutput = like.then(like => like.secrets);
23
+ * // Filtering by prefix (like)
24
+ * const likePrefix = snowflake.getSecrets({
25
+ * like: "prefix%",
26
+ * });
27
+ * export const likePrefixOutput = likePrefix.then(likePrefix => likePrefix.secrets);
28
+ * // Filtering (in)
29
+ * const in = snowflake.getSecrets({
30
+ * "in": {
31
+ * schema: test.fullyQualifiedName,
32
+ * },
33
+ * });
34
+ * export const inOutput = _in.then(_in => _in.secrets);
35
+ * // Without additional data (to limit the number of calls make for every found secret)
36
+ * const onlyShow = snowflake.getSecrets({
37
+ * withDescribe: false,
38
+ * });
39
+ * export const onlyShowOutput = onlyShow.then(onlyShow => onlyShow.secrets);
40
+ * ```
41
+ */
42
+ export declare function getSecrets(args?: GetSecretsArgs, opts?: pulumi.InvokeOptions): Promise<GetSecretsResult>;
43
+ /**
44
+ * A collection of arguments for invoking getSecrets.
45
+ */
46
+ export interface GetSecretsArgs {
47
+ /**
48
+ * IN clause to filter the list of secrets
49
+ */
50
+ in?: inputs.GetSecretsIn;
51
+ /**
52
+ * Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
53
+ */
54
+ like?: string;
55
+ /**
56
+ * Runs DESC SECRET for each secret returned by SHOW SECRETS. The output of describe is saved to the description field. By default this value is set to true.
57
+ */
58
+ withDescribe?: boolean;
59
+ }
60
+ /**
61
+ * A collection of values returned by getSecrets.
62
+ */
63
+ export interface GetSecretsResult {
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 secrets
70
+ */
71
+ readonly in?: outputs.GetSecretsIn;
72
+ /**
73
+ * Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
74
+ */
75
+ readonly like?: string;
76
+ /**
77
+ * Holds the aggregated output of all secrets details queries.
78
+ */
79
+ readonly secrets: outputs.GetSecretsSecret[];
80
+ /**
81
+ * Runs DESC SECRET for each secret returned by SHOW SECRETS. The output of describe is saved to the description field. By default this value is set to true.
82
+ */
83
+ readonly withDescribe?: boolean;
84
+ }
85
+ /**
86
+ * !> **V1 release candidate** This data source 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.
87
+ *
88
+ * Datasource used to get details of filtered secrets. Filtering is aligned with the current possibilities for [SHOW SECRETS](https://docs.snowflake.com/en/sql-reference/sql/show-secrets) query. The results of SHOW and DESCRIBE are encapsulated in one output collection `secrets`.
89
+ *
90
+ * ## Example Usage
91
+ *
92
+ * ```typescript
93
+ * import * as pulumi from "@pulumi/pulumi";
94
+ * import * as snowflake from "@pulumi/snowflake";
95
+ *
96
+ * // Simple usage
97
+ * const simple = snowflake.getSecrets({});
98
+ * export const simpleOutput = simple.then(simple => simple.secrets);
99
+ * // Filtering (like)
100
+ * const like = snowflake.getSecrets({
101
+ * like: "secret-name",
102
+ * });
103
+ * export const likeOutput = like.then(like => like.secrets);
104
+ * // Filtering by prefix (like)
105
+ * const likePrefix = snowflake.getSecrets({
106
+ * like: "prefix%",
107
+ * });
108
+ * export const likePrefixOutput = likePrefix.then(likePrefix => likePrefix.secrets);
109
+ * // Filtering (in)
110
+ * const in = snowflake.getSecrets({
111
+ * "in": {
112
+ * schema: test.fullyQualifiedName,
113
+ * },
114
+ * });
115
+ * export const inOutput = _in.then(_in => _in.secrets);
116
+ * // Without additional data (to limit the number of calls make for every found secret)
117
+ * const onlyShow = snowflake.getSecrets({
118
+ * withDescribe: false,
119
+ * });
120
+ * export const onlyShowOutput = onlyShow.then(onlyShow => onlyShow.secrets);
121
+ * ```
122
+ */
123
+ export declare function getSecretsOutput(args?: GetSecretsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetSecretsResult>;
124
+ /**
125
+ * A collection of arguments for invoking getSecrets.
126
+ */
127
+ export interface GetSecretsOutputArgs {
128
+ /**
129
+ * IN clause to filter the list of secrets
130
+ */
131
+ in?: pulumi.Input<inputs.GetSecretsInArgs>;
132
+ /**
133
+ * Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
134
+ */
135
+ like?: pulumi.Input<string>;
136
+ /**
137
+ * Runs DESC SECRET for each secret returned by SHOW SECRETS. The output of describe is saved to the description field. By default this value is set to true.
138
+ */
139
+ withDescribe?: pulumi.Input<boolean>;
140
+ }
package/getSecrets.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.getSecretsOutput = exports.getSecrets = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * !> **V1 release candidate** This data source 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
+ *
11
+ * Datasource used to get details of filtered secrets. Filtering is aligned with the current possibilities for [SHOW SECRETS](https://docs.snowflake.com/en/sql-reference/sql/show-secrets) query. The results of SHOW and DESCRIBE are encapsulated in one output collection `secrets`.
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as snowflake from "@pulumi/snowflake";
18
+ *
19
+ * // Simple usage
20
+ * const simple = snowflake.getSecrets({});
21
+ * export const simpleOutput = simple.then(simple => simple.secrets);
22
+ * // Filtering (like)
23
+ * const like = snowflake.getSecrets({
24
+ * like: "secret-name",
25
+ * });
26
+ * export const likeOutput = like.then(like => like.secrets);
27
+ * // Filtering by prefix (like)
28
+ * const likePrefix = snowflake.getSecrets({
29
+ * like: "prefix%",
30
+ * });
31
+ * export const likePrefixOutput = likePrefix.then(likePrefix => likePrefix.secrets);
32
+ * // Filtering (in)
33
+ * const in = snowflake.getSecrets({
34
+ * "in": {
35
+ * schema: test.fullyQualifiedName,
36
+ * },
37
+ * });
38
+ * export const inOutput = _in.then(_in => _in.secrets);
39
+ * // Without additional data (to limit the number of calls make for every found secret)
40
+ * const onlyShow = snowflake.getSecrets({
41
+ * withDescribe: false,
42
+ * });
43
+ * export const onlyShowOutput = onlyShow.then(onlyShow => onlyShow.secrets);
44
+ * ```
45
+ */
46
+ function getSecrets(args, opts) {
47
+ args = args || {};
48
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
49
+ return pulumi.runtime.invoke("snowflake:index/getSecrets:getSecrets", {
50
+ "in": args.in,
51
+ "like": args.like,
52
+ "withDescribe": args.withDescribe,
53
+ }, opts);
54
+ }
55
+ exports.getSecrets = getSecrets;
56
+ /**
57
+ * !> **V1 release candidate** This data source 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.
58
+ *
59
+ * Datasource used to get details of filtered secrets. Filtering is aligned with the current possibilities for [SHOW SECRETS](https://docs.snowflake.com/en/sql-reference/sql/show-secrets) query. The results of SHOW and DESCRIBE are encapsulated in one output collection `secrets`.
60
+ *
61
+ * ## Example Usage
62
+ *
63
+ * ```typescript
64
+ * import * as pulumi from "@pulumi/pulumi";
65
+ * import * as snowflake from "@pulumi/snowflake";
66
+ *
67
+ * // Simple usage
68
+ * const simple = snowflake.getSecrets({});
69
+ * export const simpleOutput = simple.then(simple => simple.secrets);
70
+ * // Filtering (like)
71
+ * const like = snowflake.getSecrets({
72
+ * like: "secret-name",
73
+ * });
74
+ * export const likeOutput = like.then(like => like.secrets);
75
+ * // Filtering by prefix (like)
76
+ * const likePrefix = snowflake.getSecrets({
77
+ * like: "prefix%",
78
+ * });
79
+ * export const likePrefixOutput = likePrefix.then(likePrefix => likePrefix.secrets);
80
+ * // Filtering (in)
81
+ * const in = snowflake.getSecrets({
82
+ * "in": {
83
+ * schema: test.fullyQualifiedName,
84
+ * },
85
+ * });
86
+ * export const inOutput = _in.then(_in => _in.secrets);
87
+ * // Without additional data (to limit the number of calls make for every found secret)
88
+ * const onlyShow = snowflake.getSecrets({
89
+ * withDescribe: false,
90
+ * });
91
+ * export const onlyShowOutput = onlyShow.then(onlyShow => onlyShow.secrets);
92
+ * ```
93
+ */
94
+ function getSecretsOutput(args, opts) {
95
+ args = args || {};
96
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
97
+ return pulumi.runtime.invokeOutput("snowflake:index/getSecrets:getSecrets", {
98
+ "in": args.in,
99
+ "like": args.like,
100
+ "withDescribe": args.withDescribe,
101
+ }, opts);
102
+ }
103
+ exports.getSecretsOutput = getSecretsOutput;
104
+ //# sourceMappingURL=getSecrets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSecrets.js","sourceRoot":"","sources":["../getSecrets.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,SAAgB,UAAU,CAAC,IAAqB,EAAE,IAA2B;IACzE,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,uCAAuC,EAAE;QAClE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,gCAQC;AA6CD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,SAAgB,gBAAgB,CAAC,IAA2B,EAAE,IAA2B;IACrF,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,uCAAuC,EAAE;QACxE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,4CAQC"}
package/getStreams.d.ts CHANGED
@@ -1,77 +1,98 @@
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.getStreams({
11
- * database: "MYDB",
12
- * schema: "MYSCHEMA",
13
- * });
14
- * ```
7
+ * Datasource used to get details of filtered streams. Filtering is aligned with the current possibilities for [SHOW STREAMS](https://docs.snowflake.com/en/sql-reference/sql/show-streams) query. The results of SHOW and DESCRIBE are encapsulated in one output collection `streams`.
15
8
  */
16
- export declare function getStreams(args: GetStreamsArgs, opts?: pulumi.InvokeOptions): Promise<GetStreamsResult>;
9
+ export declare function getStreams(args?: GetStreamsArgs, opts?: pulumi.InvokeOptions): Promise<GetStreamsResult>;
17
10
  /**
18
11
  * A collection of arguments for invoking getStreams.
19
12
  */
20
13
  export interface GetStreamsArgs {
21
14
  /**
22
- * The database from which to return the streams from.
15
+ * IN clause to filter the list of objects
16
+ */
17
+ in?: inputs.GetStreamsIn;
18
+ /**
19
+ * Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
20
+ */
21
+ like?: string;
22
+ /**
23
+ * 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
+ */
25
+ limit?: inputs.GetStreamsLimit;
26
+ /**
27
+ * Filters the output with **case-sensitive** characters indicating the beginning of the object name.
23
28
  */
24
- database: string;
29
+ startsWith?: string;
25
30
  /**
26
- * The schema from which to return the streams from.
31
+ * Runs DESC STREAM for each user returned by SHOW STREAMS. The output of describe is saved to the description field. By default this value is set to true.
27
32
  */
28
- schema: string;
33
+ withDescribe?: boolean;
29
34
  }
30
35
  /**
31
36
  * A collection of values returned by getStreams.
32
37
  */
33
38
  export interface GetStreamsResult {
34
- /**
35
- * The database from which to return the streams from.
36
- */
37
- readonly database: string;
38
39
  /**
39
40
  * The provider-assigned unique ID for this managed resource.
40
41
  */
41
42
  readonly id: string;
42
43
  /**
43
- * The schema from which to return the streams from.
44
+ * IN clause to filter the list of objects
45
+ */
46
+ readonly in?: outputs.GetStreamsIn;
47
+ /**
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
+ */
54
+ readonly limit?: outputs.GetStreamsLimit;
55
+ /**
56
+ * Filters the output with **case-sensitive** characters indicating the beginning of the object name.
44
57
  */
45
- readonly schema: string;
58
+ readonly startsWith?: string;
46
59
  /**
47
- * The streams in the schema
60
+ * Holds the aggregated output of all streams details queries.
48
61
  */
49
62
  readonly streams: outputs.GetStreamsStream[];
63
+ /**
64
+ * Runs DESC STREAM for each user returned by SHOW STREAMS. The output of describe is saved to the description field. By default this value is set to true.
65
+ */
66
+ readonly withDescribe?: boolean;
50
67
  }
51
68
  /**
52
- * ## Example Usage
53
- *
54
- * ```typescript
55
- * import * as pulumi from "@pulumi/pulumi";
56
- * import * as snowflake from "@pulumi/snowflake";
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.
57
70
  *
58
- * const current = snowflake.getStreams({
59
- * database: "MYDB",
60
- * schema: "MYSCHEMA",
61
- * });
62
- * ```
71
+ * Datasource used to get details of filtered streams. Filtering is aligned with the current possibilities for [SHOW STREAMS](https://docs.snowflake.com/en/sql-reference/sql/show-streams) query. The results of SHOW and DESCRIBE are encapsulated in one output collection `streams`.
63
72
  */
64
- export declare function getStreamsOutput(args: GetStreamsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetStreamsResult>;
73
+ export declare function getStreamsOutput(args?: GetStreamsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetStreamsResult>;
65
74
  /**
66
75
  * A collection of arguments for invoking getStreams.
67
76
  */
68
77
  export interface GetStreamsOutputArgs {
69
78
  /**
70
- * The database from which to return the streams from.
79
+ * IN clause to filter the list of objects
80
+ */
81
+ in?: pulumi.Input<inputs.GetStreamsInArgs>;
82
+ /**
83
+ * Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
84
+ */
85
+ like?: pulumi.Input<string>;
86
+ /**
87
+ * 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`.
88
+ */
89
+ limit?: pulumi.Input<inputs.GetStreamsLimitArgs>;
90
+ /**
91
+ * Filters the output with **case-sensitive** characters indicating the beginning of the object name.
71
92
  */
72
- database: pulumi.Input<string>;
93
+ startsWith?: pulumi.Input<string>;
73
94
  /**
74
- * The schema from which to return the streams from.
95
+ * Runs DESC STREAM for each user returned by SHOW STREAMS. The output of describe is saved to the description field. By default this value is set to true.
75
96
  */
76
- schema: pulumi.Input<string>;
97
+ withDescribe?: pulumi.Input<boolean>;
77
98
  }
package/getStreams.js CHANGED
@@ -6,44 +6,36 @@ exports.getStreamsOutput = exports.getStreams = 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.getStreams({
16
- * database: "MYDB",
17
- * schema: "MYSCHEMA",
18
- * });
19
- * ```
11
+ * Datasource used to get details of filtered streams. Filtering is aligned with the current possibilities for [SHOW STREAMS](https://docs.snowflake.com/en/sql-reference/sql/show-streams) query. The results of SHOW and DESCRIBE are encapsulated in one output collection `streams`.
20
12
  */
21
13
  function getStreams(args, opts) {
14
+ args = args || {};
22
15
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
23
16
  return pulumi.runtime.invoke("snowflake:index/getStreams:getStreams", {
24
- "database": args.database,
25
- "schema": args.schema,
17
+ "in": args.in,
18
+ "like": args.like,
19
+ "limit": args.limit,
20
+ "startsWith": args.startsWith,
21
+ "withDescribe": args.withDescribe,
26
22
  }, opts);
27
23
  }
28
24
  exports.getStreams = getStreams;
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 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.
35
27
  *
36
- * const current = snowflake.getStreams({
37
- * database: "MYDB",
38
- * schema: "MYSCHEMA",
39
- * });
40
- * ```
28
+ * Datasource used to get details of filtered streams. Filtering is aligned with the current possibilities for [SHOW STREAMS](https://docs.snowflake.com/en/sql-reference/sql/show-streams) query. The results of SHOW and DESCRIBE are encapsulated in one output collection `streams`.
41
29
  */
42
30
  function getStreamsOutput(args, opts) {
31
+ args = args || {};
43
32
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
44
33
  return pulumi.runtime.invokeOutput("snowflake:index/getStreams:getStreams", {
45
- "database": args.database,
46
- "schema": args.schema,
34
+ "in": args.in,
35
+ "like": args.like,
36
+ "limit": args.limit,
37
+ "startsWith": args.startsWith,
38
+ "withDescribe": args.withDescribe,
47
39
  }, opts);
48
40
  }
49
41
  exports.getStreamsOutput = getStreamsOutput;
package/getStreams.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"getStreams.js","sourceRoot":"","sources":["../getStreams.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;GAYG;AACH,SAAgB,UAAU,CAAC,IAAoB,EAAE,IAA2B;IACxE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,uCAAuC,EAAE;QAClE,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gCAMC;AAqCD;;;;;;;;;;;;GAYG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,uCAAuC,EAAE;QACxE,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,4CAMC"}
1
+ {"version":3,"file":"getStreams.js","sourceRoot":"","sources":["../getStreams.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;GAIG;AACH,SAAgB,UAAU,CAAC,IAAqB,EAAE,IAA2B;IACzE,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,uCAAuC,EAAE;QAClE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,gCAUC;AA6DD;;;;GAIG;AACH,SAAgB,gBAAgB,CAAC,IAA2B,EAAE,IAA2B;IACrF,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,uCAAuC,EAAE;QACxE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,cAAc,EAAE,IAAI,CAAC,YAAY;KACpC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,4CAUC"}
@@ -5,7 +5,7 @@ import * as pulumi from "@pulumi/pulumi";
5
5
  * format is role_name (string) | grantee_object_type (ROLE|USER) | grantee_name (string)
6
6
  *
7
7
  * ```sh
8
- * $ pulumi import snowflake:index/grantAccountRole:GrantAccountRole "\"test_role\"|ROLE|\"test_parent_role\""
8
+ * $ pulumi import snowflake:index/grantAccountRole:GrantAccountRole example '"test_role"|ROLE|"test_parent_role"'
9
9
  * ```
10
10
  */
11
11
  export declare class GrantAccountRole extends pulumi.CustomResource {
@@ -11,7 +11,7 @@ const utilities = require("./utilities");
11
11
  * format is role_name (string) | grantee_object_type (ROLE|USER) | grantee_name (string)
12
12
  *
13
13
  * ```sh
14
- * $ pulumi import snowflake:index/grantAccountRole:GrantAccountRole "\"test_role\"|ROLE|\"test_parent_role\""
14
+ * $ pulumi import snowflake:index/grantAccountRole:GrantAccountRole example '"test_role"|ROLE|"test_parent_role"'
15
15
  * ```
16
16
  */
17
17
  class GrantAccountRole extends pulumi.CustomResource {
@@ -5,7 +5,7 @@ import * as pulumi from "@pulumi/pulumi";
5
5
  * format is application_role_name (string) | object_type (ACCOUNT_ROLE|APPLICATION) | grantee_name (string)
6
6
  *
7
7
  * ```sh
8
- * $ pulumi import snowflake:index/grantApplicationRole:GrantApplicationRole \"app_role_1\"|ACCOUNT_ROLE|\"my_role\""
8
+ * $ pulumi import snowflake:index/grantApplicationRole:GrantApplicationRole example '"my_application"."app_role_1"|ACCOUNT_ROLE|"my_role"'
9
9
  * ```
10
10
  */
11
11
  export declare class GrantApplicationRole extends pulumi.CustomResource {
@@ -11,7 +11,7 @@ const utilities = require("./utilities");
11
11
  * format is application_role_name (string) | object_type (ACCOUNT_ROLE|APPLICATION) | grantee_name (string)
12
12
  *
13
13
  * ```sh
14
- * $ pulumi import snowflake:index/grantApplicationRole:GrantApplicationRole \"app_role_1\"|ACCOUNT_ROLE|\"my_role\""
14
+ * $ pulumi import snowflake:index/grantApplicationRole:GrantApplicationRole example '"my_application"."app_role_1"|ACCOUNT_ROLE|"my_role"'
15
15
  * ```
16
16
  */
17
17
  class GrantApplicationRole extends pulumi.CustomResource {
@@ -5,7 +5,7 @@ import * as pulumi from "@pulumi/pulumi";
5
5
  * format is database_role_name (string) | object_type (ROLE|DATABASE ROLE|SHARE) | grantee_name (string)
6
6
  *
7
7
  * ```sh
8
- * $ pulumi import snowflake:index/grantDatabaseRole:GrantDatabaseRole \"test_db_role\"|ROLE|\"test_parent_role\""
8
+ * $ pulumi import snowflake:index/grantDatabaseRole:GrantDatabaseRole example '"ABC"."test_db_role"|ROLE|"test_parent_role"'
9
9
  * ```
10
10
  */
11
11
  export declare class GrantDatabaseRole extends pulumi.CustomResource {
@@ -11,7 +11,7 @@ const utilities = require("./utilities");
11
11
  * format is database_role_name (string) | object_type (ROLE|DATABASE ROLE|SHARE) | grantee_name (string)
12
12
  *
13
13
  * ```sh
14
- * $ pulumi import snowflake:index/grantDatabaseRole:GrantDatabaseRole \"test_db_role\"|ROLE|\"test_parent_role\""
14
+ * $ pulumi import snowflake:index/grantDatabaseRole:GrantDatabaseRole example '"ABC"."test_db_role"|ROLE|"test_parent_role"'
15
15
  * ```
16
16
  */
17
17
  class GrantDatabaseRole extends pulumi.CustomResource {
@@ -9,43 +9,43 @@ import * as outputs from "./types/output";
9
9
  * #### OnObject on Schema ToAccountRole
10
10
  *
11
11
  * ```sh
12
- * $ pulumi import snowflake:index/grantOwnership:GrantOwnership \"schema_name\""`
12
+ * $ pulumi import snowflake:index/grantOwnership:GrantOwnership example 'ToAccountRole|"account_role"|COPY|OnObject|SCHEMA|"database_name"."schema_name"'`
13
13
  * ```
14
14
  *
15
15
  * #### OnObject on Schema ToDatabaseRole
16
16
  *
17
17
  * ```sh
18
- * $ pulumi import snowflake:index/grantOwnership:GrantOwnership \"schema_name\""`
18
+ * $ pulumi import snowflake:index/grantOwnership:GrantOwnership example 'ToDatabaseRole|"database_name"."database_role_name"|COPY|OnObject|SCHEMA|"database_name"."schema_name"'`
19
19
  * ```
20
20
  *
21
21
  * #### OnObject on Table
22
22
  *
23
23
  * ```sh
24
- * $ pulumi import snowflake:index/grantOwnership:GrantOwnership \"table_name\""`
24
+ * $ pulumi import snowflake:index/grantOwnership:GrantOwnership example 'ToAccountRole|"account_role"|COPY|OnObject|TABLE|"database_name"."schema_name"."table_name"'`
25
25
  * ```
26
26
  *
27
27
  * #### OnAll InDatabase
28
28
  *
29
29
  * ```sh
30
- * $ pulumi import snowflake:index/grantOwnership:GrantOwnership `"ToAccountRole|\"account_role\"|REVOKE|OnAll|TABLES|InDatabase|\"database_name\""`
30
+ * $ pulumi import snowflake:index/grantOwnership:GrantOwnership example 'ToAccountRole|"account_role"|REVOKE|OnAll|TABLES|InDatabase|"database_name"'`
31
31
  * ```
32
32
  *
33
33
  * #### OnAll InSchema
34
34
  *
35
35
  * ```sh
36
- * $ pulumi import snowflake:index/grantOwnership:GrantOwnership \"schema_name\""`
36
+ * $ pulumi import snowflake:index/grantOwnership:GrantOwnership example 'ToAccountRole|"account_role"||OnAll|TABLES|InSchema|"database_name"."schema_name"'`
37
37
  * ```
38
38
  *
39
39
  * #### OnFuture InDatabase
40
40
  *
41
41
  * ```sh
42
- * $ pulumi import snowflake:index/grantOwnership:GrantOwnership `"ToAccountRole|\"account_role\"||OnFuture|TABLES|InDatabase|\"database_name\""`
42
+ * $ pulumi import snowflake:index/grantOwnership:GrantOwnership example 'ToAccountRole|"account_role"||OnFuture|TABLES|InDatabase|"database_name"'`
43
43
  * ```
44
44
  *
45
45
  * #### OnFuture InSchema
46
46
  *
47
47
  * ```sh
48
- * $ pulumi import snowflake:index/grantOwnership:GrantOwnership \"schema_name\""`
48
+ * $ pulumi import snowflake:index/grantOwnership:GrantOwnership example 'ToAccountRole|"account_role"|COPY|OnFuture|TABLES|InSchema|"database_name"."schema_name"'`
49
49
  * ```
50
50
  */
51
51
  export declare class GrantOwnership extends pulumi.CustomResource {
package/grantOwnership.js CHANGED
@@ -13,43 +13,43 @@ const utilities = require("./utilities");
13
13
  * #### OnObject on Schema ToAccountRole
14
14
  *
15
15
  * ```sh
16
- * $ pulumi import snowflake:index/grantOwnership:GrantOwnership \"schema_name\""`
16
+ * $ pulumi import snowflake:index/grantOwnership:GrantOwnership example 'ToAccountRole|"account_role"|COPY|OnObject|SCHEMA|"database_name"."schema_name"'`
17
17
  * ```
18
18
  *
19
19
  * #### OnObject on Schema ToDatabaseRole
20
20
  *
21
21
  * ```sh
22
- * $ pulumi import snowflake:index/grantOwnership:GrantOwnership \"schema_name\""`
22
+ * $ pulumi import snowflake:index/grantOwnership:GrantOwnership example 'ToDatabaseRole|"database_name"."database_role_name"|COPY|OnObject|SCHEMA|"database_name"."schema_name"'`
23
23
  * ```
24
24
  *
25
25
  * #### OnObject on Table
26
26
  *
27
27
  * ```sh
28
- * $ pulumi import snowflake:index/grantOwnership:GrantOwnership \"table_name\""`
28
+ * $ pulumi import snowflake:index/grantOwnership:GrantOwnership example 'ToAccountRole|"account_role"|COPY|OnObject|TABLE|"database_name"."schema_name"."table_name"'`
29
29
  * ```
30
30
  *
31
31
  * #### OnAll InDatabase
32
32
  *
33
33
  * ```sh
34
- * $ pulumi import snowflake:index/grantOwnership:GrantOwnership `"ToAccountRole|\"account_role\"|REVOKE|OnAll|TABLES|InDatabase|\"database_name\""`
34
+ * $ pulumi import snowflake:index/grantOwnership:GrantOwnership example 'ToAccountRole|"account_role"|REVOKE|OnAll|TABLES|InDatabase|"database_name"'`
35
35
  * ```
36
36
  *
37
37
  * #### OnAll InSchema
38
38
  *
39
39
  * ```sh
40
- * $ pulumi import snowflake:index/grantOwnership:GrantOwnership \"schema_name\""`
40
+ * $ pulumi import snowflake:index/grantOwnership:GrantOwnership example 'ToAccountRole|"account_role"||OnAll|TABLES|InSchema|"database_name"."schema_name"'`
41
41
  * ```
42
42
  *
43
43
  * #### OnFuture InDatabase
44
44
  *
45
45
  * ```sh
46
- * $ pulumi import snowflake:index/grantOwnership:GrantOwnership `"ToAccountRole|\"account_role\"||OnFuture|TABLES|InDatabase|\"database_name\""`
46
+ * $ pulumi import snowflake:index/grantOwnership:GrantOwnership example 'ToAccountRole|"account_role"||OnFuture|TABLES|InDatabase|"database_name"'`
47
47
  * ```
48
48
  *
49
49
  * #### OnFuture InSchema
50
50
  *
51
51
  * ```sh
52
- * $ pulumi import snowflake:index/grantOwnership:GrantOwnership \"schema_name\""`
52
+ * $ pulumi import snowflake:index/grantOwnership:GrantOwnership example 'ToAccountRole|"account_role"|COPY|OnFuture|TABLES|InSchema|"database_name"."schema_name"'`
53
53
  * ```
54
54
  */
55
55
  class GrantOwnership extends pulumi.CustomResource {