@pulumi/snowflake 0.5.1 → 0.5.3-alpha.1648240150

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.
@@ -22,7 +22,7 @@ import { input as inputs, output as outputs } from "./types";
22
22
  * },
23
23
  * ],
24
24
  * returnType: "string",
25
- * privilege: "select",
25
+ * privilege: "USAGE",
26
26
  * roles: [
27
27
  * "role1",
28
28
  * "role2",
@@ -77,7 +77,7 @@ export declare class FunctionGrant extends pulumi.CustomResource {
77
77
  */
78
78
  readonly onFuture: pulumi.Output<boolean | undefined>;
79
79
  /**
80
- * The privilege to grant on the current or future function.
80
+ * The privilege to grant on the current or future function. Must be one of `USAGE` or `OWNERSHIP`.
81
81
  */
82
82
  readonly privilege: pulumi.Output<string | undefined>;
83
83
  /**
@@ -130,7 +130,7 @@ export interface FunctionGrantState {
130
130
  */
131
131
  onFuture?: pulumi.Input<boolean>;
132
132
  /**
133
- * The privilege to grant on the current or future function.
133
+ * The privilege to grant on the current or future function. Must be one of `USAGE` or `OWNERSHIP`.
134
134
  */
135
135
  privilege?: pulumi.Input<string>;
136
136
  /**
@@ -175,7 +175,7 @@ export interface FunctionGrantArgs {
175
175
  */
176
176
  onFuture?: pulumi.Input<boolean>;
177
177
  /**
178
- * The privilege to grant on the current or future function.
178
+ * The privilege to grant on the current or future function. Must be one of `USAGE` or `OWNERSHIP`.
179
179
  */
180
180
  privilege?: pulumi.Input<string>;
181
181
  /**
package/functionGrant.js CHANGED
@@ -27,7 +27,7 @@ const utilities = require("./utilities");
27
27
  * },
28
28
  * ],
29
29
  * returnType: "string",
30
- * privilege: "select",
30
+ * privilege: "USAGE",
31
31
  * roles: [
32
32
  * "role1",
33
33
  * "role2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/snowflake",
3
- "version": "v0.5.1",
3
+ "version": "v0.5.3-alpha.1648240150+5c7784fc",
4
4
  "description": "A Pulumi package for creating and managing snowflake cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -11,7 +11,7 @@
11
11
  "license": "Apache-2.0",
12
12
  "scripts": {
13
13
  "build": "tsc",
14
- "install": "node scripts/install-pulumi-plugin.js resource snowflake v0.5.1"
14
+ "install": "node scripts/install-pulumi-plugin.js resource snowflake v0.5.3-alpha.1648240150+5c7784fc"
15
15
  },
16
16
  "dependencies": {
17
17
  "@pulumi/pulumi": "^3.0.0"
package/package.json.dev CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/snowflake",
3
- "version": "v0.5.1",
3
+ "version": "v0.5.3-alpha.1648240150+5c7784fc",
4
4
  "description": "A Pulumi package for creating and managing snowflake cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -11,7 +11,7 @@
11
11
  "license": "Apache-2.0",
12
12
  "scripts": {
13
13
  "build": "tsc",
14
- "install": "node scripts/install-pulumi-plugin.js resource snowflake v0.5.1"
14
+ "install": "node scripts/install-pulumi-plugin.js resource snowflake v0.5.3-alpha.1648240150+5c7784fc"
15
15
  },
16
16
  "dependencies": {
17
17
  "@pulumi/pulumi": "^3.0.0"
package/stageGrant.d.ts CHANGED
@@ -53,7 +53,7 @@ export declare class StageGrant extends pulumi.CustomResource {
53
53
  */
54
54
  readonly databaseName: pulumi.Output<string>;
55
55
  /**
56
- * When this is set to true and a schema*name is provided, apply this grant on all future stages in the given schema. When this is true and no schema*name is provided apply this grant on all future stages in the given database. The stage*name and shares fields must be unset in order to use on*future.
56
+ * When this is set to true and a schema*name is provided, apply this grant on all future stages in the given schema. When this is true and no schema*name is provided apply this grant on all future stages in the given database. The stage*name field must be unset in order to use on*future.
57
57
  */
58
58
  readonly onFuture: pulumi.Output<boolean | undefined>;
59
59
  /**
@@ -68,10 +68,6 @@ export declare class StageGrant extends pulumi.CustomResource {
68
68
  * The name of the schema containing the current stage on which to grant privileges.
69
69
  */
70
70
  readonly schemaName: pulumi.Output<string>;
71
- /**
72
- * Grants privilege to these shares (only valid if onFuture is false).
73
- */
74
- readonly shares: pulumi.Output<string[] | undefined>;
75
71
  /**
76
72
  * The name of the stage on which to grant privilege (only valid if onFuture is false).
77
73
  */
@@ -98,7 +94,7 @@ export interface StageGrantState {
98
94
  */
99
95
  databaseName?: pulumi.Input<string>;
100
96
  /**
101
- * When this is set to true and a schema*name is provided, apply this grant on all future stages in the given schema. When this is true and no schema*name is provided apply this grant on all future stages in the given database. The stage*name and shares fields must be unset in order to use on*future.
97
+ * When this is set to true and a schema*name is provided, apply this grant on all future stages in the given schema. When this is true and no schema*name is provided apply this grant on all future stages in the given database. The stage*name field must be unset in order to use on*future.
102
98
  */
103
99
  onFuture?: pulumi.Input<boolean>;
104
100
  /**
@@ -113,10 +109,6 @@ export interface StageGrantState {
113
109
  * The name of the schema containing the current stage on which to grant privileges.
114
110
  */
115
111
  schemaName?: pulumi.Input<string>;
116
- /**
117
- * Grants privilege to these shares (only valid if onFuture is false).
118
- */
119
- shares?: pulumi.Input<pulumi.Input<string>[]>;
120
112
  /**
121
113
  * The name of the stage on which to grant privilege (only valid if onFuture is false).
122
114
  */
@@ -135,7 +127,7 @@ export interface StageGrantArgs {
135
127
  */
136
128
  databaseName: pulumi.Input<string>;
137
129
  /**
138
- * When this is set to true and a schema*name is provided, apply this grant on all future stages in the given schema. When this is true and no schema*name is provided apply this grant on all future stages in the given database. The stage*name and shares fields must be unset in order to use on*future.
130
+ * When this is set to true and a schema*name is provided, apply this grant on all future stages in the given schema. When this is true and no schema*name is provided apply this grant on all future stages in the given database. The stage*name field must be unset in order to use on*future.
139
131
  */
140
132
  onFuture?: pulumi.Input<boolean>;
141
133
  /**
@@ -150,10 +142,6 @@ export interface StageGrantArgs {
150
142
  * The name of the schema containing the current stage on which to grant privileges.
151
143
  */
152
144
  schemaName: pulumi.Input<string>;
153
- /**
154
- * Grants privilege to these shares (only valid if onFuture is false).
155
- */
156
- shares?: pulumi.Input<pulumi.Input<string>[]>;
157
145
  /**
158
146
  * The name of the stage on which to grant privilege (only valid if onFuture is false).
159
147
  */
package/stageGrant.js CHANGED
@@ -49,7 +49,6 @@ class StageGrant extends pulumi.CustomResource {
49
49
  resourceInputs["privilege"] = state ? state.privilege : undefined;
50
50
  resourceInputs["roles"] = state ? state.roles : undefined;
51
51
  resourceInputs["schemaName"] = state ? state.schemaName : undefined;
52
- resourceInputs["shares"] = state ? state.shares : undefined;
53
52
  resourceInputs["stageName"] = state ? state.stageName : undefined;
54
53
  resourceInputs["withGrantOption"] = state ? state.withGrantOption : undefined;
55
54
  }
@@ -66,7 +65,6 @@ class StageGrant extends pulumi.CustomResource {
66
65
  resourceInputs["privilege"] = args ? args.privilege : undefined;
67
66
  resourceInputs["roles"] = args ? args.roles : undefined;
68
67
  resourceInputs["schemaName"] = args ? args.schemaName : undefined;
69
- resourceInputs["shares"] = args ? args.shares : undefined;
70
68
  resourceInputs["stageName"] = args ? args.stageName : undefined;
71
69
  resourceInputs["withGrantOption"] = args ? args.withGrantOption : undefined;
72
70
  }
package/stageGrant.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"stageGrant.js","sourceRoot":"","sources":["../stageGrant.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IAqEjD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAA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