@pulumi/snowflake 0.47.2-alpha.1706831107 → 0.48.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.
- package/getRowAccessPolicies.d.ts +1 -1
- package/grantPrivilegesToAccountRole.d.ts +197 -0
- package/grantPrivilegesToAccountRole.js +97 -0
- package/grantPrivilegesToAccountRole.js.map +1 -0
- package/grantPrivilegesToDatabaseRole.d.ts +5 -3
- package/grantPrivilegesToDatabaseRole.js +2 -0
- package/grantPrivilegesToDatabaseRole.js.map +1 -1
- package/grantPrivilegesToShare.d.ts +141 -0
- package/grantPrivilegesToShare.js +78 -0
- package/grantPrivilegesToShare.js.map +1 -0
- package/index.d.ts +6 -0
- package/index.js +13 -3
- package/index.js.map +1 -1
- package/notificationIntegration.d.ts +50 -18
- package/notificationIntegration.js +3 -0
- package/notificationIntegration.js.map +1 -1
- package/package.json +1 -1
- package/sequence.d.ts +14 -2
- package/sequence.js +2 -0
- package/sequence.js.map +1 -1
- package/types/input.d.ts +58 -0
- package/types/output.d.ts +58 -0
|
@@ -38,7 +38,7 @@ export interface GetRowAccessPoliciesResult {
|
|
|
38
38
|
*/
|
|
39
39
|
readonly rowAccessPolicies: outputs.GetRowAccessPoliciesRowAccessPolicy[];
|
|
40
40
|
/**
|
|
41
|
-
* The schema from which to return the row access
|
|
41
|
+
* The schema from which to return the row access policy from.
|
|
42
42
|
*/
|
|
43
43
|
readonly schema: string;
|
|
44
44
|
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* ## Import
|
|
6
|
+
*
|
|
7
|
+
* ### Import examples #### Grant all privileges OnAccountObject (Database)
|
|
8
|
+
*
|
|
9
|
+
* ```sh
|
|
10
|
+
* $ pulumi import snowflake:index/grantPrivilegesToAccountRole:GrantPrivilegesToAccountRole `"\"test_db_role\"|false|false|ALL|OnAccountObject|DATABASE|\"test_db\""`
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* #### Grant list of privileges OnAllSchemasInDatabase
|
|
14
|
+
*
|
|
15
|
+
* ```sh
|
|
16
|
+
* $ pulumi import snowflake:index/grantPrivilegesToAccountRole:GrantPrivilegesToAccountRole `"\"test_db_role\"|false|false|CREATE TAG,CREATE TABLE|OnSchema|OnAllSchemasInDatabase|\"test_db\""`
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* #### Grant list of privileges on table
|
|
20
|
+
*
|
|
21
|
+
* ```sh
|
|
22
|
+
* $ pulumi import snowflake:index/grantPrivilegesToAccountRole:GrantPrivilegesToAccountRole \"test_table\""`
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* #### Grant list of privileges OnAll tables in schema
|
|
26
|
+
*
|
|
27
|
+
* ```sh
|
|
28
|
+
* $ pulumi import snowflake:index/grantPrivilegesToAccountRole:GrantPrivilegesToAccountRole \"test_schema\""`
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare class GrantPrivilegesToAccountRole extends pulumi.CustomResource {
|
|
32
|
+
/**
|
|
33
|
+
* Get an existing GrantPrivilegesToAccountRole resource's state with the given name, ID, and optional extra
|
|
34
|
+
* properties used to qualify the lookup.
|
|
35
|
+
*
|
|
36
|
+
* @param name The _unique_ name of the resulting resource.
|
|
37
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
38
|
+
* @param state Any extra arguments used during the lookup.
|
|
39
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
40
|
+
*/
|
|
41
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GrantPrivilegesToAccountRoleState, opts?: pulumi.CustomResourceOptions): GrantPrivilegesToAccountRole;
|
|
42
|
+
/**
|
|
43
|
+
* Returns true if the given object is an instance of GrantPrivilegesToAccountRole. This is designed to work even
|
|
44
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
45
|
+
*/
|
|
46
|
+
static isInstance(obj: any): obj is GrantPrivilegesToAccountRole;
|
|
47
|
+
/**
|
|
48
|
+
* The fully qualified name of the account role to which privileges will be granted.
|
|
49
|
+
*/
|
|
50
|
+
readonly accountRoleName: pulumi.Output<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Grant all privileges on the account role.
|
|
53
|
+
*/
|
|
54
|
+
readonly allPrivileges: pulumi.Output<boolean | undefined>;
|
|
55
|
+
/**
|
|
56
|
+
* If true, the resource will always produce a “plan” and on “apply” it will re-grant defined privileges. It is
|
|
57
|
+
* supposed to be used only in “grant privileges on all X’s in database / schema Y” or “grant all privileges to
|
|
58
|
+
* X” scenarios to make sure that every new object in a given database / schema is granted by the account role and every
|
|
59
|
+
* new privilege is granted to the database role. Important note: this flag is not compliant with the Terraform assumptions
|
|
60
|
+
* of the config being eventually convergent (producing an empty plan).
|
|
61
|
+
*/
|
|
62
|
+
readonly alwaysApply: pulumi.Output<boolean | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* This is a helper field and should not be set. Its main purpose is to help to achieve the functionality described by the alwaysApply field.
|
|
65
|
+
*/
|
|
66
|
+
readonly alwaysApplyTrigger: pulumi.Output<string | undefined>;
|
|
67
|
+
/**
|
|
68
|
+
* If true, the privileges will be granted on the account.
|
|
69
|
+
*/
|
|
70
|
+
readonly onAccount: pulumi.Output<boolean | undefined>;
|
|
71
|
+
/**
|
|
72
|
+
* Specifies the account object on which privileges will be granted
|
|
73
|
+
*/
|
|
74
|
+
readonly onAccountObject: pulumi.Output<outputs.GrantPrivilegesToAccountRoleOnAccountObject | undefined>;
|
|
75
|
+
/**
|
|
76
|
+
* Specifies the schema on which privileges will be granted.
|
|
77
|
+
*/
|
|
78
|
+
readonly onSchema: pulumi.Output<outputs.GrantPrivilegesToAccountRoleOnSchema | undefined>;
|
|
79
|
+
/**
|
|
80
|
+
* Specifies the schema object on which privileges will be granted.
|
|
81
|
+
*/
|
|
82
|
+
readonly onSchemaObject: pulumi.Output<outputs.GrantPrivilegesToAccountRoleOnSchemaObject | undefined>;
|
|
83
|
+
/**
|
|
84
|
+
* The privileges to grant on the account role.
|
|
85
|
+
*/
|
|
86
|
+
readonly privileges: pulumi.Output<string[] | undefined>;
|
|
87
|
+
/**
|
|
88
|
+
* Specifies whether the grantee can grant the privileges to other users.
|
|
89
|
+
*/
|
|
90
|
+
readonly withGrantOption: pulumi.Output<boolean | undefined>;
|
|
91
|
+
/**
|
|
92
|
+
* Create a GrantPrivilegesToAccountRole resource with the given unique name, arguments, and options.
|
|
93
|
+
*
|
|
94
|
+
* @param name The _unique_ name of the resource.
|
|
95
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
96
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
97
|
+
*/
|
|
98
|
+
constructor(name: string, args: GrantPrivilegesToAccountRoleArgs, opts?: pulumi.CustomResourceOptions);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Input properties used for looking up and filtering GrantPrivilegesToAccountRole resources.
|
|
102
|
+
*/
|
|
103
|
+
export interface GrantPrivilegesToAccountRoleState {
|
|
104
|
+
/**
|
|
105
|
+
* The fully qualified name of the account role to which privileges will be granted.
|
|
106
|
+
*/
|
|
107
|
+
accountRoleName?: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* Grant all privileges on the account role.
|
|
110
|
+
*/
|
|
111
|
+
allPrivileges?: pulumi.Input<boolean>;
|
|
112
|
+
/**
|
|
113
|
+
* If true, the resource will always produce a “plan” and on “apply” it will re-grant defined privileges. It is
|
|
114
|
+
* supposed to be used only in “grant privileges on all X’s in database / schema Y” or “grant all privileges to
|
|
115
|
+
* X” scenarios to make sure that every new object in a given database / schema is granted by the account role and every
|
|
116
|
+
* new privilege is granted to the database role. Important note: this flag is not compliant with the Terraform assumptions
|
|
117
|
+
* of the config being eventually convergent (producing an empty plan).
|
|
118
|
+
*/
|
|
119
|
+
alwaysApply?: pulumi.Input<boolean>;
|
|
120
|
+
/**
|
|
121
|
+
* This is a helper field and should not be set. Its main purpose is to help to achieve the functionality described by the alwaysApply field.
|
|
122
|
+
*/
|
|
123
|
+
alwaysApplyTrigger?: pulumi.Input<string>;
|
|
124
|
+
/**
|
|
125
|
+
* If true, the privileges will be granted on the account.
|
|
126
|
+
*/
|
|
127
|
+
onAccount?: pulumi.Input<boolean>;
|
|
128
|
+
/**
|
|
129
|
+
* Specifies the account object on which privileges will be granted
|
|
130
|
+
*/
|
|
131
|
+
onAccountObject?: pulumi.Input<inputs.GrantPrivilegesToAccountRoleOnAccountObject>;
|
|
132
|
+
/**
|
|
133
|
+
* Specifies the schema on which privileges will be granted.
|
|
134
|
+
*/
|
|
135
|
+
onSchema?: pulumi.Input<inputs.GrantPrivilegesToAccountRoleOnSchema>;
|
|
136
|
+
/**
|
|
137
|
+
* Specifies the schema object on which privileges will be granted.
|
|
138
|
+
*/
|
|
139
|
+
onSchemaObject?: pulumi.Input<inputs.GrantPrivilegesToAccountRoleOnSchemaObject>;
|
|
140
|
+
/**
|
|
141
|
+
* The privileges to grant on the account role.
|
|
142
|
+
*/
|
|
143
|
+
privileges?: pulumi.Input<pulumi.Input<string>[]>;
|
|
144
|
+
/**
|
|
145
|
+
* Specifies whether the grantee can grant the privileges to other users.
|
|
146
|
+
*/
|
|
147
|
+
withGrantOption?: pulumi.Input<boolean>;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* The set of arguments for constructing a GrantPrivilegesToAccountRole resource.
|
|
151
|
+
*/
|
|
152
|
+
export interface GrantPrivilegesToAccountRoleArgs {
|
|
153
|
+
/**
|
|
154
|
+
* The fully qualified name of the account role to which privileges will be granted.
|
|
155
|
+
*/
|
|
156
|
+
accountRoleName: pulumi.Input<string>;
|
|
157
|
+
/**
|
|
158
|
+
* Grant all privileges on the account role.
|
|
159
|
+
*/
|
|
160
|
+
allPrivileges?: pulumi.Input<boolean>;
|
|
161
|
+
/**
|
|
162
|
+
* If true, the resource will always produce a “plan” and on “apply” it will re-grant defined privileges. It is
|
|
163
|
+
* supposed to be used only in “grant privileges on all X’s in database / schema Y” or “grant all privileges to
|
|
164
|
+
* X” scenarios to make sure that every new object in a given database / schema is granted by the account role and every
|
|
165
|
+
* new privilege is granted to the database role. Important note: this flag is not compliant with the Terraform assumptions
|
|
166
|
+
* of the config being eventually convergent (producing an empty plan).
|
|
167
|
+
*/
|
|
168
|
+
alwaysApply?: pulumi.Input<boolean>;
|
|
169
|
+
/**
|
|
170
|
+
* This is a helper field and should not be set. Its main purpose is to help to achieve the functionality described by the alwaysApply field.
|
|
171
|
+
*/
|
|
172
|
+
alwaysApplyTrigger?: pulumi.Input<string>;
|
|
173
|
+
/**
|
|
174
|
+
* If true, the privileges will be granted on the account.
|
|
175
|
+
*/
|
|
176
|
+
onAccount?: pulumi.Input<boolean>;
|
|
177
|
+
/**
|
|
178
|
+
* Specifies the account object on which privileges will be granted
|
|
179
|
+
*/
|
|
180
|
+
onAccountObject?: pulumi.Input<inputs.GrantPrivilegesToAccountRoleOnAccountObject>;
|
|
181
|
+
/**
|
|
182
|
+
* Specifies the schema on which privileges will be granted.
|
|
183
|
+
*/
|
|
184
|
+
onSchema?: pulumi.Input<inputs.GrantPrivilegesToAccountRoleOnSchema>;
|
|
185
|
+
/**
|
|
186
|
+
* Specifies the schema object on which privileges will be granted.
|
|
187
|
+
*/
|
|
188
|
+
onSchemaObject?: pulumi.Input<inputs.GrantPrivilegesToAccountRoleOnSchemaObject>;
|
|
189
|
+
/**
|
|
190
|
+
* The privileges to grant on the account role.
|
|
191
|
+
*/
|
|
192
|
+
privileges?: pulumi.Input<pulumi.Input<string>[]>;
|
|
193
|
+
/**
|
|
194
|
+
* Specifies whether the grantee can grant the privileges to other users.
|
|
195
|
+
*/
|
|
196
|
+
withGrantOption?: pulumi.Input<boolean>;
|
|
197
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
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.GrantPrivilegesToAccountRole = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Import
|
|
10
|
+
*
|
|
11
|
+
* ### Import examples #### Grant all privileges OnAccountObject (Database)
|
|
12
|
+
*
|
|
13
|
+
* ```sh
|
|
14
|
+
* $ pulumi import snowflake:index/grantPrivilegesToAccountRole:GrantPrivilegesToAccountRole `"\"test_db_role\"|false|false|ALL|OnAccountObject|DATABASE|\"test_db\""`
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* #### Grant list of privileges OnAllSchemasInDatabase
|
|
18
|
+
*
|
|
19
|
+
* ```sh
|
|
20
|
+
* $ pulumi import snowflake:index/grantPrivilegesToAccountRole:GrantPrivilegesToAccountRole `"\"test_db_role\"|false|false|CREATE TAG,CREATE TABLE|OnSchema|OnAllSchemasInDatabase|\"test_db\""`
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* #### Grant list of privileges on table
|
|
24
|
+
*
|
|
25
|
+
* ```sh
|
|
26
|
+
* $ pulumi import snowflake:index/grantPrivilegesToAccountRole:GrantPrivilegesToAccountRole \"test_table\""`
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* #### Grant list of privileges OnAll tables in schema
|
|
30
|
+
*
|
|
31
|
+
* ```sh
|
|
32
|
+
* $ pulumi import snowflake:index/grantPrivilegesToAccountRole:GrantPrivilegesToAccountRole \"test_schema\""`
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
class GrantPrivilegesToAccountRole extends pulumi.CustomResource {
|
|
36
|
+
/**
|
|
37
|
+
* Get an existing GrantPrivilegesToAccountRole resource's state with the given name, ID, and optional extra
|
|
38
|
+
* properties used to qualify the lookup.
|
|
39
|
+
*
|
|
40
|
+
* @param name The _unique_ name of the resulting resource.
|
|
41
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
42
|
+
* @param state Any extra arguments used during the lookup.
|
|
43
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
44
|
+
*/
|
|
45
|
+
static get(name, id, state, opts) {
|
|
46
|
+
return new GrantPrivilegesToAccountRole(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of GrantPrivilegesToAccountRole. This is designed to work even
|
|
50
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
|
+
*/
|
|
52
|
+
static isInstance(obj) {
|
|
53
|
+
if (obj === undefined || obj === null) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
return obj['__pulumiType'] === GrantPrivilegesToAccountRole.__pulumiType;
|
|
57
|
+
}
|
|
58
|
+
constructor(name, argsOrState, opts) {
|
|
59
|
+
let resourceInputs = {};
|
|
60
|
+
opts = opts || {};
|
|
61
|
+
if (opts.id) {
|
|
62
|
+
const state = argsOrState;
|
|
63
|
+
resourceInputs["accountRoleName"] = state ? state.accountRoleName : undefined;
|
|
64
|
+
resourceInputs["allPrivileges"] = state ? state.allPrivileges : undefined;
|
|
65
|
+
resourceInputs["alwaysApply"] = state ? state.alwaysApply : undefined;
|
|
66
|
+
resourceInputs["alwaysApplyTrigger"] = state ? state.alwaysApplyTrigger : undefined;
|
|
67
|
+
resourceInputs["onAccount"] = state ? state.onAccount : undefined;
|
|
68
|
+
resourceInputs["onAccountObject"] = state ? state.onAccountObject : undefined;
|
|
69
|
+
resourceInputs["onSchema"] = state ? state.onSchema : undefined;
|
|
70
|
+
resourceInputs["onSchemaObject"] = state ? state.onSchemaObject : undefined;
|
|
71
|
+
resourceInputs["privileges"] = state ? state.privileges : undefined;
|
|
72
|
+
resourceInputs["withGrantOption"] = state ? state.withGrantOption : undefined;
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
const args = argsOrState;
|
|
76
|
+
if ((!args || args.accountRoleName === undefined) && !opts.urn) {
|
|
77
|
+
throw new Error("Missing required property 'accountRoleName'");
|
|
78
|
+
}
|
|
79
|
+
resourceInputs["accountRoleName"] = args ? args.accountRoleName : undefined;
|
|
80
|
+
resourceInputs["allPrivileges"] = args ? args.allPrivileges : undefined;
|
|
81
|
+
resourceInputs["alwaysApply"] = args ? args.alwaysApply : undefined;
|
|
82
|
+
resourceInputs["alwaysApplyTrigger"] = args ? args.alwaysApplyTrigger : undefined;
|
|
83
|
+
resourceInputs["onAccount"] = args ? args.onAccount : undefined;
|
|
84
|
+
resourceInputs["onAccountObject"] = args ? args.onAccountObject : undefined;
|
|
85
|
+
resourceInputs["onSchema"] = args ? args.onSchema : undefined;
|
|
86
|
+
resourceInputs["onSchemaObject"] = args ? args.onSchemaObject : undefined;
|
|
87
|
+
resourceInputs["privileges"] = args ? args.privileges : undefined;
|
|
88
|
+
resourceInputs["withGrantOption"] = args ? args.withGrantOption : undefined;
|
|
89
|
+
}
|
|
90
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
91
|
+
super(GrantPrivilegesToAccountRole.__pulumiType, name, resourceInputs, opts);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.GrantPrivilegesToAccountRole = GrantPrivilegesToAccountRole;
|
|
95
|
+
/** @internal */
|
|
96
|
+
GrantPrivilegesToAccountRole.__pulumiType = 'snowflake:index/grantPrivilegesToAccountRole:GrantPrivilegesToAccountRole';
|
|
97
|
+
//# sourceMappingURL=grantPrivilegesToAccountRole.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grantPrivilegesToAccountRole.js","sourceRoot":"","sources":["../grantPrivilegesToAccountRole.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC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CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/E;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,4BAA4B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjF,CAAC;;AAlHL,oEAmHC;AArGG,gBAAgB;AACO,yCAAY,GAAG,2EAA2E,CAAC"}
|
|
@@ -2,6 +2,8 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
+
* > **Note** This is a preview resource. It's ready for general use. In case of any errors, please file an issue in our GitHub repository.
|
|
6
|
+
*
|
|
5
7
|
* !> **Warning** Be careful when using `alwaysApply` field. It will always produce a plan (even when no changes were made) and can be harmful in some setups. For more details why we decided to introduce it to go our document explaining those design decisions (coming soon).
|
|
6
8
|
*
|
|
7
9
|
* ## Example Usage
|
|
@@ -130,7 +132,7 @@ export declare class GrantPrivilegesToDatabaseRole extends pulumi.CustomResource
|
|
|
130
132
|
*/
|
|
131
133
|
readonly alwaysApply: pulumi.Output<boolean | undefined>;
|
|
132
134
|
/**
|
|
133
|
-
* This field should not be set
|
|
135
|
+
* This is a helper field and should not be set. Its main purpose is to help to achieve the functionality described by the alwaysApply field.
|
|
134
136
|
*/
|
|
135
137
|
readonly alwaysApplyTrigger: pulumi.Output<string | undefined>;
|
|
136
138
|
/**
|
|
@@ -183,7 +185,7 @@ export interface GrantPrivilegesToDatabaseRoleState {
|
|
|
183
185
|
*/
|
|
184
186
|
alwaysApply?: pulumi.Input<boolean>;
|
|
185
187
|
/**
|
|
186
|
-
* This field should not be set
|
|
188
|
+
* This is a helper field and should not be set. Its main purpose is to help to achieve the functionality described by the alwaysApply field.
|
|
187
189
|
*/
|
|
188
190
|
alwaysApplyTrigger?: pulumi.Input<string>;
|
|
189
191
|
/**
|
|
@@ -228,7 +230,7 @@ export interface GrantPrivilegesToDatabaseRoleArgs {
|
|
|
228
230
|
*/
|
|
229
231
|
alwaysApply?: pulumi.Input<boolean>;
|
|
230
232
|
/**
|
|
231
|
-
* This field should not be set
|
|
233
|
+
* This is a helper field and should not be set. Its main purpose is to help to achieve the functionality described by the alwaysApply field.
|
|
232
234
|
*/
|
|
233
235
|
alwaysApplyTrigger?: pulumi.Input<string>;
|
|
234
236
|
/**
|
|
@@ -6,6 +6,8 @@ exports.GrantPrivilegesToDatabaseRole = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
+
* > **Note** This is a preview resource. It's ready for general use. In case of any errors, please file an issue in our GitHub repository.
|
|
10
|
+
*
|
|
9
11
|
* !> **Warning** Be careful when using `alwaysApply` field. It will always produce a plan (even when no changes were made) and can be harmful in some setups. For more details why we decided to introduce it to go our document explaining those design decisions (coming soon).
|
|
10
12
|
*
|
|
11
13
|
* ## Example Usage
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grantPrivilegesToDatabaseRole.js","sourceRoot":"","sources":["../grantPrivilegesToDatabaseRole.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"grantPrivilegesToDatabaseRole.js","sourceRoot":"","sources":["../grantPrivilegesToDatabaseRole.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqGG;AACH,MAAa,6BAA8B,SAAQ,MAAM,CAAC,cAAc;IACpE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0C,EAAE,IAAmC;QACxI,OAAO,IAAI,6BAA6B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpF,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,6BAA6B,CAAC,YAAY,CAAC;IAC9E,CAAC;IAmDD,YAAY,IAAY,EAAE,WAAoF,EAAE,IAAmC;QAC/I,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAA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AAY,GAAG,6EAA6E,CAAC"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## Import
|
|
4
|
+
*
|
|
5
|
+
* ### OnView
|
|
6
|
+
*
|
|
7
|
+
* ```sh
|
|
8
|
+
* $ pulumi import snowflake:index/grantPrivilegesToShare:GrantPrivilegesToShare <view_name>"`
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
export declare class GrantPrivilegesToShare extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing GrantPrivilegesToShare resource's state with the given name, ID, and optional extra
|
|
14
|
+
* properties used to qualify the lookup.
|
|
15
|
+
*
|
|
16
|
+
* @param name The _unique_ name of the resulting resource.
|
|
17
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
18
|
+
* @param state Any extra arguments used during the lookup.
|
|
19
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
20
|
+
*/
|
|
21
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GrantPrivilegesToShareState, opts?: pulumi.CustomResourceOptions): GrantPrivilegesToShare;
|
|
22
|
+
/**
|
|
23
|
+
* Returns true if the given object is an instance of GrantPrivilegesToShare. This is designed to work even
|
|
24
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
25
|
+
*/
|
|
26
|
+
static isInstance(obj: any): obj is GrantPrivilegesToShare;
|
|
27
|
+
/**
|
|
28
|
+
* The fully qualified identifier for the schema for which the specified privilege will be granted for all tables.
|
|
29
|
+
*/
|
|
30
|
+
readonly onAllTablesInSchema: pulumi.Output<string | undefined>;
|
|
31
|
+
/**
|
|
32
|
+
* The fully qualified name of the database on which privileges will be granted.
|
|
33
|
+
*/
|
|
34
|
+
readonly onDatabase: pulumi.Output<string | undefined>;
|
|
35
|
+
/**
|
|
36
|
+
* The fully qualified name of the schema on which privileges will be granted.
|
|
37
|
+
*/
|
|
38
|
+
readonly onSchema: pulumi.Output<string | undefined>;
|
|
39
|
+
/**
|
|
40
|
+
* The fully qualified name of the table on which privileges will be granted.
|
|
41
|
+
*/
|
|
42
|
+
readonly onTable: pulumi.Output<string | undefined>;
|
|
43
|
+
/**
|
|
44
|
+
* The fully qualified name of the tag on which privileges will be granted.
|
|
45
|
+
*/
|
|
46
|
+
readonly onTag: pulumi.Output<string | undefined>;
|
|
47
|
+
/**
|
|
48
|
+
* The fully qualified name of the view on which privileges will be granted.
|
|
49
|
+
*/
|
|
50
|
+
readonly onView: pulumi.Output<string | undefined>;
|
|
51
|
+
/**
|
|
52
|
+
* The privileges to grant on the share. See available list of privileges: https://docs.snowflake.com/en/sql-reference/sql/grant-privilege-share#syntax
|
|
53
|
+
*/
|
|
54
|
+
readonly privileges: pulumi.Output<string[]>;
|
|
55
|
+
/**
|
|
56
|
+
* The fully qualified name of the share on which privileges will be granted.
|
|
57
|
+
*/
|
|
58
|
+
readonly toShare: pulumi.Output<string>;
|
|
59
|
+
/**
|
|
60
|
+
* Create a GrantPrivilegesToShare resource with the given unique name, arguments, and options.
|
|
61
|
+
*
|
|
62
|
+
* @param name The _unique_ name of the resource.
|
|
63
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
64
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
65
|
+
*/
|
|
66
|
+
constructor(name: string, args: GrantPrivilegesToShareArgs, opts?: pulumi.CustomResourceOptions);
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Input properties used for looking up and filtering GrantPrivilegesToShare resources.
|
|
70
|
+
*/
|
|
71
|
+
export interface GrantPrivilegesToShareState {
|
|
72
|
+
/**
|
|
73
|
+
* The fully qualified identifier for the schema for which the specified privilege will be granted for all tables.
|
|
74
|
+
*/
|
|
75
|
+
onAllTablesInSchema?: pulumi.Input<string>;
|
|
76
|
+
/**
|
|
77
|
+
* The fully qualified name of the database on which privileges will be granted.
|
|
78
|
+
*/
|
|
79
|
+
onDatabase?: pulumi.Input<string>;
|
|
80
|
+
/**
|
|
81
|
+
* The fully qualified name of the schema on which privileges will be granted.
|
|
82
|
+
*/
|
|
83
|
+
onSchema?: pulumi.Input<string>;
|
|
84
|
+
/**
|
|
85
|
+
* The fully qualified name of the table on which privileges will be granted.
|
|
86
|
+
*/
|
|
87
|
+
onTable?: pulumi.Input<string>;
|
|
88
|
+
/**
|
|
89
|
+
* The fully qualified name of the tag on which privileges will be granted.
|
|
90
|
+
*/
|
|
91
|
+
onTag?: pulumi.Input<string>;
|
|
92
|
+
/**
|
|
93
|
+
* The fully qualified name of the view on which privileges will be granted.
|
|
94
|
+
*/
|
|
95
|
+
onView?: pulumi.Input<string>;
|
|
96
|
+
/**
|
|
97
|
+
* The privileges to grant on the share. See available list of privileges: https://docs.snowflake.com/en/sql-reference/sql/grant-privilege-share#syntax
|
|
98
|
+
*/
|
|
99
|
+
privileges?: pulumi.Input<pulumi.Input<string>[]>;
|
|
100
|
+
/**
|
|
101
|
+
* The fully qualified name of the share on which privileges will be granted.
|
|
102
|
+
*/
|
|
103
|
+
toShare?: pulumi.Input<string>;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* The set of arguments for constructing a GrantPrivilegesToShare resource.
|
|
107
|
+
*/
|
|
108
|
+
export interface GrantPrivilegesToShareArgs {
|
|
109
|
+
/**
|
|
110
|
+
* The fully qualified identifier for the schema for which the specified privilege will be granted for all tables.
|
|
111
|
+
*/
|
|
112
|
+
onAllTablesInSchema?: pulumi.Input<string>;
|
|
113
|
+
/**
|
|
114
|
+
* The fully qualified name of the database on which privileges will be granted.
|
|
115
|
+
*/
|
|
116
|
+
onDatabase?: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* The fully qualified name of the schema on which privileges will be granted.
|
|
119
|
+
*/
|
|
120
|
+
onSchema?: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* The fully qualified name of the table on which privileges will be granted.
|
|
123
|
+
*/
|
|
124
|
+
onTable?: pulumi.Input<string>;
|
|
125
|
+
/**
|
|
126
|
+
* The fully qualified name of the tag on which privileges will be granted.
|
|
127
|
+
*/
|
|
128
|
+
onTag?: pulumi.Input<string>;
|
|
129
|
+
/**
|
|
130
|
+
* The fully qualified name of the view on which privileges will be granted.
|
|
131
|
+
*/
|
|
132
|
+
onView?: pulumi.Input<string>;
|
|
133
|
+
/**
|
|
134
|
+
* The privileges to grant on the share. See available list of privileges: https://docs.snowflake.com/en/sql-reference/sql/grant-privilege-share#syntax
|
|
135
|
+
*/
|
|
136
|
+
privileges: pulumi.Input<pulumi.Input<string>[]>;
|
|
137
|
+
/**
|
|
138
|
+
* The fully qualified name of the share on which privileges will be granted.
|
|
139
|
+
*/
|
|
140
|
+
toShare: pulumi.Input<string>;
|
|
141
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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.GrantPrivilegesToShare = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Import
|
|
10
|
+
*
|
|
11
|
+
* ### OnView
|
|
12
|
+
*
|
|
13
|
+
* ```sh
|
|
14
|
+
* $ pulumi import snowflake:index/grantPrivilegesToShare:GrantPrivilegesToShare <view_name>"`
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
class GrantPrivilegesToShare extends pulumi.CustomResource {
|
|
18
|
+
/**
|
|
19
|
+
* Get an existing GrantPrivilegesToShare resource's state with the given name, ID, and optional extra
|
|
20
|
+
* properties used to qualify the lookup.
|
|
21
|
+
*
|
|
22
|
+
* @param name The _unique_ name of the resulting resource.
|
|
23
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
24
|
+
* @param state Any extra arguments used during the lookup.
|
|
25
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
26
|
+
*/
|
|
27
|
+
static get(name, id, state, opts) {
|
|
28
|
+
return new GrantPrivilegesToShare(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Returns true if the given object is an instance of GrantPrivilegesToShare. This is designed to work even
|
|
32
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
33
|
+
*/
|
|
34
|
+
static isInstance(obj) {
|
|
35
|
+
if (obj === undefined || obj === null) {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
return obj['__pulumiType'] === GrantPrivilegesToShare.__pulumiType;
|
|
39
|
+
}
|
|
40
|
+
constructor(name, argsOrState, opts) {
|
|
41
|
+
let resourceInputs = {};
|
|
42
|
+
opts = opts || {};
|
|
43
|
+
if (opts.id) {
|
|
44
|
+
const state = argsOrState;
|
|
45
|
+
resourceInputs["onAllTablesInSchema"] = state ? state.onAllTablesInSchema : undefined;
|
|
46
|
+
resourceInputs["onDatabase"] = state ? state.onDatabase : undefined;
|
|
47
|
+
resourceInputs["onSchema"] = state ? state.onSchema : undefined;
|
|
48
|
+
resourceInputs["onTable"] = state ? state.onTable : undefined;
|
|
49
|
+
resourceInputs["onTag"] = state ? state.onTag : undefined;
|
|
50
|
+
resourceInputs["onView"] = state ? state.onView : undefined;
|
|
51
|
+
resourceInputs["privileges"] = state ? state.privileges : undefined;
|
|
52
|
+
resourceInputs["toShare"] = state ? state.toShare : undefined;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
const args = argsOrState;
|
|
56
|
+
if ((!args || args.privileges === undefined) && !opts.urn) {
|
|
57
|
+
throw new Error("Missing required property 'privileges'");
|
|
58
|
+
}
|
|
59
|
+
if ((!args || args.toShare === undefined) && !opts.urn) {
|
|
60
|
+
throw new Error("Missing required property 'toShare'");
|
|
61
|
+
}
|
|
62
|
+
resourceInputs["onAllTablesInSchema"] = args ? args.onAllTablesInSchema : undefined;
|
|
63
|
+
resourceInputs["onDatabase"] = args ? args.onDatabase : undefined;
|
|
64
|
+
resourceInputs["onSchema"] = args ? args.onSchema : undefined;
|
|
65
|
+
resourceInputs["onTable"] = args ? args.onTable : undefined;
|
|
66
|
+
resourceInputs["onTag"] = args ? args.onTag : undefined;
|
|
67
|
+
resourceInputs["onView"] = args ? args.onView : undefined;
|
|
68
|
+
resourceInputs["privileges"] = args ? args.privileges : undefined;
|
|
69
|
+
resourceInputs["toShare"] = args ? args.toShare : undefined;
|
|
70
|
+
}
|
|
71
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
72
|
+
super(GrantPrivilegesToShare.__pulumiType, name, resourceInputs, opts);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.GrantPrivilegesToShare = GrantPrivilegesToShare;
|
|
76
|
+
/** @internal */
|
|
77
|
+
GrantPrivilegesToShare.__pulumiType = 'snowflake:index/grantPrivilegesToShare:GrantPrivilegesToShare';
|
|
78
|
+
//# sourceMappingURL=grantPrivilegesToShare.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grantPrivilegesToShare.js","sourceRoot":"","sources":["../grantPrivilegesToShare.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;GAQG;AACH,MAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmC,EAAE,IAAmC;QACjI,OAAO,IAAI,sBAAsB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,S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SAAS,CAAC;SAC/D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,sBAAsB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3E,CAAC;;AArGL,wDAsGC;AAxFG,gBAAgB;AACO,mCAAY,GAAG,+DAA+D,CAAC"}
|
package/index.d.ts
CHANGED
|
@@ -181,12 +181,18 @@ export declare const GrantAccountRole: typeof import("./grantAccountRole").Grant
|
|
|
181
181
|
export { GrantDatabaseRoleArgs, GrantDatabaseRoleState } from "./grantDatabaseRole";
|
|
182
182
|
export type GrantDatabaseRole = import("./grantDatabaseRole").GrantDatabaseRole;
|
|
183
183
|
export declare const GrantDatabaseRole: typeof import("./grantDatabaseRole").GrantDatabaseRole;
|
|
184
|
+
export { GrantPrivilegesToAccountRoleArgs, GrantPrivilegesToAccountRoleState } from "./grantPrivilegesToAccountRole";
|
|
185
|
+
export type GrantPrivilegesToAccountRole = import("./grantPrivilegesToAccountRole").GrantPrivilegesToAccountRole;
|
|
186
|
+
export declare const GrantPrivilegesToAccountRole: typeof import("./grantPrivilegesToAccountRole").GrantPrivilegesToAccountRole;
|
|
184
187
|
export { GrantPrivilegesToDatabaseRoleArgs, GrantPrivilegesToDatabaseRoleState } from "./grantPrivilegesToDatabaseRole";
|
|
185
188
|
export type GrantPrivilegesToDatabaseRole = import("./grantPrivilegesToDatabaseRole").GrantPrivilegesToDatabaseRole;
|
|
186
189
|
export declare const GrantPrivilegesToDatabaseRole: typeof import("./grantPrivilegesToDatabaseRole").GrantPrivilegesToDatabaseRole;
|
|
187
190
|
export { GrantPrivilegesToRoleArgs, GrantPrivilegesToRoleState } from "./grantPrivilegesToRole";
|
|
188
191
|
export type GrantPrivilegesToRole = import("./grantPrivilegesToRole").GrantPrivilegesToRole;
|
|
189
192
|
export declare const GrantPrivilegesToRole: typeof import("./grantPrivilegesToRole").GrantPrivilegesToRole;
|
|
193
|
+
export { GrantPrivilegesToShareArgs, GrantPrivilegesToShareState } from "./grantPrivilegesToShare";
|
|
194
|
+
export type GrantPrivilegesToShare = import("./grantPrivilegesToShare").GrantPrivilegesToShare;
|
|
195
|
+
export declare const GrantPrivilegesToShare: typeof import("./grantPrivilegesToShare").GrantPrivilegesToShare;
|
|
190
196
|
export { IntegrationGrantArgs, IntegrationGrantState } from "./integrationGrant";
|
|
191
197
|
export type IntegrationGrant = import("./integrationGrant").IntegrationGrant;
|
|
192
198
|
export declare const IntegrationGrant: typeof import("./integrationGrant").IntegrationGrant;
|