@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/roleGrants.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.GrantAccountRole 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 role = new snowflake.Role("role", {
|
|
12
|
-
* name: "rking_test_role",
|
|
13
|
-
* comment: "for testing",
|
|
14
|
-
* });
|
|
15
|
-
* const user = new snowflake.User("user", {
|
|
16
|
-
* name: "rking_test_user",
|
|
17
|
-
* comment: "for testing",
|
|
18
|
-
* });
|
|
19
|
-
* const user2 = new snowflake.User("user2", {
|
|
20
|
-
* name: "rking_test_user2",
|
|
21
|
-
* comment: "for testing",
|
|
22
|
-
* });
|
|
23
|
-
* const otherRole = new snowflake.Role("other_role", {name: "rking_test_role2"});
|
|
24
|
-
* const grants = new snowflake.RoleGrants("grants", {
|
|
25
|
-
* roleName: role.name,
|
|
26
|
-
* roles: [otherRole.name],
|
|
27
|
-
* users: [
|
|
28
|
-
* user.name,
|
|
29
|
-
* user2.name,
|
|
30
|
-
* ],
|
|
31
|
-
* });
|
|
32
|
-
* ```
|
|
33
|
-
*
|
|
34
|
-
* ## Import
|
|
35
|
-
*
|
|
36
|
-
* format is role_name|roles|users
|
|
37
|
-
*
|
|
38
|
-
* ```sh
|
|
39
|
-
* $ pulumi import snowflake:index/roleGrants:RoleGrants example "role_name|role1,role2|user1,user2"
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
export declare class RoleGrants extends pulumi.CustomResource {
|
|
43
|
-
/**
|
|
44
|
-
* Get an existing RoleGrants resource's state with the given name, ID, and optional extra
|
|
45
|
-
* properties used to qualify the lookup.
|
|
46
|
-
*
|
|
47
|
-
* @param name The _unique_ name of the resulting resource.
|
|
48
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
49
|
-
* @param state Any extra arguments used during the lookup.
|
|
50
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
51
|
-
*/
|
|
52
|
-
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RoleGrantsState, opts?: pulumi.CustomResourceOptions): RoleGrants;
|
|
53
|
-
/**
|
|
54
|
-
* Returns true if the given object is an instance of RoleGrants. This is designed to work even
|
|
55
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
56
|
-
*/
|
|
57
|
-
static isInstance(obj: any): obj is RoleGrants;
|
|
58
|
-
readonly enableMultipleGrants: pulumi.Output<boolean | undefined>;
|
|
59
|
-
/**
|
|
60
|
-
* The name of the role we are granting.
|
|
61
|
-
*/
|
|
62
|
-
readonly roleName: pulumi.Output<string>;
|
|
63
|
-
/**
|
|
64
|
-
* Grants role to this specified role.
|
|
65
|
-
*/
|
|
66
|
-
readonly roles: pulumi.Output<string[] | undefined>;
|
|
67
|
-
/**
|
|
68
|
-
* Grants role to this specified user.
|
|
69
|
-
*/
|
|
70
|
-
readonly users: pulumi.Output<string[] | undefined>;
|
|
71
|
-
/**
|
|
72
|
-
* Create a RoleGrants resource with the given unique name, arguments, and options.
|
|
73
|
-
*
|
|
74
|
-
* @param name The _unique_ name of the resource.
|
|
75
|
-
* @param args The arguments to use to populate this resource's properties.
|
|
76
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
77
|
-
*/
|
|
78
|
-
constructor(name: string, args: RoleGrantsArgs, opts?: pulumi.CustomResourceOptions);
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Input properties used for looking up and filtering RoleGrants resources.
|
|
82
|
-
*/
|
|
83
|
-
export interface RoleGrantsState {
|
|
84
|
-
enableMultipleGrants?: pulumi.Input<boolean>;
|
|
85
|
-
/**
|
|
86
|
-
* The name of the role we are granting.
|
|
87
|
-
*/
|
|
88
|
-
roleName?: pulumi.Input<string>;
|
|
89
|
-
/**
|
|
90
|
-
* Grants role to this specified role.
|
|
91
|
-
*/
|
|
92
|
-
roles?: pulumi.Input<pulumi.Input<string>[]>;
|
|
93
|
-
/**
|
|
94
|
-
* Grants role to this specified user.
|
|
95
|
-
*/
|
|
96
|
-
users?: pulumi.Input<pulumi.Input<string>[]>;
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* The set of arguments for constructing a RoleGrants resource.
|
|
100
|
-
*/
|
|
101
|
-
export interface RoleGrantsArgs {
|
|
102
|
-
enableMultipleGrants?: pulumi.Input<boolean>;
|
|
103
|
-
/**
|
|
104
|
-
* The name of the role we are granting.
|
|
105
|
-
*/
|
|
106
|
-
roleName: pulumi.Input<string>;
|
|
107
|
-
/**
|
|
108
|
-
* Grants role to this specified role.
|
|
109
|
-
*/
|
|
110
|
-
roles?: pulumi.Input<pulumi.Input<string>[]>;
|
|
111
|
-
/**
|
|
112
|
-
* Grants role to this specified user.
|
|
113
|
-
*/
|
|
114
|
-
users?: pulumi.Input<pulumi.Input<string>[]>;
|
|
115
|
-
}
|
package/roleGrants.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.RoleGrants = 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.GrantAccountRole 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 role = new snowflake.Role("role", {
|
|
18
|
-
* name: "rking_test_role",
|
|
19
|
-
* comment: "for testing",
|
|
20
|
-
* });
|
|
21
|
-
* const user = new snowflake.User("user", {
|
|
22
|
-
* name: "rking_test_user",
|
|
23
|
-
* comment: "for testing",
|
|
24
|
-
* });
|
|
25
|
-
* const user2 = new snowflake.User("user2", {
|
|
26
|
-
* name: "rking_test_user2",
|
|
27
|
-
* comment: "for testing",
|
|
28
|
-
* });
|
|
29
|
-
* const otherRole = new snowflake.Role("other_role", {name: "rking_test_role2"});
|
|
30
|
-
* const grants = new snowflake.RoleGrants("grants", {
|
|
31
|
-
* roleName: role.name,
|
|
32
|
-
* roles: [otherRole.name],
|
|
33
|
-
* users: [
|
|
34
|
-
* user.name,
|
|
35
|
-
* user2.name,
|
|
36
|
-
* ],
|
|
37
|
-
* });
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* ## Import
|
|
41
|
-
*
|
|
42
|
-
* format is role_name|roles|users
|
|
43
|
-
*
|
|
44
|
-
* ```sh
|
|
45
|
-
* $ pulumi import snowflake:index/roleGrants:RoleGrants example "role_name|role1,role2|user1,user2"
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
|
-
class RoleGrants extends pulumi.CustomResource {
|
|
49
|
-
/**
|
|
50
|
-
* Get an existing RoleGrants resource's state with the given name, ID, and optional extra
|
|
51
|
-
* properties used to qualify the lookup.
|
|
52
|
-
*
|
|
53
|
-
* @param name The _unique_ name of the resulting resource.
|
|
54
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
55
|
-
* @param state Any extra arguments used during the lookup.
|
|
56
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
57
|
-
*/
|
|
58
|
-
static get(name, id, state, opts) {
|
|
59
|
-
return new RoleGrants(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Returns true if the given object is an instance of RoleGrants. This is designed to work even
|
|
63
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
64
|
-
*/
|
|
65
|
-
static isInstance(obj) {
|
|
66
|
-
if (obj === undefined || obj === null) {
|
|
67
|
-
return false;
|
|
68
|
-
}
|
|
69
|
-
return obj['__pulumiType'] === RoleGrants.__pulumiType;
|
|
70
|
-
}
|
|
71
|
-
constructor(name, argsOrState, opts) {
|
|
72
|
-
let resourceInputs = {};
|
|
73
|
-
opts = opts || {};
|
|
74
|
-
if (opts.id) {
|
|
75
|
-
const state = argsOrState;
|
|
76
|
-
resourceInputs["enableMultipleGrants"] = state ? state.enableMultipleGrants : undefined;
|
|
77
|
-
resourceInputs["roleName"] = state ? state.roleName : undefined;
|
|
78
|
-
resourceInputs["roles"] = state ? state.roles : undefined;
|
|
79
|
-
resourceInputs["users"] = state ? state.users : undefined;
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
const args = argsOrState;
|
|
83
|
-
if ((!args || args.roleName === undefined) && !opts.urn) {
|
|
84
|
-
throw new Error("Missing required property 'roleName'");
|
|
85
|
-
}
|
|
86
|
-
resourceInputs["enableMultipleGrants"] = args ? args.enableMultipleGrants : undefined;
|
|
87
|
-
resourceInputs["roleName"] = args ? args.roleName : undefined;
|
|
88
|
-
resourceInputs["roles"] = args ? args.roles : undefined;
|
|
89
|
-
resourceInputs["users"] = args ? args.users : undefined;
|
|
90
|
-
}
|
|
91
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
92
|
-
super(RoleGrants.__pulumiType, name, resourceInputs, opts);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
exports.RoleGrants = RoleGrants;
|
|
96
|
-
/** @internal */
|
|
97
|
-
RoleGrants.__pulumiType = 'snowflake:index/roleGrants:RoleGrants';
|
|
98
|
-
//# sourceMappingURL=roleGrants.js.map
|
package/roleGrants.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"roleGrants.js","sourceRoot":"","sources":["../roleGrants.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,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,UAAU,CAAC,YAAY,CAAC;IAC3D,CAAC;IAwBD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,sBAAsB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;YACxF,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;aAAM;YACH,MAAM,IAAI,GAAG,WAAyC,CAAC;YACvD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACrD,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;YACtF,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AAvEL,gCAwEC;AA1DG,gBAAgB;AACO,uBAAY,GAAG,uCAAuC,CAAC"}
|
package/roleOwnershipGrant.d.ts
DELETED
|
@@ -1,108 +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.GrantOwnership 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 role = new snowflake.Role("role", {
|
|
12
|
-
* name: "rking_test_role",
|
|
13
|
-
* comment: "for testing",
|
|
14
|
-
* });
|
|
15
|
-
* const otherRole = new snowflake.Role("other_role", {name: "rking_test_role2"});
|
|
16
|
-
* // ensure the Terraform user inherits ownership privileges for the rking_test_role role
|
|
17
|
-
* // otherwise Terraform will fail to destroy the rking_test_role2 role due to insufficient privileges
|
|
18
|
-
* const grants = new snowflake.RoleGrants("grants", {
|
|
19
|
-
* roleName: role.name,
|
|
20
|
-
* roles: ["ACCOUNTADMIN"],
|
|
21
|
-
* });
|
|
22
|
-
* const grant = new snowflake.RoleOwnershipGrant("grant", {
|
|
23
|
-
* onRoleName: role.name,
|
|
24
|
-
* toRoleName: otherRole.name,
|
|
25
|
-
* currentGrants: "COPY",
|
|
26
|
-
* });
|
|
27
|
-
* ```
|
|
28
|
-
*
|
|
29
|
-
* ## Import
|
|
30
|
-
*
|
|
31
|
-
* ```sh
|
|
32
|
-
* $ pulumi import snowflake:index/roleOwnershipGrant:RoleOwnershipGrant example "<on_role_name>|<to_role_name>|<current_grants>"
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
export declare class RoleOwnershipGrant extends pulumi.CustomResource {
|
|
36
|
-
/**
|
|
37
|
-
* Get an existing RoleOwnershipGrant resource's state with the given name, ID, and optional extra
|
|
38
|
-
* properties used to qualify the lookup.
|
|
39
|
-
*
|
|
40
|
-
* @param name The _unique_ name of the resulting resource.
|
|
41
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
42
|
-
* @param state Any extra arguments used during the lookup.
|
|
43
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
44
|
-
*/
|
|
45
|
-
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RoleOwnershipGrantState, opts?: pulumi.CustomResourceOptions): RoleOwnershipGrant;
|
|
46
|
-
/**
|
|
47
|
-
* Returns true if the given object is an instance of RoleOwnershipGrant. This is designed to work even
|
|
48
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
49
|
-
*/
|
|
50
|
-
static isInstance(obj: any): obj is RoleOwnershipGrant;
|
|
51
|
-
/**
|
|
52
|
-
* Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
|
|
53
|
-
*/
|
|
54
|
-
readonly currentGrants: pulumi.Output<string | undefined>;
|
|
55
|
-
/**
|
|
56
|
-
* The name of the role ownership is granted on.
|
|
57
|
-
*/
|
|
58
|
-
readonly onRoleName: pulumi.Output<string>;
|
|
59
|
-
/**
|
|
60
|
-
* The name of the role to revert ownership to on destroy.
|
|
61
|
-
*/
|
|
62
|
-
readonly revertOwnershipToRoleName: pulumi.Output<string | undefined>;
|
|
63
|
-
readonly toRoleName: pulumi.Output<string>;
|
|
64
|
-
/**
|
|
65
|
-
* Create a RoleOwnershipGrant resource with the given unique name, arguments, and options.
|
|
66
|
-
*
|
|
67
|
-
* @param name The _unique_ name of the resource.
|
|
68
|
-
* @param args The arguments to use to populate this resource's properties.
|
|
69
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
70
|
-
*/
|
|
71
|
-
constructor(name: string, args: RoleOwnershipGrantArgs, opts?: pulumi.CustomResourceOptions);
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Input properties used for looking up and filtering RoleOwnershipGrant resources.
|
|
75
|
-
*/
|
|
76
|
-
export interface RoleOwnershipGrantState {
|
|
77
|
-
/**
|
|
78
|
-
* Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
|
|
79
|
-
*/
|
|
80
|
-
currentGrants?: pulumi.Input<string>;
|
|
81
|
-
/**
|
|
82
|
-
* The name of the role ownership is granted on.
|
|
83
|
-
*/
|
|
84
|
-
onRoleName?: pulumi.Input<string>;
|
|
85
|
-
/**
|
|
86
|
-
* The name of the role to revert ownership to on destroy.
|
|
87
|
-
*/
|
|
88
|
-
revertOwnershipToRoleName?: pulumi.Input<string>;
|
|
89
|
-
toRoleName?: pulumi.Input<string>;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* The set of arguments for constructing a RoleOwnershipGrant resource.
|
|
93
|
-
*/
|
|
94
|
-
export interface RoleOwnershipGrantArgs {
|
|
95
|
-
/**
|
|
96
|
-
* Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role.
|
|
97
|
-
*/
|
|
98
|
-
currentGrants?: pulumi.Input<string>;
|
|
99
|
-
/**
|
|
100
|
-
* The name of the role ownership is granted on.
|
|
101
|
-
*/
|
|
102
|
-
onRoleName: pulumi.Input<string>;
|
|
103
|
-
/**
|
|
104
|
-
* The name of the role to revert ownership to on destroy.
|
|
105
|
-
*/
|
|
106
|
-
revertOwnershipToRoleName?: pulumi.Input<string>;
|
|
107
|
-
toRoleName: pulumi.Input<string>;
|
|
108
|
-
}
|
package/roleOwnershipGrant.js
DELETED
|
@@ -1,94 +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.RoleOwnershipGrant = 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
|
-
* ## Example Usage
|
|
12
|
-
*
|
|
13
|
-
* ```typescript
|
|
14
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
-
* import * as snowflake from "@pulumi/snowflake";
|
|
16
|
-
*
|
|
17
|
-
* const role = new snowflake.Role("role", {
|
|
18
|
-
* name: "rking_test_role",
|
|
19
|
-
* comment: "for testing",
|
|
20
|
-
* });
|
|
21
|
-
* const otherRole = new snowflake.Role("other_role", {name: "rking_test_role2"});
|
|
22
|
-
* // ensure the Terraform user inherits ownership privileges for the rking_test_role role
|
|
23
|
-
* // otherwise Terraform will fail to destroy the rking_test_role2 role due to insufficient privileges
|
|
24
|
-
* const grants = new snowflake.RoleGrants("grants", {
|
|
25
|
-
* roleName: role.name,
|
|
26
|
-
* roles: ["ACCOUNTADMIN"],
|
|
27
|
-
* });
|
|
28
|
-
* const grant = new snowflake.RoleOwnershipGrant("grant", {
|
|
29
|
-
* onRoleName: role.name,
|
|
30
|
-
* toRoleName: otherRole.name,
|
|
31
|
-
* currentGrants: "COPY",
|
|
32
|
-
* });
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* ## Import
|
|
36
|
-
*
|
|
37
|
-
* ```sh
|
|
38
|
-
* $ pulumi import snowflake:index/roleOwnershipGrant:RoleOwnershipGrant example "<on_role_name>|<to_role_name>|<current_grants>"
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
class RoleOwnershipGrant extends pulumi.CustomResource {
|
|
42
|
-
/**
|
|
43
|
-
* Get an existing RoleOwnershipGrant resource's state with the given name, ID, and optional extra
|
|
44
|
-
* properties used to qualify the lookup.
|
|
45
|
-
*
|
|
46
|
-
* @param name The _unique_ name of the resulting resource.
|
|
47
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
48
|
-
* @param state Any extra arguments used during the lookup.
|
|
49
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
50
|
-
*/
|
|
51
|
-
static get(name, id, state, opts) {
|
|
52
|
-
return new RoleOwnershipGrant(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Returns true if the given object is an instance of RoleOwnershipGrant. This is designed to work even
|
|
56
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
57
|
-
*/
|
|
58
|
-
static isInstance(obj) {
|
|
59
|
-
if (obj === undefined || obj === null) {
|
|
60
|
-
return false;
|
|
61
|
-
}
|
|
62
|
-
return obj['__pulumiType'] === RoleOwnershipGrant.__pulumiType;
|
|
63
|
-
}
|
|
64
|
-
constructor(name, argsOrState, opts) {
|
|
65
|
-
let resourceInputs = {};
|
|
66
|
-
opts = opts || {};
|
|
67
|
-
if (opts.id) {
|
|
68
|
-
const state = argsOrState;
|
|
69
|
-
resourceInputs["currentGrants"] = state ? state.currentGrants : undefined;
|
|
70
|
-
resourceInputs["onRoleName"] = state ? state.onRoleName : undefined;
|
|
71
|
-
resourceInputs["revertOwnershipToRoleName"] = state ? state.revertOwnershipToRoleName : undefined;
|
|
72
|
-
resourceInputs["toRoleName"] = state ? state.toRoleName : undefined;
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
const args = argsOrState;
|
|
76
|
-
if ((!args || args.onRoleName === undefined) && !opts.urn) {
|
|
77
|
-
throw new Error("Missing required property 'onRoleName'");
|
|
78
|
-
}
|
|
79
|
-
if ((!args || args.toRoleName === undefined) && !opts.urn) {
|
|
80
|
-
throw new Error("Missing required property 'toRoleName'");
|
|
81
|
-
}
|
|
82
|
-
resourceInputs["currentGrants"] = args ? args.currentGrants : undefined;
|
|
83
|
-
resourceInputs["onRoleName"] = args ? args.onRoleName : undefined;
|
|
84
|
-
resourceInputs["revertOwnershipToRoleName"] = args ? args.revertOwnershipToRoleName : undefined;
|
|
85
|
-
resourceInputs["toRoleName"] = args ? args.toRoleName : undefined;
|
|
86
|
-
}
|
|
87
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
88
|
-
super(RoleOwnershipGrant.__pulumiType, name, resourceInputs, opts);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
exports.RoleOwnershipGrant = RoleOwnershipGrant;
|
|
92
|
-
/** @internal */
|
|
93
|
-
RoleOwnershipGrant.__pulumiType = 'snowflake:index/roleOwnershipGrant:RoleOwnershipGrant';
|
|
94
|
-
//# sourceMappingURL=roleOwnershipGrant.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"roleOwnershipGrant.js","sourceRoot":"","sources":["../roleOwnershipGrant.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACzE,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,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;IAwBD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAkD,CAAC;YACjE,cAAc,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,2BAA2B,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClG,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;SACvE;aAAM;YACH,MAAM,IAAI,GAAG,WAAiD,CAAC;YAC/D,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,2BAA2B,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChG,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;SACrE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AA1EL,gDA2EC;AA7DG,gBAAgB;AACO,+BAAY,GAAG,uDAAuD,CAAC"}
|
|
@@ -1,153 +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.RowAccessPolicyGrant("grant", {
|
|
12
|
-
* databaseName: "database",
|
|
13
|
-
* schemaName: "schema",
|
|
14
|
-
* rowAccessPolicyName: "row_access_policy",
|
|
15
|
-
* privilege: "APPLY",
|
|
16
|
-
* roles: [
|
|
17
|
-
* "role1",
|
|
18
|
-
* "role2",
|
|
19
|
-
* ],
|
|
20
|
-
* withGrantOption: false,
|
|
21
|
-
* });
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* ## Import
|
|
25
|
-
*
|
|
26
|
-
* format is database_name|schema_name|row_access_policy_name|privilege|with_grant_option|roles
|
|
27
|
-
*
|
|
28
|
-
* ```sh
|
|
29
|
-
* $ pulumi import snowflake:index/rowAccessPolicyGrant:RowAccessPolicyGrant example "MY_DATABASE|MY_SCHEMA|MY_ROW_ACCESS_POLICY_NAME|SELECT|false|role1,role2"
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
export declare class RowAccessPolicyGrant extends pulumi.CustomResource {
|
|
33
|
-
/**
|
|
34
|
-
* Get an existing RowAccessPolicyGrant resource's state with the given name, ID, and optional extra
|
|
35
|
-
* properties used to qualify the lookup.
|
|
36
|
-
*
|
|
37
|
-
* @param name The _unique_ name of the resulting resource.
|
|
38
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
39
|
-
* @param state Any extra arguments used during the lookup.
|
|
40
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
41
|
-
*/
|
|
42
|
-
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RowAccessPolicyGrantState, opts?: pulumi.CustomResourceOptions): RowAccessPolicyGrant;
|
|
43
|
-
/**
|
|
44
|
-
* Returns true if the given object is an instance of RowAccessPolicyGrant. This is designed to work even
|
|
45
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
46
|
-
*/
|
|
47
|
-
static isInstance(obj: any): obj is RowAccessPolicyGrant;
|
|
48
|
-
/**
|
|
49
|
-
* The name of the database containing the row access policy on which to grant privileges.
|
|
50
|
-
*/
|
|
51
|
-
readonly databaseName: pulumi.Output<string>;
|
|
52
|
-
readonly enableMultipleGrants: pulumi.Output<boolean | undefined>;
|
|
53
|
-
/**
|
|
54
|
-
* The privilege to grant on the row access policy. To grant all privileges, use the value `ALL PRIVILEGES`
|
|
55
|
-
*/
|
|
56
|
-
readonly privilege: pulumi.Output<string | undefined>;
|
|
57
|
-
/**
|
|
58
|
-
* The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
|
|
59
|
-
*/
|
|
60
|
-
readonly revertOwnershipToRoleName: pulumi.Output<string | undefined>;
|
|
61
|
-
/**
|
|
62
|
-
* Grants privilege to these roles.
|
|
63
|
-
*/
|
|
64
|
-
readonly roles: pulumi.Output<string[] | undefined>;
|
|
65
|
-
/**
|
|
66
|
-
* The name of the row access policy on which to grant privileges immediately.
|
|
67
|
-
*/
|
|
68
|
-
readonly rowAccessPolicyName: pulumi.Output<string>;
|
|
69
|
-
/**
|
|
70
|
-
* The name of the schema containing the row access policy on which to grant privileges.
|
|
71
|
-
*/
|
|
72
|
-
readonly schemaName: pulumi.Output<string>;
|
|
73
|
-
/**
|
|
74
|
-
* When this is set to true, allows the recipient role to grant the privileges to other roles.
|
|
75
|
-
*/
|
|
76
|
-
readonly withGrantOption: pulumi.Output<boolean | undefined>;
|
|
77
|
-
/**
|
|
78
|
-
* Create a RowAccessPolicyGrant resource with the given unique name, arguments, and options.
|
|
79
|
-
*
|
|
80
|
-
* @param name The _unique_ name of the resource.
|
|
81
|
-
* @param args The arguments to use to populate this resource's properties.
|
|
82
|
-
* @param opts A bag of options that control this resource's behavior.
|
|
83
|
-
*/
|
|
84
|
-
constructor(name: string, args: RowAccessPolicyGrantArgs, opts?: pulumi.CustomResourceOptions);
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Input properties used for looking up and filtering RowAccessPolicyGrant resources.
|
|
88
|
-
*/
|
|
89
|
-
export interface RowAccessPolicyGrantState {
|
|
90
|
-
/**
|
|
91
|
-
* The name of the database containing the row access policy on which to grant privileges.
|
|
92
|
-
*/
|
|
93
|
-
databaseName?: pulumi.Input<string>;
|
|
94
|
-
enableMultipleGrants?: pulumi.Input<boolean>;
|
|
95
|
-
/**
|
|
96
|
-
* The privilege to grant on the row access policy. To grant all privileges, use the value `ALL PRIVILEGES`
|
|
97
|
-
*/
|
|
98
|
-
privilege?: pulumi.Input<string>;
|
|
99
|
-
/**
|
|
100
|
-
* The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
|
|
101
|
-
*/
|
|
102
|
-
revertOwnershipToRoleName?: pulumi.Input<string>;
|
|
103
|
-
/**
|
|
104
|
-
* Grants privilege to these roles.
|
|
105
|
-
*/
|
|
106
|
-
roles?: pulumi.Input<pulumi.Input<string>[]>;
|
|
107
|
-
/**
|
|
108
|
-
* The name of the row access policy on which to grant privileges immediately.
|
|
109
|
-
*/
|
|
110
|
-
rowAccessPolicyName?: pulumi.Input<string>;
|
|
111
|
-
/**
|
|
112
|
-
* The name of the schema containing the row access policy on which to grant privileges.
|
|
113
|
-
*/
|
|
114
|
-
schemaName?: pulumi.Input<string>;
|
|
115
|
-
/**
|
|
116
|
-
* When this is set to true, allows the recipient role to grant the privileges to other roles.
|
|
117
|
-
*/
|
|
118
|
-
withGrantOption?: pulumi.Input<boolean>;
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* The set of arguments for constructing a RowAccessPolicyGrant resource.
|
|
122
|
-
*/
|
|
123
|
-
export interface RowAccessPolicyGrantArgs {
|
|
124
|
-
/**
|
|
125
|
-
* The name of the database containing the row access policy on which to grant privileges.
|
|
126
|
-
*/
|
|
127
|
-
databaseName: pulumi.Input<string>;
|
|
128
|
-
enableMultipleGrants?: pulumi.Input<boolean>;
|
|
129
|
-
/**
|
|
130
|
-
* The privilege to grant on the row access policy. To grant all privileges, use the value `ALL PRIVILEGES`
|
|
131
|
-
*/
|
|
132
|
-
privilege?: pulumi.Input<string>;
|
|
133
|
-
/**
|
|
134
|
-
* The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
|
|
135
|
-
*/
|
|
136
|
-
revertOwnershipToRoleName?: pulumi.Input<string>;
|
|
137
|
-
/**
|
|
138
|
-
* Grants privilege to these roles.
|
|
139
|
-
*/
|
|
140
|
-
roles?: pulumi.Input<pulumi.Input<string>[]>;
|
|
141
|
-
/**
|
|
142
|
-
* The name of the row access policy on which to grant privileges immediately.
|
|
143
|
-
*/
|
|
144
|
-
rowAccessPolicyName: pulumi.Input<string>;
|
|
145
|
-
/**
|
|
146
|
-
* The name of the schema containing the row access policy on which to grant privileges.
|
|
147
|
-
*/
|
|
148
|
-
schemaName: pulumi.Input<string>;
|
|
149
|
-
/**
|
|
150
|
-
* When this is set to true, allows the recipient role to grant the privileges to other roles.
|
|
151
|
-
*/
|
|
152
|
-
withGrantOption?: pulumi.Input<boolean>;
|
|
153
|
-
}
|