@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
@@ -1,143 +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.DatabaseGrant("grant", {
12
- * databaseName: "database",
13
- * privilege: "USAGE",
14
- * roles: [
15
- * "role1",
16
- * "role2",
17
- * ],
18
- * shares: [
19
- * "share1",
20
- * "share2",
21
- * ],
22
- * withGrantOption: false,
23
- * });
24
- * ```
25
- *
26
- * ## Import
27
- *
28
- * format is database_name|privilege|with_grant_option|roles|shares
29
- *
30
- * ```sh
31
- * $ pulumi import snowflake:index/databaseGrant:DatabaseGrant example "MY_DATABASE|USAGE|false|role1,role2|share1,share2"
32
- * ```
33
- */
34
- export declare class DatabaseGrant extends pulumi.CustomResource {
35
- /**
36
- * Get an existing DatabaseGrant 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: string, id: pulumi.Input<pulumi.ID>, state?: DatabaseGrantState, opts?: pulumi.CustomResourceOptions): DatabaseGrant;
45
- /**
46
- * Returns true if the given object is an instance of DatabaseGrant. This is designed to work even
47
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
48
- */
49
- static isInstance(obj: any): obj is DatabaseGrant;
50
- /**
51
- * The name of the database on which to grant privileges.
52
- */
53
- readonly databaseName: pulumi.Output<string>;
54
- readonly enableMultipleGrants: pulumi.Output<boolean | undefined>;
55
- /**
56
- * The privilege to grant on the database. To grant all privileges, use the value `ALL PRIVILEGES`.
57
- */
58
- readonly privilege: pulumi.Output<string | undefined>;
59
- /**
60
- * The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
61
- */
62
- readonly revertOwnershipToRoleName: pulumi.Output<string | undefined>;
63
- /**
64
- * Grants privilege to these roles.
65
- */
66
- readonly roles: pulumi.Output<string[] | undefined>;
67
- /**
68
- * Grants privilege to these shares.
69
- */
70
- readonly shares: pulumi.Output<string[] | undefined>;
71
- /**
72
- * When this is set to true, allows the recipient role to grant the privileges to other roles.
73
- */
74
- readonly withGrantOption: pulumi.Output<boolean | undefined>;
75
- /**
76
- * Create a DatabaseGrant resource with the given unique name, arguments, and options.
77
- *
78
- * @param name The _unique_ name of the resource.
79
- * @param args The arguments to use to populate this resource's properties.
80
- * @param opts A bag of options that control this resource's behavior.
81
- */
82
- constructor(name: string, args: DatabaseGrantArgs, opts?: pulumi.CustomResourceOptions);
83
- }
84
- /**
85
- * Input properties used for looking up and filtering DatabaseGrant resources.
86
- */
87
- export interface DatabaseGrantState {
88
- /**
89
- * The name of the database on which to grant privileges.
90
- */
91
- databaseName?: pulumi.Input<string>;
92
- enableMultipleGrants?: pulumi.Input<boolean>;
93
- /**
94
- * The privilege to grant on the database. To grant all privileges, use the value `ALL PRIVILEGES`.
95
- */
96
- privilege?: pulumi.Input<string>;
97
- /**
98
- * The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
99
- */
100
- revertOwnershipToRoleName?: pulumi.Input<string>;
101
- /**
102
- * Grants privilege to these roles.
103
- */
104
- roles?: pulumi.Input<pulumi.Input<string>[]>;
105
- /**
106
- * Grants privilege to these shares.
107
- */
108
- shares?: pulumi.Input<pulumi.Input<string>[]>;
109
- /**
110
- * When this is set to true, allows the recipient role to grant the privileges to other roles.
111
- */
112
- withGrantOption?: pulumi.Input<boolean>;
113
- }
114
- /**
115
- * The set of arguments for constructing a DatabaseGrant resource.
116
- */
117
- export interface DatabaseGrantArgs {
118
- /**
119
- * The name of the database on which to grant privileges.
120
- */
121
- databaseName: pulumi.Input<string>;
122
- enableMultipleGrants?: pulumi.Input<boolean>;
123
- /**
124
- * The privilege to grant on the database. To grant all privileges, use the value `ALL PRIVILEGES`.
125
- */
126
- privilege?: pulumi.Input<string>;
127
- /**
128
- * The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
129
- */
130
- revertOwnershipToRoleName?: pulumi.Input<string>;
131
- /**
132
- * Grants privilege to these roles.
133
- */
134
- roles?: pulumi.Input<pulumi.Input<string>[]>;
135
- /**
136
- * Grants privilege to these shares.
137
- */
138
- shares?: pulumi.Input<pulumi.Input<string>[]>;
139
- /**
140
- * When this is set to true, allows the recipient role to grant the privileges to other roles.
141
- */
142
- withGrantOption?: pulumi.Input<boolean>;
143
- }
package/databaseGrant.js DELETED
@@ -1,96 +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.DatabaseGrant = 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.DatabaseGrant("grant", {
18
- * databaseName: "database",
19
- * privilege: "USAGE",
20
- * roles: [
21
- * "role1",
22
- * "role2",
23
- * ],
24
- * shares: [
25
- * "share1",
26
- * "share2",
27
- * ],
28
- * withGrantOption: false,
29
- * });
30
- * ```
31
- *
32
- * ## Import
33
- *
34
- * format is database_name|privilege|with_grant_option|roles|shares
35
- *
36
- * ```sh
37
- * $ pulumi import snowflake:index/databaseGrant:DatabaseGrant example "MY_DATABASE|USAGE|false|role1,role2|share1,share2"
38
- * ```
39
- */
40
- class DatabaseGrant extends pulumi.CustomResource {
41
- /**
42
- * Get an existing DatabaseGrant resource's state with the given name, ID, and optional extra
43
- * properties used to qualify the lookup.
44
- *
45
- * @param name The _unique_ name of the resulting resource.
46
- * @param id The _unique_ provider ID of the resource to lookup.
47
- * @param state Any extra arguments used during the lookup.
48
- * @param opts Optional settings to control the behavior of the CustomResource.
49
- */
50
- static get(name, id, state, opts) {
51
- return new DatabaseGrant(name, state, Object.assign(Object.assign({}, opts), { id: id }));
52
- }
53
- /**
54
- * Returns true if the given object is an instance of DatabaseGrant. 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) {
58
- if (obj === undefined || obj === null) {
59
- return false;
60
- }
61
- return obj['__pulumiType'] === DatabaseGrant.__pulumiType;
62
- }
63
- constructor(name, argsOrState, opts) {
64
- let resourceInputs = {};
65
- opts = opts || {};
66
- if (opts.id) {
67
- const state = argsOrState;
68
- resourceInputs["databaseName"] = state ? state.databaseName : undefined;
69
- resourceInputs["enableMultipleGrants"] = state ? state.enableMultipleGrants : undefined;
70
- resourceInputs["privilege"] = state ? state.privilege : undefined;
71
- resourceInputs["revertOwnershipToRoleName"] = state ? state.revertOwnershipToRoleName : undefined;
72
- resourceInputs["roles"] = state ? state.roles : undefined;
73
- resourceInputs["shares"] = state ? state.shares : undefined;
74
- resourceInputs["withGrantOption"] = state ? state.withGrantOption : undefined;
75
- }
76
- else {
77
- const args = argsOrState;
78
- if ((!args || args.databaseName === undefined) && !opts.urn) {
79
- throw new Error("Missing required property 'databaseName'");
80
- }
81
- resourceInputs["databaseName"] = args ? args.databaseName : undefined;
82
- resourceInputs["enableMultipleGrants"] = args ? args.enableMultipleGrants : undefined;
83
- resourceInputs["privilege"] = args ? args.privilege : undefined;
84
- resourceInputs["revertOwnershipToRoleName"] = args ? args.revertOwnershipToRoleName : undefined;
85
- resourceInputs["roles"] = args ? args.roles : undefined;
86
- resourceInputs["shares"] = args ? args.shares : undefined;
87
- resourceInputs["withGrantOption"] = args ? args.withGrantOption : undefined;
88
- }
89
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
90
- super(DatabaseGrant.__pulumiType, name, resourceInputs, opts);
91
- }
92
- }
93
- exports.DatabaseGrant = DatabaseGrant;
94
- /** @internal */
95
- DatabaseGrant.__pulumiType = 'snowflake:index/databaseGrant:DatabaseGrant';
96
- //# sourceMappingURL=databaseGrant.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"databaseGrant.js","sourceRoot":"","sources":["../databaseGrant.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;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AC;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;;AAzFL,sCA0FC;AA5EG,gBAAgB;AACO,0BAAY,GAAG,6CAA6C,CAAC"}
@@ -1,194 +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.ExternalTableGrant("grant", {
12
- * databaseName: "database",
13
- * schemaName: "schema",
14
- * externalTableName: "external_table",
15
- * privilege: "SELECT",
16
- * roles: [
17
- * "role1",
18
- * "role2",
19
- * ],
20
- * shares: [
21
- * "share1",
22
- * "share2",
23
- * ],
24
- * onFuture: false,
25
- * withGrantOption: false,
26
- * });
27
- * ```
28
- *
29
- * ## Import
30
- *
31
- * format is database|schema|external_table|privilege|with_grant_option|on_future|roles|shares
32
- *
33
- * ```sh
34
- * $ pulumi import snowflake:index/externalTableGrant:ExternalTableGrant example "MY_DATABASE|MY_SCHEMA|MY_TABLE_NAME|SELECT|false|false|role1,role2|share1,share2"
35
- * ```
36
- */
37
- export declare class ExternalTableGrant extends pulumi.CustomResource {
38
- /**
39
- * Get an existing ExternalTableGrant 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: string, id: pulumi.Input<pulumi.ID>, state?: ExternalTableGrantState, opts?: pulumi.CustomResourceOptions): ExternalTableGrant;
48
- /**
49
- * Returns true if the given object is an instance of ExternalTableGrant. This is designed to work even
50
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
51
- */
52
- static isInstance(obj: any): obj is ExternalTableGrant;
53
- /**
54
- * The name of the database containing the current or future external tables on which to grant privileges.
55
- */
56
- readonly databaseName: pulumi.Output<string>;
57
- readonly enableMultipleGrants: pulumi.Output<boolean | undefined>;
58
- /**
59
- * The name of the external table on which to grant privileges immediately (only valid if onFuture is false).
60
- */
61
- readonly externalTableName: pulumi.Output<string | undefined>;
62
- /**
63
- * When this is set to true and a schema*name is provided, apply this grant on all external tables in the given schema. When this is true and no schema*name is provided apply this grant on all external tables in the given database. The external*table*name and shares fields must be unset in order to use on*all. Cannot be used together with on*future.
64
- */
65
- readonly onAll: pulumi.Output<boolean | undefined>;
66
- /**
67
- * When this is set to true and a schema*name is provided, apply this grant on all future external tables in the given schema. When this is true and no schema*name is provided apply this grant on all future external tables in the given database. The external*table*name and shares fields must be unset in order to use on*future. Cannot be used together with on*all.
68
- */
69
- readonly onFuture: pulumi.Output<boolean | undefined>;
70
- /**
71
- * The privilege to grant on the current or future external table. To grant all privileges, use the value `ALL PRIVILEGES`
72
- */
73
- readonly privilege: pulumi.Output<string | undefined>;
74
- /**
75
- * The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
76
- */
77
- readonly revertOwnershipToRoleName: pulumi.Output<string | undefined>;
78
- /**
79
- * Grants privilege to these roles.
80
- */
81
- readonly roles: pulumi.Output<string[]>;
82
- /**
83
- * The name of the schema containing the current or future external tables on which to grant privileges.
84
- */
85
- readonly schemaName: pulumi.Output<string | undefined>;
86
- /**
87
- * Grants privilege to these shares (only valid if onFuture is false).
88
- */
89
- readonly shares: pulumi.Output<string[] | undefined>;
90
- /**
91
- * When this is set to true, allows the recipient role to grant the privileges to other roles.
92
- */
93
- readonly withGrantOption: pulumi.Output<boolean | undefined>;
94
- /**
95
- * Create a ExternalTableGrant resource with the given unique name, arguments, and options.
96
- *
97
- * @param name The _unique_ name of the resource.
98
- * @param args The arguments to use to populate this resource's properties.
99
- * @param opts A bag of options that control this resource's behavior.
100
- */
101
- constructor(name: string, args: ExternalTableGrantArgs, opts?: pulumi.CustomResourceOptions);
102
- }
103
- /**
104
- * Input properties used for looking up and filtering ExternalTableGrant resources.
105
- */
106
- export interface ExternalTableGrantState {
107
- /**
108
- * The name of the database containing the current or future external tables on which to grant privileges.
109
- */
110
- databaseName?: pulumi.Input<string>;
111
- enableMultipleGrants?: pulumi.Input<boolean>;
112
- /**
113
- * The name of the external table on which to grant privileges immediately (only valid if onFuture is false).
114
- */
115
- externalTableName?: pulumi.Input<string>;
116
- /**
117
- * When this is set to true and a schema*name is provided, apply this grant on all external tables in the given schema. When this is true and no schema*name is provided apply this grant on all external tables in the given database. The external*table*name and shares fields must be unset in order to use on*all. Cannot be used together with on*future.
118
- */
119
- onAll?: pulumi.Input<boolean>;
120
- /**
121
- * When this is set to true and a schema*name is provided, apply this grant on all future external tables in the given schema. When this is true and no schema*name is provided apply this grant on all future external tables in the given database. The external*table*name and shares fields must be unset in order to use on*future. Cannot be used together with on*all.
122
- */
123
- onFuture?: pulumi.Input<boolean>;
124
- /**
125
- * The privilege to grant on the current or future external table. To grant all privileges, use the value `ALL PRIVILEGES`
126
- */
127
- privilege?: pulumi.Input<string>;
128
- /**
129
- * The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
130
- */
131
- revertOwnershipToRoleName?: pulumi.Input<string>;
132
- /**
133
- * Grants privilege to these roles.
134
- */
135
- roles?: pulumi.Input<pulumi.Input<string>[]>;
136
- /**
137
- * The name of the schema containing the current or future external tables on which to grant privileges.
138
- */
139
- schemaName?: pulumi.Input<string>;
140
- /**
141
- * Grants privilege to these shares (only valid if onFuture is false).
142
- */
143
- shares?: pulumi.Input<pulumi.Input<string>[]>;
144
- /**
145
- * When this is set to true, allows the recipient role to grant the privileges to other roles.
146
- */
147
- withGrantOption?: pulumi.Input<boolean>;
148
- }
149
- /**
150
- * The set of arguments for constructing a ExternalTableGrant resource.
151
- */
152
- export interface ExternalTableGrantArgs {
153
- /**
154
- * The name of the database containing the current or future external tables on which to grant privileges.
155
- */
156
- databaseName: pulumi.Input<string>;
157
- enableMultipleGrants?: pulumi.Input<boolean>;
158
- /**
159
- * The name of the external table on which to grant privileges immediately (only valid if onFuture is false).
160
- */
161
- externalTableName?: pulumi.Input<string>;
162
- /**
163
- * When this is set to true and a schema*name is provided, apply this grant on all external tables in the given schema. When this is true and no schema*name is provided apply this grant on all external tables in the given database. The external*table*name and shares fields must be unset in order to use on*all. Cannot be used together with on*future.
164
- */
165
- onAll?: pulumi.Input<boolean>;
166
- /**
167
- * When this is set to true and a schema*name is provided, apply this grant on all future external tables in the given schema. When this is true and no schema*name is provided apply this grant on all future external tables in the given database. The external*table*name and shares fields must be unset in order to use on*future. Cannot be used together with on*all.
168
- */
169
- onFuture?: pulumi.Input<boolean>;
170
- /**
171
- * The privilege to grant on the current or future external table. To grant all privileges, use the value `ALL PRIVILEGES`
172
- */
173
- privilege?: pulumi.Input<string>;
174
- /**
175
- * The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
176
- */
177
- revertOwnershipToRoleName?: pulumi.Input<string>;
178
- /**
179
- * Grants privilege to these roles.
180
- */
181
- roles: pulumi.Input<pulumi.Input<string>[]>;
182
- /**
183
- * The name of the schema containing the current or future external tables on which to grant privileges.
184
- */
185
- schemaName?: pulumi.Input<string>;
186
- /**
187
- * Grants privilege to these shares (only valid if onFuture is false).
188
- */
189
- shares?: pulumi.Input<pulumi.Input<string>[]>;
190
- /**
191
- * When this is set to true, allows the recipient role to grant the privileges to other roles.
192
- */
193
- withGrantOption?: pulumi.Input<boolean>;
194
- }
@@ -1,110 +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.ExternalTableGrant = 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.ExternalTableGrant("grant", {
18
- * databaseName: "database",
19
- * schemaName: "schema",
20
- * externalTableName: "external_table",
21
- * privilege: "SELECT",
22
- * roles: [
23
- * "role1",
24
- * "role2",
25
- * ],
26
- * shares: [
27
- * "share1",
28
- * "share2",
29
- * ],
30
- * onFuture: false,
31
- * withGrantOption: false,
32
- * });
33
- * ```
34
- *
35
- * ## Import
36
- *
37
- * format is database|schema|external_table|privilege|with_grant_option|on_future|roles|shares
38
- *
39
- * ```sh
40
- * $ pulumi import snowflake:index/externalTableGrant:ExternalTableGrant example "MY_DATABASE|MY_SCHEMA|MY_TABLE_NAME|SELECT|false|false|role1,role2|share1,share2"
41
- * ```
42
- */
43
- class ExternalTableGrant extends pulumi.CustomResource {
44
- /**
45
- * Get an existing ExternalTableGrant resource's state with the given name, ID, and optional extra
46
- * properties used to qualify the lookup.
47
- *
48
- * @param name The _unique_ name of the resulting resource.
49
- * @param id The _unique_ provider ID of the resource to lookup.
50
- * @param state Any extra arguments used during the lookup.
51
- * @param opts Optional settings to control the behavior of the CustomResource.
52
- */
53
- static get(name, id, state, opts) {
54
- return new ExternalTableGrant(name, state, Object.assign(Object.assign({}, opts), { id: id }));
55
- }
56
- /**
57
- * Returns true if the given object is an instance of ExternalTableGrant. This is designed to work even
58
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
59
- */
60
- static isInstance(obj) {
61
- if (obj === undefined || obj === null) {
62
- return false;
63
- }
64
- return obj['__pulumiType'] === ExternalTableGrant.__pulumiType;
65
- }
66
- constructor(name, argsOrState, opts) {
67
- let resourceInputs = {};
68
- opts = opts || {};
69
- if (opts.id) {
70
- const state = argsOrState;
71
- resourceInputs["databaseName"] = state ? state.databaseName : undefined;
72
- resourceInputs["enableMultipleGrants"] = state ? state.enableMultipleGrants : undefined;
73
- resourceInputs["externalTableName"] = state ? state.externalTableName : undefined;
74
- resourceInputs["onAll"] = state ? state.onAll : undefined;
75
- resourceInputs["onFuture"] = state ? state.onFuture : undefined;
76
- resourceInputs["privilege"] = state ? state.privilege : undefined;
77
- resourceInputs["revertOwnershipToRoleName"] = state ? state.revertOwnershipToRoleName : undefined;
78
- resourceInputs["roles"] = state ? state.roles : undefined;
79
- resourceInputs["schemaName"] = state ? state.schemaName : undefined;
80
- resourceInputs["shares"] = state ? state.shares : undefined;
81
- resourceInputs["withGrantOption"] = state ? state.withGrantOption : undefined;
82
- }
83
- else {
84
- const args = argsOrState;
85
- if ((!args || args.databaseName === undefined) && !opts.urn) {
86
- throw new Error("Missing required property 'databaseName'");
87
- }
88
- if ((!args || args.roles === undefined) && !opts.urn) {
89
- throw new Error("Missing required property 'roles'");
90
- }
91
- resourceInputs["databaseName"] = args ? args.databaseName : undefined;
92
- resourceInputs["enableMultipleGrants"] = args ? args.enableMultipleGrants : undefined;
93
- resourceInputs["externalTableName"] = args ? args.externalTableName : undefined;
94
- resourceInputs["onAll"] = args ? args.onAll : undefined;
95
- resourceInputs["onFuture"] = args ? args.onFuture : undefined;
96
- resourceInputs["privilege"] = args ? args.privilege : undefined;
97
- resourceInputs["revertOwnershipToRoleName"] = args ? args.revertOwnershipToRoleName : undefined;
98
- resourceInputs["roles"] = args ? args.roles : undefined;
99
- resourceInputs["schemaName"] = args ? args.schemaName : undefined;
100
- resourceInputs["shares"] = args ? args.shares : undefined;
101
- resourceInputs["withGrantOption"] = args ? args.withGrantOption : undefined;
102
- }
103
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
104
- super(ExternalTableGrant.__pulumiType, name, resourceInputs, opts);
105
- }
106
- }
107
- exports.ExternalTableGrant = ExternalTableGrant;
108
- /** @internal */
109
- ExternalTableGrant.__pulumiType = 'snowflake:index/externalTableGrant:ExternalTableGrant';
110
- //# sourceMappingURL=externalTableGrant.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"externalTableGrant.js","sourceRoot":"","sources":["../externalTableGrant.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;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;IAoDD,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,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,sBAAsB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK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,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,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AApHL,gDAqHC;AAvGG,gBAAgB;AACO,+BAAY,GAAG,uDAAuD,CAAC"}
@@ -1,102 +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
- export declare class FailoverGroupGrant extends pulumi.CustomResource {
6
- /**
7
- * Get an existing FailoverGroupGrant resource's state with the given name, ID, and optional extra
8
- * properties used to qualify the lookup.
9
- *
10
- * @param name The _unique_ name of the resulting resource.
11
- * @param id The _unique_ provider ID of the resource to lookup.
12
- * @param state Any extra arguments used during the lookup.
13
- * @param opts Optional settings to control the behavior of the CustomResource.
14
- */
15
- static get(name: string, id: pulumi.Input<pulumi.ID>, state?: FailoverGroupGrantState, opts?: pulumi.CustomResourceOptions): FailoverGroupGrant;
16
- /**
17
- * Returns true if the given object is an instance of FailoverGroupGrant. This is designed to work even
18
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
19
- */
20
- static isInstance(obj: any): obj is FailoverGroupGrant;
21
- readonly enableMultipleGrants: pulumi.Output<boolean | undefined>;
22
- /**
23
- * The name of the failover group on which to grant privileges.
24
- */
25
- readonly failoverGroupName: pulumi.Output<string | undefined>;
26
- /**
27
- * The privilege to grant on the failover group. To grant all privileges, use the value `ALL PRIVILEGES`
28
- */
29
- readonly privilege: pulumi.Output<string | undefined>;
30
- /**
31
- * The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
32
- */
33
- readonly revertOwnershipToRoleName: pulumi.Output<string | undefined>;
34
- /**
35
- * Grants privilege to these roles.
36
- */
37
- readonly roles: pulumi.Output<string[]>;
38
- /**
39
- * When this is set to true, allows the recipient role to grant the privileges to other roles.
40
- */
41
- readonly withGrantOption: pulumi.Output<boolean | undefined>;
42
- /**
43
- * Create a FailoverGroupGrant resource with the given unique name, arguments, and options.
44
- *
45
- * @param name The _unique_ name of the resource.
46
- * @param args The arguments to use to populate this resource's properties.
47
- * @param opts A bag of options that control this resource's behavior.
48
- */
49
- constructor(name: string, args: FailoverGroupGrantArgs, opts?: pulumi.CustomResourceOptions);
50
- }
51
- /**
52
- * Input properties used for looking up and filtering FailoverGroupGrant resources.
53
- */
54
- export interface FailoverGroupGrantState {
55
- enableMultipleGrants?: pulumi.Input<boolean>;
56
- /**
57
- * The name of the failover group on which to grant privileges.
58
- */
59
- failoverGroupName?: pulumi.Input<string>;
60
- /**
61
- * The privilege to grant on the failover group. To grant all privileges, use the value `ALL PRIVILEGES`
62
- */
63
- privilege?: pulumi.Input<string>;
64
- /**
65
- * The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
66
- */
67
- revertOwnershipToRoleName?: pulumi.Input<string>;
68
- /**
69
- * Grants privilege to these roles.
70
- */
71
- roles?: pulumi.Input<pulumi.Input<string>[]>;
72
- /**
73
- * When this is set to true, allows the recipient role to grant the privileges to other roles.
74
- */
75
- withGrantOption?: pulumi.Input<boolean>;
76
- }
77
- /**
78
- * The set of arguments for constructing a FailoverGroupGrant resource.
79
- */
80
- export interface FailoverGroupGrantArgs {
81
- enableMultipleGrants?: pulumi.Input<boolean>;
82
- /**
83
- * The name of the failover group on which to grant privileges.
84
- */
85
- failoverGroupName?: pulumi.Input<string>;
86
- /**
87
- * The privilege to grant on the failover group. To grant all privileges, use the value `ALL PRIVILEGES`
88
- */
89
- privilege?: pulumi.Input<string>;
90
- /**
91
- * The name of the role to revert ownership to on destroy. Has no effect unless `privilege` is set to `OWNERSHIP`
92
- */
93
- revertOwnershipToRoleName?: pulumi.Input<string>;
94
- /**
95
- * Grants privilege to these roles.
96
- */
97
- roles: pulumi.Input<pulumi.Input<string>[]>;
98
- /**
99
- * When this is set to true, allows the recipient role to grant the privileges to other roles.
100
- */
101
- withGrantOption?: pulumi.Input<boolean>;
102
- }