@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.
Files changed (160) hide show
  1. package/apiAuthenticationIntegrationWithAuthorizationCodeGrant.d.ts +195 -0
  2. package/apiAuthenticationIntegrationWithAuthorizationCodeGrant.js +91 -0
  3. package/apiAuthenticationIntegrationWithAuthorizationCodeGrant.js.map +1 -0
  4. package/apiAuthenticationIntegrationWithClientCredentials.d.ts +183 -0
  5. package/apiAuthenticationIntegrationWithClientCredentials.js +89 -0
  6. package/apiAuthenticationIntegrationWithClientCredentials.js.map +1 -0
  7. package/apiAuthenticationIntegrationWithJwtBearer.d.ts +186 -0
  8. package/apiAuthenticationIntegrationWithJwtBearer.js +94 -0
  9. package/apiAuthenticationIntegrationWithJwtBearer.js.map +1 -0
  10. package/cortexSearchService.d.ts +159 -0
  11. package/cortexSearchService.js +92 -0
  12. package/cortexSearchService.js.map +1 -0
  13. package/database.d.ts +240 -77
  14. package/database.js +94 -45
  15. package/database.js.map +1 -1
  16. package/databaseOld.d.ts +187 -0
  17. package/databaseOld.js +110 -0
  18. package/databaseOld.js.map +1 -0
  19. package/externalOauthIntegration.d.ts +118 -116
  20. package/externalOauthIntegration.js +43 -55
  21. package/externalOauthIntegration.js.map +1 -1
  22. package/failoverGroup.d.ts +1 -1
  23. package/failoverGroup.js +1 -1
  24. package/getCortexSearchServices.d.ts +136 -0
  25. package/getCortexSearchServices.js +83 -0
  26. package/getCortexSearchServices.js.map +1 -0
  27. package/getDatabases.d.ts +41 -38
  28. package/getDatabases.js +8 -17
  29. package/getDatabases.js.map +1 -1
  30. package/getSecurityIntegrations.d.ts +61 -0
  31. package/getSecurityIntegrations.js +31 -0
  32. package/getSecurityIntegrations.js.map +1 -0
  33. package/getWarehouses.d.ts +53 -17
  34. package/getWarehouses.js +13 -18
  35. package/getWarehouses.js.map +1 -1
  36. package/grantPrivilegesToDatabaseRole.d.ts +0 -2
  37. package/grantPrivilegesToDatabaseRole.js +0 -2
  38. package/grantPrivilegesToDatabaseRole.js.map +1 -1
  39. package/index.d.ts +37 -82
  40. package/index.js +60 -139
  41. package/index.js.map +1 -1
  42. package/managedAccount.d.ts +3 -3
  43. package/oauthIntegration.d.ts +2 -0
  44. package/oauthIntegration.js +2 -0
  45. package/oauthIntegration.js.map +1 -1
  46. package/oauthIntegrationForCustomClients.d.ts +274 -0
  47. package/oauthIntegrationForCustomClients.js +148 -0
  48. package/oauthIntegrationForCustomClients.js.map +1 -0
  49. package/oauthIntegrationForPartnerApplications.d.ts +162 -0
  50. package/oauthIntegrationForPartnerApplications.js +84 -0
  51. package/oauthIntegrationForPartnerApplications.js.map +1 -0
  52. package/package.json +2 -2
  53. package/saml2Integration.d.ts +267 -0
  54. package/saml2Integration.js +106 -0
  55. package/saml2Integration.js.map +1 -0
  56. package/samlIntegration.d.ts +2 -0
  57. package/samlIntegration.js +2 -0
  58. package/samlIntegration.js.map +1 -1
  59. package/scimIntegration.d.ts +67 -33
  60. package/scimIntegration.js +19 -20
  61. package/scimIntegration.js.map +1 -1
  62. package/secondaryDatabase.d.ts +289 -0
  63. package/secondaryDatabase.js +103 -0
  64. package/secondaryDatabase.js.map +1 -0
  65. package/sequence.d.ts +3 -3
  66. package/sequence.js +3 -3
  67. package/sharedDatabase.d.ts +251 -0
  68. package/sharedDatabase.js +95 -0
  69. package/sharedDatabase.js.map +1 -0
  70. package/tagAssociation.d.ts +19 -19
  71. package/tagAssociation.js +19 -19
  72. package/types/input.d.ts +1015 -75
  73. package/types/output.d.ts +1835 -280
  74. package/userPasswordPolicyAttachment.d.ts +18 -0
  75. package/userPasswordPolicyAttachment.js +18 -0
  76. package/userPasswordPolicyAttachment.js.map +1 -1
  77. package/warehouse.d.ts +61 -48
  78. package/warehouse.js +8 -2
  79. package/warehouse.js.map +1 -1
  80. package/accountGrant.d.ts +0 -102
  81. package/accountGrant.js +0 -82
  82. package/accountGrant.js.map +0 -1
  83. package/databaseGrant.d.ts +0 -143
  84. package/databaseGrant.js +0 -96
  85. package/databaseGrant.js.map +0 -1
  86. package/externalTableGrant.d.ts +0 -194
  87. package/externalTableGrant.js +0 -110
  88. package/externalTableGrant.js.map +0 -1
  89. package/failoverGroupGrant.d.ts +0 -102
  90. package/failoverGroupGrant.js +0 -65
  91. package/failoverGroupGrant.js.map +0 -1
  92. package/fileFormatGrant.d.ts +0 -178
  93. package/fileFormatGrant.js +0 -104
  94. package/fileFormatGrant.js.map +0 -1
  95. package/functionGrant.d.ts +0 -210
  96. package/functionGrant.js +0 -116
  97. package/functionGrant.js.map +0 -1
  98. package/grantPrivilegesToRole.d.ts +0 -323
  99. package/grantPrivilegesToRole.js +0 -255
  100. package/grantPrivilegesToRole.js.map +0 -1
  101. package/integrationGrant.d.ts +0 -127
  102. package/integrationGrant.js +0 -90
  103. package/integrationGrant.js.map +0 -1
  104. package/maskingPolicyGrant.d.ts +0 -154
  105. package/maskingPolicyGrant.js +0 -103
  106. package/maskingPolicyGrant.js.map +0 -1
  107. package/materializedViewGrant.d.ts +0 -194
  108. package/materializedViewGrant.js +0 -107
  109. package/materializedViewGrant.js.map +0 -1
  110. package/pipeGrant.d.ts +0 -166
  111. package/pipeGrant.js +0 -99
  112. package/pipeGrant.js.map +0 -1
  113. package/procedureGrant.d.ts +0 -210
  114. package/procedureGrant.js +0 -116
  115. package/procedureGrant.js.map +0 -1
  116. package/resourceMonitorGrant.d.ts +0 -112
  117. package/resourceMonitorGrant.js +0 -85
  118. package/resourceMonitorGrant.js.map +0 -1
  119. package/roleGrants.d.ts +0 -115
  120. package/roleGrants.js +0 -98
  121. package/roleGrants.js.map +0 -1
  122. package/roleOwnershipGrant.d.ts +0 -108
  123. package/roleOwnershipGrant.js +0 -94
  124. package/roleOwnershipGrant.js.map +0 -1
  125. package/rowAccessPolicyGrant.d.ts +0 -153
  126. package/rowAccessPolicyGrant.js +0 -102
  127. package/rowAccessPolicyGrant.js.map +0 -1
  128. package/schemaGrant.d.ts +0 -172
  129. package/schemaGrant.js +0 -104
  130. package/schemaGrant.js.map +0 -1
  131. package/sequenceGrant.d.ts +0 -178
  132. package/sequenceGrant.js +0 -104
  133. package/sequenceGrant.js.map +0 -1
  134. package/stageGrant.d.ts +0 -178
  135. package/stageGrant.js +0 -104
  136. package/stageGrant.js.map +0 -1
  137. package/streamGrant.d.ts +0 -178
  138. package/streamGrant.js +0 -104
  139. package/streamGrant.js.map +0 -1
  140. package/tableGrant.d.ts +0 -188
  141. package/tableGrant.js +0 -101
  142. package/tableGrant.js.map +0 -1
  143. package/tagGrant.d.ts +0 -149
  144. package/tagGrant.js +0 -98
  145. package/tagGrant.js.map +0 -1
  146. package/taskGrant.d.ts +0 -178
  147. package/taskGrant.js +0 -104
  148. package/taskGrant.js.map +0 -1
  149. package/userGrant.d.ts +0 -115
  150. package/userGrant.js +0 -91
  151. package/userGrant.js.map +0 -1
  152. package/userOwnershipGrant.d.ts +0 -78
  153. package/userOwnershipGrant.js +0 -64
  154. package/userOwnershipGrant.js.map +0 -1
  155. package/viewGrant.d.ts +0 -205
  156. package/viewGrant.js +0 -118
  157. package/viewGrant.js.map +0 -1
  158. package/warehouseGrant.d.ts +0 -127
  159. package/warehouseGrant.js +0 -90
  160. package/warehouseGrant.js.map +0 -1
package/functionGrant.js DELETED
@@ -1,116 +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.FunctionGrant = 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.FunctionGrant("grant", {
18
- * databaseName: "database",
19
- * schemaName: "schema",
20
- * functionName: "function",
21
- * argumentDataTypes: [
22
- * "array",
23
- * "string",
24
- * ],
25
- * privilege: "USAGE",
26
- * roles: [
27
- * "role1",
28
- * "role2",
29
- * ],
30
- * shares: [
31
- * "share1",
32
- * "share2",
33
- * ],
34
- * onFuture: false,
35
- * withGrantOption: false,
36
- * });
37
- * ```
38
- *
39
- * ## Import
40
- *
41
- * format is database_name|schema_name|function_name|argument_data_types|privilege|with_grant_option|on_future|roles|shares
42
- *
43
- * ```sh
44
- * $ pulumi import snowflake:index/functionGrant:FunctionGrant example "MY_DATABASE|MY_SCHEMA|MY_FUNCTION|ARG1TYPE,ARG2TYPE|USAGE|false|false|role1,role2|share1,share2"
45
- * ```
46
- */
47
- class FunctionGrant extends pulumi.CustomResource {
48
- /**
49
- * Get an existing FunctionGrant resource's state with the given name, ID, and optional extra
50
- * properties used to qualify the lookup.
51
- *
52
- * @param name The _unique_ name of the resulting resource.
53
- * @param id The _unique_ provider ID of the resource to lookup.
54
- * @param state Any extra arguments used during the lookup.
55
- * @param opts Optional settings to control the behavior of the CustomResource.
56
- */
57
- static get(name, id, state, opts) {
58
- return new FunctionGrant(name, state, Object.assign(Object.assign({}, opts), { id: id }));
59
- }
60
- /**
61
- * Returns true if the given object is an instance of FunctionGrant. This is designed to work even
62
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
63
- */
64
- static isInstance(obj) {
65
- if (obj === undefined || obj === null) {
66
- return false;
67
- }
68
- return obj['__pulumiType'] === FunctionGrant.__pulumiType;
69
- }
70
- constructor(name, argsOrState, opts) {
71
- let resourceInputs = {};
72
- opts = opts || {};
73
- if (opts.id) {
74
- const state = argsOrState;
75
- resourceInputs["argumentDataTypes"] = state ? state.argumentDataTypes : undefined;
76
- resourceInputs["databaseName"] = state ? state.databaseName : undefined;
77
- resourceInputs["enableMultipleGrants"] = state ? state.enableMultipleGrants : undefined;
78
- resourceInputs["functionName"] = state ? state.functionName : undefined;
79
- resourceInputs["onAll"] = state ? state.onAll : undefined;
80
- resourceInputs["onFuture"] = state ? state.onFuture : undefined;
81
- resourceInputs["privilege"] = state ? state.privilege : undefined;
82
- resourceInputs["revertOwnershipToRoleName"] = state ? state.revertOwnershipToRoleName : undefined;
83
- resourceInputs["roles"] = state ? state.roles : undefined;
84
- resourceInputs["schemaName"] = state ? state.schemaName : undefined;
85
- resourceInputs["shares"] = state ? state.shares : undefined;
86
- resourceInputs["withGrantOption"] = state ? state.withGrantOption : undefined;
87
- }
88
- else {
89
- const args = argsOrState;
90
- if ((!args || args.databaseName === undefined) && !opts.urn) {
91
- throw new Error("Missing required property 'databaseName'");
92
- }
93
- if ((!args || args.roles === undefined) && !opts.urn) {
94
- throw new Error("Missing required property 'roles'");
95
- }
96
- resourceInputs["argumentDataTypes"] = args ? args.argumentDataTypes : undefined;
97
- resourceInputs["databaseName"] = args ? args.databaseName : undefined;
98
- resourceInputs["enableMultipleGrants"] = args ? args.enableMultipleGrants : undefined;
99
- resourceInputs["functionName"] = args ? args.functionName : undefined;
100
- resourceInputs["onAll"] = args ? args.onAll : undefined;
101
- resourceInputs["onFuture"] = args ? args.onFuture : undefined;
102
- resourceInputs["privilege"] = args ? args.privilege : undefined;
103
- resourceInputs["revertOwnershipToRoleName"] = args ? args.revertOwnershipToRoleName : undefined;
104
- resourceInputs["roles"] = args ? args.roles : undefined;
105
- resourceInputs["schemaName"] = args ? args.schemaName : undefined;
106
- resourceInputs["shares"] = args ? args.shares : undefined;
107
- resourceInputs["withGrantOption"] = args ? args.withGrantOption : undefined;
108
- }
109
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
110
- super(FunctionGrant.__pulumiType, name, resourceInputs, opts);
111
- }
112
- }
113
- exports.FunctionGrant = FunctionGrant;
114
- /** @internal */
115
- FunctionGrant.__pulumiType = 'snowflake:index/functionGrant:FunctionGrant';
116
- //# sourceMappingURL=functionGrant.js.map
@@ -1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C,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/E;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AA1HL,sCA2HC;AA7GG,gBAAgB;AACO,0BAAY,GAAG,6CAA6C,CAAC"}
@@ -1,323 +0,0 @@
1
- import * as pulumi from "@pulumi/pulumi";
2
- import * as inputs from "./types/input";
3
- import * as outputs from "./types/output";
4
- /**
5
- * > **Deprecation** This resource is deprecated and will be removed in a future major version release. Please use snowflake.GrantPrivilegesToAccountRole instead. <deprecation>
6
- *
7
- * ## Example Usage
8
- *
9
- * ```typescript
10
- * import * as pulumi from "@pulumi/pulumi";
11
- * import * as snowflake from "@pulumi/snowflake";
12
- *
13
- * //#################################
14
- * //## global privileges
15
- * //#################################
16
- * // list of privileges
17
- * const g1 = new snowflake.GrantPrivilegesToRole("g1", {
18
- * privileges: [
19
- * "MODIFY",
20
- * "USAGE",
21
- * ],
22
- * roleName: r.name,
23
- * onAccount: true,
24
- * });
25
- * // all privileges + grant option
26
- * const g2 = new snowflake.GrantPrivilegesToRole("g2", {
27
- * roleName: r.name,
28
- * onAccount: true,
29
- * allPrivileges: true,
30
- * withGrantOption: true,
31
- * });
32
- * //#################################
33
- * //## account object privileges
34
- * //#################################
35
- * // list of privileges
36
- * const g3 = new snowflake.GrantPrivilegesToRole("g3", {
37
- * privileges: [
38
- * "CREATE",
39
- * "MONITOR",
40
- * ],
41
- * roleName: r.name,
42
- * onAccountObject: {
43
- * objectType: "DATABASE",
44
- * objectName: d.name,
45
- * },
46
- * });
47
- * // all privileges + grant option
48
- * const g4 = new snowflake.GrantPrivilegesToRole("g4", {
49
- * roleName: r.name,
50
- * onAccountObject: {
51
- * objectType: "DATABASE",
52
- * objectName: d.name,
53
- * },
54
- * allPrivileges: true,
55
- * withGrantOption: true,
56
- * });
57
- * //#################################
58
- * //## schema privileges
59
- * //#################################
60
- * // list of privileges
61
- * const g5 = new snowflake.GrantPrivilegesToRole("g5", {
62
- * privileges: [
63
- * "MODIFY",
64
- * "CREATE TABLE",
65
- * ],
66
- * roleName: r.name,
67
- * onSchema: {
68
- * schemaName: "\"my_db\".\"my_schema\"",
69
- * },
70
- * });
71
- * // all privileges + grant option
72
- * const g6 = new snowflake.GrantPrivilegesToRole("g6", {
73
- * roleName: r.name,
74
- * onSchema: {
75
- * schemaName: "\"my_db\".\"my_schema\"",
76
- * },
77
- * allPrivileges: true,
78
- * withGrantOption: true,
79
- * });
80
- * // all schemas in database
81
- * const g7 = new snowflake.GrantPrivilegesToRole("g7", {
82
- * privileges: [
83
- * "MODIFY",
84
- * "CREATE TABLE",
85
- * ],
86
- * roleName: r.name,
87
- * onSchema: {
88
- * allSchemasInDatabase: d.name,
89
- * },
90
- * });
91
- * // future schemas in database
92
- * const g8 = new snowflake.GrantPrivilegesToRole("g8", {
93
- * privileges: [
94
- * "MODIFY",
95
- * "CREATE TABLE",
96
- * ],
97
- * roleName: r.name,
98
- * onSchema: {
99
- * futureSchemasInDatabase: d.name,
100
- * },
101
- * });
102
- * //#################################
103
- * //## schema object privileges
104
- * //#################################
105
- * // list of privileges
106
- * const g9 = new snowflake.GrantPrivilegesToRole("g9", {
107
- * privileges: [
108
- * "SELECT",
109
- * "REFERENCES",
110
- * ],
111
- * roleName: r.name,
112
- * onSchemaObject: {
113
- * objectType: "VIEW",
114
- * objectName: "\"my_db\".\"my_schema\".\"my_view\"",
115
- * },
116
- * });
117
- * // all privileges + grant option
118
- * const g10 = new snowflake.GrantPrivilegesToRole("g10", {
119
- * roleName: r.name,
120
- * onSchemaObject: {
121
- * objectType: "VIEW",
122
- * objectName: "\"my_db\".\"my_schema\".\"my_view\"",
123
- * },
124
- * allPrivileges: true,
125
- * withGrantOption: true,
126
- * });
127
- * // all in database
128
- * const g11 = new snowflake.GrantPrivilegesToRole("g11", {
129
- * privileges: [
130
- * "SELECT",
131
- * "INSERT",
132
- * ],
133
- * roleName: r.name,
134
- * onSchemaObject: {
135
- * all: {
136
- * objectTypePlural: "TABLES",
137
- * inDatabase: d.name,
138
- * },
139
- * },
140
- * });
141
- * // all in schema
142
- * const g12 = new snowflake.GrantPrivilegesToRole("g12", {
143
- * privileges: [
144
- * "SELECT",
145
- * "INSERT",
146
- * ],
147
- * roleName: r.name,
148
- * onSchemaObject: {
149
- * all: {
150
- * objectTypePlural: "TABLES",
151
- * inSchema: "\"my_db\".\"my_schema\"",
152
- * },
153
- * },
154
- * });
155
- * // future in database
156
- * const g13 = new snowflake.GrantPrivilegesToRole("g13", {
157
- * privileges: [
158
- * "SELECT",
159
- * "INSERT",
160
- * ],
161
- * roleName: r.name,
162
- * onSchemaObject: {
163
- * future: {
164
- * objectTypePlural: "TABLES",
165
- * inDatabase: d.name,
166
- * },
167
- * },
168
- * });
169
- * // future in schema
170
- * const g14 = new snowflake.GrantPrivilegesToRole("g14", {
171
- * privileges: [
172
- * "SELECT",
173
- * "INSERT",
174
- * ],
175
- * roleName: r.name,
176
- * onSchemaObject: {
177
- * future: {
178
- * objectTypePlural: "TABLES",
179
- * inSchema: "\"my_db\".\"my_schema\"",
180
- * },
181
- * },
182
- * });
183
- * ```
184
- *
185
- * ## Import
186
- *
187
- * format is role_name (string) | privileges (comma-delimited string) | all_privileges (bool) |with_grant_option (bool) | on_account (bool) | on_account_object (bool) | on_schema (bool) | on_schema_object (bool) | all (bool) | future (bool) | object_type (string) | object_name (string) | object_type_plural (string) | in_schema (bool) | schema_name (string) | in_database (bool) | database_name (string)
188
- *
189
- * ```sh
190
- * $ pulumi import snowflake:index/grantPrivilegesToRole:GrantPrivilegesToRole "test_role|MANAGE GRANTS,MONITOR USAGE|false|false|true|false|false|false|false|false||||false||false|"
191
- * ```
192
- */
193
- export declare class GrantPrivilegesToRole extends pulumi.CustomResource {
194
- /**
195
- * Get an existing GrantPrivilegesToRole resource's state with the given name, ID, and optional extra
196
- * properties used to qualify the lookup.
197
- *
198
- * @param name The _unique_ name of the resulting resource.
199
- * @param id The _unique_ provider ID of the resource to lookup.
200
- * @param state Any extra arguments used during the lookup.
201
- * @param opts Optional settings to control the behavior of the CustomResource.
202
- */
203
- static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GrantPrivilegesToRoleState, opts?: pulumi.CustomResourceOptions): GrantPrivilegesToRole;
204
- /**
205
- * Returns true if the given object is an instance of GrantPrivilegesToRole. This is designed to work even
206
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
207
- */
208
- static isInstance(obj: any): obj is GrantPrivilegesToRole;
209
- /**
210
- * Grant all privileges on the account role.
211
- */
212
- readonly allPrivileges: pulumi.Output<boolean | undefined>;
213
- /**
214
- * If true, the privileges will be granted on the account.
215
- */
216
- readonly onAccount: pulumi.Output<boolean | undefined>;
217
- /**
218
- * Specifies the account object on which privileges will be granted
219
- */
220
- readonly onAccountObject: pulumi.Output<outputs.GrantPrivilegesToRoleOnAccountObject | undefined>;
221
- /**
222
- * Specifies the schema on which privileges will be granted.
223
- */
224
- readonly onSchema: pulumi.Output<outputs.GrantPrivilegesToRoleOnSchema | undefined>;
225
- /**
226
- * Specifies the schema object on which privileges will be granted.
227
- */
228
- readonly onSchemaObject: pulumi.Output<outputs.GrantPrivilegesToRoleOnSchemaObject | undefined>;
229
- /**
230
- * The privileges to grant on the account role.
231
- */
232
- readonly privileges: pulumi.Output<string[] | undefined>;
233
- /**
234
- * The fully qualified name of the role to which privileges will be granted.
235
- */
236
- readonly roleName: pulumi.Output<string>;
237
- /**
238
- * Specifies whether the grantee can grant the privileges to other users.
239
- */
240
- readonly withGrantOption: pulumi.Output<boolean | undefined>;
241
- /**
242
- * Create a GrantPrivilegesToRole resource with the given unique name, arguments, and options.
243
- *
244
- * @param name The _unique_ name of the resource.
245
- * @param args The arguments to use to populate this resource's properties.
246
- * @param opts A bag of options that control this resource's behavior.
247
- */
248
- constructor(name: string, args: GrantPrivilegesToRoleArgs, opts?: pulumi.CustomResourceOptions);
249
- }
250
- /**
251
- * Input properties used for looking up and filtering GrantPrivilegesToRole resources.
252
- */
253
- export interface GrantPrivilegesToRoleState {
254
- /**
255
- * Grant all privileges on the account role.
256
- */
257
- allPrivileges?: pulumi.Input<boolean>;
258
- /**
259
- * If true, the privileges will be granted on the account.
260
- */
261
- onAccount?: pulumi.Input<boolean>;
262
- /**
263
- * Specifies the account object on which privileges will be granted
264
- */
265
- onAccountObject?: pulumi.Input<inputs.GrantPrivilegesToRoleOnAccountObject>;
266
- /**
267
- * Specifies the schema on which privileges will be granted.
268
- */
269
- onSchema?: pulumi.Input<inputs.GrantPrivilegesToRoleOnSchema>;
270
- /**
271
- * Specifies the schema object on which privileges will be granted.
272
- */
273
- onSchemaObject?: pulumi.Input<inputs.GrantPrivilegesToRoleOnSchemaObject>;
274
- /**
275
- * The privileges to grant on the account role.
276
- */
277
- privileges?: pulumi.Input<pulumi.Input<string>[]>;
278
- /**
279
- * The fully qualified name of the role to which privileges will be granted.
280
- */
281
- roleName?: pulumi.Input<string>;
282
- /**
283
- * Specifies whether the grantee can grant the privileges to other users.
284
- */
285
- withGrantOption?: pulumi.Input<boolean>;
286
- }
287
- /**
288
- * The set of arguments for constructing a GrantPrivilegesToRole resource.
289
- */
290
- export interface GrantPrivilegesToRoleArgs {
291
- /**
292
- * Grant all privileges on the account role.
293
- */
294
- allPrivileges?: pulumi.Input<boolean>;
295
- /**
296
- * If true, the privileges will be granted on the account.
297
- */
298
- onAccount?: pulumi.Input<boolean>;
299
- /**
300
- * Specifies the account object on which privileges will be granted
301
- */
302
- onAccountObject?: pulumi.Input<inputs.GrantPrivilegesToRoleOnAccountObject>;
303
- /**
304
- * Specifies the schema on which privileges will be granted.
305
- */
306
- onSchema?: pulumi.Input<inputs.GrantPrivilegesToRoleOnSchema>;
307
- /**
308
- * Specifies the schema object on which privileges will be granted.
309
- */
310
- onSchemaObject?: pulumi.Input<inputs.GrantPrivilegesToRoleOnSchemaObject>;
311
- /**
312
- * The privileges to grant on the account role.
313
- */
314
- privileges?: pulumi.Input<pulumi.Input<string>[]>;
315
- /**
316
- * The fully qualified name of the role to which privileges will be granted.
317
- */
318
- roleName: pulumi.Input<string>;
319
- /**
320
- * Specifies whether the grantee can grant the privileges to other users.
321
- */
322
- withGrantOption?: pulumi.Input<boolean>;
323
- }