@pulumi/snowflake 0.22.0 → 0.22.1-alpha.1681938428
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/accountGrant.d.ts +3 -1
- package/accountGrant.js +3 -1
- package/accountGrant.js.map +1 -1
- package/alert.d.ts +173 -0
- package/alert.js +107 -0
- package/alert.js.map +1 -0
- package/config/vars.d.ts +5 -0
- package/config/vars.js +6 -0
- package/config/vars.js.map +1 -1
- package/database.d.ts +1 -1
- package/databaseGrant.d.ts +2 -2
- package/databaseGrant.js +2 -2
- package/databaseRole.d.ts +72 -0
- package/databaseRole.js +56 -0
- package/databaseRole.js.map +1 -0
- package/externalOauthIntegration.d.ts +14 -0
- package/externalOauthIntegration.js +4 -0
- package/externalOauthIntegration.js.map +1 -1
- package/externalTableGrant.d.ts +2 -2
- package/externalTableGrant.js +2 -2
- package/fileFormatGrant.d.ts +2 -2
- package/fileFormatGrant.js +2 -2
- package/functionGrant.d.ts +2 -40
- package/functionGrant.js +2 -6
- package/functionGrant.js.map +1 -1
- package/getShares.d.ts +39 -0
- package/getShares.js +20 -0
- package/getShares.js.map +1 -0
- package/index.d.ts +12 -0
- package/index.js +21 -3
- package/index.js.map +1 -1
- package/integrationGrant.d.ts +2 -2
- package/integrationGrant.js +2 -2
- package/maskingPolicyGrant.d.ts +2 -2
- package/maskingPolicyGrant.js +2 -2
- package/materializedViewGrant.d.ts +26 -14
- package/materializedViewGrant.js +4 -2
- package/materializedViewGrant.js.map +1 -1
- package/notificationIntegration.d.ts +12 -0
- package/notificationIntegration.js +2 -0
- package/notificationIntegration.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/passwordPolicy.d.ts +219 -0
- package/passwordPolicy.js +86 -0
- package/passwordPolicy.js.map +1 -0
- package/pipeGrant.d.ts +2 -2
- package/pipeGrant.js +2 -2
- package/procedureGrant.d.ts +3 -41
- package/procedureGrant.js +3 -7
- package/procedureGrant.js.map +1 -1
- package/provider.d.ts +5 -0
- package/provider.js +1 -0
- package/provider.js.map +1 -1
- package/resourceMonitorGrant.d.ts +2 -2
- package/resourceMonitorGrant.js +2 -2
- package/roleGrants.d.ts +1 -1
- package/roleGrants.js +1 -1
- package/rowAccessPolicyGrant.d.ts +2 -2
- package/rowAccessPolicyGrant.js +2 -2
- package/schemaGrant.d.ts +20 -8
- package/schemaGrant.js +4 -2
- package/schemaGrant.js.map +1 -1
- package/sequenceGrant.d.ts +2 -2
- package/sequenceGrant.js +2 -2
- package/stageGrant.d.ts +20 -8
- package/stageGrant.js +4 -2
- package/stageGrant.js.map +1 -1
- package/streamGrant.d.ts +2 -2
- package/streamGrant.js +2 -2
- package/tableGrant.d.ts +14 -14
- package/tableGrant.js +2 -2
- package/tagGrant.d.ts +2 -2
- package/tagGrant.js +2 -2
- package/taskGrant.d.ts +2 -2
- package/taskGrant.js +2 -2
- package/types/input.d.ts +14 -20
- package/types/output.d.ts +21 -20
- package/userGrant.d.ts +2 -2
- package/userGrant.js +2 -2
- package/viewGrant.d.ts +23 -11
- package/viewGrant.js +4 -2
- package/viewGrant.js.map +1 -1
- package/warehouseGrant.d.ts +2 -2
- package/warehouseGrant.js +2 -2
package/accountGrant.d.ts
CHANGED
|
@@ -18,8 +18,10 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
18
18
|
*
|
|
19
19
|
* ## Import
|
|
20
20
|
*
|
|
21
|
+
* format is privilege|with_grant_option|roles
|
|
22
|
+
*
|
|
21
23
|
* ```sh
|
|
22
|
-
* $ pulumi import snowflake:index/accountGrant:AccountGrant example
|
|
24
|
+
* $ pulumi import snowflake:index/accountGrant:AccountGrant example "privilege|false|role1,role2"
|
|
23
25
|
* ```
|
|
24
26
|
*/
|
|
25
27
|
export declare class AccountGrant extends pulumi.CustomResource {
|
package/accountGrant.js
CHANGED
|
@@ -24,8 +24,10 @@ const utilities = require("./utilities");
|
|
|
24
24
|
*
|
|
25
25
|
* ## Import
|
|
26
26
|
*
|
|
27
|
+
* format is privilege|with_grant_option|roles
|
|
28
|
+
*
|
|
27
29
|
* ```sh
|
|
28
|
-
* $ pulumi import snowflake:index/accountGrant:AccountGrant example
|
|
30
|
+
* $ pulumi import snowflake:index/accountGrant:AccountGrant example "privilege|false|role1,role2"
|
|
29
31
|
* ```
|
|
30
32
|
*/
|
|
31
33
|
class AccountGrant extends pulumi.CustomResource {
|
package/accountGrant.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accountGrant.js","sourceRoot":"","sources":["../accountGrant.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"accountGrant.js","sourceRoot":"","sources":["../accountGrant.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,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,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;IA4BD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE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
package/alert.d.ts
ADDED
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as snowflake from "@pulumi/snowflake";
|
|
10
|
+
*
|
|
11
|
+
* const alert = new snowflake.Alert("alert", {
|
|
12
|
+
* action: "select 1 as c",
|
|
13
|
+
* alertSchedule: "10 MINUTE",
|
|
14
|
+
* comment: "my alert",
|
|
15
|
+
* condition: "select 1 as c",
|
|
16
|
+
* database: "database",
|
|
17
|
+
* enabled: true,
|
|
18
|
+
* schema: "schema",
|
|
19
|
+
* warehouse: "warehouse",
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* ## Import
|
|
24
|
+
*
|
|
25
|
+
* format is database name | schema name | alert name
|
|
26
|
+
*
|
|
27
|
+
* ```sh
|
|
28
|
+
* $ pulumi import snowflake:index/alert:Alert example 'dbName|schemaName|alertName'
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare class Alert extends pulumi.CustomResource {
|
|
32
|
+
/**
|
|
33
|
+
* Get an existing Alert 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?: AlertState, opts?: pulumi.CustomResourceOptions): Alert;
|
|
42
|
+
/**
|
|
43
|
+
* Returns true if the given object is an instance of Alert. 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 Alert;
|
|
47
|
+
/**
|
|
48
|
+
* The SQL statement that should be executed if the condition returns one or more rows.
|
|
49
|
+
*/
|
|
50
|
+
readonly action: pulumi.Output<string>;
|
|
51
|
+
/**
|
|
52
|
+
* The schedule for periodically running an alert.
|
|
53
|
+
*/
|
|
54
|
+
readonly alertSchedule: pulumi.Output<outputs.AlertAlertSchedule | undefined>;
|
|
55
|
+
/**
|
|
56
|
+
* Specifies a comment for the alert.
|
|
57
|
+
*/
|
|
58
|
+
readonly comment: pulumi.Output<string | undefined>;
|
|
59
|
+
/**
|
|
60
|
+
* The SQL statement that represents the condition for the alert. (SELECT, SHOW, CALL)
|
|
61
|
+
*/
|
|
62
|
+
readonly condition: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* The database in which to create the alert.
|
|
65
|
+
*/
|
|
66
|
+
readonly database: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* Specifies if an alert should be 'started' (enabled) after creation or should remain 'suspended' (default).
|
|
69
|
+
*/
|
|
70
|
+
readonly enabled: pulumi.Output<boolean | undefined>;
|
|
71
|
+
/**
|
|
72
|
+
* Specifies the identifier for the alert; must be unique for the database and schema in which the alert is created.
|
|
73
|
+
*/
|
|
74
|
+
readonly name: pulumi.Output<string>;
|
|
75
|
+
/**
|
|
76
|
+
* The schema in which to create the alert.
|
|
77
|
+
*/
|
|
78
|
+
readonly schema: pulumi.Output<string>;
|
|
79
|
+
/**
|
|
80
|
+
* The warehouse the alert will use.
|
|
81
|
+
*/
|
|
82
|
+
readonly warehouse: pulumi.Output<string>;
|
|
83
|
+
/**
|
|
84
|
+
* Create a Alert resource with the given unique name, arguments, and options.
|
|
85
|
+
*
|
|
86
|
+
* @param name The _unique_ name of the resource.
|
|
87
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
88
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
89
|
+
*/
|
|
90
|
+
constructor(name: string, args: AlertArgs, opts?: pulumi.CustomResourceOptions);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Input properties used for looking up and filtering Alert resources.
|
|
94
|
+
*/
|
|
95
|
+
export interface AlertState {
|
|
96
|
+
/**
|
|
97
|
+
* The SQL statement that should be executed if the condition returns one or more rows.
|
|
98
|
+
*/
|
|
99
|
+
action?: pulumi.Input<string>;
|
|
100
|
+
/**
|
|
101
|
+
* The schedule for periodically running an alert.
|
|
102
|
+
*/
|
|
103
|
+
alertSchedule?: pulumi.Input<inputs.AlertAlertSchedule>;
|
|
104
|
+
/**
|
|
105
|
+
* Specifies a comment for the alert.
|
|
106
|
+
*/
|
|
107
|
+
comment?: pulumi.Input<string>;
|
|
108
|
+
/**
|
|
109
|
+
* The SQL statement that represents the condition for the alert. (SELECT, SHOW, CALL)
|
|
110
|
+
*/
|
|
111
|
+
condition?: pulumi.Input<string>;
|
|
112
|
+
/**
|
|
113
|
+
* The database in which to create the alert.
|
|
114
|
+
*/
|
|
115
|
+
database?: pulumi.Input<string>;
|
|
116
|
+
/**
|
|
117
|
+
* Specifies if an alert should be 'started' (enabled) after creation or should remain 'suspended' (default).
|
|
118
|
+
*/
|
|
119
|
+
enabled?: pulumi.Input<boolean>;
|
|
120
|
+
/**
|
|
121
|
+
* Specifies the identifier for the alert; must be unique for the database and schema in which the alert is created.
|
|
122
|
+
*/
|
|
123
|
+
name?: pulumi.Input<string>;
|
|
124
|
+
/**
|
|
125
|
+
* The schema in which to create the alert.
|
|
126
|
+
*/
|
|
127
|
+
schema?: pulumi.Input<string>;
|
|
128
|
+
/**
|
|
129
|
+
* The warehouse the alert will use.
|
|
130
|
+
*/
|
|
131
|
+
warehouse?: pulumi.Input<string>;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* The set of arguments for constructing a Alert resource.
|
|
135
|
+
*/
|
|
136
|
+
export interface AlertArgs {
|
|
137
|
+
/**
|
|
138
|
+
* The SQL statement that should be executed if the condition returns one or more rows.
|
|
139
|
+
*/
|
|
140
|
+
action: pulumi.Input<string>;
|
|
141
|
+
/**
|
|
142
|
+
* The schedule for periodically running an alert.
|
|
143
|
+
*/
|
|
144
|
+
alertSchedule?: pulumi.Input<inputs.AlertAlertSchedule>;
|
|
145
|
+
/**
|
|
146
|
+
* Specifies a comment for the alert.
|
|
147
|
+
*/
|
|
148
|
+
comment?: pulumi.Input<string>;
|
|
149
|
+
/**
|
|
150
|
+
* The SQL statement that represents the condition for the alert. (SELECT, SHOW, CALL)
|
|
151
|
+
*/
|
|
152
|
+
condition: pulumi.Input<string>;
|
|
153
|
+
/**
|
|
154
|
+
* The database in which to create the alert.
|
|
155
|
+
*/
|
|
156
|
+
database: pulumi.Input<string>;
|
|
157
|
+
/**
|
|
158
|
+
* Specifies if an alert should be 'started' (enabled) after creation or should remain 'suspended' (default).
|
|
159
|
+
*/
|
|
160
|
+
enabled?: pulumi.Input<boolean>;
|
|
161
|
+
/**
|
|
162
|
+
* Specifies the identifier for the alert; must be unique for the database and schema in which the alert is created.
|
|
163
|
+
*/
|
|
164
|
+
name?: pulumi.Input<string>;
|
|
165
|
+
/**
|
|
166
|
+
* The schema in which to create the alert.
|
|
167
|
+
*/
|
|
168
|
+
schema: pulumi.Input<string>;
|
|
169
|
+
/**
|
|
170
|
+
* The warehouse the alert will use.
|
|
171
|
+
*/
|
|
172
|
+
warehouse: pulumi.Input<string>;
|
|
173
|
+
}
|
package/alert.js
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
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.Alert = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as snowflake from "@pulumi/snowflake";
|
|
14
|
+
*
|
|
15
|
+
* const alert = new snowflake.Alert("alert", {
|
|
16
|
+
* action: "select 1 as c",
|
|
17
|
+
* alertSchedule: "10 MINUTE",
|
|
18
|
+
* comment: "my alert",
|
|
19
|
+
* condition: "select 1 as c",
|
|
20
|
+
* database: "database",
|
|
21
|
+
* enabled: true,
|
|
22
|
+
* schema: "schema",
|
|
23
|
+
* warehouse: "warehouse",
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* ## Import
|
|
28
|
+
*
|
|
29
|
+
* format is database name | schema name | alert name
|
|
30
|
+
*
|
|
31
|
+
* ```sh
|
|
32
|
+
* $ pulumi import snowflake:index/alert:Alert example 'dbName|schemaName|alertName'
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
class Alert extends pulumi.CustomResource {
|
|
36
|
+
/**
|
|
37
|
+
* Get an existing Alert 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 Alert(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of Alert. 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'] === Alert.__pulumiType;
|
|
57
|
+
}
|
|
58
|
+
constructor(name, argsOrState, opts) {
|
|
59
|
+
let resourceInputs = {};
|
|
60
|
+
opts = opts || {};
|
|
61
|
+
if (opts.id) {
|
|
62
|
+
const state = argsOrState;
|
|
63
|
+
resourceInputs["action"] = state ? state.action : undefined;
|
|
64
|
+
resourceInputs["alertSchedule"] = state ? state.alertSchedule : undefined;
|
|
65
|
+
resourceInputs["comment"] = state ? state.comment : undefined;
|
|
66
|
+
resourceInputs["condition"] = state ? state.condition : undefined;
|
|
67
|
+
resourceInputs["database"] = state ? state.database : undefined;
|
|
68
|
+
resourceInputs["enabled"] = state ? state.enabled : undefined;
|
|
69
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
70
|
+
resourceInputs["schema"] = state ? state.schema : undefined;
|
|
71
|
+
resourceInputs["warehouse"] = state ? state.warehouse : undefined;
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
const args = argsOrState;
|
|
75
|
+
if ((!args || args.action === undefined) && !opts.urn) {
|
|
76
|
+
throw new Error("Missing required property 'action'");
|
|
77
|
+
}
|
|
78
|
+
if ((!args || args.condition === undefined) && !opts.urn) {
|
|
79
|
+
throw new Error("Missing required property 'condition'");
|
|
80
|
+
}
|
|
81
|
+
if ((!args || args.database === undefined) && !opts.urn) {
|
|
82
|
+
throw new Error("Missing required property 'database'");
|
|
83
|
+
}
|
|
84
|
+
if ((!args || args.schema === undefined) && !opts.urn) {
|
|
85
|
+
throw new Error("Missing required property 'schema'");
|
|
86
|
+
}
|
|
87
|
+
if ((!args || args.warehouse === undefined) && !opts.urn) {
|
|
88
|
+
throw new Error("Missing required property 'warehouse'");
|
|
89
|
+
}
|
|
90
|
+
resourceInputs["action"] = args ? args.action : undefined;
|
|
91
|
+
resourceInputs["alertSchedule"] = args ? args.alertSchedule : undefined;
|
|
92
|
+
resourceInputs["comment"] = args ? args.comment : undefined;
|
|
93
|
+
resourceInputs["condition"] = args ? args.condition : undefined;
|
|
94
|
+
resourceInputs["database"] = args ? args.database : undefined;
|
|
95
|
+
resourceInputs["enabled"] = args ? args.enabled : undefined;
|
|
96
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
97
|
+
resourceInputs["schema"] = args ? args.schema : undefined;
|
|
98
|
+
resourceInputs["warehouse"] = args ? args.warehouse : undefined;
|
|
99
|
+
}
|
|
100
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
101
|
+
super(Alert.__pulumiType, name, resourceInputs, opts);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.Alert = Alert;
|
|
105
|
+
/** @internal */
|
|
106
|
+
Alert.__pulumiType = 'snowflake:index/alert:Alert';
|
|
107
|
+
//# sourceMappingURL=alert.js.map
|
package/alert.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert.js","sourceRoot":"","sources":["../alert.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAC5C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkB,EAAE,IAAmC;QAChH,OAAO,IAAI,KAAK,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5D,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,KAAK,CAAC,YAAY,CAAC;IACtD,CAAC;IA+CD,YAAY,IAAY,EAAE,WAAoC,EAA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E,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;;AApHL,sBAqHC;AAvGG,gBAAgB;AACO,kBAAY,GAAG,6BAA6B,CAAC"}
|
package/config/vars.d.ts
CHANGED
|
@@ -10,6 +10,11 @@ export declare const browserAuth: boolean | undefined;
|
|
|
10
10
|
* Supports passing in a custom host value to the snowflake go driver for use with privatelink.
|
|
11
11
|
*/
|
|
12
12
|
export declare const host: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* If true, bypass the Online Certificate Status Protocol (OCSP) certificate revocation check. IMPORTANT: Change the
|
|
15
|
+
* default value for testing or emergency situations only.
|
|
16
|
+
*/
|
|
17
|
+
export declare const insecureMode: boolean | undefined;
|
|
13
18
|
/**
|
|
14
19
|
* Token for use with OAuth. Generating the token is left to other tools. Cannot be used with `browser_auth`,
|
|
15
20
|
* `private_key_path`, `oauth_refresh_token` or `password`. Can be sourced from `SNOWFLAKE_OAUTH_ACCESS_TOKEN` environment
|
package/config/vars.js
CHANGED
|
@@ -26,6 +26,12 @@ Object.defineProperty(exports, "host", {
|
|
|
26
26
|
},
|
|
27
27
|
enumerable: true,
|
|
28
28
|
});
|
|
29
|
+
Object.defineProperty(exports, "insecureMode", {
|
|
30
|
+
get() {
|
|
31
|
+
return __config.getObject("insecureMode");
|
|
32
|
+
},
|
|
33
|
+
enumerable: true,
|
|
34
|
+
});
|
|
29
35
|
Object.defineProperty(exports, "oauthAccessToken", {
|
|
30
36
|
get() {
|
|
31
37
|
var _a;
|
package/config/vars.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AACzC,0CAA0C;AAG1C,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AAMhD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE;IACtC,GAAG;;QACC,OAAO,MAAA,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,mCAAI,SAAS,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;IAC5E,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,aAAa,EAAE;IAC1C,GAAG;;QACC,OAAO,MAAA,QAAQ,CAAC,SAAS,CAAU,aAAa,CAAC,mCAAI,SAAS,CAAC,aAAa,CAAC,4BAA4B,CAAC,CAAC;IAC/G,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE;IACnC,GAAG;;QACC,OAAO,MAAA,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,mCAAI,SAAS,CA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oBAAoB,CAAC,CAAC;IAC9E,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AASH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE;IACrC,GAAG;;QACC,OAAO,MAAA,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,mCAAI,SAAS,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAC1E,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAOH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE;IACnC,GAAG;;QACC,OAAO,MAAA,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,mCAAI,SAAS,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;IACtE,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE;IACvC,GAAG;;QACC,OAAO,MAAA,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,mCAAI,SAAS,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;IAC1E,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE;IACxC,GAAG;;QACC,OAAO,MAAA,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,mCAAI,SAAS,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;IAChF,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC"}
|
package/database.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ export declare class Database extends pulumi.CustomResource {
|
|
|
62
62
|
/**
|
|
63
63
|
* 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, schema, or table. For more information, see Understanding & Using Time Travel.
|
|
64
64
|
*/
|
|
65
|
-
readonly dataRetentionTimeInDays: pulumi.Output<number>;
|
|
65
|
+
readonly dataRetentionTimeInDays: pulumi.Output<number | undefined>;
|
|
66
66
|
/**
|
|
67
67
|
* Specify a database to create a clone from.
|
|
68
68
|
*/
|
package/databaseGrant.d.ts
CHANGED
|
@@ -23,10 +23,10 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
23
23
|
*
|
|
24
24
|
* ## Import
|
|
25
25
|
*
|
|
26
|
-
* format is database_name
|
|
26
|
+
* format is database_name|privilege|with_grant_option|roles|shares
|
|
27
27
|
*
|
|
28
28
|
* ```sh
|
|
29
|
-
* $ pulumi import snowflake:index/databaseGrant:DatabaseGrant example
|
|
29
|
+
* $ pulumi import snowflake:index/databaseGrant:DatabaseGrant example "MY_DATABASE|USAGE|false|role1,role2|share1,share2"
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
32
|
export declare class DatabaseGrant extends pulumi.CustomResource {
|
package/databaseGrant.js
CHANGED
|
@@ -29,10 +29,10 @@ const utilities = require("./utilities");
|
|
|
29
29
|
*
|
|
30
30
|
* ## Import
|
|
31
31
|
*
|
|
32
|
-
* format is database_name
|
|
32
|
+
* format is database_name|privilege|with_grant_option|roles|shares
|
|
33
33
|
*
|
|
34
34
|
* ```sh
|
|
35
|
-
* $ pulumi import snowflake:index/databaseGrant:DatabaseGrant example
|
|
35
|
+
* $ pulumi import snowflake:index/databaseGrant:DatabaseGrant example "MY_DATABASE|USAGE|false|role1,role2|share1,share2"
|
|
36
36
|
* ```
|
|
37
37
|
*/
|
|
38
38
|
class DatabaseGrant extends pulumi.CustomResource {
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare class DatabaseRole extends pulumi.CustomResource {
|
|
3
|
+
/**
|
|
4
|
+
* Get an existing DatabaseRole resource's state with the given name, ID, and optional extra
|
|
5
|
+
* properties used to qualify the lookup.
|
|
6
|
+
*
|
|
7
|
+
* @param name The _unique_ name of the resulting resource.
|
|
8
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
9
|
+
* @param state Any extra arguments used during the lookup.
|
|
10
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
11
|
+
*/
|
|
12
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DatabaseRoleState, opts?: pulumi.CustomResourceOptions): DatabaseRole;
|
|
13
|
+
/**
|
|
14
|
+
* Returns true if the given object is an instance of DatabaseRole. This is designed to work even
|
|
15
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
16
|
+
*/
|
|
17
|
+
static isInstance(obj: any): obj is DatabaseRole;
|
|
18
|
+
/**
|
|
19
|
+
* Specifies a comment for the database role.
|
|
20
|
+
*/
|
|
21
|
+
readonly comment: pulumi.Output<string | undefined>;
|
|
22
|
+
/**
|
|
23
|
+
* The database in which to create the database role.
|
|
24
|
+
*/
|
|
25
|
+
readonly database: pulumi.Output<string>;
|
|
26
|
+
/**
|
|
27
|
+
* Specifies the identifier for the database role.
|
|
28
|
+
*/
|
|
29
|
+
readonly name: pulumi.Output<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Create a DatabaseRole resource with the given unique name, arguments, and options.
|
|
32
|
+
*
|
|
33
|
+
* @param name The _unique_ name of the resource.
|
|
34
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
35
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
36
|
+
*/
|
|
37
|
+
constructor(name: string, args: DatabaseRoleArgs, opts?: pulumi.CustomResourceOptions);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Input properties used for looking up and filtering DatabaseRole resources.
|
|
41
|
+
*/
|
|
42
|
+
export interface DatabaseRoleState {
|
|
43
|
+
/**
|
|
44
|
+
* Specifies a comment for the database role.
|
|
45
|
+
*/
|
|
46
|
+
comment?: pulumi.Input<string>;
|
|
47
|
+
/**
|
|
48
|
+
* The database in which to create the database role.
|
|
49
|
+
*/
|
|
50
|
+
database?: pulumi.Input<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Specifies the identifier for the database role.
|
|
53
|
+
*/
|
|
54
|
+
name?: pulumi.Input<string>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* The set of arguments for constructing a DatabaseRole resource.
|
|
58
|
+
*/
|
|
59
|
+
export interface DatabaseRoleArgs {
|
|
60
|
+
/**
|
|
61
|
+
* Specifies a comment for the database role.
|
|
62
|
+
*/
|
|
63
|
+
comment?: pulumi.Input<string>;
|
|
64
|
+
/**
|
|
65
|
+
* The database in which to create the database role.
|
|
66
|
+
*/
|
|
67
|
+
database: pulumi.Input<string>;
|
|
68
|
+
/**
|
|
69
|
+
* Specifies the identifier for the database role.
|
|
70
|
+
*/
|
|
71
|
+
name?: pulumi.Input<string>;
|
|
72
|
+
}
|
package/databaseRole.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
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.DatabaseRole = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class DatabaseRole extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing DatabaseRole resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param state Any extra arguments used during the lookup.
|
|
16
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
17
|
+
*/
|
|
18
|
+
static get(name, id, state, opts) {
|
|
19
|
+
return new DatabaseRole(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns true if the given object is an instance of DatabaseRole. This is designed to work even
|
|
23
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
24
|
+
*/
|
|
25
|
+
static isInstance(obj) {
|
|
26
|
+
if (obj === undefined || obj === null) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
return obj['__pulumiType'] === DatabaseRole.__pulumiType;
|
|
30
|
+
}
|
|
31
|
+
constructor(name, argsOrState, opts) {
|
|
32
|
+
let resourceInputs = {};
|
|
33
|
+
opts = opts || {};
|
|
34
|
+
if (opts.id) {
|
|
35
|
+
const state = argsOrState;
|
|
36
|
+
resourceInputs["comment"] = state ? state.comment : undefined;
|
|
37
|
+
resourceInputs["database"] = state ? state.database : undefined;
|
|
38
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
const args = argsOrState;
|
|
42
|
+
if ((!args || args.database === undefined) && !opts.urn) {
|
|
43
|
+
throw new Error("Missing required property 'database'");
|
|
44
|
+
}
|
|
45
|
+
resourceInputs["comment"] = args ? args.comment : undefined;
|
|
46
|
+
resourceInputs["database"] = args ? args.database : undefined;
|
|
47
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
48
|
+
}
|
|
49
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
50
|
+
super(DatabaseRole.__pulumiType, name, resourceInputs, opts);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.DatabaseRole = DatabaseRole;
|
|
54
|
+
/** @internal */
|
|
55
|
+
DatabaseRole.__pulumiType = 'snowflake:index/databaseRole:DatabaseRole';
|
|
56
|
+
//# sourceMappingURL=databaseRole.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"databaseRole.js","sourceRoot":"","sources":["../databaseRole.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAE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,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AApEL,oCAqEC;AAvDG,gBAAgB;AACO,yBAAY,GAAG,2CAA2C,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
+
* An External OAuth security integration allows a client to use a third-party authorization server to obtain the access tokens needed to interact with Snowflake.
|
|
4
|
+
*
|
|
3
5
|
* ## Example Usage
|
|
4
6
|
*
|
|
5
7
|
* ```typescript
|
|
@@ -91,6 +93,10 @@ export declare class ExternalOauthIntegration extends pulumi.CustomResource {
|
|
|
91
93
|
* Specifies the scope delimiter in the authorization token.
|
|
92
94
|
*/
|
|
93
95
|
readonly scopeDelimiter: pulumi.Output<string | undefined>;
|
|
96
|
+
/**
|
|
97
|
+
* Specifies the access token claim to map the access token to an account role.
|
|
98
|
+
*/
|
|
99
|
+
readonly scopeMappingAttribute: pulumi.Output<string | undefined>;
|
|
94
100
|
/**
|
|
95
101
|
* Indicates which Snowflake user record attribute should be used to map the access token to a Snowflake user record.
|
|
96
102
|
*/
|
|
@@ -168,6 +174,10 @@ export interface ExternalOauthIntegrationState {
|
|
|
168
174
|
* Specifies the scope delimiter in the authorization token.
|
|
169
175
|
*/
|
|
170
176
|
scopeDelimiter?: pulumi.Input<string>;
|
|
177
|
+
/**
|
|
178
|
+
* Specifies the access token claim to map the access token to an account role.
|
|
179
|
+
*/
|
|
180
|
+
scopeMappingAttribute?: pulumi.Input<string>;
|
|
171
181
|
/**
|
|
172
182
|
* Indicates which Snowflake user record attribute should be used to map the access token to a Snowflake user record.
|
|
173
183
|
*/
|
|
@@ -233,6 +243,10 @@ export interface ExternalOauthIntegrationArgs {
|
|
|
233
243
|
* Specifies the scope delimiter in the authorization token.
|
|
234
244
|
*/
|
|
235
245
|
scopeDelimiter?: pulumi.Input<string>;
|
|
246
|
+
/**
|
|
247
|
+
* Specifies the access token claim to map the access token to an account role.
|
|
248
|
+
*/
|
|
249
|
+
scopeMappingAttribute?: pulumi.Input<string>;
|
|
236
250
|
/**
|
|
237
251
|
* Indicates which Snowflake user record attribute should be used to map the access token to a Snowflake user record.
|
|
238
252
|
*/
|
|
@@ -6,6 +6,8 @@ exports.ExternalOauthIntegration = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
+
* An External OAuth security integration allows a client to use a third-party authorization server to obtain the access tokens needed to interact with Snowflake.
|
|
10
|
+
*
|
|
9
11
|
* ## Example Usage
|
|
10
12
|
*
|
|
11
13
|
* ```typescript
|
|
@@ -70,6 +72,7 @@ class ExternalOauthIntegration extends pulumi.CustomResource {
|
|
|
70
72
|
resourceInputs["rsaPublicKey"] = state ? state.rsaPublicKey : undefined;
|
|
71
73
|
resourceInputs["rsaPublicKey2"] = state ? state.rsaPublicKey2 : undefined;
|
|
72
74
|
resourceInputs["scopeDelimiter"] = state ? state.scopeDelimiter : undefined;
|
|
75
|
+
resourceInputs["scopeMappingAttribute"] = state ? state.scopeMappingAttribute : undefined;
|
|
73
76
|
resourceInputs["snowflakeUserMappingAttribute"] = state ? state.snowflakeUserMappingAttribute : undefined;
|
|
74
77
|
resourceInputs["tokenUserMappingClaims"] = state ? state.tokenUserMappingClaims : undefined;
|
|
75
78
|
resourceInputs["type"] = state ? state.type : undefined;
|
|
@@ -103,6 +106,7 @@ class ExternalOauthIntegration extends pulumi.CustomResource {
|
|
|
103
106
|
resourceInputs["rsaPublicKey"] = args ? args.rsaPublicKey : undefined;
|
|
104
107
|
resourceInputs["rsaPublicKey2"] = args ? args.rsaPublicKey2 : undefined;
|
|
105
108
|
resourceInputs["scopeDelimiter"] = args ? args.scopeDelimiter : undefined;
|
|
109
|
+
resourceInputs["scopeMappingAttribute"] = args ? args.scopeMappingAttribute : undefined;
|
|
106
110
|
resourceInputs["snowflakeUserMappingAttribute"] = args ? args.snowflakeUserMappingAttribute : undefined;
|
|
107
111
|
resourceInputs["tokenUserMappingClaims"] = args ? args.tokenUserMappingClaims : undefined;
|
|
108
112
|
resourceInputs["type"] = args ? args.type : undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"externalOauthIntegration.js","sourceRoot":"","sources":["../externalOauthIntegration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"externalOauthIntegration.js","sourceRoot":"","sources":["../externalOauthIntegration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,wBAAyB,SAAQ,MAAM,CAAC,cAAc;IAC/D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqC,EAAE,IAAmC;QACnI,OAAO,IAAI,wBAAwB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,I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nD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,wBAAwB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7E,CAAC;;AApKL,4DAqKC;AAvJG,gBAAgB;AACO,qCAAY,GAAG,mEAAmE,CAAC"}
|
package/externalTableGrant.d.ts
CHANGED
|
@@ -26,10 +26,10 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
26
26
|
*
|
|
27
27
|
* ## Import
|
|
28
28
|
*
|
|
29
|
-
* format is
|
|
29
|
+
* format is database|schema|external_table|privilege|with_grant_option|on_future|roles|shares
|
|
30
30
|
*
|
|
31
31
|
* ```sh
|
|
32
|
-
* $ pulumi import snowflake:index/externalTableGrant:ExternalTableGrant example
|
|
32
|
+
* $ pulumi import snowflake:index/externalTableGrant:ExternalTableGrant example "MY_DATABASE|MY_SCHEMA|MY_TABLE_NAME|SELECT|false|false|role1,role2|share1,share2"
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
35
|
export declare class ExternalTableGrant extends pulumi.CustomResource {
|