@pulumi/snowflake 0.16.0 → 0.16.1-alpha.1676310177
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/functionGrant.d.ts +28 -11
- package/functionGrant.js +6 -11
- package/functionGrant.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/procedureGrant.d.ts +28 -11
- package/procedureGrant.js +6 -11
- package/procedureGrant.js.map +1 -1
package/functionGrant.d.ts
CHANGED
|
@@ -9,21 +9,14 @@ import * as outputs from "./types/output";
|
|
|
9
9
|
* import * as snowflake from "@pulumi/snowflake";
|
|
10
10
|
*
|
|
11
11
|
* const grant = new snowflake.FunctionGrant("grant", {
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* type: "array",
|
|
16
|
-
* },
|
|
17
|
-
* {
|
|
18
|
-
* name: "b",
|
|
19
|
-
* type: "string",
|
|
20
|
-
* },
|
|
12
|
+
* argumentDataTypes: [
|
|
13
|
+
* "array",
|
|
14
|
+
* "string",
|
|
21
15
|
* ],
|
|
22
16
|
* databaseName: "database",
|
|
23
17
|
* functionName: "function",
|
|
24
18
|
* onFuture: false,
|
|
25
19
|
* privilege: "USAGE",
|
|
26
|
-
* returnType: "string",
|
|
27
20
|
* roles: [
|
|
28
21
|
* "role1",
|
|
29
22
|
* "role2",
|
|
@@ -42,7 +35,7 @@ import * as outputs from "./types/output";
|
|
|
42
35
|
* format is database name | schema name | function signature | privilege | true/false for with_grant_option
|
|
43
36
|
*
|
|
44
37
|
* ```sh
|
|
45
|
-
* $ pulumi import snowflake:index/functionGrant:FunctionGrant example 'dbName|schemaName|functionName(
|
|
38
|
+
* $ pulumi import snowflake:index/functionGrant:FunctionGrant example 'dbName|schemaName|functionName(ARG1TYPE,ARG2TYPE)|USAGE|false'
|
|
46
39
|
* ```
|
|
47
40
|
*/
|
|
48
41
|
export declare class FunctionGrant extends pulumi.CustomResource {
|
|
@@ -61,8 +54,14 @@ export declare class FunctionGrant extends pulumi.CustomResource {
|
|
|
61
54
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
62
55
|
*/
|
|
63
56
|
static isInstance(obj: any): obj is FunctionGrant;
|
|
57
|
+
/**
|
|
58
|
+
* List of the argument data types for the function (must be present if function has arguments and functionName is present)
|
|
59
|
+
*/
|
|
60
|
+
readonly argumentDataTypes: pulumi.Output<string[] | undefined>;
|
|
64
61
|
/**
|
|
65
62
|
* List of the arguments for the function (must be present if function has arguments and functionName is present)
|
|
63
|
+
*
|
|
64
|
+
* @deprecated Use argument_data_types instead
|
|
66
65
|
*/
|
|
67
66
|
readonly arguments: pulumi.Output<outputs.FunctionGrantArgument[] | undefined>;
|
|
68
67
|
/**
|
|
@@ -88,6 +87,8 @@ export declare class FunctionGrant extends pulumi.CustomResource {
|
|
|
88
87
|
readonly privilege: pulumi.Output<string | undefined>;
|
|
89
88
|
/**
|
|
90
89
|
* The return type of the function (must be present if functionName is present)
|
|
90
|
+
*
|
|
91
|
+
* @deprecated Not used anymore
|
|
91
92
|
*/
|
|
92
93
|
readonly returnType: pulumi.Output<string | undefined>;
|
|
93
94
|
/**
|
|
@@ -119,8 +120,14 @@ export declare class FunctionGrant extends pulumi.CustomResource {
|
|
|
119
120
|
* Input properties used for looking up and filtering FunctionGrant resources.
|
|
120
121
|
*/
|
|
121
122
|
export interface FunctionGrantState {
|
|
123
|
+
/**
|
|
124
|
+
* List of the argument data types for the function (must be present if function has arguments and functionName is present)
|
|
125
|
+
*/
|
|
126
|
+
argumentDataTypes?: pulumi.Input<pulumi.Input<string>[]>;
|
|
122
127
|
/**
|
|
123
128
|
* List of the arguments for the function (must be present if function has arguments and functionName is present)
|
|
129
|
+
*
|
|
130
|
+
* @deprecated Use argument_data_types instead
|
|
124
131
|
*/
|
|
125
132
|
arguments?: pulumi.Input<pulumi.Input<inputs.FunctionGrantArgument>[]>;
|
|
126
133
|
/**
|
|
@@ -146,6 +153,8 @@ export interface FunctionGrantState {
|
|
|
146
153
|
privilege?: pulumi.Input<string>;
|
|
147
154
|
/**
|
|
148
155
|
* The return type of the function (must be present if functionName is present)
|
|
156
|
+
*
|
|
157
|
+
* @deprecated Not used anymore
|
|
149
158
|
*/
|
|
150
159
|
returnType?: pulumi.Input<string>;
|
|
151
160
|
/**
|
|
@@ -169,8 +178,14 @@ export interface FunctionGrantState {
|
|
|
169
178
|
* The set of arguments for constructing a FunctionGrant resource.
|
|
170
179
|
*/
|
|
171
180
|
export interface FunctionGrantArgs {
|
|
181
|
+
/**
|
|
182
|
+
* List of the argument data types for the function (must be present if function has arguments and functionName is present)
|
|
183
|
+
*/
|
|
184
|
+
argumentDataTypes?: pulumi.Input<pulumi.Input<string>[]>;
|
|
172
185
|
/**
|
|
173
186
|
* List of the arguments for the function (must be present if function has arguments and functionName is present)
|
|
187
|
+
*
|
|
188
|
+
* @deprecated Use argument_data_types instead
|
|
174
189
|
*/
|
|
175
190
|
arguments?: pulumi.Input<pulumi.Input<inputs.FunctionGrantArgument>[]>;
|
|
176
191
|
/**
|
|
@@ -196,6 +211,8 @@ export interface FunctionGrantArgs {
|
|
|
196
211
|
privilege?: pulumi.Input<string>;
|
|
197
212
|
/**
|
|
198
213
|
* The return type of the function (must be present if functionName is present)
|
|
214
|
+
*
|
|
215
|
+
* @deprecated Not used anymore
|
|
199
216
|
*/
|
|
200
217
|
returnType?: pulumi.Input<string>;
|
|
201
218
|
/**
|
package/functionGrant.js
CHANGED
|
@@ -13,21 +13,14 @@ const utilities = require("./utilities");
|
|
|
13
13
|
* import * as snowflake from "@pulumi/snowflake";
|
|
14
14
|
*
|
|
15
15
|
* const grant = new snowflake.FunctionGrant("grant", {
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* type: "array",
|
|
20
|
-
* },
|
|
21
|
-
* {
|
|
22
|
-
* name: "b",
|
|
23
|
-
* type: "string",
|
|
24
|
-
* },
|
|
16
|
+
* argumentDataTypes: [
|
|
17
|
+
* "array",
|
|
18
|
+
* "string",
|
|
25
19
|
* ],
|
|
26
20
|
* databaseName: "database",
|
|
27
21
|
* functionName: "function",
|
|
28
22
|
* onFuture: false,
|
|
29
23
|
* privilege: "USAGE",
|
|
30
|
-
* returnType: "string",
|
|
31
24
|
* roles: [
|
|
32
25
|
* "role1",
|
|
33
26
|
* "role2",
|
|
@@ -46,7 +39,7 @@ const utilities = require("./utilities");
|
|
|
46
39
|
* format is database name | schema name | function signature | privilege | true/false for with_grant_option
|
|
47
40
|
*
|
|
48
41
|
* ```sh
|
|
49
|
-
* $ pulumi import snowflake:index/functionGrant:FunctionGrant example 'dbName|schemaName|functionName(
|
|
42
|
+
* $ pulumi import snowflake:index/functionGrant:FunctionGrant example 'dbName|schemaName|functionName(ARG1TYPE,ARG2TYPE)|USAGE|false'
|
|
50
43
|
* ```
|
|
51
44
|
*/
|
|
52
45
|
class FunctionGrant extends pulumi.CustomResource {
|
|
@@ -77,6 +70,7 @@ class FunctionGrant extends pulumi.CustomResource {
|
|
|
77
70
|
opts = opts || {};
|
|
78
71
|
if (opts.id) {
|
|
79
72
|
const state = argsOrState;
|
|
73
|
+
resourceInputs["argumentDataTypes"] = state ? state.argumentDataTypes : undefined;
|
|
80
74
|
resourceInputs["arguments"] = state ? state.arguments : undefined;
|
|
81
75
|
resourceInputs["databaseName"] = state ? state.databaseName : undefined;
|
|
82
76
|
resourceInputs["enableMultipleGrants"] = state ? state.enableMultipleGrants : undefined;
|
|
@@ -97,6 +91,7 @@ class FunctionGrant extends pulumi.CustomResource {
|
|
|
97
91
|
if ((!args || args.roles === undefined) && !opts.urn) {
|
|
98
92
|
throw new Error("Missing required property 'roles'");
|
|
99
93
|
}
|
|
94
|
+
resourceInputs["argumentDataTypes"] = args ? args.argumentDataTypes : undefined;
|
|
100
95
|
resourceInputs["arguments"] = args ? args.arguments : undefined;
|
|
101
96
|
resourceInputs["databaseName"] = args ? args.databaseName : undefined;
|
|
102
97
|
resourceInputs["enableMultipleGrants"] = args ? args.enableMultipleGrants : undefined;
|
package/functionGrant.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functionGrant.js","sourceRoot":"","sources":["../functionGrant.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"functionGrant.js","sourceRoot":"","sources":["../functionGrant.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpE,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,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;IAgED,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6C,CAAC;YAC5D,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAA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CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,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,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AAlIL,sCAmIC;AArHG,gBAAgB;AACO,0BAAY,GAAG,6CAA6C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/snowflake",
|
|
3
|
-
"version": "v0.16.
|
|
3
|
+
"version": "v0.16.1-alpha.1676310177+c450eac8",
|
|
4
4
|
"description": "A Pulumi package for creating and managing snowflake cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource snowflake v0.16.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource snowflake v0.16.1-alpha.1676310177+c450eac8"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/snowflake",
|
|
3
|
-
"version": "v0.16.
|
|
3
|
+
"version": "v0.16.1-alpha.1676310177+c450eac8",
|
|
4
4
|
"description": "A Pulumi package for creating and managing snowflake cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource snowflake v0.16.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource snowflake v0.16.1-alpha.1676310177+c450eac8"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/procedureGrant.d.ts
CHANGED
|
@@ -9,21 +9,14 @@ import * as outputs from "./types/output";
|
|
|
9
9
|
* import * as snowflake from "@pulumi/snowflake";
|
|
10
10
|
*
|
|
11
11
|
* const grant = new snowflake.ProcedureGrant("grant", {
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* type: "array",
|
|
16
|
-
* },
|
|
17
|
-
* {
|
|
18
|
-
* name: "b",
|
|
19
|
-
* type: "string",
|
|
20
|
-
* },
|
|
12
|
+
* argumentDataTypes: [
|
|
13
|
+
* "array",
|
|
14
|
+
* "string",
|
|
21
15
|
* ],
|
|
22
16
|
* databaseName: "database",
|
|
23
17
|
* onFuture: false,
|
|
24
18
|
* privilege: "SELECT",
|
|
25
19
|
* procedureName: "procedure",
|
|
26
|
-
* returnType: "string",
|
|
27
20
|
* roles: [
|
|
28
21
|
* "role1",
|
|
29
22
|
* "role2",
|
|
@@ -42,7 +35,7 @@ import * as outputs from "./types/output";
|
|
|
42
35
|
* format is database name | schema name | procedure signature | privilege | true/false for with_grant_option
|
|
43
36
|
*
|
|
44
37
|
* ```sh
|
|
45
|
-
* $ pulumi import snowflake:index/procedureGrant:ProcedureGrant example 'dbName|schemaName|procedureName(
|
|
38
|
+
* $ pulumi import snowflake:index/procedureGrant:ProcedureGrant example 'dbName|schemaName|procedureName(ARG1TYPE,ARG2TYPE)|USAGE|false'
|
|
46
39
|
* ```
|
|
47
40
|
*/
|
|
48
41
|
export declare class ProcedureGrant extends pulumi.CustomResource {
|
|
@@ -61,8 +54,14 @@ export declare class ProcedureGrant extends pulumi.CustomResource {
|
|
|
61
54
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
62
55
|
*/
|
|
63
56
|
static isInstance(obj: any): obj is ProcedureGrant;
|
|
57
|
+
/**
|
|
58
|
+
* List of the argument data types for the procedure (must be present if procedure has arguments and procedureName is present)
|
|
59
|
+
*/
|
|
60
|
+
readonly argumentDataTypes: pulumi.Output<string[] | undefined>;
|
|
64
61
|
/**
|
|
65
62
|
* List of the arguments for the procedure (must be present if procedure has arguments and procedureName is present)
|
|
63
|
+
*
|
|
64
|
+
* @deprecated use argument_data_types instead.
|
|
66
65
|
*/
|
|
67
66
|
readonly arguments: pulumi.Output<outputs.ProcedureGrantArgument[] | undefined>;
|
|
68
67
|
/**
|
|
@@ -88,6 +87,8 @@ export declare class ProcedureGrant extends pulumi.CustomResource {
|
|
|
88
87
|
readonly procedureName: pulumi.Output<string | undefined>;
|
|
89
88
|
/**
|
|
90
89
|
* The return type of the procedure (must be present if procedureName is present)
|
|
90
|
+
*
|
|
91
|
+
* @deprecated return_type is no longer required. It will be removed in a future release.
|
|
91
92
|
*/
|
|
92
93
|
readonly returnType: pulumi.Output<string | undefined>;
|
|
93
94
|
/**
|
|
@@ -119,8 +120,14 @@ export declare class ProcedureGrant extends pulumi.CustomResource {
|
|
|
119
120
|
* Input properties used for looking up and filtering ProcedureGrant resources.
|
|
120
121
|
*/
|
|
121
122
|
export interface ProcedureGrantState {
|
|
123
|
+
/**
|
|
124
|
+
* List of the argument data types for the procedure (must be present if procedure has arguments and procedureName is present)
|
|
125
|
+
*/
|
|
126
|
+
argumentDataTypes?: pulumi.Input<pulumi.Input<string>[]>;
|
|
122
127
|
/**
|
|
123
128
|
* List of the arguments for the procedure (must be present if procedure has arguments and procedureName is present)
|
|
129
|
+
*
|
|
130
|
+
* @deprecated use argument_data_types instead.
|
|
124
131
|
*/
|
|
125
132
|
arguments?: pulumi.Input<pulumi.Input<inputs.ProcedureGrantArgument>[]>;
|
|
126
133
|
/**
|
|
@@ -146,6 +153,8 @@ export interface ProcedureGrantState {
|
|
|
146
153
|
procedureName?: pulumi.Input<string>;
|
|
147
154
|
/**
|
|
148
155
|
* The return type of the procedure (must be present if procedureName is present)
|
|
156
|
+
*
|
|
157
|
+
* @deprecated return_type is no longer required. It will be removed in a future release.
|
|
149
158
|
*/
|
|
150
159
|
returnType?: pulumi.Input<string>;
|
|
151
160
|
/**
|
|
@@ -169,8 +178,14 @@ export interface ProcedureGrantState {
|
|
|
169
178
|
* The set of arguments for constructing a ProcedureGrant resource.
|
|
170
179
|
*/
|
|
171
180
|
export interface ProcedureGrantArgs {
|
|
181
|
+
/**
|
|
182
|
+
* List of the argument data types for the procedure (must be present if procedure has arguments and procedureName is present)
|
|
183
|
+
*/
|
|
184
|
+
argumentDataTypes?: pulumi.Input<pulumi.Input<string>[]>;
|
|
172
185
|
/**
|
|
173
186
|
* List of the arguments for the procedure (must be present if procedure has arguments and procedureName is present)
|
|
187
|
+
*
|
|
188
|
+
* @deprecated use argument_data_types instead.
|
|
174
189
|
*/
|
|
175
190
|
arguments?: pulumi.Input<pulumi.Input<inputs.ProcedureGrantArgument>[]>;
|
|
176
191
|
/**
|
|
@@ -196,6 +211,8 @@ export interface ProcedureGrantArgs {
|
|
|
196
211
|
procedureName?: pulumi.Input<string>;
|
|
197
212
|
/**
|
|
198
213
|
* The return type of the procedure (must be present if procedureName is present)
|
|
214
|
+
*
|
|
215
|
+
* @deprecated return_type is no longer required. It will be removed in a future release.
|
|
199
216
|
*/
|
|
200
217
|
returnType?: pulumi.Input<string>;
|
|
201
218
|
/**
|
package/procedureGrant.js
CHANGED
|
@@ -13,21 +13,14 @@ const utilities = require("./utilities");
|
|
|
13
13
|
* import * as snowflake from "@pulumi/snowflake";
|
|
14
14
|
*
|
|
15
15
|
* const grant = new snowflake.ProcedureGrant("grant", {
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* type: "array",
|
|
20
|
-
* },
|
|
21
|
-
* {
|
|
22
|
-
* name: "b",
|
|
23
|
-
* type: "string",
|
|
24
|
-
* },
|
|
16
|
+
* argumentDataTypes: [
|
|
17
|
+
* "array",
|
|
18
|
+
* "string",
|
|
25
19
|
* ],
|
|
26
20
|
* databaseName: "database",
|
|
27
21
|
* onFuture: false,
|
|
28
22
|
* privilege: "SELECT",
|
|
29
23
|
* procedureName: "procedure",
|
|
30
|
-
* returnType: "string",
|
|
31
24
|
* roles: [
|
|
32
25
|
* "role1",
|
|
33
26
|
* "role2",
|
|
@@ -46,7 +39,7 @@ const utilities = require("./utilities");
|
|
|
46
39
|
* format is database name | schema name | procedure signature | privilege | true/false for with_grant_option
|
|
47
40
|
*
|
|
48
41
|
* ```sh
|
|
49
|
-
* $ pulumi import snowflake:index/procedureGrant:ProcedureGrant example 'dbName|schemaName|procedureName(
|
|
42
|
+
* $ pulumi import snowflake:index/procedureGrant:ProcedureGrant example 'dbName|schemaName|procedureName(ARG1TYPE,ARG2TYPE)|USAGE|false'
|
|
50
43
|
* ```
|
|
51
44
|
*/
|
|
52
45
|
class ProcedureGrant extends pulumi.CustomResource {
|
|
@@ -77,6 +70,7 @@ class ProcedureGrant extends pulumi.CustomResource {
|
|
|
77
70
|
opts = opts || {};
|
|
78
71
|
if (opts.id) {
|
|
79
72
|
const state = argsOrState;
|
|
73
|
+
resourceInputs["argumentDataTypes"] = state ? state.argumentDataTypes : undefined;
|
|
80
74
|
resourceInputs["arguments"] = state ? state.arguments : undefined;
|
|
81
75
|
resourceInputs["databaseName"] = state ? state.databaseName : undefined;
|
|
82
76
|
resourceInputs["enableMultipleGrants"] = state ? state.enableMultipleGrants : undefined;
|
|
@@ -97,6 +91,7 @@ class ProcedureGrant extends pulumi.CustomResource {
|
|
|
97
91
|
if ((!args || args.roles === undefined) && !opts.urn) {
|
|
98
92
|
throw new Error("Missing required property 'roles'");
|
|
99
93
|
}
|
|
94
|
+
resourceInputs["argumentDataTypes"] = args ? args.argumentDataTypes : undefined;
|
|
100
95
|
resourceInputs["arguments"] = args ? args.arguments : undefined;
|
|
101
96
|
resourceInputs["databaseName"] = args ? args.databaseName : undefined;
|
|
102
97
|
resourceInputs["enableMultipleGrants"] = args ? args.enableMultipleGrants : undefined;
|
package/procedureGrant.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"procedureGrant.js","sourceRoot":"","sources":["../procedureGrant.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"procedureGrant.js","sourceRoot":"","sources":["../procedureGrant.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,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,cAAc,CAAC,YAAY,CAAC;I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