@pulumi/snowflake 0.56.0-alpha.1721327760 → 0.56.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/apiAuthenticationIntegrationWithAuthorizationCodeGrant.d.ts +195 -0
- package/apiAuthenticationIntegrationWithAuthorizationCodeGrant.js +91 -0
- package/apiAuthenticationIntegrationWithAuthorizationCodeGrant.js.map +1 -0
- package/apiAuthenticationIntegrationWithClientCredentials.d.ts +183 -0
- package/apiAuthenticationIntegrationWithClientCredentials.js +89 -0
- package/apiAuthenticationIntegrationWithClientCredentials.js.map +1 -0
- package/apiAuthenticationIntegrationWithJwtBearer.d.ts +186 -0
- package/apiAuthenticationIntegrationWithJwtBearer.js +94 -0
- package/apiAuthenticationIntegrationWithJwtBearer.js.map +1 -0
- package/cortexSearchService.d.ts +159 -0
- package/cortexSearchService.js +92 -0
- package/cortexSearchService.js.map +1 -0
- package/database.d.ts +240 -77
- package/database.js +94 -45
- package/database.js.map +1 -1
- package/databaseOld.d.ts +187 -0
- package/databaseOld.js +110 -0
- package/databaseOld.js.map +1 -0
- package/externalOauthIntegration.d.ts +118 -116
- package/externalOauthIntegration.js +43 -55
- package/externalOauthIntegration.js.map +1 -1
- package/failoverGroup.d.ts +1 -1
- package/failoverGroup.js +1 -1
- package/getCortexSearchServices.d.ts +136 -0
- package/getCortexSearchServices.js +83 -0
- package/getCortexSearchServices.js.map +1 -0
- package/getDatabases.d.ts +41 -38
- package/getDatabases.js +8 -17
- package/getDatabases.js.map +1 -1
- package/getSecurityIntegrations.d.ts +61 -0
- package/getSecurityIntegrations.js +31 -0
- package/getSecurityIntegrations.js.map +1 -0
- package/getWarehouses.d.ts +53 -17
- package/getWarehouses.js +13 -18
- package/getWarehouses.js.map +1 -1
- package/grantPrivilegesToDatabaseRole.d.ts +0 -2
- package/grantPrivilegesToDatabaseRole.js +0 -2
- package/grantPrivilegesToDatabaseRole.js.map +1 -1
- package/index.d.ts +37 -82
- package/index.js +60 -139
- package/index.js.map +1 -1
- package/managedAccount.d.ts +3 -3
- package/oauthIntegration.d.ts +2 -0
- package/oauthIntegration.js +2 -0
- package/oauthIntegration.js.map +1 -1
- package/oauthIntegrationForCustomClients.d.ts +274 -0
- package/oauthIntegrationForCustomClients.js +148 -0
- package/oauthIntegrationForCustomClients.js.map +1 -0
- package/oauthIntegrationForPartnerApplications.d.ts +162 -0
- package/oauthIntegrationForPartnerApplications.js +84 -0
- package/oauthIntegrationForPartnerApplications.js.map +1 -0
- package/package.json +2 -2
- package/saml2Integration.d.ts +267 -0
- package/saml2Integration.js +106 -0
- package/saml2Integration.js.map +1 -0
- package/samlIntegration.d.ts +2 -0
- package/samlIntegration.js +2 -0
- package/samlIntegration.js.map +1 -1
- package/scimIntegration.d.ts +67 -33
- package/scimIntegration.js +19 -20
- package/scimIntegration.js.map +1 -1
- package/secondaryDatabase.d.ts +289 -0
- package/secondaryDatabase.js +103 -0
- package/secondaryDatabase.js.map +1 -0
- package/sequence.d.ts +3 -3
- package/sequence.js +3 -3
- package/sharedDatabase.d.ts +251 -0
- package/sharedDatabase.js +95 -0
- package/sharedDatabase.js.map +1 -0
- package/tagAssociation.d.ts +19 -19
- package/tagAssociation.js +19 -19
- package/types/input.d.ts +1015 -75
- package/types/output.d.ts +1835 -280
- package/userPasswordPolicyAttachment.d.ts +18 -0
- package/userPasswordPolicyAttachment.js +18 -0
- package/userPasswordPolicyAttachment.js.map +1 -1
- package/warehouse.d.ts +61 -48
- package/warehouse.js +8 -2
- package/warehouse.js.map +1 -1
- package/accountGrant.d.ts +0 -102
- package/accountGrant.js +0 -82
- package/accountGrant.js.map +0 -1
- package/databaseGrant.d.ts +0 -143
- package/databaseGrant.js +0 -96
- package/databaseGrant.js.map +0 -1
- package/externalTableGrant.d.ts +0 -194
- package/externalTableGrant.js +0 -110
- package/externalTableGrant.js.map +0 -1
- package/failoverGroupGrant.d.ts +0 -102
- package/failoverGroupGrant.js +0 -65
- package/failoverGroupGrant.js.map +0 -1
- package/fileFormatGrant.d.ts +0 -178
- package/fileFormatGrant.js +0 -104
- package/fileFormatGrant.js.map +0 -1
- package/functionGrant.d.ts +0 -210
- package/functionGrant.js +0 -116
- package/functionGrant.js.map +0 -1
- package/grantPrivilegesToRole.d.ts +0 -323
- package/grantPrivilegesToRole.js +0 -255
- package/grantPrivilegesToRole.js.map +0 -1
- package/integrationGrant.d.ts +0 -127
- package/integrationGrant.js +0 -90
- package/integrationGrant.js.map +0 -1
- package/maskingPolicyGrant.d.ts +0 -154
- package/maskingPolicyGrant.js +0 -103
- package/maskingPolicyGrant.js.map +0 -1
- package/materializedViewGrant.d.ts +0 -194
- package/materializedViewGrant.js +0 -107
- package/materializedViewGrant.js.map +0 -1
- package/pipeGrant.d.ts +0 -166
- package/pipeGrant.js +0 -99
- package/pipeGrant.js.map +0 -1
- package/procedureGrant.d.ts +0 -210
- package/procedureGrant.js +0 -116
- package/procedureGrant.js.map +0 -1
- package/resourceMonitorGrant.d.ts +0 -112
- package/resourceMonitorGrant.js +0 -85
- package/resourceMonitorGrant.js.map +0 -1
- package/roleGrants.d.ts +0 -115
- package/roleGrants.js +0 -98
- package/roleGrants.js.map +0 -1
- package/roleOwnershipGrant.d.ts +0 -108
- package/roleOwnershipGrant.js +0 -94
- package/roleOwnershipGrant.js.map +0 -1
- package/rowAccessPolicyGrant.d.ts +0 -153
- package/rowAccessPolicyGrant.js +0 -102
- package/rowAccessPolicyGrant.js.map +0 -1
- package/schemaGrant.d.ts +0 -172
- package/schemaGrant.js +0 -104
- package/schemaGrant.js.map +0 -1
- package/sequenceGrant.d.ts +0 -178
- package/sequenceGrant.js +0 -104
- package/sequenceGrant.js.map +0 -1
- package/stageGrant.d.ts +0 -178
- package/stageGrant.js +0 -104
- package/stageGrant.js.map +0 -1
- package/streamGrant.d.ts +0 -178
- package/streamGrant.js +0 -104
- package/streamGrant.js.map +0 -1
- package/tableGrant.d.ts +0 -188
- package/tableGrant.js +0 -101
- package/tableGrant.js.map +0 -1
- package/tagGrant.d.ts +0 -149
- package/tagGrant.js +0 -98
- package/tagGrant.js.map +0 -1
- package/taskGrant.d.ts +0 -178
- package/taskGrant.js +0 -104
- package/taskGrant.js.map +0 -1
- package/userGrant.d.ts +0 -115
- package/userGrant.js +0 -91
- package/userGrant.js.map +0 -1
- package/userOwnershipGrant.d.ts +0 -78
- package/userOwnershipGrant.js +0 -64
- package/userOwnershipGrant.js.map +0 -1
- package/viewGrant.d.ts +0 -205
- package/viewGrant.js +0 -118
- package/viewGrant.js.map +0 -1
- package/warehouseGrant.d.ts +0 -127
- package/warehouseGrant.js +0 -90
- package/warehouseGrant.js.map +0 -1
package/taskGrant.d.ts
DELETED
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* > **Deprecation** This resource is deprecated and will be removed in a future major version release. Please use snowflake.GrantPrivilegesToAccountRole instead. <deprecation>
|
|
4
|
-
*
|
|
5
|
-
* ## Example Usage
|
|
6
|
-
*
|
|
7
|
-
* ```typescript
|
|
8
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
-
* import * as snowflake from "@pulumi/snowflake";
|
|
10
|
-
*
|
|
11
|
-
* const grant = new snowflake.TaskGrant("grant", {
|
|
12
|
-
* databaseName: "database",
|
|
13
|
-
* schemaName: "schema",
|
|
14
|
-
* taskName: "task",
|
|
15
|
-
* privilege: "OPERATE",
|
|
16
|
-
* roles: [
|
|
17
|
-
* "role1",
|
|
18
|
-
* "role2",
|
|
19
|
-
* ],
|
|
20
|
-
* onFuture: false,
|
|
21
|
-
* withGrantOption: false,
|
|
22
|
-
* });
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* ## Import
|
|
26
|
-
*
|
|
27
|
-
* format is database_name|schema_name|task_name|privilege|with_grant_option|on_future|on_all|roles"
|
|
28
|
-
*
|
|
29
|
-
* ```sh
|
|
30
|
-
* $ pulumi import snowflake:index/taskGrant:TaskGrant example "MY_DATABASE|MY_SCHEMA|MY_TASK|OPERATE|false|false|false|role1,role2"
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
export declare class TaskGrant extends pulumi.CustomResource {
|
|
34
|
-
/**
|
|
35
|
-
* Get an existing TaskGrant resource's state with the given name, ID, and optional extra
|
|
36
|
-
* properties used to qualify the lookup.
|
|
37
|
-
*
|
|
38
|
-
* @param name The _unique_ name of the resulting resource.
|
|
39
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
40
|
-
* @param state Any extra arguments used during the lookup.
|
|
41
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
42
|
-
*/
|
|
43
|
-
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TaskGrantState, opts?: pulumi.CustomResourceOptions): TaskGrant;
|
|
44
|
-
/**
|
|
45
|
-
* Returns true if the given object is an instance of TaskGrant. This is designed to work even
|
|
46
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
47
|
-
*/
|
|
48
|
-
static isInstance(obj: any): obj is TaskGrant;
|
|
49
|
-
/**
|
|
50
|
-
* The name of the database containing the current or future tasks on which to grant privileges.
|
|
51
|
-
*/
|
|
52
|
-
readonly databaseName: pulumi.Output<string>;
|
|
53
|
-
readonly enableMultipleGrants: pulumi.Output<boolean | undefined>;
|
|
54
|
-
/**
|
|
55
|
-
* When this is set to true and a schema*name is provided, apply this grant on all tasks in the given schema. When this is true and no schema*name is provided apply this grant on all tasks in the given database. The task*name field must be unset in order to use on*all. Cannot be used together with on_future.
|
|
56
|
-
*/
|
|
57
|
-
readonly onAll: pulumi.Output<boolean | undefined>;
|
|
58
|
-
/**
|
|
59
|
-
* When this is set to true and a schema*name is provided, apply this grant on all future tasks in the given schema. When this is true and no schema*name is provided apply this grant on all future tasks in the given database. The task*name field must be unset in order to use on*future. Cannot be used together with on_all.
|
|
60
|
-
*/
|
|
61
|
-
readonly onFuture: pulumi.Output<boolean | undefined>;
|
|
62
|
-
/**
|
|
63
|
-
* The privilege to grant on the current or future task. To grant all privileges, use the value `ALL PRIVILEGES`.
|
|
64
|
-
*/
|
|
65
|
-
readonly privilege: pulumi.Output<string | undefined>;
|
|
66
|
-
/**
|
|
67
|
-
* The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
|
|
68
|
-
*/
|
|
69
|
-
readonly revertOwnershipToRoleName: pulumi.Output<string | undefined>;
|
|
70
|
-
/**
|
|
71
|
-
* Grants privilege to these roles.
|
|
72
|
-
*/
|
|
73
|
-
readonly roles: pulumi.Output<string[]>;
|
|
74
|
-
/**
|
|
75
|
-
* The name of the schema containing the current or future tasks on which to grant privileges.
|
|
76
|
-
*/
|
|
77
|
-
readonly schemaName: pulumi.Output<string | undefined>;
|
|
78
|
-
/**
|
|
79
|
-
* The name of the task on which to grant privileges immediately (only valid if onFuture is false).
|
|
80
|
-
*/
|
|
81
|
-
readonly taskName: pulumi.Output<string | undefined>;
|
|
82
|
-
/**
|
|
83
|
-
* When this is set to true, allows the recipient role to grant the privileges to other roles.
|
|
84
|
-
*/
|
|
85
|
-
readonly withGrantOption: pulumi.Output<boolean | undefined>;
|
|
86
|
-
/**
|
|
87
|
-
* Create a TaskGrant resource with the given unique name, arguments, and options.
|
|
88
|
-
*
|
|
89
|
-
* @param name The _unique_ name of the resource.
|
|
90
|
-
* @param args The arguments to use to populate this resource's properties.
|
|
91
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
92
|
-
*/
|
|
93
|
-
constructor(name: string, args: TaskGrantArgs, opts?: pulumi.CustomResourceOptions);
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Input properties used for looking up and filtering TaskGrant resources.
|
|
97
|
-
*/
|
|
98
|
-
export interface TaskGrantState {
|
|
99
|
-
/**
|
|
100
|
-
* The name of the database containing the current or future tasks on which to grant privileges.
|
|
101
|
-
*/
|
|
102
|
-
databaseName?: pulumi.Input<string>;
|
|
103
|
-
enableMultipleGrants?: pulumi.Input<boolean>;
|
|
104
|
-
/**
|
|
105
|
-
* When this is set to true and a schema*name is provided, apply this grant on all tasks in the given schema. When this is true and no schema*name is provided apply this grant on all tasks in the given database. The task*name field must be unset in order to use on*all. Cannot be used together with on_future.
|
|
106
|
-
*/
|
|
107
|
-
onAll?: pulumi.Input<boolean>;
|
|
108
|
-
/**
|
|
109
|
-
* When this is set to true and a schema*name is provided, apply this grant on all future tasks in the given schema. When this is true and no schema*name is provided apply this grant on all future tasks in the given database. The task*name field must be unset in order to use on*future. Cannot be used together with on_all.
|
|
110
|
-
*/
|
|
111
|
-
onFuture?: pulumi.Input<boolean>;
|
|
112
|
-
/**
|
|
113
|
-
* The privilege to grant on the current or future task. To grant all privileges, use the value `ALL PRIVILEGES`.
|
|
114
|
-
*/
|
|
115
|
-
privilege?: pulumi.Input<string>;
|
|
116
|
-
/**
|
|
117
|
-
* The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
|
|
118
|
-
*/
|
|
119
|
-
revertOwnershipToRoleName?: pulumi.Input<string>;
|
|
120
|
-
/**
|
|
121
|
-
* Grants privilege to these roles.
|
|
122
|
-
*/
|
|
123
|
-
roles?: pulumi.Input<pulumi.Input<string>[]>;
|
|
124
|
-
/**
|
|
125
|
-
* The name of the schema containing the current or future tasks on which to grant privileges.
|
|
126
|
-
*/
|
|
127
|
-
schemaName?: pulumi.Input<string>;
|
|
128
|
-
/**
|
|
129
|
-
* The name of the task on which to grant privileges immediately (only valid if onFuture is false).
|
|
130
|
-
*/
|
|
131
|
-
taskName?: pulumi.Input<string>;
|
|
132
|
-
/**
|
|
133
|
-
* When this is set to true, allows the recipient role to grant the privileges to other roles.
|
|
134
|
-
*/
|
|
135
|
-
withGrantOption?: pulumi.Input<boolean>;
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* The set of arguments for constructing a TaskGrant resource.
|
|
139
|
-
*/
|
|
140
|
-
export interface TaskGrantArgs {
|
|
141
|
-
/**
|
|
142
|
-
* The name of the database containing the current or future tasks on which to grant privileges.
|
|
143
|
-
*/
|
|
144
|
-
databaseName: pulumi.Input<string>;
|
|
145
|
-
enableMultipleGrants?: pulumi.Input<boolean>;
|
|
146
|
-
/**
|
|
147
|
-
* When this is set to true and a schema*name is provided, apply this grant on all tasks in the given schema. When this is true and no schema*name is provided apply this grant on all tasks in the given database. The task*name field must be unset in order to use on*all. Cannot be used together with on_future.
|
|
148
|
-
*/
|
|
149
|
-
onAll?: pulumi.Input<boolean>;
|
|
150
|
-
/**
|
|
151
|
-
* When this is set to true and a schema*name is provided, apply this grant on all future tasks in the given schema. When this is true and no schema*name is provided apply this grant on all future tasks in the given database. The task*name field must be unset in order to use on*future. Cannot be used together with on_all.
|
|
152
|
-
*/
|
|
153
|
-
onFuture?: pulumi.Input<boolean>;
|
|
154
|
-
/**
|
|
155
|
-
* The privilege to grant on the current or future task. To grant all privileges, use the value `ALL PRIVILEGES`.
|
|
156
|
-
*/
|
|
157
|
-
privilege?: pulumi.Input<string>;
|
|
158
|
-
/**
|
|
159
|
-
* The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
|
|
160
|
-
*/
|
|
161
|
-
revertOwnershipToRoleName?: pulumi.Input<string>;
|
|
162
|
-
/**
|
|
163
|
-
* Grants privilege to these roles.
|
|
164
|
-
*/
|
|
165
|
-
roles: pulumi.Input<pulumi.Input<string>[]>;
|
|
166
|
-
/**
|
|
167
|
-
* The name of the schema containing the current or future tasks on which to grant privileges.
|
|
168
|
-
*/
|
|
169
|
-
schemaName?: pulumi.Input<string>;
|
|
170
|
-
/**
|
|
171
|
-
* The name of the task on which to grant privileges immediately (only valid if onFuture is false).
|
|
172
|
-
*/
|
|
173
|
-
taskName?: pulumi.Input<string>;
|
|
174
|
-
/**
|
|
175
|
-
* When this is set to true, allows the recipient role to grant the privileges to other roles.
|
|
176
|
-
*/
|
|
177
|
-
withGrantOption?: pulumi.Input<boolean>;
|
|
178
|
-
}
|
package/taskGrant.js
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
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.TaskGrant = void 0;
|
|
6
|
-
const pulumi = require("@pulumi/pulumi");
|
|
7
|
-
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* > **Deprecation** This resource is deprecated and will be removed in a future major version release. Please use snowflake.GrantPrivilegesToAccountRole instead. <deprecation>
|
|
10
|
-
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* import * as snowflake from "@pulumi/snowflake";
|
|
16
|
-
*
|
|
17
|
-
* const grant = new snowflake.TaskGrant("grant", {
|
|
18
|
-
* databaseName: "database",
|
|
19
|
-
* schemaName: "schema",
|
|
20
|
-
* taskName: "task",
|
|
21
|
-
* privilege: "OPERATE",
|
|
22
|
-
* roles: [
|
|
23
|
-
* "role1",
|
|
24
|
-
* "role2",
|
|
25
|
-
* ],
|
|
26
|
-
* onFuture: false,
|
|
27
|
-
* withGrantOption: false,
|
|
28
|
-
* });
|
|
29
|
-
* ```
|
|
30
|
-
*
|
|
31
|
-
* ## Import
|
|
32
|
-
*
|
|
33
|
-
* format is database_name|schema_name|task_name|privilege|with_grant_option|on_future|on_all|roles"
|
|
34
|
-
*
|
|
35
|
-
* ```sh
|
|
36
|
-
* $ pulumi import snowflake:index/taskGrant:TaskGrant example "MY_DATABASE|MY_SCHEMA|MY_TASK|OPERATE|false|false|false|role1,role2"
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
class TaskGrant extends pulumi.CustomResource {
|
|
40
|
-
/**
|
|
41
|
-
* Get an existing TaskGrant resource's state with the given name, ID, and optional extra
|
|
42
|
-
* properties used to qualify the lookup.
|
|
43
|
-
*
|
|
44
|
-
* @param name The _unique_ name of the resulting resource.
|
|
45
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
46
|
-
* @param state Any extra arguments used during the lookup.
|
|
47
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
48
|
-
*/
|
|
49
|
-
static get(name, id, state, opts) {
|
|
50
|
-
return new TaskGrant(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Returns true if the given object is an instance of TaskGrant. This is designed to work even
|
|
54
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
55
|
-
*/
|
|
56
|
-
static isInstance(obj) {
|
|
57
|
-
if (obj === undefined || obj === null) {
|
|
58
|
-
return false;
|
|
59
|
-
}
|
|
60
|
-
return obj['__pulumiType'] === TaskGrant.__pulumiType;
|
|
61
|
-
}
|
|
62
|
-
constructor(name, argsOrState, opts) {
|
|
63
|
-
let resourceInputs = {};
|
|
64
|
-
opts = opts || {};
|
|
65
|
-
if (opts.id) {
|
|
66
|
-
const state = argsOrState;
|
|
67
|
-
resourceInputs["databaseName"] = state ? state.databaseName : undefined;
|
|
68
|
-
resourceInputs["enableMultipleGrants"] = state ? state.enableMultipleGrants : undefined;
|
|
69
|
-
resourceInputs["onAll"] = state ? state.onAll : undefined;
|
|
70
|
-
resourceInputs["onFuture"] = state ? state.onFuture : undefined;
|
|
71
|
-
resourceInputs["privilege"] = state ? state.privilege : undefined;
|
|
72
|
-
resourceInputs["revertOwnershipToRoleName"] = state ? state.revertOwnershipToRoleName : undefined;
|
|
73
|
-
resourceInputs["roles"] = state ? state.roles : undefined;
|
|
74
|
-
resourceInputs["schemaName"] = state ? state.schemaName : undefined;
|
|
75
|
-
resourceInputs["taskName"] = state ? state.taskName : undefined;
|
|
76
|
-
resourceInputs["withGrantOption"] = state ? state.withGrantOption : undefined;
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
const args = argsOrState;
|
|
80
|
-
if ((!args || args.databaseName === undefined) && !opts.urn) {
|
|
81
|
-
throw new Error("Missing required property 'databaseName'");
|
|
82
|
-
}
|
|
83
|
-
if ((!args || args.roles === undefined) && !opts.urn) {
|
|
84
|
-
throw new Error("Missing required property 'roles'");
|
|
85
|
-
}
|
|
86
|
-
resourceInputs["databaseName"] = args ? args.databaseName : undefined;
|
|
87
|
-
resourceInputs["enableMultipleGrants"] = args ? args.enableMultipleGrants : undefined;
|
|
88
|
-
resourceInputs["onAll"] = args ? args.onAll : undefined;
|
|
89
|
-
resourceInputs["onFuture"] = args ? args.onFuture : undefined;
|
|
90
|
-
resourceInputs["privilege"] = args ? args.privilege : undefined;
|
|
91
|
-
resourceInputs["revertOwnershipToRoleName"] = args ? args.revertOwnershipToRoleName : undefined;
|
|
92
|
-
resourceInputs["roles"] = args ? args.roles : undefined;
|
|
93
|
-
resourceInputs["schemaName"] = args ? args.schemaName : undefined;
|
|
94
|
-
resourceInputs["taskName"] = args ? args.taskName : undefined;
|
|
95
|
-
resourceInputs["withGrantOption"] = args ? args.withGrantOption : undefined;
|
|
96
|
-
}
|
|
97
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
98
|
-
super(TaskGrant.__pulumiType, name, resourceInputs, opts);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
exports.TaskGrant = TaskGrant;
|
|
102
|
-
/** @internal */
|
|
103
|
-
TaskGrant.__pulumiType = 'snowflake:index/taskGrant:TaskGrant';
|
|
104
|
-
//# sourceMappingURL=taskGrant.js.map
|
package/taskGrant.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"taskGrant.js","sourceRoot":"","sources":["../taskGrant.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,SAA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cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,2BAA2B,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChG,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,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,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,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,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AA9GL,8BA+GC;AAjGG,gBAAgB;AACO,sBAAY,GAAG,qCAAqC,CAAC"}
|
package/userGrant.d.ts
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
/**
|
|
3
|
-
* > **Deprecation** This resource is deprecated and will be removed in a future major version release. Please use snowflake.GrantPrivilegesToAccountRole instead. <deprecation>
|
|
4
|
-
*
|
|
5
|
-
* ## Example Usage
|
|
6
|
-
*
|
|
7
|
-
* ```typescript
|
|
8
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
-
* import * as snowflake from "@pulumi/snowflake";
|
|
10
|
-
*
|
|
11
|
-
* const grant = new snowflake.UserGrant("grant", {
|
|
12
|
-
* userName: "user",
|
|
13
|
-
* privilege: "MONITOR",
|
|
14
|
-
* roles: [
|
|
15
|
-
* "role1",
|
|
16
|
-
* "role2",
|
|
17
|
-
* ],
|
|
18
|
-
* withGrantOption: false,
|
|
19
|
-
* });
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* ## Import
|
|
23
|
-
*
|
|
24
|
-
* format is user_name|privilege|with_grant_option|roles
|
|
25
|
-
*
|
|
26
|
-
* ```sh
|
|
27
|
-
* $ pulumi import snowflake:index/userGrant:UserGrant example "USERNAME|MONITOR|false|role1,role2"
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
export declare class UserGrant extends pulumi.CustomResource {
|
|
31
|
-
/**
|
|
32
|
-
* Get an existing UserGrant resource's state with the given name, ID, and optional extra
|
|
33
|
-
* properties used to qualify the lookup.
|
|
34
|
-
*
|
|
35
|
-
* @param name The _unique_ name of the resulting resource.
|
|
36
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
37
|
-
* @param state Any extra arguments used during the lookup.
|
|
38
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
39
|
-
*/
|
|
40
|
-
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: UserGrantState, opts?: pulumi.CustomResourceOptions): UserGrant;
|
|
41
|
-
/**
|
|
42
|
-
* Returns true if the given object is an instance of UserGrant. This is designed to work even
|
|
43
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
44
|
-
*/
|
|
45
|
-
static isInstance(obj: any): obj is UserGrant;
|
|
46
|
-
readonly enableMultipleGrants: pulumi.Output<boolean | undefined>;
|
|
47
|
-
/**
|
|
48
|
-
* The privilege to grant on the user. To grant all privileges, use the value `ALL PRIVILEGES`.
|
|
49
|
-
*/
|
|
50
|
-
readonly privilege: pulumi.Output<string>;
|
|
51
|
-
/**
|
|
52
|
-
* Grants privilege to these roles.
|
|
53
|
-
*/
|
|
54
|
-
readonly roles: pulumi.Output<string[] | undefined>;
|
|
55
|
-
/**
|
|
56
|
-
* The name of the user on which to grant privileges.
|
|
57
|
-
*/
|
|
58
|
-
readonly userName: pulumi.Output<string>;
|
|
59
|
-
/**
|
|
60
|
-
* When this is set to true, allows the recipient role to grant the privileges to other roles.
|
|
61
|
-
*/
|
|
62
|
-
readonly withGrantOption: pulumi.Output<boolean | undefined>;
|
|
63
|
-
/**
|
|
64
|
-
* Create a UserGrant resource with the given unique name, arguments, and options.
|
|
65
|
-
*
|
|
66
|
-
* @param name The _unique_ name of the resource.
|
|
67
|
-
* @param args The arguments to use to populate this resource's properties.
|
|
68
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
69
|
-
*/
|
|
70
|
-
constructor(name: string, args: UserGrantArgs, opts?: pulumi.CustomResourceOptions);
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Input properties used for looking up and filtering UserGrant resources.
|
|
74
|
-
*/
|
|
75
|
-
export interface UserGrantState {
|
|
76
|
-
enableMultipleGrants?: pulumi.Input<boolean>;
|
|
77
|
-
/**
|
|
78
|
-
* The privilege to grant on the user. To grant all privileges, use the value `ALL PRIVILEGES`.
|
|
79
|
-
*/
|
|
80
|
-
privilege?: pulumi.Input<string>;
|
|
81
|
-
/**
|
|
82
|
-
* Grants privilege to these roles.
|
|
83
|
-
*/
|
|
84
|
-
roles?: pulumi.Input<pulumi.Input<string>[]>;
|
|
85
|
-
/**
|
|
86
|
-
* The name of the user on which to grant privileges.
|
|
87
|
-
*/
|
|
88
|
-
userName?: pulumi.Input<string>;
|
|
89
|
-
/**
|
|
90
|
-
* When this is set to true, allows the recipient role to grant the privileges to other roles.
|
|
91
|
-
*/
|
|
92
|
-
withGrantOption?: pulumi.Input<boolean>;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* The set of arguments for constructing a UserGrant resource.
|
|
96
|
-
*/
|
|
97
|
-
export interface UserGrantArgs {
|
|
98
|
-
enableMultipleGrants?: pulumi.Input<boolean>;
|
|
99
|
-
/**
|
|
100
|
-
* The privilege to grant on the user. To grant all privileges, use the value `ALL PRIVILEGES`.
|
|
101
|
-
*/
|
|
102
|
-
privilege: pulumi.Input<string>;
|
|
103
|
-
/**
|
|
104
|
-
* Grants privilege to these roles.
|
|
105
|
-
*/
|
|
106
|
-
roles?: pulumi.Input<pulumi.Input<string>[]>;
|
|
107
|
-
/**
|
|
108
|
-
* The name of the user on which to grant privileges.
|
|
109
|
-
*/
|
|
110
|
-
userName: pulumi.Input<string>;
|
|
111
|
-
/**
|
|
112
|
-
* When this is set to true, allows the recipient role to grant the privileges to other roles.
|
|
113
|
-
*/
|
|
114
|
-
withGrantOption?: pulumi.Input<boolean>;
|
|
115
|
-
}
|
package/userGrant.js
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
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.UserGrant = void 0;
|
|
6
|
-
const pulumi = require("@pulumi/pulumi");
|
|
7
|
-
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* > **Deprecation** This resource is deprecated and will be removed in a future major version release. Please use snowflake.GrantPrivilegesToAccountRole instead. <deprecation>
|
|
10
|
-
*
|
|
11
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* import * as snowflake from "@pulumi/snowflake";
|
|
16
|
-
*
|
|
17
|
-
* const grant = new snowflake.UserGrant("grant", {
|
|
18
|
-
* userName: "user",
|
|
19
|
-
* privilege: "MONITOR",
|
|
20
|
-
* roles: [
|
|
21
|
-
* "role1",
|
|
22
|
-
* "role2",
|
|
23
|
-
* ],
|
|
24
|
-
* withGrantOption: false,
|
|
25
|
-
* });
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* ## Import
|
|
29
|
-
*
|
|
30
|
-
* format is user_name|privilege|with_grant_option|roles
|
|
31
|
-
*
|
|
32
|
-
* ```sh
|
|
33
|
-
* $ pulumi import snowflake:index/userGrant:UserGrant example "USERNAME|MONITOR|false|role1,role2"
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
class UserGrant extends pulumi.CustomResource {
|
|
37
|
-
/**
|
|
38
|
-
* Get an existing UserGrant resource's state with the given name, ID, and optional extra
|
|
39
|
-
* properties used to qualify the lookup.
|
|
40
|
-
*
|
|
41
|
-
* @param name The _unique_ name of the resulting resource.
|
|
42
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
43
|
-
* @param state Any extra arguments used during the lookup.
|
|
44
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
45
|
-
*/
|
|
46
|
-
static get(name, id, state, opts) {
|
|
47
|
-
return new UserGrant(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Returns true if the given object is an instance of UserGrant. This is designed to work even
|
|
51
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
52
|
-
*/
|
|
53
|
-
static isInstance(obj) {
|
|
54
|
-
if (obj === undefined || obj === null) {
|
|
55
|
-
return false;
|
|
56
|
-
}
|
|
57
|
-
return obj['__pulumiType'] === UserGrant.__pulumiType;
|
|
58
|
-
}
|
|
59
|
-
constructor(name, argsOrState, opts) {
|
|
60
|
-
let resourceInputs = {};
|
|
61
|
-
opts = opts || {};
|
|
62
|
-
if (opts.id) {
|
|
63
|
-
const state = argsOrState;
|
|
64
|
-
resourceInputs["enableMultipleGrants"] = state ? state.enableMultipleGrants : undefined;
|
|
65
|
-
resourceInputs["privilege"] = state ? state.privilege : undefined;
|
|
66
|
-
resourceInputs["roles"] = state ? state.roles : undefined;
|
|
67
|
-
resourceInputs["userName"] = state ? state.userName : undefined;
|
|
68
|
-
resourceInputs["withGrantOption"] = state ? state.withGrantOption : undefined;
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
const args = argsOrState;
|
|
72
|
-
if ((!args || args.privilege === undefined) && !opts.urn) {
|
|
73
|
-
throw new Error("Missing required property 'privilege'");
|
|
74
|
-
}
|
|
75
|
-
if ((!args || args.userName === undefined) && !opts.urn) {
|
|
76
|
-
throw new Error("Missing required property 'userName'");
|
|
77
|
-
}
|
|
78
|
-
resourceInputs["enableMultipleGrants"] = args ? args.enableMultipleGrants : undefined;
|
|
79
|
-
resourceInputs["privilege"] = args ? args.privilege : undefined;
|
|
80
|
-
resourceInputs["roles"] = args ? args.roles : undefined;
|
|
81
|
-
resourceInputs["userName"] = args ? args.userName : undefined;
|
|
82
|
-
resourceInputs["withGrantOption"] = args ? args.withGrantOption : undefined;
|
|
83
|
-
}
|
|
84
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
85
|
-
super(UserGrant.__pulumiType, name, resourceInputs, opts);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
exports.UserGrant = UserGrant;
|
|
89
|
-
/** @internal */
|
|
90
|
-
UserGrant.__pulumiType = 'snowflake:index/userGrant:UserGrant';
|
|
91
|
-
//# sourceMappingURL=userGrant.js.map
|
package/userGrant.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"userGrant.js","sourceRoot":"","sources":["../userGrant.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,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
|
|
2
|
-
/**
|
|
3
|
-
* > **Deprecation** This resource is deprecated and will be removed in a future major version release. Please use snowflake.GrantOwnership instead. <deprecation>
|
|
4
|
-
*/
|
|
5
|
-
export declare class UserOwnershipGrant extends pulumi.CustomResource {
|
|
6
|
-
/**
|
|
7
|
-
* Get an existing UserOwnershipGrant resource's state with the given name, ID, and optional extra
|
|
8
|
-
* properties used to qualify the lookup.
|
|
9
|
-
*
|
|
10
|
-
* @param name The _unique_ name of the resulting resource.
|
|
11
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
12
|
-
* @param state Any extra arguments used during the lookup.
|
|
13
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
14
|
-
*/
|
|
15
|
-
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: UserOwnershipGrantState, opts?: pulumi.CustomResourceOptions): UserOwnershipGrant;
|
|
16
|
-
/**
|
|
17
|
-
* Returns true if the given object is an instance of UserOwnershipGrant. This is designed to work even
|
|
18
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
19
|
-
*/
|
|
20
|
-
static isInstance(obj: any): obj is UserOwnershipGrant;
|
|
21
|
-
/**
|
|
22
|
-
* Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
|
|
23
|
-
*/
|
|
24
|
-
readonly currentGrants: pulumi.Output<string | undefined>;
|
|
25
|
-
/**
|
|
26
|
-
* The name of the user ownership is granted on.
|
|
27
|
-
*/
|
|
28
|
-
readonly onUserName: pulumi.Output<string>;
|
|
29
|
-
/**
|
|
30
|
-
* The name of the role to revert ownership to on destroy.
|
|
31
|
-
*/
|
|
32
|
-
readonly revertOwnershipToRoleName: pulumi.Output<string | undefined>;
|
|
33
|
-
readonly toRoleName: pulumi.Output<string>;
|
|
34
|
-
/**
|
|
35
|
-
* Create a UserOwnershipGrant resource with the given unique name, arguments, and options.
|
|
36
|
-
*
|
|
37
|
-
* @param name The _unique_ name of the resource.
|
|
38
|
-
* @param args The arguments to use to populate this resource's properties.
|
|
39
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
40
|
-
*/
|
|
41
|
-
constructor(name: string, args: UserOwnershipGrantArgs, opts?: pulumi.CustomResourceOptions);
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Input properties used for looking up and filtering UserOwnershipGrant resources.
|
|
45
|
-
*/
|
|
46
|
-
export interface UserOwnershipGrantState {
|
|
47
|
-
/**
|
|
48
|
-
* Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
|
|
49
|
-
*/
|
|
50
|
-
currentGrants?: pulumi.Input<string>;
|
|
51
|
-
/**
|
|
52
|
-
* The name of the user ownership is granted on.
|
|
53
|
-
*/
|
|
54
|
-
onUserName?: pulumi.Input<string>;
|
|
55
|
-
/**
|
|
56
|
-
* The name of the role to revert ownership to on destroy.
|
|
57
|
-
*/
|
|
58
|
-
revertOwnershipToRoleName?: pulumi.Input<string>;
|
|
59
|
-
toRoleName?: pulumi.Input<string>;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* The set of arguments for constructing a UserOwnershipGrant resource.
|
|
63
|
-
*/
|
|
64
|
-
export interface UserOwnershipGrantArgs {
|
|
65
|
-
/**
|
|
66
|
-
* Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
|
|
67
|
-
*/
|
|
68
|
-
currentGrants?: pulumi.Input<string>;
|
|
69
|
-
/**
|
|
70
|
-
* The name of the user ownership is granted on.
|
|
71
|
-
*/
|
|
72
|
-
onUserName: pulumi.Input<string>;
|
|
73
|
-
/**
|
|
74
|
-
* The name of the role to revert ownership to on destroy.
|
|
75
|
-
*/
|
|
76
|
-
revertOwnershipToRoleName?: pulumi.Input<string>;
|
|
77
|
-
toRoleName: pulumi.Input<string>;
|
|
78
|
-
}
|
package/userOwnershipGrant.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
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.UserOwnershipGrant = void 0;
|
|
6
|
-
const pulumi = require("@pulumi/pulumi");
|
|
7
|
-
const utilities = require("./utilities");
|
|
8
|
-
/**
|
|
9
|
-
* > **Deprecation** This resource is deprecated and will be removed in a future major version release. Please use snowflake.GrantOwnership instead. <deprecation>
|
|
10
|
-
*/
|
|
11
|
-
class UserOwnershipGrant extends pulumi.CustomResource {
|
|
12
|
-
/**
|
|
13
|
-
* Get an existing UserOwnershipGrant 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, id, state, opts) {
|
|
22
|
-
return new UserOwnershipGrant(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Returns true if the given object is an instance of UserOwnershipGrant. This is designed to work even
|
|
26
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
27
|
-
*/
|
|
28
|
-
static isInstance(obj) {
|
|
29
|
-
if (obj === undefined || obj === null) {
|
|
30
|
-
return false;
|
|
31
|
-
}
|
|
32
|
-
return obj['__pulumiType'] === UserOwnershipGrant.__pulumiType;
|
|
33
|
-
}
|
|
34
|
-
constructor(name, argsOrState, opts) {
|
|
35
|
-
let resourceInputs = {};
|
|
36
|
-
opts = opts || {};
|
|
37
|
-
if (opts.id) {
|
|
38
|
-
const state = argsOrState;
|
|
39
|
-
resourceInputs["currentGrants"] = state ? state.currentGrants : undefined;
|
|
40
|
-
resourceInputs["onUserName"] = state ? state.onUserName : undefined;
|
|
41
|
-
resourceInputs["revertOwnershipToRoleName"] = state ? state.revertOwnershipToRoleName : undefined;
|
|
42
|
-
resourceInputs["toRoleName"] = state ? state.toRoleName : undefined;
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
const args = argsOrState;
|
|
46
|
-
if ((!args || args.onUserName === undefined) && !opts.urn) {
|
|
47
|
-
throw new Error("Missing required property 'onUserName'");
|
|
48
|
-
}
|
|
49
|
-
if ((!args || args.toRoleName === undefined) && !opts.urn) {
|
|
50
|
-
throw new Error("Missing required property 'toRoleName'");
|
|
51
|
-
}
|
|
52
|
-
resourceInputs["currentGrants"] = args ? args.currentGrants : undefined;
|
|
53
|
-
resourceInputs["onUserName"] = args ? args.onUserName : undefined;
|
|
54
|
-
resourceInputs["revertOwnershipToRoleName"] = args ? args.revertOwnershipToRoleName : undefined;
|
|
55
|
-
resourceInputs["toRoleName"] = args ? args.toRoleName : undefined;
|
|
56
|
-
}
|
|
57
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
58
|
-
super(UserOwnershipGrant.__pulumiType, name, resourceInputs, opts);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
exports.UserOwnershipGrant = UserOwnershipGrant;
|
|
62
|
-
/** @internal */
|
|
63
|
-
UserOwnershipGrant.__pulumiType = 'snowflake:index/userOwnershipGrant:UserOwnershipGrant';
|
|
64
|
-
//# sourceMappingURL=userOwnershipGrant.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"userOwnershipGrant.js","sourceRoot":"","sources":["../userOwnershipGrant.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAm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