@pulumi/snowflake 0.52.0 → 0.52.1-alpha.1713904889
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/account.d.ts +1 -5
- package/account.js +1 -5
- package/account.js.map +1 -1
- package/accountGrant.d.ts +1 -3
- package/accountGrant.js +1 -3
- package/accountGrant.js.map +1 -1
- package/accountParameter.d.ts +1 -3
- package/accountParameter.js +1 -3
- package/accountParameter.js.map +1 -1
- package/accountPasswordPolicyAttachment.d.ts +1 -2
- package/accountPasswordPolicyAttachment.js +1 -2
- package/accountPasswordPolicyAttachment.js.map +1 -1
- package/alert.d.ts +6 -7
- package/alert.js +6 -7
- package/alert.js.map +1 -1
- package/apiIntegration.d.ts +9 -8
- package/apiIntegration.js +9 -8
- package/apiIntegration.js.map +1 -1
- package/database.d.ts +7 -5
- package/database.js +7 -5
- package/database.js.map +1 -1
- package/databaseGrant.d.ts +0 -2
- package/databaseGrant.js +0 -2
- package/databaseGrant.js.map +1 -1
- package/databaseRole.d.ts +3 -4
- package/databaseRole.js +3 -4
- package/databaseRole.js.map +1 -1
- package/dynamicTable.d.ts +3 -4
- package/dynamicTable.js +3 -4
- package/dynamicTable.js.map +1 -1
- package/emailNotificationIntegration.d.ts +3 -4
- package/emailNotificationIntegration.js +3 -4
- package/emailNotificationIntegration.js.map +1 -1
- package/externalFunction.d.ts +9 -10
- package/externalFunction.js +6 -7
- package/externalFunction.js.map +1 -1
- package/externalOauthIntegration.d.ts +4 -5
- package/externalOauthIntegration.js +4 -5
- package/externalOauthIntegration.js.map +1 -1
- package/externalTable.d.ts +15 -16
- package/externalTable.js +6 -7
- package/externalTable.js.map +1 -1
- package/externalTableGrant.d.ts +2 -4
- package/externalTableGrant.js +2 -4
- package/externalTableGrant.js.map +1 -1
- package/failoverGroup.d.ts +13 -14
- package/failoverGroup.js +10 -11
- package/failoverGroup.js.map +1 -1
- package/fileFormat.d.ts +3 -4
- package/fileFormat.js +3 -4
- package/fileFormat.js.map +1 -1
- package/fileFormatGrant.d.ts +2 -4
- package/fileFormatGrant.js +2 -4
- package/fileFormatGrant.js.map +1 -1
- package/function.d.ts +3 -3
- package/functionGrant.d.ts +4 -6
- package/functionGrant.js +4 -6
- package/functionGrant.js.map +1 -1
- package/getAlerts.d.ts +0 -4
- package/getAlerts.js +0 -4
- package/getAlerts.js.map +1 -1
- package/getCurrentAccount.d.ts +8 -10
- package/getCurrentAccount.js +8 -10
- package/getCurrentAccount.js.map +1 -1
- package/getDatabase.d.ts +0 -4
- package/getDatabase.js +0 -4
- package/getDatabase.js.map +1 -1
- package/getDatabaseRoles.d.ts +0 -4
- package/getDatabaseRoles.js +0 -4
- package/getDatabaseRoles.js.map +1 -1
- package/getDatabases.d.ts +0 -4
- package/getDatabases.js +0 -4
- package/getDatabases.js.map +1 -1
- package/getExternalFunctions.d.ts +12 -4
- package/getExternalFunctions.js +0 -4
- package/getExternalFunctions.js.map +1 -1
- package/getExternalTables.d.ts +12 -4
- package/getExternalTables.js +0 -4
- package/getExternalTables.js.map +1 -1
- package/getFileFormats.d.ts +12 -4
- package/getFileFormats.js +0 -4
- package/getFileFormats.js.map +1 -1
- package/getFunctions.d.ts +12 -4
- package/getFunctions.js +0 -4
- package/getFunctions.js.map +1 -1
- package/getGrants.d.ts +42 -4
- package/getGrants.js +42 -4
- package/getGrants.js.map +1 -1
- package/getMaskingPolicies.d.ts +12 -4
- package/getMaskingPolicies.js +0 -4
- package/getMaskingPolicies.js.map +1 -1
- package/getMaterializedViews.d.ts +12 -4
- package/getMaterializedViews.js +0 -4
- package/getMaterializedViews.js.map +1 -1
- package/getParameters.d.ts +12 -10
- package/getParameters.js +12 -10
- package/getParameters.js.map +1 -1
- package/getPipes.d.ts +12 -4
- package/getPipes.js +0 -4
- package/getPipes.js.map +1 -1
- package/getProcedures.d.ts +12 -4
- package/getProcedures.js +0 -4
- package/getProcedures.js.map +1 -1
- package/getResourceMonitors.d.ts +0 -4
- package/getResourceMonitors.js +0 -4
- package/getResourceMonitors.js.map +1 -1
- package/getRole.d.ts +0 -4
- package/getRole.js +0 -4
- package/getRole.js.map +1 -1
- package/getRoles.d.ts +0 -4
- package/getRoles.js +0 -4
- package/getRoles.js.map +1 -1
- package/getRowAccessPolicies.d.ts +12 -4
- package/getRowAccessPolicies.js +0 -4
- package/getRowAccessPolicies.js.map +1 -1
- package/getSchemas.d.ts +6 -4
- package/getSchemas.js +0 -4
- package/getSchemas.js.map +1 -1
- package/getSequences.d.ts +12 -4
- package/getSequences.js +0 -4
- package/getSequences.js.map +1 -1
- package/getShares.d.ts +0 -4
- package/getShares.js +0 -4
- package/getShares.js.map +1 -1
- package/getStages.d.ts +12 -4
- package/getStages.js +0 -4
- package/getStages.js.map +1 -1
- package/getStorageIntegrations.d.ts +0 -4
- package/getStorageIntegrations.js +0 -4
- package/getStorageIntegrations.js.map +1 -1
- package/getStreams.d.ts +12 -4
- package/getStreams.js +0 -4
- package/getStreams.js.map +1 -1
- package/getSystemGenerateScimAccessToken.d.ts +0 -4
- package/getSystemGenerateScimAccessToken.js +0 -4
- package/getSystemGenerateScimAccessToken.js.map +1 -1
- package/getSystemGetPrivateLinkConfig.d.ts +106 -0
- package/getSystemGetPrivateLinkConfig.js +106 -0
- package/getSystemGetPrivateLinkConfig.js.map +1 -1
- package/getTables.d.ts +12 -4
- package/getTables.js +0 -4
- package/getTables.js.map +1 -1
- package/getTasks.d.ts +12 -4
- package/getTasks.js +0 -4
- package/getTasks.js.map +1 -1
- package/getUsers.d.ts +0 -4
- package/getUsers.js +0 -4
- package/getUsers.js.map +1 -1
- package/getViews.d.ts +12 -4
- package/getViews.js +0 -4
- package/getViews.js.map +1 -1
- package/getWarehouses.d.ts +0 -4
- package/getWarehouses.js +0 -4
- package/getWarehouses.js.map +1 -1
- package/grantAccountRole.d.ts +0 -26
- package/grantAccountRole.js +0 -26
- package/grantAccountRole.js.map +1 -1
- package/grantDatabaseRole.d.ts +0 -33
- package/grantDatabaseRole.js +0 -33
- package/grantDatabaseRole.js.map +1 -1
- package/grantPrivilegesToDatabaseRole.d.ts +0 -168
- package/grantPrivilegesToDatabaseRole.js +0 -168
- package/grantPrivilegesToDatabaseRole.js.map +1 -1
- package/grantPrivilegesToRole.d.ts +20 -22
- package/grantPrivilegesToRole.js +20 -22
- package/grantPrivilegesToRole.js.map +1 -1
- package/integrationGrant.d.ts +0 -2
- package/integrationGrant.js +0 -2
- package/integrationGrant.js.map +1 -1
- package/maskingPolicy.d.ts +14 -16
- package/maskingPolicy.js +11 -13
- package/maskingPolicy.js.map +1 -1
- package/maskingPolicyGrant.d.ts +3 -5
- package/maskingPolicyGrant.js +3 -5
- package/maskingPolicyGrant.js.map +1 -1
- package/materializedView.d.ts +10 -11
- package/materializedView.js +1 -2
- package/materializedView.js.map +1 -1
- package/materializedViewGrant.d.ts +2 -4
- package/materializedViewGrant.js +2 -4
- package/materializedViewGrant.js.map +1 -1
- package/networkPolicy.d.ts +2 -3
- package/networkPolicy.js +2 -3
- package/networkPolicy.js.map +1 -1
- package/networkPolicyAttachment.d.ts +0 -2
- package/networkPolicyAttachment.js +0 -2
- package/networkPolicyAttachment.js.map +1 -1
- package/notificationIntegration.d.ts +5 -6
- package/notificationIntegration.js +5 -6
- package/notificationIntegration.js.map +1 -1
- package/oauthIntegration.d.ts +4 -5
- package/oauthIntegration.js +4 -5
- package/oauthIntegration.js.map +1 -1
- package/objectParameter.d.ts +16 -14
- package/objectParameter.js +16 -14
- package/objectParameter.js.map +1 -1
- package/package.json +1 -1
- package/pipeGrant.d.ts +2 -4
- package/pipeGrant.js +2 -4
- package/pipeGrant.js.map +1 -1
- package/procedure.d.ts +3 -3
- package/procedureGrant.d.ts +4 -6
- package/procedureGrant.js +4 -6
- package/procedureGrant.js.map +1 -1
- package/resourceMonitor.d.ts +5 -6
- package/resourceMonitor.js +5 -6
- package/resourceMonitor.js.map +1 -1
- package/resourceMonitorGrant.d.ts +0 -2
- package/resourceMonitorGrant.js +0 -2
- package/resourceMonitorGrant.js.map +1 -1
- package/role.d.ts +4 -12
- package/role.js +4 -3
- package/role.js.map +1 -1
- package/roleGrants.d.ts +13 -6
- package/roleGrants.js +13 -6
- package/roleGrants.js.map +1 -1
- package/roleOwnershipGrant.d.ts +5 -4
- package/roleOwnershipGrant.js +5 -4
- package/roleOwnershipGrant.js.map +1 -1
- package/rowAccessPolicy.d.ts +3 -4
- package/rowAccessPolicy.js +3 -4
- package/rowAccessPolicy.js.map +1 -1
- package/rowAccessPolicyGrant.d.ts +2 -4
- package/rowAccessPolicyGrant.js +2 -4
- package/rowAccessPolicyGrant.js.map +1 -1
- package/samlIntegration.d.ts +4 -5
- package/samlIntegration.js +4 -5
- package/samlIntegration.js.map +1 -1
- package/schema.d.ts +10 -11
- package/schema.js +4 -5
- package/schema.js.map +1 -1
- package/schemaGrant.d.ts +2 -4
- package/schemaGrant.js +2 -4
- package/schemaGrant.js.map +1 -1
- package/scimIntegration.d.ts +1 -2
- package/scimIntegration.js +1 -2
- package/scimIntegration.js.map +1 -1
- package/sequence.d.ts +8 -6
- package/sequence.js +8 -6
- package/sequence.js.map +1 -1
- package/sequenceGrant.d.ts +3 -5
- package/sequenceGrant.js +3 -5
- package/sequenceGrant.js.map +1 -1
- package/sessionParameter.d.ts +3 -5
- package/sessionParameter.js +3 -5
- package/sessionParameter.js.map +1 -1
- package/share.d.ts +2 -3
- package/share.js +2 -3
- package/share.js.map +1 -1
- package/stage.d.ts +13 -14
- package/stage.js +4 -5
- package/stage.js.map +1 -1
- package/stageGrant.d.ts +3 -5
- package/stageGrant.js +3 -5
- package/stageGrant.js.map +1 -1
- package/streamGrant.d.ts +3 -5
- package/streamGrant.js +3 -5
- package/streamGrant.js.map +1 -1
- package/table.d.ts +75 -12
- package/table.js +63 -0
- package/table.js.map +1 -1
- package/tableConstraint.d.ts +27 -21
- package/tableConstraint.js +21 -15
- package/tableConstraint.js.map +1 -1
- package/tableGrant.d.ts +3 -5
- package/tableGrant.js +3 -5
- package/tableGrant.js.map +1 -1
- package/tag.d.ts +6 -4
- package/tag.js +6 -4
- package/tag.js.map +1 -1
- package/tagAssociation.d.ts +18 -15
- package/tagAssociation.js +18 -15
- package/tagAssociation.js.map +1 -1
- package/tagGrant.d.ts +2 -4
- package/tagGrant.js +2 -4
- package/tagGrant.js.map +1 -1
- package/task.d.ts +5 -4
- package/task.js +5 -4
- package/task.js.map +1 -1
- package/taskGrant.d.ts +3 -5
- package/taskGrant.js +3 -5
- package/taskGrant.js.map +1 -1
- package/types/input.d.ts +3 -3
- package/types/output.d.ts +3 -3
- package/user.d.ts +7 -8
- package/user.js +7 -8
- package/user.js.map +1 -1
- package/userGrant.d.ts +1 -3
- package/userGrant.js +1 -3
- package/userGrant.js.map +1 -1
- package/view.d.ts +10 -11
- package/view.js +1 -2
- package/view.js.map +1 -1
- package/viewGrant.d.ts +8 -8
- package/viewGrant.js +8 -8
- package/warehouse.d.ts +1 -2
- package/warehouse.js +1 -2
- package/warehouse.js.map +1 -1
- package/warehouseGrant.d.ts +1 -3
- package/warehouseGrant.js +1 -3
- package/warehouseGrant.js.map +1 -1
package/grantAccountRole.d.ts
CHANGED
|
@@ -2,32 +2,6 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* ## Example Usage
|
|
4
4
|
*
|
|
5
|
-
* <!--Start PulumiCodeChooser -->
|
|
6
|
-
* ```typescript
|
|
7
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
8
|
-
* import * as snowflake from "@pulumi/snowflake";
|
|
9
|
-
*
|
|
10
|
-
* //#################################
|
|
11
|
-
* //## grant account role to account role
|
|
12
|
-
* //#################################
|
|
13
|
-
* const roleRole = new snowflake.Role("roleRole", {});
|
|
14
|
-
* const parentRole = new snowflake.Role("parentRole", {});
|
|
15
|
-
* const grantAccountRole = new snowflake.GrantAccountRole("grantAccountRole", {
|
|
16
|
-
* roleName: roleRole.name,
|
|
17
|
-
* parentRoleName: parentRole.name,
|
|
18
|
-
* });
|
|
19
|
-
* //#################################
|
|
20
|
-
* //## grant account role to user
|
|
21
|
-
* //#################################
|
|
22
|
-
* const roleIndex_roleRole = new snowflake.Role("roleIndex/roleRole", {});
|
|
23
|
-
* const user = new snowflake.User("user", {});
|
|
24
|
-
* const index_grantAccountRoleGrantAccountRole = new snowflake.GrantAccountRole("index/grantAccountRoleGrantAccountRole", {
|
|
25
|
-
* roleName: roleRole.name,
|
|
26
|
-
* userName: user.name,
|
|
27
|
-
* });
|
|
28
|
-
* ```
|
|
29
|
-
* <!--End PulumiCodeChooser -->
|
|
30
|
-
*
|
|
31
5
|
* ## Import
|
|
32
6
|
*
|
|
33
7
|
* format is role_name (string) | grantee_object_type (ROLE|USER) | grantee_name (string)
|
package/grantAccountRole.js
CHANGED
|
@@ -8,32 +8,6 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* ## Example Usage
|
|
10
10
|
*
|
|
11
|
-
* <!--Start PulumiCodeChooser -->
|
|
12
|
-
* ```typescript
|
|
13
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
-
* import * as snowflake from "@pulumi/snowflake";
|
|
15
|
-
*
|
|
16
|
-
* //#################################
|
|
17
|
-
* //## grant account role to account role
|
|
18
|
-
* //#################################
|
|
19
|
-
* const roleRole = new snowflake.Role("roleRole", {});
|
|
20
|
-
* const parentRole = new snowflake.Role("parentRole", {});
|
|
21
|
-
* const grantAccountRole = new snowflake.GrantAccountRole("grantAccountRole", {
|
|
22
|
-
* roleName: roleRole.name,
|
|
23
|
-
* parentRoleName: parentRole.name,
|
|
24
|
-
* });
|
|
25
|
-
* //#################################
|
|
26
|
-
* //## grant account role to user
|
|
27
|
-
* //#################################
|
|
28
|
-
* const roleIndex_roleRole = new snowflake.Role("roleIndex/roleRole", {});
|
|
29
|
-
* const user = new snowflake.User("user", {});
|
|
30
|
-
* const index_grantAccountRoleGrantAccountRole = new snowflake.GrantAccountRole("index/grantAccountRoleGrantAccountRole", {
|
|
31
|
-
* roleName: roleRole.name,
|
|
32
|
-
* userName: user.name,
|
|
33
|
-
* });
|
|
34
|
-
* ```
|
|
35
|
-
* <!--End PulumiCodeChooser -->
|
|
36
|
-
*
|
|
37
11
|
* ## Import
|
|
38
12
|
*
|
|
39
13
|
* format is role_name (string) | grantee_object_type (ROLE|USER) | grantee_name (string)
|
package/grantAccountRole.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grantAccountRole.js","sourceRoot":"","sources":["../grantAccountRole.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"grantAccountRole.js","sourceRoot":"","sources":["../grantAccountRole.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACvE,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,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAAC;IAuBD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAgD,CAA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2
|
/**
|
|
3
3
|
* ## Example Usage
|
|
4
4
|
*
|
|
5
|
-
* <!--Start PulumiCodeChooser -->
|
|
6
|
-
* ```typescript
|
|
7
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
8
|
-
* import * as snowflake from "@pulumi/snowflake";
|
|
9
|
-
*
|
|
10
|
-
* //#################################
|
|
11
|
-
* //## grant database role to account role
|
|
12
|
-
* //#################################
|
|
13
|
-
* const databaseRoleDatabaseRole = new snowflake.DatabaseRole("databaseRoleDatabaseRole", {database: _var.database});
|
|
14
|
-
* const parentRole = new snowflake.Role("parentRole", {});
|
|
15
|
-
* const grantDatabaseRole = new snowflake.GrantDatabaseRole("grantDatabaseRole", {
|
|
16
|
-
* databaseRoleName: pulumi.interpolate`"${_var.database}"."${databaseRoleDatabaseRole.name}"`,
|
|
17
|
-
* parentRoleName: parentRole.name,
|
|
18
|
-
* });
|
|
19
|
-
* //#################################
|
|
20
|
-
* //## grant database role to database role
|
|
21
|
-
* //#################################
|
|
22
|
-
* const databaseRoleIndex_databaseRoleDatabaseRole = new snowflake.DatabaseRole("databaseRoleIndex/databaseRoleDatabaseRole", {database: _var.database});
|
|
23
|
-
* const parentDatabaseRole = new snowflake.DatabaseRole("parentDatabaseRole", {database: _var.database});
|
|
24
|
-
* const index_grantDatabaseRoleGrantDatabaseRole = new snowflake.GrantDatabaseRole("index/grantDatabaseRoleGrantDatabaseRole", {
|
|
25
|
-
* databaseRoleName: pulumi.interpolate`"${_var.database}"."${databaseRoleDatabaseRole.name}"`,
|
|
26
|
-
* parentDatabaseRoleName: pulumi.interpolate`"${_var.database}"."${parentDatabaseRole.name}"`,
|
|
27
|
-
* });
|
|
28
|
-
* //#################################
|
|
29
|
-
* //## grant database role to share
|
|
30
|
-
* //#################################
|
|
31
|
-
* const snowflakeIndex_grantDatabaseRoleGrantDatabaseRole = new snowflake.GrantDatabaseRole("snowflakeIndex/grantDatabaseRoleGrantDatabaseRole", {
|
|
32
|
-
* databaseRoleName: pulumi.interpolate`"${_var.database}"."${databaseRoleDatabaseRole.name}"`,
|
|
33
|
-
* shareName: snowflake_share.share.name,
|
|
34
|
-
* });
|
|
35
|
-
* ```
|
|
36
|
-
* <!--End PulumiCodeChooser -->
|
|
37
|
-
*
|
|
38
5
|
* ## Import
|
|
39
6
|
*
|
|
40
7
|
* format is database_role_name (string) | object_type (ROLE|DATABASE ROLE|SHARE) | grantee_name (string)
|
package/grantDatabaseRole.js
CHANGED
|
@@ -8,39 +8,6 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* ## Example Usage
|
|
10
10
|
*
|
|
11
|
-
* <!--Start PulumiCodeChooser -->
|
|
12
|
-
* ```typescript
|
|
13
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
-
* import * as snowflake from "@pulumi/snowflake";
|
|
15
|
-
*
|
|
16
|
-
* //#################################
|
|
17
|
-
* //## grant database role to account role
|
|
18
|
-
* //#################################
|
|
19
|
-
* const databaseRoleDatabaseRole = new snowflake.DatabaseRole("databaseRoleDatabaseRole", {database: _var.database});
|
|
20
|
-
* const parentRole = new snowflake.Role("parentRole", {});
|
|
21
|
-
* const grantDatabaseRole = new snowflake.GrantDatabaseRole("grantDatabaseRole", {
|
|
22
|
-
* databaseRoleName: pulumi.interpolate`"${_var.database}"."${databaseRoleDatabaseRole.name}"`,
|
|
23
|
-
* parentRoleName: parentRole.name,
|
|
24
|
-
* });
|
|
25
|
-
* //#################################
|
|
26
|
-
* //## grant database role to database role
|
|
27
|
-
* //#################################
|
|
28
|
-
* const databaseRoleIndex_databaseRoleDatabaseRole = new snowflake.DatabaseRole("databaseRoleIndex/databaseRoleDatabaseRole", {database: _var.database});
|
|
29
|
-
* const parentDatabaseRole = new snowflake.DatabaseRole("parentDatabaseRole", {database: _var.database});
|
|
30
|
-
* const index_grantDatabaseRoleGrantDatabaseRole = new snowflake.GrantDatabaseRole("index/grantDatabaseRoleGrantDatabaseRole", {
|
|
31
|
-
* databaseRoleName: pulumi.interpolate`"${_var.database}"."${databaseRoleDatabaseRole.name}"`,
|
|
32
|
-
* parentDatabaseRoleName: pulumi.interpolate`"${_var.database}"."${parentDatabaseRole.name}"`,
|
|
33
|
-
* });
|
|
34
|
-
* //#################################
|
|
35
|
-
* //## grant database role to share
|
|
36
|
-
* //#################################
|
|
37
|
-
* const snowflakeIndex_grantDatabaseRoleGrantDatabaseRole = new snowflake.GrantDatabaseRole("snowflakeIndex/grantDatabaseRoleGrantDatabaseRole", {
|
|
38
|
-
* databaseRoleName: pulumi.interpolate`"${_var.database}"."${databaseRoleDatabaseRole.name}"`,
|
|
39
|
-
* shareName: snowflake_share.share.name,
|
|
40
|
-
* });
|
|
41
|
-
* ```
|
|
42
|
-
* <!--End PulumiCodeChooser -->
|
|
43
|
-
*
|
|
44
11
|
* ## Import
|
|
45
12
|
*
|
|
46
13
|
* format is database_role_name (string) | object_type (ROLE|DATABASE ROLE|SHARE) | grantee_name (string)
|
package/grantDatabaseRole.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grantDatabaseRole.js","sourceRoot":"","sources":["../grantDatabaseRole.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"grantDatabaseRole.js","sourceRoot":"","sources":["../grantDatabaseRole.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;GAUG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,CAAC;IAKD;;;OAGG;IACI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AAC,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1F,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;;AA1EL,8CA2EC;AA7DG,gBAAgB;AACO,8BAAY,GAAG,qDAAqD,CAAC"}
|
|
@@ -6,174 +6,6 @@ import * as outputs from "./types/output";
|
|
|
6
6
|
*
|
|
7
7
|
* !> **Warning** Be careful when using `alwaysApply` field. It will always produce a plan (even when no changes were made) and can be harmful in some setups. For more details why we decided to introduce it to go our document explaining those design decisions (coming soon).
|
|
8
8
|
*
|
|
9
|
-
* ## Example Usage
|
|
10
|
-
*
|
|
11
|
-
* <!--Start PulumiCodeChooser -->
|
|
12
|
-
* ```typescript
|
|
13
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
14
|
-
* import * as snowflake from "@pulumi/snowflake";
|
|
15
|
-
*
|
|
16
|
-
* const dbRole = new snowflake.DatabaseRole("dbRole", {database: "database"});
|
|
17
|
-
* //#################################
|
|
18
|
-
* //## on database privileges
|
|
19
|
-
* //#################################
|
|
20
|
-
* // list of privileges
|
|
21
|
-
* const exampleGrantPrivilegesToDatabaseRole = new snowflake.GrantPrivilegesToDatabaseRole("exampleGrantPrivilegesToDatabaseRole", {
|
|
22
|
-
* privileges: [
|
|
23
|
-
* "CREATE",
|
|
24
|
-
* "MONITOR",
|
|
25
|
-
* ],
|
|
26
|
-
* databaseRoleName: pulumi.interpolate`"${dbRole.database}"."${dbRole.name}"`,
|
|
27
|
-
* onDatabase: dbRole.database,
|
|
28
|
-
* });
|
|
29
|
-
* // all privileges + grant option
|
|
30
|
-
* const exampleIndex_grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole = new snowflake.GrantPrivilegesToDatabaseRole("exampleIndex/grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole", {
|
|
31
|
-
* databaseRoleName: pulumi.interpolate`"${dbRole.database}"."${dbRole.name}"`,
|
|
32
|
-
* onDatabase: dbRole.database,
|
|
33
|
-
* allPrivileges: true,
|
|
34
|
-
* withGrantOption: true,
|
|
35
|
-
* });
|
|
36
|
-
* // all privileges + grant option + always apply
|
|
37
|
-
* const exampleSnowflakeIndex_grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole = new snowflake.GrantPrivilegesToDatabaseRole("exampleSnowflakeIndex/grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole", {
|
|
38
|
-
* databaseRoleName: pulumi.interpolate`"${dbRole.database}"."${dbRole.name}"`,
|
|
39
|
-
* onDatabase: dbRole.database,
|
|
40
|
-
* alwaysApply: true,
|
|
41
|
-
* allPrivileges: true,
|
|
42
|
-
* withGrantOption: true,
|
|
43
|
-
* });
|
|
44
|
-
* //#################################
|
|
45
|
-
* //## schema privileges
|
|
46
|
-
* //#################################
|
|
47
|
-
* // list of privileges
|
|
48
|
-
* const exampleSnowflakeIndex_grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole1 = new snowflake.GrantPrivilegesToDatabaseRole("exampleSnowflakeIndex/grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole1", {
|
|
49
|
-
* privileges: [
|
|
50
|
-
* "MODIFY",
|
|
51
|
-
* "CREATE TABLE",
|
|
52
|
-
* ],
|
|
53
|
-
* databaseRoleName: pulumi.interpolate`"${dbRole.database}"."${dbRole.name}"`,
|
|
54
|
-
* onSchema: {
|
|
55
|
-
* schemaName: pulumi.interpolate`"${dbRole.database}"."my_schema"`,
|
|
56
|
-
* },
|
|
57
|
-
* });
|
|
58
|
-
* // all privileges + grant option
|
|
59
|
-
* const exampleSnowflakeIndex_grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole2 = new snowflake.GrantPrivilegesToDatabaseRole("exampleSnowflakeIndex/grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole2", {
|
|
60
|
-
* databaseRoleName: pulumi.interpolate`"${dbRole.database}"."${dbRole.name}"`,
|
|
61
|
-
* onSchema: {
|
|
62
|
-
* schemaName: pulumi.interpolate`"${dbRole.database}"."my_schema"`,
|
|
63
|
-
* },
|
|
64
|
-
* allPrivileges: true,
|
|
65
|
-
* withGrantOption: true,
|
|
66
|
-
* });
|
|
67
|
-
* // all schemas in database
|
|
68
|
-
* const exampleSnowflakeIndex_grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole3 = new snowflake.GrantPrivilegesToDatabaseRole("exampleSnowflakeIndex/grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole3", {
|
|
69
|
-
* privileges: [
|
|
70
|
-
* "MODIFY",
|
|
71
|
-
* "CREATE TABLE",
|
|
72
|
-
* ],
|
|
73
|
-
* databaseRoleName: pulumi.interpolate`"${dbRole.database}"."${dbRole.name}"`,
|
|
74
|
-
* onSchema: {
|
|
75
|
-
* allSchemasInDatabase: dbRole.database,
|
|
76
|
-
* },
|
|
77
|
-
* });
|
|
78
|
-
* // future schemas in database
|
|
79
|
-
* const exampleSnowflakeIndex_grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole4 = new snowflake.GrantPrivilegesToDatabaseRole("exampleSnowflakeIndex/grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole4", {
|
|
80
|
-
* privileges: [
|
|
81
|
-
* "MODIFY",
|
|
82
|
-
* "CREATE TABLE",
|
|
83
|
-
* ],
|
|
84
|
-
* databaseRoleName: pulumi.interpolate`"${dbRole.database}"."${dbRole.name}"`,
|
|
85
|
-
* onSchema: {
|
|
86
|
-
* futureSchemasInDatabase: dbRole.database,
|
|
87
|
-
* },
|
|
88
|
-
* });
|
|
89
|
-
* //#################################
|
|
90
|
-
* //## schema object privileges
|
|
91
|
-
* //#################################
|
|
92
|
-
* // list of privileges
|
|
93
|
-
* const exampleSnowflakeIndex_grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole5 = new snowflake.GrantPrivilegesToDatabaseRole("exampleSnowflakeIndex/grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole5", {
|
|
94
|
-
* privileges: [
|
|
95
|
-
* "SELECT",
|
|
96
|
-
* "REFERENCES",
|
|
97
|
-
* ],
|
|
98
|
-
* databaseRoleName: pulumi.interpolate`"${dbRole.database}"."${dbRole.name}"`,
|
|
99
|
-
* onSchemaObject: {
|
|
100
|
-
* objectType: "VIEW",
|
|
101
|
-
* objectName: pulumi.interpolate`"${dbRole.database}"."my_schema"."my_view"`,
|
|
102
|
-
* },
|
|
103
|
-
* });
|
|
104
|
-
* // all privileges + grant option
|
|
105
|
-
* const exampleSnowflakeIndex_grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole6 = new snowflake.GrantPrivilegesToDatabaseRole("exampleSnowflakeIndex/grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole6", {
|
|
106
|
-
* databaseRoleName: pulumi.interpolate`"${dbRole.database}"."${dbRole.name}"`,
|
|
107
|
-
* onSchemaObject: {
|
|
108
|
-
* objectType: "VIEW",
|
|
109
|
-
* objectName: pulumi.interpolate`"${dbRole.database}"."my_schema"."my_view"`,
|
|
110
|
-
* },
|
|
111
|
-
* allPrivileges: true,
|
|
112
|
-
* withGrantOption: true,
|
|
113
|
-
* });
|
|
114
|
-
* // all in database
|
|
115
|
-
* const exampleSnowflakeIndex_grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole7 = new snowflake.GrantPrivilegesToDatabaseRole("exampleSnowflakeIndex/grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole7", {
|
|
116
|
-
* privileges: [
|
|
117
|
-
* "SELECT",
|
|
118
|
-
* "INSERT",
|
|
119
|
-
* ],
|
|
120
|
-
* databaseRoleName: pulumi.interpolate`"${dbRole.database}"."${dbRole.name}"`,
|
|
121
|
-
* onSchemaObject: {
|
|
122
|
-
* all: {
|
|
123
|
-
* objectTypePlural: "TABLES",
|
|
124
|
-
* inDatabase: dbRole.database,
|
|
125
|
-
* },
|
|
126
|
-
* },
|
|
127
|
-
* });
|
|
128
|
-
* // all in schema
|
|
129
|
-
* const exampleSnowflakeIndex_grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole8 = new snowflake.GrantPrivilegesToDatabaseRole("exampleSnowflakeIndex/grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole8", {
|
|
130
|
-
* privileges: [
|
|
131
|
-
* "SELECT",
|
|
132
|
-
* "INSERT",
|
|
133
|
-
* ],
|
|
134
|
-
* databaseRoleName: pulumi.interpolate`"${dbRole.database}"."${dbRole.name}"`,
|
|
135
|
-
* onSchemaObject: {
|
|
136
|
-
* all: {
|
|
137
|
-
* objectTypePlural: "TABLES",
|
|
138
|
-
* inSchema: pulumi.interpolate`"${dbRole.database}"."my_schema"`,
|
|
139
|
-
* },
|
|
140
|
-
* },
|
|
141
|
-
* });
|
|
142
|
-
* // future in database
|
|
143
|
-
* const exampleSnowflakeIndex_grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole9 = new snowflake.GrantPrivilegesToDatabaseRole("exampleSnowflakeIndex/grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole9", {
|
|
144
|
-
* privileges: [
|
|
145
|
-
* "SELECT",
|
|
146
|
-
* "INSERT",
|
|
147
|
-
* ],
|
|
148
|
-
* databaseRoleName: pulumi.interpolate`"${dbRole.database}"."${dbRole.name}"`,
|
|
149
|
-
* onSchemaObject: {
|
|
150
|
-
* future: {
|
|
151
|
-
* objectTypePlural: "TABLES",
|
|
152
|
-
* inDatabase: dbRole.database,
|
|
153
|
-
* },
|
|
154
|
-
* },
|
|
155
|
-
* });
|
|
156
|
-
* // future in schema
|
|
157
|
-
* const exampleSnowflakeIndex_grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole10 = new snowflake.GrantPrivilegesToDatabaseRole("exampleSnowflakeIndex/grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole10", {
|
|
158
|
-
* privileges: [
|
|
159
|
-
* "SELECT",
|
|
160
|
-
* "INSERT",
|
|
161
|
-
* ],
|
|
162
|
-
* databaseRoleName: pulumi.interpolate`"${dbRole.database}"."${dbRole.name}"`,
|
|
163
|
-
* onSchemaObject: {
|
|
164
|
-
* future: {
|
|
165
|
-
* objectTypePlural: "TABLES",
|
|
166
|
-
* inSchema: pulumi.interpolate`"${dbRole.database}"."my_schema"`,
|
|
167
|
-
* },
|
|
168
|
-
* },
|
|
169
|
-
* });
|
|
170
|
-
* ```
|
|
171
|
-
* <!--End PulumiCodeChooser -->
|
|
172
|
-
*
|
|
173
|
-
* ## Import
|
|
174
|
-
*
|
|
175
|
-
* ### Import examples
|
|
176
|
-
*
|
|
177
9
|
* #### Grant all privileges OnDatabase
|
|
178
10
|
*
|
|
179
11
|
* ```sh
|
|
@@ -10,174 +10,6 @@ const utilities = require("./utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* !> **Warning** Be careful when using `alwaysApply` field. It will always produce a plan (even when no changes were made) and can be harmful in some setups. For more details why we decided to introduce it to go our document explaining those design decisions (coming soon).
|
|
12
12
|
*
|
|
13
|
-
* ## Example Usage
|
|
14
|
-
*
|
|
15
|
-
* <!--Start PulumiCodeChooser -->
|
|
16
|
-
* ```typescript
|
|
17
|
-
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
-
* import * as snowflake from "@pulumi/snowflake";
|
|
19
|
-
*
|
|
20
|
-
* const dbRole = new snowflake.DatabaseRole("dbRole", {database: "database"});
|
|
21
|
-
* //#################################
|
|
22
|
-
* //## on database privileges
|
|
23
|
-
* //#################################
|
|
24
|
-
* // list of privileges
|
|
25
|
-
* const exampleGrantPrivilegesToDatabaseRole = new snowflake.GrantPrivilegesToDatabaseRole("exampleGrantPrivilegesToDatabaseRole", {
|
|
26
|
-
* privileges: [
|
|
27
|
-
* "CREATE",
|
|
28
|
-
* "MONITOR",
|
|
29
|
-
* ],
|
|
30
|
-
* databaseRoleName: pulumi.interpolate`"${dbRole.database}"."${dbRole.name}"`,
|
|
31
|
-
* onDatabase: dbRole.database,
|
|
32
|
-
* });
|
|
33
|
-
* // all privileges + grant option
|
|
34
|
-
* const exampleIndex_grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole = new snowflake.GrantPrivilegesToDatabaseRole("exampleIndex/grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole", {
|
|
35
|
-
* databaseRoleName: pulumi.interpolate`"${dbRole.database}"."${dbRole.name}"`,
|
|
36
|
-
* onDatabase: dbRole.database,
|
|
37
|
-
* allPrivileges: true,
|
|
38
|
-
* withGrantOption: true,
|
|
39
|
-
* });
|
|
40
|
-
* // all privileges + grant option + always apply
|
|
41
|
-
* const exampleSnowflakeIndex_grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole = new snowflake.GrantPrivilegesToDatabaseRole("exampleSnowflakeIndex/grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole", {
|
|
42
|
-
* databaseRoleName: pulumi.interpolate`"${dbRole.database}"."${dbRole.name}"`,
|
|
43
|
-
* onDatabase: dbRole.database,
|
|
44
|
-
* alwaysApply: true,
|
|
45
|
-
* allPrivileges: true,
|
|
46
|
-
* withGrantOption: true,
|
|
47
|
-
* });
|
|
48
|
-
* //#################################
|
|
49
|
-
* //## schema privileges
|
|
50
|
-
* //#################################
|
|
51
|
-
* // list of privileges
|
|
52
|
-
* const exampleSnowflakeIndex_grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole1 = new snowflake.GrantPrivilegesToDatabaseRole("exampleSnowflakeIndex/grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole1", {
|
|
53
|
-
* privileges: [
|
|
54
|
-
* "MODIFY",
|
|
55
|
-
* "CREATE TABLE",
|
|
56
|
-
* ],
|
|
57
|
-
* databaseRoleName: pulumi.interpolate`"${dbRole.database}"."${dbRole.name}"`,
|
|
58
|
-
* onSchema: {
|
|
59
|
-
* schemaName: pulumi.interpolate`"${dbRole.database}"."my_schema"`,
|
|
60
|
-
* },
|
|
61
|
-
* });
|
|
62
|
-
* // all privileges + grant option
|
|
63
|
-
* const exampleSnowflakeIndex_grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole2 = new snowflake.GrantPrivilegesToDatabaseRole("exampleSnowflakeIndex/grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole2", {
|
|
64
|
-
* databaseRoleName: pulumi.interpolate`"${dbRole.database}"."${dbRole.name}"`,
|
|
65
|
-
* onSchema: {
|
|
66
|
-
* schemaName: pulumi.interpolate`"${dbRole.database}"."my_schema"`,
|
|
67
|
-
* },
|
|
68
|
-
* allPrivileges: true,
|
|
69
|
-
* withGrantOption: true,
|
|
70
|
-
* });
|
|
71
|
-
* // all schemas in database
|
|
72
|
-
* const exampleSnowflakeIndex_grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole3 = new snowflake.GrantPrivilegesToDatabaseRole("exampleSnowflakeIndex/grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole3", {
|
|
73
|
-
* privileges: [
|
|
74
|
-
* "MODIFY",
|
|
75
|
-
* "CREATE TABLE",
|
|
76
|
-
* ],
|
|
77
|
-
* databaseRoleName: pulumi.interpolate`"${dbRole.database}"."${dbRole.name}"`,
|
|
78
|
-
* onSchema: {
|
|
79
|
-
* allSchemasInDatabase: dbRole.database,
|
|
80
|
-
* },
|
|
81
|
-
* });
|
|
82
|
-
* // future schemas in database
|
|
83
|
-
* const exampleSnowflakeIndex_grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole4 = new snowflake.GrantPrivilegesToDatabaseRole("exampleSnowflakeIndex/grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole4", {
|
|
84
|
-
* privileges: [
|
|
85
|
-
* "MODIFY",
|
|
86
|
-
* "CREATE TABLE",
|
|
87
|
-
* ],
|
|
88
|
-
* databaseRoleName: pulumi.interpolate`"${dbRole.database}"."${dbRole.name}"`,
|
|
89
|
-
* onSchema: {
|
|
90
|
-
* futureSchemasInDatabase: dbRole.database,
|
|
91
|
-
* },
|
|
92
|
-
* });
|
|
93
|
-
* //#################################
|
|
94
|
-
* //## schema object privileges
|
|
95
|
-
* //#################################
|
|
96
|
-
* // list of privileges
|
|
97
|
-
* const exampleSnowflakeIndex_grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole5 = new snowflake.GrantPrivilegesToDatabaseRole("exampleSnowflakeIndex/grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole5", {
|
|
98
|
-
* privileges: [
|
|
99
|
-
* "SELECT",
|
|
100
|
-
* "REFERENCES",
|
|
101
|
-
* ],
|
|
102
|
-
* databaseRoleName: pulumi.interpolate`"${dbRole.database}"."${dbRole.name}"`,
|
|
103
|
-
* onSchemaObject: {
|
|
104
|
-
* objectType: "VIEW",
|
|
105
|
-
* objectName: pulumi.interpolate`"${dbRole.database}"."my_schema"."my_view"`,
|
|
106
|
-
* },
|
|
107
|
-
* });
|
|
108
|
-
* // all privileges + grant option
|
|
109
|
-
* const exampleSnowflakeIndex_grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole6 = new snowflake.GrantPrivilegesToDatabaseRole("exampleSnowflakeIndex/grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole6", {
|
|
110
|
-
* databaseRoleName: pulumi.interpolate`"${dbRole.database}"."${dbRole.name}"`,
|
|
111
|
-
* onSchemaObject: {
|
|
112
|
-
* objectType: "VIEW",
|
|
113
|
-
* objectName: pulumi.interpolate`"${dbRole.database}"."my_schema"."my_view"`,
|
|
114
|
-
* },
|
|
115
|
-
* allPrivileges: true,
|
|
116
|
-
* withGrantOption: true,
|
|
117
|
-
* });
|
|
118
|
-
* // all in database
|
|
119
|
-
* const exampleSnowflakeIndex_grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole7 = new snowflake.GrantPrivilegesToDatabaseRole("exampleSnowflakeIndex/grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole7", {
|
|
120
|
-
* privileges: [
|
|
121
|
-
* "SELECT",
|
|
122
|
-
* "INSERT",
|
|
123
|
-
* ],
|
|
124
|
-
* databaseRoleName: pulumi.interpolate`"${dbRole.database}"."${dbRole.name}"`,
|
|
125
|
-
* onSchemaObject: {
|
|
126
|
-
* all: {
|
|
127
|
-
* objectTypePlural: "TABLES",
|
|
128
|
-
* inDatabase: dbRole.database,
|
|
129
|
-
* },
|
|
130
|
-
* },
|
|
131
|
-
* });
|
|
132
|
-
* // all in schema
|
|
133
|
-
* const exampleSnowflakeIndex_grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole8 = new snowflake.GrantPrivilegesToDatabaseRole("exampleSnowflakeIndex/grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole8", {
|
|
134
|
-
* privileges: [
|
|
135
|
-
* "SELECT",
|
|
136
|
-
* "INSERT",
|
|
137
|
-
* ],
|
|
138
|
-
* databaseRoleName: pulumi.interpolate`"${dbRole.database}"."${dbRole.name}"`,
|
|
139
|
-
* onSchemaObject: {
|
|
140
|
-
* all: {
|
|
141
|
-
* objectTypePlural: "TABLES",
|
|
142
|
-
* inSchema: pulumi.interpolate`"${dbRole.database}"."my_schema"`,
|
|
143
|
-
* },
|
|
144
|
-
* },
|
|
145
|
-
* });
|
|
146
|
-
* // future in database
|
|
147
|
-
* const exampleSnowflakeIndex_grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole9 = new snowflake.GrantPrivilegesToDatabaseRole("exampleSnowflakeIndex/grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole9", {
|
|
148
|
-
* privileges: [
|
|
149
|
-
* "SELECT",
|
|
150
|
-
* "INSERT",
|
|
151
|
-
* ],
|
|
152
|
-
* databaseRoleName: pulumi.interpolate`"${dbRole.database}"."${dbRole.name}"`,
|
|
153
|
-
* onSchemaObject: {
|
|
154
|
-
* future: {
|
|
155
|
-
* objectTypePlural: "TABLES",
|
|
156
|
-
* inDatabase: dbRole.database,
|
|
157
|
-
* },
|
|
158
|
-
* },
|
|
159
|
-
* });
|
|
160
|
-
* // future in schema
|
|
161
|
-
* const exampleSnowflakeIndex_grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole10 = new snowflake.GrantPrivilegesToDatabaseRole("exampleSnowflakeIndex/grantPrivilegesToDatabaseRoleGrantPrivilegesToDatabaseRole10", {
|
|
162
|
-
* privileges: [
|
|
163
|
-
* "SELECT",
|
|
164
|
-
* "INSERT",
|
|
165
|
-
* ],
|
|
166
|
-
* databaseRoleName: pulumi.interpolate`"${dbRole.database}"."${dbRole.name}"`,
|
|
167
|
-
* onSchemaObject: {
|
|
168
|
-
* future: {
|
|
169
|
-
* objectTypePlural: "TABLES",
|
|
170
|
-
* inSchema: pulumi.interpolate`"${dbRole.database}"."my_schema"`,
|
|
171
|
-
* },
|
|
172
|
-
* },
|
|
173
|
-
* });
|
|
174
|
-
* ```
|
|
175
|
-
* <!--End PulumiCodeChooser -->
|
|
176
|
-
*
|
|
177
|
-
* ## Import
|
|
178
|
-
*
|
|
179
|
-
* ### Import examples
|
|
180
|
-
*
|
|
181
13
|
* #### Grant all privileges OnDatabase
|
|
182
14
|
*
|
|
183
15
|
* ```sh
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grantPrivilegesToDatabaseRole.js","sourceRoot":"","sources":["../grantPrivilegesToDatabaseRole.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCA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