@pulumi/snowflake 0.50.3-alpha.1712555816 → 0.50.3-alpha.1712742318
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/database.d.ts +24 -6
- package/database.js.map +1 -1
- package/dynamicTable.d.ts +2 -2
- package/getGrants.d.ts +159 -47
- package/getGrants.js +144 -32
- package/getGrants.js.map +1 -1
- package/grantOwnership.d.ts +133 -0
- package/grantOwnership.js +105 -0
- package/grantOwnership.js.map +1 -0
- package/index.d.ts +3 -0
- package/index.js +8 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/procedure.d.ts +3 -3
- package/stage.d.ts +2 -9
- package/stage.js +2 -9
- package/stage.js.map +1 -1
- package/types/input.d.ts +147 -49
- package/types/output.d.ts +117 -39
- package/view.d.ts +9 -3
- package/view.js.map +1 -1
package/database.d.ts
CHANGED
|
@@ -60,9 +60,12 @@ export declare class Database extends pulumi.CustomResource {
|
|
|
60
60
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
61
61
|
*/
|
|
62
62
|
static isInstance(obj: any): obj is Database;
|
|
63
|
+
/**
|
|
64
|
+
* Specifies a comment for the database.
|
|
65
|
+
*/
|
|
63
66
|
readonly comment: pulumi.Output<string | undefined>;
|
|
64
67
|
/**
|
|
65
|
-
* Number of days for which Snowflake retains historical data for performing Time Travel actions (SELECT, CLONE, UNDROP) on the object. A value of 0 effectively disables Time Travel for the specified database. Default value for this field is set to -1, which is a fallback to use Snowflake default. For more information, see Understanding & Using Time Travel.
|
|
68
|
+
* Number of days for which Snowflake retains historical data for performing Time Travel actions (SELECT, CLONE, UNDROP) on the object. A value of 0 effectively disables Time Travel for the specified database. Default value for this field is set to -1, which is a fallback to use Snowflake default. For more information, see [Understanding & Using Time Travel](https://docs.snowflake.com/en/user-guide/data-time-travel).
|
|
66
69
|
*/
|
|
67
70
|
readonly dataRetentionTimeInDays: pulumi.Output<number | undefined>;
|
|
68
71
|
/**
|
|
@@ -70,7 +73,7 @@ export declare class Database extends pulumi.CustomResource {
|
|
|
70
73
|
*/
|
|
71
74
|
readonly fromDatabase: pulumi.Output<string | undefined>;
|
|
72
75
|
/**
|
|
73
|
-
* Specify a fully-qualified path to a database to create a replica from. A fully qualified path follows the format of "
|
|
76
|
+
* Specify a fully-qualified path to a database to create a replica from. A fully qualified path follows the format of `"<organization_name>"."<account_name>"."<db_name>"`. An example would be: `"myorg1"."account1"."db1"`
|
|
74
77
|
*/
|
|
75
78
|
readonly fromReplica: pulumi.Output<string | undefined>;
|
|
76
79
|
/**
|
|
@@ -83,6 +86,9 @@ export declare class Database extends pulumi.CustomResource {
|
|
|
83
86
|
* Specifies a database as transient. Transient databases do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss.
|
|
84
87
|
*/
|
|
85
88
|
readonly isTransient: pulumi.Output<boolean | undefined>;
|
|
89
|
+
/**
|
|
90
|
+
* Specifies the identifier for the database; must be unique for your account.
|
|
91
|
+
*/
|
|
86
92
|
readonly name: pulumi.Output<string>;
|
|
87
93
|
/**
|
|
88
94
|
* When set, specifies the configurations for database replication.
|
|
@@ -101,9 +107,12 @@ export declare class Database extends pulumi.CustomResource {
|
|
|
101
107
|
* Input properties used for looking up and filtering Database resources.
|
|
102
108
|
*/
|
|
103
109
|
export interface DatabaseState {
|
|
110
|
+
/**
|
|
111
|
+
* Specifies a comment for the database.
|
|
112
|
+
*/
|
|
104
113
|
comment?: pulumi.Input<string>;
|
|
105
114
|
/**
|
|
106
|
-
* Number of days for which Snowflake retains historical data for performing Time Travel actions (SELECT, CLONE, UNDROP) on the object. A value of 0 effectively disables Time Travel for the specified database. Default value for this field is set to -1, which is a fallback to use Snowflake default. For more information, see Understanding & Using Time Travel.
|
|
115
|
+
* Number of days for which Snowflake retains historical data for performing Time Travel actions (SELECT, CLONE, UNDROP) on the object. A value of 0 effectively disables Time Travel for the specified database. Default value for this field is set to -1, which is a fallback to use Snowflake default. For more information, see [Understanding & Using Time Travel](https://docs.snowflake.com/en/user-guide/data-time-travel).
|
|
107
116
|
*/
|
|
108
117
|
dataRetentionTimeInDays?: pulumi.Input<number>;
|
|
109
118
|
/**
|
|
@@ -111,7 +120,7 @@ export interface DatabaseState {
|
|
|
111
120
|
*/
|
|
112
121
|
fromDatabase?: pulumi.Input<string>;
|
|
113
122
|
/**
|
|
114
|
-
* Specify a fully-qualified path to a database to create a replica from. A fully qualified path follows the format of "
|
|
123
|
+
* Specify a fully-qualified path to a database to create a replica from. A fully qualified path follows the format of `"<organization_name>"."<account_name>"."<db_name>"`. An example would be: `"myorg1"."account1"."db1"`
|
|
115
124
|
*/
|
|
116
125
|
fromReplica?: pulumi.Input<string>;
|
|
117
126
|
/**
|
|
@@ -124,6 +133,9 @@ export interface DatabaseState {
|
|
|
124
133
|
* Specifies a database as transient. Transient databases do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss.
|
|
125
134
|
*/
|
|
126
135
|
isTransient?: pulumi.Input<boolean>;
|
|
136
|
+
/**
|
|
137
|
+
* Specifies the identifier for the database; must be unique for your account.
|
|
138
|
+
*/
|
|
127
139
|
name?: pulumi.Input<string>;
|
|
128
140
|
/**
|
|
129
141
|
* When set, specifies the configurations for database replication.
|
|
@@ -134,9 +146,12 @@ export interface DatabaseState {
|
|
|
134
146
|
* The set of arguments for constructing a Database resource.
|
|
135
147
|
*/
|
|
136
148
|
export interface DatabaseArgs {
|
|
149
|
+
/**
|
|
150
|
+
* Specifies a comment for the database.
|
|
151
|
+
*/
|
|
137
152
|
comment?: pulumi.Input<string>;
|
|
138
153
|
/**
|
|
139
|
-
* Number of days for which Snowflake retains historical data for performing Time Travel actions (SELECT, CLONE, UNDROP) on the object. A value of 0 effectively disables Time Travel for the specified database. Default value for this field is set to -1, which is a fallback to use Snowflake default. For more information, see Understanding & Using Time Travel.
|
|
154
|
+
* Number of days for which Snowflake retains historical data for performing Time Travel actions (SELECT, CLONE, UNDROP) on the object. A value of 0 effectively disables Time Travel for the specified database. Default value for this field is set to -1, which is a fallback to use Snowflake default. For more information, see [Understanding & Using Time Travel](https://docs.snowflake.com/en/user-guide/data-time-travel).
|
|
140
155
|
*/
|
|
141
156
|
dataRetentionTimeInDays?: pulumi.Input<number>;
|
|
142
157
|
/**
|
|
@@ -144,7 +159,7 @@ export interface DatabaseArgs {
|
|
|
144
159
|
*/
|
|
145
160
|
fromDatabase?: pulumi.Input<string>;
|
|
146
161
|
/**
|
|
147
|
-
* Specify a fully-qualified path to a database to create a replica from. A fully qualified path follows the format of "
|
|
162
|
+
* Specify a fully-qualified path to a database to create a replica from. A fully qualified path follows the format of `"<organization_name>"."<account_name>"."<db_name>"`. An example would be: `"myorg1"."account1"."db1"`
|
|
148
163
|
*/
|
|
149
164
|
fromReplica?: pulumi.Input<string>;
|
|
150
165
|
/**
|
|
@@ -157,6 +172,9 @@ export interface DatabaseArgs {
|
|
|
157
172
|
* Specifies a database as transient. Transient databases do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss.
|
|
158
173
|
*/
|
|
159
174
|
isTransient?: pulumi.Input<boolean>;
|
|
175
|
+
/**
|
|
176
|
+
* Specifies the identifier for the database; must be unique for your account.
|
|
177
|
+
*/
|
|
160
178
|
name?: pulumi.Input<string>;
|
|
161
179
|
/**
|
|
162
180
|
* When set, specifies the configurations for database replication.
|
package/database.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"database.js","sourceRoot":"","sources":["../database.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EA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,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,0BAA0B,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC,SAAS,CAAC;SACjG;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AA/FL,4BAgGC;AAlFG,gBAAgB;AACO,qBAAY,GAAG,mCAAmC,CAAC"}
|
package/dynamicTable.d.ts
CHANGED
|
@@ -118,7 +118,7 @@ export declare class DynamicTable extends pulumi.CustomResource {
|
|
|
118
118
|
*/
|
|
119
119
|
readonly rows: pulumi.Output<number>;
|
|
120
120
|
/**
|
|
121
|
-
* Displays
|
|
121
|
+
* Displays ACTIVE for dynamic tables that are actively scheduling refreshes and SUSPENDED for suspended dynamic tables.
|
|
122
122
|
*/
|
|
123
123
|
readonly schedulingState: pulumi.Output<string>;
|
|
124
124
|
/**
|
|
@@ -219,7 +219,7 @@ export interface DynamicTableState {
|
|
|
219
219
|
*/
|
|
220
220
|
rows?: pulumi.Input<number>;
|
|
221
221
|
/**
|
|
222
|
-
* Displays
|
|
222
|
+
* Displays ACTIVE for dynamic tables that are actively scheduling refreshes and SUSPENDED for suspended dynamic tables.
|
|
223
223
|
*/
|
|
224
224
|
schedulingState?: pulumi.Input<string>;
|
|
225
225
|
/**
|
package/getGrants.d.ts
CHANGED
|
@@ -9,43 +9,99 @@ import * as outputs from "./types/output";
|
|
|
9
9
|
* import * as pulumi from "@pulumi/pulumi";
|
|
10
10
|
* import * as snowflake from "@pulumi/snowflake";
|
|
11
11
|
*
|
|
12
|
-
* const
|
|
12
|
+
* const exampleOnAccount = snowflake.getGrants({
|
|
13
13
|
* grantsOn: {
|
|
14
14
|
* account: true,
|
|
15
15
|
* },
|
|
16
16
|
* });
|
|
17
|
-
* const
|
|
17
|
+
* const exampleOnAccountObject = snowflake.getGrants({
|
|
18
18
|
* grantsOn: {
|
|
19
|
-
* objectName: "
|
|
19
|
+
* objectName: "some_database",
|
|
20
20
|
* objectType: "DATABASE",
|
|
21
21
|
* },
|
|
22
22
|
* });
|
|
23
|
-
* const
|
|
23
|
+
* const exampleOnDatabaseObject = snowflake.getGrants({
|
|
24
|
+
* grantsOn: {
|
|
25
|
+
* objectName: "\"some_database\".\"some_schema\"",
|
|
26
|
+
* objectType: "SCHEMA",
|
|
27
|
+
* },
|
|
28
|
+
* });
|
|
29
|
+
* const exampleOnSchemaObject = snowflake.getGrants({
|
|
30
|
+
* grantsOn: {
|
|
31
|
+
* objectName: "\"some_database\".\"some_schema\".\"some_table\"",
|
|
32
|
+
* objectType: "TABLE",
|
|
33
|
+
* },
|
|
34
|
+
* });
|
|
35
|
+
* const exampleToApplication = snowflake.getGrants({
|
|
36
|
+
* grantsTo: {
|
|
37
|
+
* application: "some_application",
|
|
38
|
+
* },
|
|
39
|
+
* });
|
|
40
|
+
* const exampleToApplicationRole = snowflake.getGrants({
|
|
24
41
|
* grantsTo: {
|
|
25
|
-
*
|
|
42
|
+
* applicationRole: "\"some_application\".\"some_application_role\"",
|
|
26
43
|
* },
|
|
27
44
|
* });
|
|
28
|
-
* const
|
|
45
|
+
* const exampleToRole = snowflake.getGrants({
|
|
46
|
+
* grantsTo: {
|
|
47
|
+
* accountRole: "some_role",
|
|
48
|
+
* },
|
|
49
|
+
* });
|
|
50
|
+
* const exampleToDatabaseRole = snowflake.getGrants({
|
|
51
|
+
* grantsTo: {
|
|
52
|
+
* databaseRole: "\"some_database\".\"some_database_role\"",
|
|
53
|
+
* },
|
|
54
|
+
* });
|
|
55
|
+
* const exampleToShare = snowflake.getGrants({
|
|
56
|
+
* grantsTo: {
|
|
57
|
+
* share: {
|
|
58
|
+
* shareName: "some_share",
|
|
59
|
+
* },
|
|
60
|
+
* },
|
|
61
|
+
* });
|
|
62
|
+
* const exampleToUser = snowflake.getGrants({
|
|
63
|
+
* grantsTo: {
|
|
64
|
+
* user: "some_user",
|
|
65
|
+
* },
|
|
66
|
+
* });
|
|
67
|
+
* const exampleOfApplicationRole = snowflake.getGrants({
|
|
29
68
|
* grantsOf: {
|
|
30
|
-
*
|
|
69
|
+
* applicationRole: "\"some_application\".\"some_application_role\"",
|
|
31
70
|
* },
|
|
32
71
|
* });
|
|
33
|
-
* const
|
|
72
|
+
* const exampleOfDatabaseRole = snowflake.getGrants({
|
|
73
|
+
* grantsOf: {
|
|
74
|
+
* databaseRole: "\"some_database\".\"some_database_role\"",
|
|
75
|
+
* },
|
|
76
|
+
* });
|
|
77
|
+
* const exampleOfRole = snowflake.getGrants({
|
|
78
|
+
* grantsOf: {
|
|
79
|
+
* accountRole: "some_role",
|
|
80
|
+
* },
|
|
81
|
+
* });
|
|
82
|
+
* const exampleOfShare = snowflake.getGrants({
|
|
83
|
+
* grantsOf: {
|
|
84
|
+
* share: "some_share",
|
|
85
|
+
* },
|
|
86
|
+
* });
|
|
87
|
+
* const exampleFutureInDatabase = snowflake.getGrants({
|
|
34
88
|
* futureGrantsIn: {
|
|
35
|
-
* database: "
|
|
89
|
+
* database: "some_database",
|
|
36
90
|
* },
|
|
37
91
|
* });
|
|
38
|
-
* const
|
|
92
|
+
* const exampleFutureInSchema = snowflake.getGrants({
|
|
39
93
|
* futureGrantsIn: {
|
|
40
|
-
* schema:
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
94
|
+
* schema: "\"some_database\".\"some_schema\"",
|
|
95
|
+
* },
|
|
96
|
+
* });
|
|
97
|
+
* const exampleFutureToRole = snowflake.getGrants({
|
|
98
|
+
* futureGrantsTo: {
|
|
99
|
+
* accountRole: "some_role",
|
|
44
100
|
* },
|
|
45
101
|
* });
|
|
46
|
-
* const
|
|
102
|
+
* const exampleFutureToDatabaseRole = snowflake.getGrants({
|
|
47
103
|
* futureGrantsTo: {
|
|
48
|
-
*
|
|
104
|
+
* databaseRole: "\"some_database\".\"some_database_role\"",
|
|
49
105
|
* },
|
|
50
106
|
* });
|
|
51
107
|
* ```
|
|
@@ -57,23 +113,23 @@ export declare function getGrants(args?: GetGrantsArgs, opts?: pulumi.InvokeOpti
|
|
|
57
113
|
*/
|
|
58
114
|
export interface GetGrantsArgs {
|
|
59
115
|
/**
|
|
60
|
-
* Lists all privileges on new (i.e. future) objects
|
|
116
|
+
* Lists all privileges on new (i.e. future) objects.
|
|
61
117
|
*/
|
|
62
118
|
futureGrantsIn?: inputs.GetGrantsFutureGrantsIn;
|
|
63
119
|
/**
|
|
64
|
-
* Lists all privileges granted to the object on new (i.e. future) objects
|
|
120
|
+
* Lists all privileges granted to the object on new (i.e. future) objects.
|
|
65
121
|
*/
|
|
66
122
|
futureGrantsTo?: inputs.GetGrantsFutureGrantsTo;
|
|
67
123
|
/**
|
|
68
|
-
* Lists all objects to which the given object has been granted
|
|
124
|
+
* Lists all objects to which the given object has been granted.
|
|
69
125
|
*/
|
|
70
126
|
grantsOf?: inputs.GetGrantsGrantsOf;
|
|
71
127
|
/**
|
|
72
|
-
* Lists all privileges that have been granted on an object or account
|
|
128
|
+
* Lists all privileges that have been granted on an object or on an account.
|
|
73
129
|
*/
|
|
74
130
|
grantsOn?: inputs.GetGrantsGrantsOn;
|
|
75
131
|
/**
|
|
76
|
-
* Lists all privileges granted to the object
|
|
132
|
+
* Lists all privileges granted to the object.
|
|
77
133
|
*/
|
|
78
134
|
grantsTo?: inputs.GetGrantsGrantsTo;
|
|
79
135
|
}
|
|
@@ -82,11 +138,11 @@ export interface GetGrantsArgs {
|
|
|
82
138
|
*/
|
|
83
139
|
export interface GetGrantsResult {
|
|
84
140
|
/**
|
|
85
|
-
* Lists all privileges on new (i.e. future) objects
|
|
141
|
+
* Lists all privileges on new (i.e. future) objects.
|
|
86
142
|
*/
|
|
87
143
|
readonly futureGrantsIn?: outputs.GetGrantsFutureGrantsIn;
|
|
88
144
|
/**
|
|
89
|
-
* Lists all privileges granted to the object on new (i.e. future) objects
|
|
145
|
+
* Lists all privileges granted to the object on new (i.e. future) objects.
|
|
90
146
|
*/
|
|
91
147
|
readonly futureGrantsTo?: outputs.GetGrantsFutureGrantsTo;
|
|
92
148
|
/**
|
|
@@ -94,15 +150,15 @@ export interface GetGrantsResult {
|
|
|
94
150
|
*/
|
|
95
151
|
readonly grants: outputs.GetGrantsGrant[];
|
|
96
152
|
/**
|
|
97
|
-
* Lists all objects to which the given object has been granted
|
|
153
|
+
* Lists all objects to which the given object has been granted.
|
|
98
154
|
*/
|
|
99
155
|
readonly grantsOf?: outputs.GetGrantsGrantsOf;
|
|
100
156
|
/**
|
|
101
|
-
* Lists all privileges that have been granted on an object or account
|
|
157
|
+
* Lists all privileges that have been granted on an object or on an account.
|
|
102
158
|
*/
|
|
103
159
|
readonly grantsOn?: outputs.GetGrantsGrantsOn;
|
|
104
160
|
/**
|
|
105
|
-
* Lists all privileges granted to the object
|
|
161
|
+
* Lists all privileges granted to the object.
|
|
106
162
|
*/
|
|
107
163
|
readonly grantsTo?: outputs.GetGrantsGrantsTo;
|
|
108
164
|
/**
|
|
@@ -118,43 +174,99 @@ export interface GetGrantsResult {
|
|
|
118
174
|
* import * as pulumi from "@pulumi/pulumi";
|
|
119
175
|
* import * as snowflake from "@pulumi/snowflake";
|
|
120
176
|
*
|
|
121
|
-
* const
|
|
177
|
+
* const exampleOnAccount = snowflake.getGrants({
|
|
122
178
|
* grantsOn: {
|
|
123
179
|
* account: true,
|
|
124
180
|
* },
|
|
125
181
|
* });
|
|
126
|
-
* const
|
|
182
|
+
* const exampleOnAccountObject = snowflake.getGrants({
|
|
127
183
|
* grantsOn: {
|
|
128
|
-
* objectName: "
|
|
184
|
+
* objectName: "some_database",
|
|
129
185
|
* objectType: "DATABASE",
|
|
130
186
|
* },
|
|
131
187
|
* });
|
|
132
|
-
* const
|
|
188
|
+
* const exampleOnDatabaseObject = snowflake.getGrants({
|
|
189
|
+
* grantsOn: {
|
|
190
|
+
* objectName: "\"some_database\".\"some_schema\"",
|
|
191
|
+
* objectType: "SCHEMA",
|
|
192
|
+
* },
|
|
193
|
+
* });
|
|
194
|
+
* const exampleOnSchemaObject = snowflake.getGrants({
|
|
195
|
+
* grantsOn: {
|
|
196
|
+
* objectName: "\"some_database\".\"some_schema\".\"some_table\"",
|
|
197
|
+
* objectType: "TABLE",
|
|
198
|
+
* },
|
|
199
|
+
* });
|
|
200
|
+
* const exampleToApplication = snowflake.getGrants({
|
|
201
|
+
* grantsTo: {
|
|
202
|
+
* application: "some_application",
|
|
203
|
+
* },
|
|
204
|
+
* });
|
|
205
|
+
* const exampleToApplicationRole = snowflake.getGrants({
|
|
133
206
|
* grantsTo: {
|
|
134
|
-
*
|
|
207
|
+
* applicationRole: "\"some_application\".\"some_application_role\"",
|
|
135
208
|
* },
|
|
136
209
|
* });
|
|
137
|
-
* const
|
|
210
|
+
* const exampleToRole = snowflake.getGrants({
|
|
211
|
+
* grantsTo: {
|
|
212
|
+
* accountRole: "some_role",
|
|
213
|
+
* },
|
|
214
|
+
* });
|
|
215
|
+
* const exampleToDatabaseRole = snowflake.getGrants({
|
|
216
|
+
* grantsTo: {
|
|
217
|
+
* databaseRole: "\"some_database\".\"some_database_role\"",
|
|
218
|
+
* },
|
|
219
|
+
* });
|
|
220
|
+
* const exampleToShare = snowflake.getGrants({
|
|
221
|
+
* grantsTo: {
|
|
222
|
+
* share: {
|
|
223
|
+
* shareName: "some_share",
|
|
224
|
+
* },
|
|
225
|
+
* },
|
|
226
|
+
* });
|
|
227
|
+
* const exampleToUser = snowflake.getGrants({
|
|
228
|
+
* grantsTo: {
|
|
229
|
+
* user: "some_user",
|
|
230
|
+
* },
|
|
231
|
+
* });
|
|
232
|
+
* const exampleOfApplicationRole = snowflake.getGrants({
|
|
138
233
|
* grantsOf: {
|
|
139
|
-
*
|
|
234
|
+
* applicationRole: "\"some_application\".\"some_application_role\"",
|
|
140
235
|
* },
|
|
141
236
|
* });
|
|
142
|
-
* const
|
|
237
|
+
* const exampleOfDatabaseRole = snowflake.getGrants({
|
|
238
|
+
* grantsOf: {
|
|
239
|
+
* databaseRole: "\"some_database\".\"some_database_role\"",
|
|
240
|
+
* },
|
|
241
|
+
* });
|
|
242
|
+
* const exampleOfRole = snowflake.getGrants({
|
|
243
|
+
* grantsOf: {
|
|
244
|
+
* accountRole: "some_role",
|
|
245
|
+
* },
|
|
246
|
+
* });
|
|
247
|
+
* const exampleOfShare = snowflake.getGrants({
|
|
248
|
+
* grantsOf: {
|
|
249
|
+
* share: "some_share",
|
|
250
|
+
* },
|
|
251
|
+
* });
|
|
252
|
+
* const exampleFutureInDatabase = snowflake.getGrants({
|
|
143
253
|
* futureGrantsIn: {
|
|
144
|
-
* database: "
|
|
254
|
+
* database: "some_database",
|
|
145
255
|
* },
|
|
146
256
|
* });
|
|
147
|
-
* const
|
|
257
|
+
* const exampleFutureInSchema = snowflake.getGrants({
|
|
148
258
|
* futureGrantsIn: {
|
|
149
|
-
* schema:
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
*
|
|
259
|
+
* schema: "\"some_database\".\"some_schema\"",
|
|
260
|
+
* },
|
|
261
|
+
* });
|
|
262
|
+
* const exampleFutureToRole = snowflake.getGrants({
|
|
263
|
+
* futureGrantsTo: {
|
|
264
|
+
* accountRole: "some_role",
|
|
153
265
|
* },
|
|
154
266
|
* });
|
|
155
|
-
* const
|
|
267
|
+
* const exampleFutureToDatabaseRole = snowflake.getGrants({
|
|
156
268
|
* futureGrantsTo: {
|
|
157
|
-
*
|
|
269
|
+
* databaseRole: "\"some_database\".\"some_database_role\"",
|
|
158
270
|
* },
|
|
159
271
|
* });
|
|
160
272
|
* ```
|
|
@@ -166,23 +278,23 @@ export declare function getGrantsOutput(args?: GetGrantsOutputArgs, opts?: pulum
|
|
|
166
278
|
*/
|
|
167
279
|
export interface GetGrantsOutputArgs {
|
|
168
280
|
/**
|
|
169
|
-
* Lists all privileges on new (i.e. future) objects
|
|
281
|
+
* Lists all privileges on new (i.e. future) objects.
|
|
170
282
|
*/
|
|
171
283
|
futureGrantsIn?: pulumi.Input<inputs.GetGrantsFutureGrantsInArgs>;
|
|
172
284
|
/**
|
|
173
|
-
* Lists all privileges granted to the object on new (i.e. future) objects
|
|
285
|
+
* Lists all privileges granted to the object on new (i.e. future) objects.
|
|
174
286
|
*/
|
|
175
287
|
futureGrantsTo?: pulumi.Input<inputs.GetGrantsFutureGrantsToArgs>;
|
|
176
288
|
/**
|
|
177
|
-
* Lists all objects to which the given object has been granted
|
|
289
|
+
* Lists all objects to which the given object has been granted.
|
|
178
290
|
*/
|
|
179
291
|
grantsOf?: pulumi.Input<inputs.GetGrantsGrantsOfArgs>;
|
|
180
292
|
/**
|
|
181
|
-
* Lists all privileges that have been granted on an object or account
|
|
293
|
+
* Lists all privileges that have been granted on an object or on an account.
|
|
182
294
|
*/
|
|
183
295
|
grantsOn?: pulumi.Input<inputs.GetGrantsGrantsOnArgs>;
|
|
184
296
|
/**
|
|
185
|
-
* Lists all privileges granted to the object
|
|
297
|
+
* Lists all privileges granted to the object.
|
|
186
298
|
*/
|
|
187
299
|
grantsTo?: pulumi.Input<inputs.GetGrantsGrantsToArgs>;
|
|
188
300
|
}
|