@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/streamGrant.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.StreamGrant = 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.StreamGrant("grant", {
|
|
18
|
-
* databaseName: "database",
|
|
19
|
-
* schemaName: "schema",
|
|
20
|
-
* streamName: "view",
|
|
21
|
-
* privilege: "SELECT",
|
|
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|stream_name|privilege|with_grant_option|on_future|roles"
|
|
34
|
-
*
|
|
35
|
-
* ```sh
|
|
36
|
-
* $ pulumi import snowflake:index/streamGrant:StreamGrant example "MY_DATABASE|MY_SCHEMA|MY_STREAM|SELECT|false|false|role1,role2"
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
class StreamGrant extends pulumi.CustomResource {
|
|
40
|
-
/**
|
|
41
|
-
* Get an existing StreamGrant 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 StreamGrant(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Returns true if the given object is an instance of StreamGrant. 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'] === StreamGrant.__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["streamName"] = state ? state.streamName : 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["streamName"] = args ? args.streamName : undefined;
|
|
95
|
-
resourceInputs["withGrantOption"] = args ? args.withGrantOption : undefined;
|
|
96
|
-
}
|
|
97
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
98
|
-
super(StreamGrant.__pulumiType, name, resourceInputs, opts);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
exports.StreamGrant = StreamGrant;
|
|
102
|
-
/** @internal */
|
|
103
|
-
StreamGrant.__pulumiType = 'snowflake:index/streamGrant:StreamGrant';
|
|
104
|
-
//# sourceMappingURL=streamGrant.js.map
|
package/streamGrant.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"streamGrant.js","sourceRoot":"","sources":["../streamGrant.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IAgDD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,sBAAsB,CAAC,GAAG,KAAK,CAAC,C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AAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AA9GL,kCA+GC;AAjGG,gBAAgB;AACO,wBAAY,GAAG,yCAAyC,CAAC"}
|
package/tableGrant.d.ts
DELETED
|
@@ -1,188 +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.TableGrant("grant", {
|
|
12
|
-
* databaseName: "database",
|
|
13
|
-
* schemaName: "schema",
|
|
14
|
-
* tableName: "table",
|
|
15
|
-
* privilege: "SELECT",
|
|
16
|
-
* roles: ["role1"],
|
|
17
|
-
* shares: ["share1"],
|
|
18
|
-
* onFuture: false,
|
|
19
|
-
* withGrantOption: false,
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* ## Import
|
|
24
|
-
*
|
|
25
|
-
* format is database_name|schema_name|table_name|privilege|with_grant_option|on_future|on_all|roles|shares
|
|
26
|
-
*
|
|
27
|
-
* ```sh
|
|
28
|
-
* $ pulumi import snowflake:index/tableGrant:TableGrant example "MY_DATABASE|MY_SCHEMA|MY_TABLE|USAGE|false|false|false|role1,role2|share1,share2"
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
export declare class TableGrant extends pulumi.CustomResource {
|
|
32
|
-
/**
|
|
33
|
-
* Get an existing TableGrant 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?: TableGrantState, opts?: pulumi.CustomResourceOptions): TableGrant;
|
|
42
|
-
/**
|
|
43
|
-
* Returns true if the given object is an instance of TableGrant. 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 TableGrant;
|
|
47
|
-
/**
|
|
48
|
-
* The name of the database containing the current or future tables on which to grant privileges.
|
|
49
|
-
*/
|
|
50
|
-
readonly databaseName: pulumi.Output<string>;
|
|
51
|
-
readonly enableMultipleGrants: pulumi.Output<boolean | undefined>;
|
|
52
|
-
/**
|
|
53
|
-
* When this is set to true and a schema*name is provided, apply this grant on all tables in the given schema. When this is true and no schema*name is provided apply this grant on all tables in the given database. The table*name and shares fields must be unset in order to use on*all. Cannot be used together with on_future.
|
|
54
|
-
*/
|
|
55
|
-
readonly onAll: pulumi.Output<boolean | undefined>;
|
|
56
|
-
/**
|
|
57
|
-
* When this is set to true and a schema*name is provided, apply this grant on all future tables in the given schema. When this is true and no schema*name is provided apply this grant on all future tables in the given database. The table*name and shares fields must be unset in order to use on*future. Cannot be used together with on_all.
|
|
58
|
-
*/
|
|
59
|
-
readonly onFuture: pulumi.Output<boolean | undefined>;
|
|
60
|
-
/**
|
|
61
|
-
* The privilege to grant on the current or future table. To grant all privileges, use the value `ALL PRIVILEGES`.
|
|
62
|
-
*/
|
|
63
|
-
readonly privilege: pulumi.Output<string | undefined>;
|
|
64
|
-
/**
|
|
65
|
-
* The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
|
|
66
|
-
*/
|
|
67
|
-
readonly revertOwnershipToRoleName: pulumi.Output<string | undefined>;
|
|
68
|
-
/**
|
|
69
|
-
* Grants privilege to these roles.
|
|
70
|
-
*/
|
|
71
|
-
readonly roles: pulumi.Output<string[] | undefined>;
|
|
72
|
-
/**
|
|
73
|
-
* The name of the schema containing the current or future tables on which to grant privileges.
|
|
74
|
-
*/
|
|
75
|
-
readonly schemaName: pulumi.Output<string | undefined>;
|
|
76
|
-
/**
|
|
77
|
-
* Grants privilege to these shares (only valid if on*future or on*all are unset).
|
|
78
|
-
*/
|
|
79
|
-
readonly shares: pulumi.Output<string[] | undefined>;
|
|
80
|
-
/**
|
|
81
|
-
* The name of the table on which to grant privileges immediately (only valid if on*future or on*all are unset).
|
|
82
|
-
*/
|
|
83
|
-
readonly tableName: pulumi.Output<string | undefined>;
|
|
84
|
-
/**
|
|
85
|
-
* When this is set to true, allows the recipient role to grant the privileges to other roles.
|
|
86
|
-
*/
|
|
87
|
-
readonly withGrantOption: pulumi.Output<boolean | undefined>;
|
|
88
|
-
/**
|
|
89
|
-
* Create a TableGrant resource with the given unique name, arguments, and options.
|
|
90
|
-
*
|
|
91
|
-
* @param name The _unique_ name of the resource.
|
|
92
|
-
* @param args The arguments to use to populate this resource's properties.
|
|
93
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
94
|
-
*/
|
|
95
|
-
constructor(name: string, args: TableGrantArgs, opts?: pulumi.CustomResourceOptions);
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Input properties used for looking up and filtering TableGrant resources.
|
|
99
|
-
*/
|
|
100
|
-
export interface TableGrantState {
|
|
101
|
-
/**
|
|
102
|
-
* The name of the database containing the current or future tables on which to grant privileges.
|
|
103
|
-
*/
|
|
104
|
-
databaseName?: pulumi.Input<string>;
|
|
105
|
-
enableMultipleGrants?: pulumi.Input<boolean>;
|
|
106
|
-
/**
|
|
107
|
-
* When this is set to true and a schema*name is provided, apply this grant on all tables in the given schema. When this is true and no schema*name is provided apply this grant on all tables in the given database. The table*name and shares fields must be unset in order to use on*all. Cannot be used together with on_future.
|
|
108
|
-
*/
|
|
109
|
-
onAll?: pulumi.Input<boolean>;
|
|
110
|
-
/**
|
|
111
|
-
* When this is set to true and a schema*name is provided, apply this grant on all future tables in the given schema. When this is true and no schema*name is provided apply this grant on all future tables in the given database. The table*name and shares fields must be unset in order to use on*future. Cannot be used together with on_all.
|
|
112
|
-
*/
|
|
113
|
-
onFuture?: pulumi.Input<boolean>;
|
|
114
|
-
/**
|
|
115
|
-
* The privilege to grant on the current or future table. To grant all privileges, use the value `ALL PRIVILEGES`.
|
|
116
|
-
*/
|
|
117
|
-
privilege?: pulumi.Input<string>;
|
|
118
|
-
/**
|
|
119
|
-
* The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
|
|
120
|
-
*/
|
|
121
|
-
revertOwnershipToRoleName?: pulumi.Input<string>;
|
|
122
|
-
/**
|
|
123
|
-
* Grants privilege to these roles.
|
|
124
|
-
*/
|
|
125
|
-
roles?: pulumi.Input<pulumi.Input<string>[]>;
|
|
126
|
-
/**
|
|
127
|
-
* The name of the schema containing the current or future tables on which to grant privileges.
|
|
128
|
-
*/
|
|
129
|
-
schemaName?: pulumi.Input<string>;
|
|
130
|
-
/**
|
|
131
|
-
* Grants privilege to these shares (only valid if on*future or on*all are unset).
|
|
132
|
-
*/
|
|
133
|
-
shares?: pulumi.Input<pulumi.Input<string>[]>;
|
|
134
|
-
/**
|
|
135
|
-
* The name of the table on which to grant privileges immediately (only valid if on*future or on*all are unset).
|
|
136
|
-
*/
|
|
137
|
-
tableName?: pulumi.Input<string>;
|
|
138
|
-
/**
|
|
139
|
-
* When this is set to true, allows the recipient role to grant the privileges to other roles.
|
|
140
|
-
*/
|
|
141
|
-
withGrantOption?: pulumi.Input<boolean>;
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* The set of arguments for constructing a TableGrant resource.
|
|
145
|
-
*/
|
|
146
|
-
export interface TableGrantArgs {
|
|
147
|
-
/**
|
|
148
|
-
* The name of the database containing the current or future tables on which to grant privileges.
|
|
149
|
-
*/
|
|
150
|
-
databaseName: pulumi.Input<string>;
|
|
151
|
-
enableMultipleGrants?: pulumi.Input<boolean>;
|
|
152
|
-
/**
|
|
153
|
-
* When this is set to true and a schema*name is provided, apply this grant on all tables in the given schema. When this is true and no schema*name is provided apply this grant on all tables in the given database. The table*name and shares fields must be unset in order to use on*all. Cannot be used together with on_future.
|
|
154
|
-
*/
|
|
155
|
-
onAll?: pulumi.Input<boolean>;
|
|
156
|
-
/**
|
|
157
|
-
* When this is set to true and a schema*name is provided, apply this grant on all future tables in the given schema. When this is true and no schema*name is provided apply this grant on all future tables in the given database. The table*name and shares fields must be unset in order to use on*future. Cannot be used together with on_all.
|
|
158
|
-
*/
|
|
159
|
-
onFuture?: pulumi.Input<boolean>;
|
|
160
|
-
/**
|
|
161
|
-
* The privilege to grant on the current or future table. To grant all privileges, use the value `ALL PRIVILEGES`.
|
|
162
|
-
*/
|
|
163
|
-
privilege?: pulumi.Input<string>;
|
|
164
|
-
/**
|
|
165
|
-
* The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
|
|
166
|
-
*/
|
|
167
|
-
revertOwnershipToRoleName?: pulumi.Input<string>;
|
|
168
|
-
/**
|
|
169
|
-
* Grants privilege to these roles.
|
|
170
|
-
*/
|
|
171
|
-
roles?: pulumi.Input<pulumi.Input<string>[]>;
|
|
172
|
-
/**
|
|
173
|
-
* The name of the schema containing the current or future tables on which to grant privileges.
|
|
174
|
-
*/
|
|
175
|
-
schemaName?: pulumi.Input<string>;
|
|
176
|
-
/**
|
|
177
|
-
* Grants privilege to these shares (only valid if on*future or on*all are unset).
|
|
178
|
-
*/
|
|
179
|
-
shares?: pulumi.Input<pulumi.Input<string>[]>;
|
|
180
|
-
/**
|
|
181
|
-
* The name of the table on which to grant privileges immediately (only valid if on*future or on*all are unset).
|
|
182
|
-
*/
|
|
183
|
-
tableName?: pulumi.Input<string>;
|
|
184
|
-
/**
|
|
185
|
-
* When this is set to true, allows the recipient role to grant the privileges to other roles.
|
|
186
|
-
*/
|
|
187
|
-
withGrantOption?: pulumi.Input<boolean>;
|
|
188
|
-
}
|
package/tableGrant.js
DELETED
|
@@ -1,101 +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.TableGrant = 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.TableGrant("grant", {
|
|
18
|
-
* databaseName: "database",
|
|
19
|
-
* schemaName: "schema",
|
|
20
|
-
* tableName: "table",
|
|
21
|
-
* privilege: "SELECT",
|
|
22
|
-
* roles: ["role1"],
|
|
23
|
-
* shares: ["share1"],
|
|
24
|
-
* onFuture: false,
|
|
25
|
-
* withGrantOption: false,
|
|
26
|
-
* });
|
|
27
|
-
* ```
|
|
28
|
-
*
|
|
29
|
-
* ## Import
|
|
30
|
-
*
|
|
31
|
-
* format is database_name|schema_name|table_name|privilege|with_grant_option|on_future|on_all|roles|shares
|
|
32
|
-
*
|
|
33
|
-
* ```sh
|
|
34
|
-
* $ pulumi import snowflake:index/tableGrant:TableGrant example "MY_DATABASE|MY_SCHEMA|MY_TABLE|USAGE|false|false|false|role1,role2|share1,share2"
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
|
-
class TableGrant extends pulumi.CustomResource {
|
|
38
|
-
/**
|
|
39
|
-
* Get an existing TableGrant resource's state with the given name, ID, and optional extra
|
|
40
|
-
* properties used to qualify the lookup.
|
|
41
|
-
*
|
|
42
|
-
* @param name The _unique_ name of the resulting resource.
|
|
43
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
44
|
-
* @param state Any extra arguments used during the lookup.
|
|
45
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
46
|
-
*/
|
|
47
|
-
static get(name, id, state, opts) {
|
|
48
|
-
return new TableGrant(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Returns true if the given object is an instance of TableGrant. This is designed to work even
|
|
52
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
53
|
-
*/
|
|
54
|
-
static isInstance(obj) {
|
|
55
|
-
if (obj === undefined || obj === null) {
|
|
56
|
-
return false;
|
|
57
|
-
}
|
|
58
|
-
return obj['__pulumiType'] === TableGrant.__pulumiType;
|
|
59
|
-
}
|
|
60
|
-
constructor(name, argsOrState, opts) {
|
|
61
|
-
let resourceInputs = {};
|
|
62
|
-
opts = opts || {};
|
|
63
|
-
if (opts.id) {
|
|
64
|
-
const state = argsOrState;
|
|
65
|
-
resourceInputs["databaseName"] = state ? state.databaseName : undefined;
|
|
66
|
-
resourceInputs["enableMultipleGrants"] = state ? state.enableMultipleGrants : undefined;
|
|
67
|
-
resourceInputs["onAll"] = state ? state.onAll : undefined;
|
|
68
|
-
resourceInputs["onFuture"] = state ? state.onFuture : undefined;
|
|
69
|
-
resourceInputs["privilege"] = state ? state.privilege : undefined;
|
|
70
|
-
resourceInputs["revertOwnershipToRoleName"] = state ? state.revertOwnershipToRoleName : undefined;
|
|
71
|
-
resourceInputs["roles"] = state ? state.roles : undefined;
|
|
72
|
-
resourceInputs["schemaName"] = state ? state.schemaName : undefined;
|
|
73
|
-
resourceInputs["shares"] = state ? state.shares : undefined;
|
|
74
|
-
resourceInputs["tableName"] = state ? state.tableName : undefined;
|
|
75
|
-
resourceInputs["withGrantOption"] = state ? state.withGrantOption : undefined;
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
const args = argsOrState;
|
|
79
|
-
if ((!args || args.databaseName === undefined) && !opts.urn) {
|
|
80
|
-
throw new Error("Missing required property 'databaseName'");
|
|
81
|
-
}
|
|
82
|
-
resourceInputs["databaseName"] = args ? args.databaseName : undefined;
|
|
83
|
-
resourceInputs["enableMultipleGrants"] = args ? args.enableMultipleGrants : undefined;
|
|
84
|
-
resourceInputs["onAll"] = args ? args.onAll : undefined;
|
|
85
|
-
resourceInputs["onFuture"] = args ? args.onFuture : undefined;
|
|
86
|
-
resourceInputs["privilege"] = args ? args.privilege : undefined;
|
|
87
|
-
resourceInputs["revertOwnershipToRoleName"] = args ? args.revertOwnershipToRoleName : undefined;
|
|
88
|
-
resourceInputs["roles"] = args ? args.roles : undefined;
|
|
89
|
-
resourceInputs["schemaName"] = args ? args.schemaName : undefined;
|
|
90
|
-
resourceInputs["shares"] = args ? args.shares : undefined;
|
|
91
|
-
resourceInputs["tableName"] = args ? args.tableName : undefined;
|
|
92
|
-
resourceInputs["withGrantOption"] = args ? args.withGrantOption : undefined;
|
|
93
|
-
}
|
|
94
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
95
|
-
super(TableGrant.__pulumiType, name, resourceInputs, opts);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
exports.TableGrant = TableGrant;
|
|
99
|
-
/** @internal */
|
|
100
|
-
TableGrant.__pulumiType = 'snowflake:index/tableGrant:TableGrant';
|
|
101
|
-
//# sourceMappingURL=tableGrant.js.map
|
package/tableGrant.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tableGrant.js","sourceRoot":"","sources":["../tableGrant.ts"],"names":[],"mappings":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 -1,149 +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 example = new snowflake.TagGrant("example", {
|
|
12
|
-
* databaseName: "database",
|
|
13
|
-
* schemaName: "schema",
|
|
14
|
-
* tagName: "tag",
|
|
15
|
-
* roles: ["TEST_ROLE"],
|
|
16
|
-
* privilege: "OWNERSHIP",
|
|
17
|
-
* });
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* ## Import
|
|
21
|
-
*
|
|
22
|
-
* format is database|schema|tag|privilege|with_grant_option|roles
|
|
23
|
-
*
|
|
24
|
-
* ```sh
|
|
25
|
-
* $ pulumi import snowflake:index/tagGrant:TagGrant example "MY_DATABASE|MY_SCHEMA|MY_TAG|USAGE|false|role1,role2"
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
export declare class TagGrant extends pulumi.CustomResource {
|
|
29
|
-
/**
|
|
30
|
-
* Get an existing TagGrant resource's state with the given name, ID, and optional extra
|
|
31
|
-
* properties used to qualify the lookup.
|
|
32
|
-
*
|
|
33
|
-
* @param name The _unique_ name of the resulting resource.
|
|
34
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
35
|
-
* @param state Any extra arguments used during the lookup.
|
|
36
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
37
|
-
*/
|
|
38
|
-
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TagGrantState, opts?: pulumi.CustomResourceOptions): TagGrant;
|
|
39
|
-
/**
|
|
40
|
-
* Returns true if the given object is an instance of TagGrant. This is designed to work even
|
|
41
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
42
|
-
*/
|
|
43
|
-
static isInstance(obj: any): obj is TagGrant;
|
|
44
|
-
/**
|
|
45
|
-
* The name of the database containing the tag on which to grant privileges.
|
|
46
|
-
*/
|
|
47
|
-
readonly databaseName: pulumi.Output<string>;
|
|
48
|
-
readonly enableMultipleGrants: pulumi.Output<boolean | undefined>;
|
|
49
|
-
/**
|
|
50
|
-
* The privilege to grant on the tag. To grant all privileges, use the value `ALL PRIVILEGES`.
|
|
51
|
-
*/
|
|
52
|
-
readonly privilege: pulumi.Output<string | undefined>;
|
|
53
|
-
/**
|
|
54
|
-
* The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
|
|
55
|
-
*/
|
|
56
|
-
readonly revertOwnershipToRoleName: pulumi.Output<string | undefined>;
|
|
57
|
-
/**
|
|
58
|
-
* Grants privilege to these roles.
|
|
59
|
-
*/
|
|
60
|
-
readonly roles: pulumi.Output<string[] | undefined>;
|
|
61
|
-
/**
|
|
62
|
-
* The name of the schema containing the tag on which to grant privileges.
|
|
63
|
-
*/
|
|
64
|
-
readonly schemaName: pulumi.Output<string>;
|
|
65
|
-
/**
|
|
66
|
-
* The name of the tag on which to grant privileges.
|
|
67
|
-
*/
|
|
68
|
-
readonly tagName: pulumi.Output<string>;
|
|
69
|
-
/**
|
|
70
|
-
* When this is set to true, allows the recipient role to grant the privileges to other roles.
|
|
71
|
-
*/
|
|
72
|
-
readonly withGrantOption: pulumi.Output<boolean | undefined>;
|
|
73
|
-
/**
|
|
74
|
-
* Create a TagGrant resource with the given unique name, arguments, and options.
|
|
75
|
-
*
|
|
76
|
-
* @param name The _unique_ name of the resource.
|
|
77
|
-
* @param args The arguments to use to populate this resource's properties.
|
|
78
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
79
|
-
*/
|
|
80
|
-
constructor(name: string, args: TagGrantArgs, opts?: pulumi.CustomResourceOptions);
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Input properties used for looking up and filtering TagGrant resources.
|
|
84
|
-
*/
|
|
85
|
-
export interface TagGrantState {
|
|
86
|
-
/**
|
|
87
|
-
* The name of the database containing the tag on which to grant privileges.
|
|
88
|
-
*/
|
|
89
|
-
databaseName?: pulumi.Input<string>;
|
|
90
|
-
enableMultipleGrants?: pulumi.Input<boolean>;
|
|
91
|
-
/**
|
|
92
|
-
* The privilege to grant on the tag. To grant all privileges, use the value `ALL PRIVILEGES`.
|
|
93
|
-
*/
|
|
94
|
-
privilege?: pulumi.Input<string>;
|
|
95
|
-
/**
|
|
96
|
-
* The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
|
|
97
|
-
*/
|
|
98
|
-
revertOwnershipToRoleName?: pulumi.Input<string>;
|
|
99
|
-
/**
|
|
100
|
-
* Grants privilege to these roles.
|
|
101
|
-
*/
|
|
102
|
-
roles?: pulumi.Input<pulumi.Input<string>[]>;
|
|
103
|
-
/**
|
|
104
|
-
* The name of the schema containing the tag on which to grant privileges.
|
|
105
|
-
*/
|
|
106
|
-
schemaName?: pulumi.Input<string>;
|
|
107
|
-
/**
|
|
108
|
-
* The name of the tag on which to grant privileges.
|
|
109
|
-
*/
|
|
110
|
-
tagName?: 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
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* The set of arguments for constructing a TagGrant resource.
|
|
118
|
-
*/
|
|
119
|
-
export interface TagGrantArgs {
|
|
120
|
-
/**
|
|
121
|
-
* The name of the database containing the tag on which to grant privileges.
|
|
122
|
-
*/
|
|
123
|
-
databaseName: pulumi.Input<string>;
|
|
124
|
-
enableMultipleGrants?: pulumi.Input<boolean>;
|
|
125
|
-
/**
|
|
126
|
-
* The privilege to grant on the tag. To grant all privileges, use the value `ALL PRIVILEGES`.
|
|
127
|
-
*/
|
|
128
|
-
privilege?: pulumi.Input<string>;
|
|
129
|
-
/**
|
|
130
|
-
* The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
|
|
131
|
-
*/
|
|
132
|
-
revertOwnershipToRoleName?: pulumi.Input<string>;
|
|
133
|
-
/**
|
|
134
|
-
* Grants privilege to these roles.
|
|
135
|
-
*/
|
|
136
|
-
roles?: pulumi.Input<pulumi.Input<string>[]>;
|
|
137
|
-
/**
|
|
138
|
-
* The name of the schema containing the tag on which to grant privileges.
|
|
139
|
-
*/
|
|
140
|
-
schemaName: pulumi.Input<string>;
|
|
141
|
-
/**
|
|
142
|
-
* The name of the tag on which to grant privileges.
|
|
143
|
-
*/
|
|
144
|
-
tagName: pulumi.Input<string>;
|
|
145
|
-
/**
|
|
146
|
-
* When this is set to true, allows the recipient role to grant the privileges to other roles.
|
|
147
|
-
*/
|
|
148
|
-
withGrantOption?: pulumi.Input<boolean>;
|
|
149
|
-
}
|
package/tagGrant.js
DELETED
|
@@ -1,98 +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.TagGrant = 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 example = new snowflake.TagGrant("example", {
|
|
18
|
-
* databaseName: "database",
|
|
19
|
-
* schemaName: "schema",
|
|
20
|
-
* tagName: "tag",
|
|
21
|
-
* roles: ["TEST_ROLE"],
|
|
22
|
-
* privilege: "OWNERSHIP",
|
|
23
|
-
* });
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* ## Import
|
|
27
|
-
*
|
|
28
|
-
* format is database|schema|tag|privilege|with_grant_option|roles
|
|
29
|
-
*
|
|
30
|
-
* ```sh
|
|
31
|
-
* $ pulumi import snowflake:index/tagGrant:TagGrant example "MY_DATABASE|MY_SCHEMA|MY_TAG|USAGE|false|role1,role2"
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
class TagGrant extends pulumi.CustomResource {
|
|
35
|
-
/**
|
|
36
|
-
* Get an existing TagGrant resource's state with the given name, ID, and optional extra
|
|
37
|
-
* properties used to qualify the lookup.
|
|
38
|
-
*
|
|
39
|
-
* @param name The _unique_ name of the resulting resource.
|
|
40
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
41
|
-
* @param state Any extra arguments used during the lookup.
|
|
42
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
43
|
-
*/
|
|
44
|
-
static get(name, id, state, opts) {
|
|
45
|
-
return new TagGrant(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Returns true if the given object is an instance of TagGrant. This is designed to work even
|
|
49
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
50
|
-
*/
|
|
51
|
-
static isInstance(obj) {
|
|
52
|
-
if (obj === undefined || obj === null) {
|
|
53
|
-
return false;
|
|
54
|
-
}
|
|
55
|
-
return obj['__pulumiType'] === TagGrant.__pulumiType;
|
|
56
|
-
}
|
|
57
|
-
constructor(name, argsOrState, opts) {
|
|
58
|
-
let resourceInputs = {};
|
|
59
|
-
opts = opts || {};
|
|
60
|
-
if (opts.id) {
|
|
61
|
-
const state = argsOrState;
|
|
62
|
-
resourceInputs["databaseName"] = state ? state.databaseName : undefined;
|
|
63
|
-
resourceInputs["enableMultipleGrants"] = state ? state.enableMultipleGrants : undefined;
|
|
64
|
-
resourceInputs["privilege"] = state ? state.privilege : undefined;
|
|
65
|
-
resourceInputs["revertOwnershipToRoleName"] = state ? state.revertOwnershipToRoleName : undefined;
|
|
66
|
-
resourceInputs["roles"] = state ? state.roles : undefined;
|
|
67
|
-
resourceInputs["schemaName"] = state ? state.schemaName : undefined;
|
|
68
|
-
resourceInputs["tagName"] = state ? state.tagName : undefined;
|
|
69
|
-
resourceInputs["withGrantOption"] = state ? state.withGrantOption : undefined;
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
const args = argsOrState;
|
|
73
|
-
if ((!args || args.databaseName === undefined) && !opts.urn) {
|
|
74
|
-
throw new Error("Missing required property 'databaseName'");
|
|
75
|
-
}
|
|
76
|
-
if ((!args || args.schemaName === undefined) && !opts.urn) {
|
|
77
|
-
throw new Error("Missing required property 'schemaName'");
|
|
78
|
-
}
|
|
79
|
-
if ((!args || args.tagName === undefined) && !opts.urn) {
|
|
80
|
-
throw new Error("Missing required property 'tagName'");
|
|
81
|
-
}
|
|
82
|
-
resourceInputs["databaseName"] = args ? args.databaseName : undefined;
|
|
83
|
-
resourceInputs["enableMultipleGrants"] = args ? args.enableMultipleGrants : undefined;
|
|
84
|
-
resourceInputs["privilege"] = args ? args.privilege : undefined;
|
|
85
|
-
resourceInputs["revertOwnershipToRoleName"] = args ? args.revertOwnershipToRoleName : undefined;
|
|
86
|
-
resourceInputs["roles"] = args ? args.roles : undefined;
|
|
87
|
-
resourceInputs["schemaName"] = args ? args.schemaName : undefined;
|
|
88
|
-
resourceInputs["tagName"] = args ? args.tagName : undefined;
|
|
89
|
-
resourceInputs["withGrantOption"] = args ? args.withGrantOption : undefined;
|
|
90
|
-
}
|
|
91
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
92
|
-
super(TagGrant.__pulumiType, name, resourceInputs, opts);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
exports.TagGrant = TagGrant;
|
|
96
|
-
/** @internal */
|
|
97
|
-
TagGrant.__pulumiType = 'snowflake:index/tagGrant:TagGrant';
|
|
98
|
-
//# sourceMappingURL=tagGrant.js.map
|
package/tagGrant.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tagGrant.js","sourceRoot":"","sources":["../tagGrant.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/D,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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAwCD,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,sBAAsB,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