diff --git a/docs/resources/grant_privileges_to_account_role.md b/docs/resources/grant_privileges_to_account_role.md index 5e44a8c15c..a314c5dd16 100644 --- a/docs/resources/grant_privileges_to_account_role.md +++ b/docs/resources/grant_privileges_to_account_role.md @@ -346,7 +346,7 @@ Optional: Import is supported using the following syntax: -`terraform import "|||||"` +`terraform import snowflake_grant_privileges_to_account_role.example '|||||'` where: - account_role_name - fully qualified identifier @@ -359,62 +359,62 @@ where: It has varying number of parts, depending on grant_type. All the possible types are: ### OnAccount -`terraform import "||||OnAccount` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnAccount'` ### OnAccountObject -`terraform import "||||OnAccountObject||` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnAccountObject||'` ### OnSchema On schema contains inner types for all options. #### OnSchema -`terraform import "||||OnSchema|OnSchema|"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchema|OnSchema|'` #### OnAllSchemasInDatabase -`terraform import "||||OnSchema|OnAllSchemasInDatabase|"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchema|OnAllSchemasInDatabase|'` #### OnFutureSchemasInDatabase -`terraform import "||||OnSchema|OnFutureSchemasInDatabase|"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchema|OnFutureSchemasInDatabase|'` ### OnSchemaObject On schema object contains inner types for all options. #### OnObject -`terraform import "||||OnSchemaObject|OnObject||"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchemaObject|OnObject||'` #### OnAll On all contains inner types for all options. ##### InDatabase -`terraform import "||||OnSchemaObject|OnAll||InDatabase|"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchemaObject|OnAll||InDatabase|'` ##### InSchema -`terraform import "||||OnSchemaObject|OnAll||InSchema|"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchemaObject|OnAll||InSchema|'` #### OnFuture On future contains inner types for all options. ##### InDatabase -`terraform import "||||OnSchemaObject|OnFuture||InDatabase|"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchemaObject|OnFuture||InDatabase|'` ##### InSchema -`terraform import "||||OnSchemaObject|OnFuture||InSchema|"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchemaObject|OnFuture||InSchema|'` ### Import examples #### Grant all privileges OnAccountObject (Database) -`terraform import "\"test_db_role\"|false|false|ALL|OnAccountObject|DATABASE|\"test_db\""` +`terraform import snowflake_grant_privileges_to_account_role.example '"test_db_role"|false|false|ALL|OnAccountObject|DATABASE|"test_db"'` #### Grant list of privileges OnAllSchemasInDatabase -`terraform import "\"test_db_role\"|false|false|CREATE TAG,CREATE TABLE|OnSchema|OnAllSchemasInDatabase|\"test_db\""` +`terraform import snowflake_grant_privileges_to_account_role.example '"test_db_role"|false|false|CREATE TAG,CREATE TABLE|OnSchema|OnAllSchemasInDatabase|"test_db"'` #### Grant list of privileges on table -`terraform import "\"test_db_role\"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnObject|TABLE|\"test_db\".\"test_schema\".\"test_table\""` +`terraform import snowflake_grant_privileges_to_account_role.example '"test_db_role"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnObject|TABLE|"test_db"."test_schema"."test_table"'` #### Grant list of privileges OnAll tables in schema -`terraform import "\"test_db_role\"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnAll|TABLES|InSchema|\"test_db\".\"test_schema\""` +`terraform import snowflake_grant_privileges_to_account_role.example '"test_db_role"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnAll|TABLES|InSchema|"test_db"."test_schema"'` diff --git a/docs/resources/grant_privileges_to_database_role.md b/docs/resources/grant_privileges_to_database_role.md index 332e61eaa9..81f34a561a 100644 --- a/docs/resources/grant_privileges_to_database_role.md +++ b/docs/resources/grant_privileges_to_database_role.md @@ -251,7 +251,7 @@ Optional: Import is supported using the following syntax: -`terraform import "|||||"` +`terraform import snowflake_grant_privileges_to_database_role.example '|||||'` where: - database_role_name - fully qualified identifier @@ -264,59 +264,59 @@ where: It has varying number of parts, depending on grant_type. All the possible types are: ### OnDatabase -`terraform import "||||OnDatabase|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnDatabase|'` ### OnSchema On schema contains inner types for all options. #### OnSchema -`terraform import "||||OnSchema|OnSchema|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchema|OnSchema|'` #### OnAllSchemasInDatabase -`terraform import "||||OnSchema|OnAllSchemasInDatabase|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchema|OnAllSchemasInDatabase|'` #### OnFutureSchemasInDatabase -`terraform import "||||OnSchema|OnFutureSchemasInDatabase|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchema|OnFutureSchemasInDatabase|'` ### OnSchemaObject On schema object contains inner types for all options. #### OnObject -`terraform import "||||OnSchemaObject|OnObject||"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchemaObject|OnObject||'` #### OnAll On all contains inner types for all options. ##### InDatabase -`terraform import "||||OnSchemaObject|OnAll||InDatabase|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchemaObject|OnAll||InDatabase|'` ##### InSchema -`terraform import "||||OnSchemaObject|OnAll||InSchema|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchemaObject|OnAll||InSchema|'` #### OnFuture On future contains inner types for all options. ##### InDatabase -`terraform import "||||OnSchemaObject|OnFuture||InDatabase|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchemaObject|OnFuture||InDatabase|'` ##### InSchema -`terraform import "||||OnSchemaObject|OnFuture||InSchema|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchemaObject|OnFuture||InSchema|'` ### Import examples #### Grant all privileges OnDatabase -`terraform import "\"test_db\".\"test_db_role\"|false|false|ALL|OnDatabase|\"test_db\""` +`terraform import snowflake_grant_privileges_to_database_role.example '"test_db"."test_db_role"|false|false|ALL|OnDatabase|"test_db"'` #### Grant list of privileges OnAllSchemasInDatabase -`terraform import "\"test_db\".\"test_db_role\"|false|false|CREATE TAG,CREATE TABLE|OnSchema|OnAllSchemasInDatabase|\"test_db\""` +`terraform import snowflake_grant_privileges_to_database_role.example '"test_db"."test_db_role"|false|false|CREATE TAG,CREATE TABLE|OnSchema|OnAllSchemasInDatabase|"test_db"'` #### Grant list of privileges on table -`terraform import "\"test_db\".\"test_db_role\"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnObject|TABLE|\"test_db\".\"test_schema\".\"test_table\""` +`terraform import snowflake_grant_privileges_to_database_role.example '"test_db"."test_db_role"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnObject|TABLE|"test_db"."test_schema"."test_table"'` #### Grant list of privileges OnAll tables in schema -`terraform import "\"test_db\".\"test_db_role\"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnAll|TABLES|InSchema|\"test_db\".\"test_schema\""` +`terraform import snowflake_grant_privileges_to_database_role.example '"test_db"."test_db_role"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnAll|TABLES|InSchema|"test_db"."test_schema"'` diff --git a/docs/resources/grant_privileges_to_share.md b/docs/resources/grant_privileges_to_share.md index 6f267e8b09..cbfb9e14fb 100644 --- a/docs/resources/grant_privileges_to_share.md +++ b/docs/resources/grant_privileges_to_share.md @@ -131,7 +131,7 @@ resource "snowflake_grant_privileges_to_share" "example" { Import is supported using the following syntax: -`terraform import "|||"` +`terraform import snowflake_grant_privileges_to_share.example '|||'` where: - share_name - fully qualified identifier @@ -140,19 +140,19 @@ where: - grant_identifier - fully qualified identifier ### OnDatabase -`terraform import "||OnDatabase|"` +`terraform import snowflake_grant_privileges_to_share.example '||OnDatabase|'` ### OnSchema -`terraform import "||OnSchema|."` +`terraform import snowflake_grant_privileges_to_share.example '||OnSchema|.'` ### OnTable -`terraform import "||OnTable|.."` +`terraform import snowflake_grant_privileges_to_share.example '||OnTable|..'` ### OnSchema -`terraform import "||OnAllTablesInSchema|."` +`terraform import snowflake_grant_privileges_to_share.example '||OnAllTablesInSchema|.'` ### OnTag -`terraform import "||OnTag|.."` +`terraform import snowflake_grant_privileges_to_share.example '||OnTag|..'` ### OnView -`terraform import "||OnView|.."` +`terraform import snowflake_grant_privileges_to_share.example '||OnView|..'` diff --git a/templates/resources/grant_privileges_to_account_role.md.tmpl b/templates/resources/grant_privileges_to_account_role.md.tmpl index 9179c4be7b..f58bc379e2 100644 --- a/templates/resources/grant_privileges_to_account_role.md.tmpl +++ b/templates/resources/grant_privileges_to_account_role.md.tmpl @@ -42,7 +42,7 @@ description: |- Import is supported using the following syntax: -`terraform import "|||||"` +`terraform import snowflake_grant_privileges_to_account_role.example '|||||'` where: - account_role_name - fully qualified identifier @@ -55,62 +55,62 @@ where: It has varying number of parts, depending on grant_type. All the possible types are: ### OnAccount -`terraform import "||||OnAccount` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnAccount'` ### OnAccountObject -`terraform import "||||OnAccountObject||` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnAccountObject||'` ### OnSchema On schema contains inner types for all options. #### OnSchema -`terraform import "||||OnSchema|OnSchema|"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchema|OnSchema|'` #### OnAllSchemasInDatabase -`terraform import "||||OnSchema|OnAllSchemasInDatabase|"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchema|OnAllSchemasInDatabase|'` #### OnFutureSchemasInDatabase -`terraform import "||||OnSchema|OnFutureSchemasInDatabase|"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchema|OnFutureSchemasInDatabase|'` ### OnSchemaObject On schema object contains inner types for all options. #### OnObject -`terraform import "||||OnSchemaObject|OnObject||"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchemaObject|OnObject||'` #### OnAll On all contains inner types for all options. ##### InDatabase -`terraform import "||||OnSchemaObject|OnAll||InDatabase|"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchemaObject|OnAll||InDatabase|'` ##### InSchema -`terraform import "||||OnSchemaObject|OnAll||InSchema|"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchemaObject|OnAll||InSchema|'` #### OnFuture On future contains inner types for all options. ##### InDatabase -`terraform import "||||OnSchemaObject|OnFuture||InDatabase|"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchemaObject|OnFuture||InDatabase|'` ##### InSchema -`terraform import "||||OnSchemaObject|OnFuture||InSchema|"` +`terraform import snowflake_grant_privileges_to_account_role.example '||||OnSchemaObject|OnFuture||InSchema|'` ### Import examples #### Grant all privileges OnAccountObject (Database) -`terraform import "\"test_db_role\"|false|false|ALL|OnAccountObject|DATABASE|\"test_db\""` +`terraform import snowflake_grant_privileges_to_account_role.example '"test_db_role"|false|false|ALL|OnAccountObject|DATABASE|"test_db"'` #### Grant list of privileges OnAllSchemasInDatabase -`terraform import "\"test_db_role\"|false|false|CREATE TAG,CREATE TABLE|OnSchema|OnAllSchemasInDatabase|\"test_db\""` +`terraform import snowflake_grant_privileges_to_account_role.example '"test_db_role"|false|false|CREATE TAG,CREATE TABLE|OnSchema|OnAllSchemasInDatabase|"test_db"'` #### Grant list of privileges on table -`terraform import "\"test_db_role\"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnObject|TABLE|\"test_db\".\"test_schema\".\"test_table\""` +`terraform import snowflake_grant_privileges_to_account_role.example '"test_db_role"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnObject|TABLE|"test_db"."test_schema"."test_table"'` #### Grant list of privileges OnAll tables in schema -`terraform import "\"test_db_role\"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnAll|TABLES|InSchema|\"test_db\".\"test_schema\""` +`terraform import snowflake_grant_privileges_to_account_role.example '"test_db_role"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnAll|TABLES|InSchema|"test_db"."test_schema"'` diff --git a/templates/resources/grant_privileges_to_database_role.md.tmpl b/templates/resources/grant_privileges_to_database_role.md.tmpl index 3561437f51..3b3a2fcb70 100644 --- a/templates/resources/grant_privileges_to_database_role.md.tmpl +++ b/templates/resources/grant_privileges_to_database_role.md.tmpl @@ -37,7 +37,7 @@ description: |- Import is supported using the following syntax: -`terraform import "|||||"` +`terraform import snowflake_grant_privileges_to_database_role.example '|||||'` where: - database_role_name - fully qualified identifier @@ -50,59 +50,59 @@ where: It has varying number of parts, depending on grant_type. All the possible types are: ### OnDatabase -`terraform import "||||OnDatabase|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnDatabase|'` ### OnSchema On schema contains inner types for all options. #### OnSchema -`terraform import "||||OnSchema|OnSchema|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchema|OnSchema|'` #### OnAllSchemasInDatabase -`terraform import "||||OnSchema|OnAllSchemasInDatabase|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchema|OnAllSchemasInDatabase|'` #### OnFutureSchemasInDatabase -`terraform import "||||OnSchema|OnFutureSchemasInDatabase|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchema|OnFutureSchemasInDatabase|'` ### OnSchemaObject On schema object contains inner types for all options. #### OnObject -`terraform import "||||OnSchemaObject|OnObject||"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchemaObject|OnObject||'` #### OnAll On all contains inner types for all options. ##### InDatabase -`terraform import "||||OnSchemaObject|OnAll||InDatabase|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchemaObject|OnAll||InDatabase|'` ##### InSchema -`terraform import "||||OnSchemaObject|OnAll||InSchema|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchemaObject|OnAll||InSchema|'` #### OnFuture On future contains inner types for all options. ##### InDatabase -`terraform import "||||OnSchemaObject|OnFuture||InDatabase|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchemaObject|OnFuture||InDatabase|'` ##### InSchema -`terraform import "||||OnSchemaObject|OnFuture||InSchema|"` +`terraform import snowflake_grant_privileges_to_database_role.example '||||OnSchemaObject|OnFuture||InSchema|'` ### Import examples #### Grant all privileges OnDatabase -`terraform import "\"test_db\".\"test_db_role\"|false|false|ALL|OnDatabase|\"test_db\""` +`terraform import snowflake_grant_privileges_to_database_role.example '"test_db"."test_db_role"|false|false|ALL|OnDatabase|"test_db"'` #### Grant list of privileges OnAllSchemasInDatabase -`terraform import "\"test_db\".\"test_db_role\"|false|false|CREATE TAG,CREATE TABLE|OnSchema|OnAllSchemasInDatabase|\"test_db\""` +`terraform import snowflake_grant_privileges_to_database_role.example '"test_db"."test_db_role"|false|false|CREATE TAG,CREATE TABLE|OnSchema|OnAllSchemasInDatabase|"test_db"'` #### Grant list of privileges on table -`terraform import "\"test_db\".\"test_db_role\"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnObject|TABLE|\"test_db\".\"test_schema\".\"test_table\""` +`terraform import snowflake_grant_privileges_to_database_role.example '"test_db"."test_db_role"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnObject|TABLE|"test_db"."test_schema"."test_table"'` #### Grant list of privileges OnAll tables in schema -`terraform import "\"test_db\".\"test_db_role\"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnAll|TABLES|InSchema|\"test_db\".\"test_schema\""` +`terraform import snowflake_grant_privileges_to_database_role.example '"test_db"."test_db_role"|false|false|SELECT,DELETE,INSERT|OnSchemaObject|OnAll|TABLES|InSchema|"test_db"."test_schema"'` diff --git a/templates/resources/grant_privileges_to_share.md.tmpl b/templates/resources/grant_privileges_to_share.md.tmpl index b90ca9b64c..c9c79fb2d3 100644 --- a/templates/resources/grant_privileges_to_share.md.tmpl +++ b/templates/resources/grant_privileges_to_share.md.tmpl @@ -36,7 +36,7 @@ description: |- Import is supported using the following syntax: -`terraform import "|||"` +`terraform import snowflake_grant_privileges_to_share.example '|||'` where: - share_name - fully qualified identifier @@ -45,19 +45,19 @@ where: - grant_identifier - fully qualified identifier ### OnDatabase -`terraform import "||OnDatabase|"` +`terraform import snowflake_grant_privileges_to_share.example '||OnDatabase|'` ### OnSchema -`terraform import "||OnSchema|."` +`terraform import snowflake_grant_privileges_to_share.example '||OnSchema|.'` ### OnTable -`terraform import "||OnTable|.."` +`terraform import snowflake_grant_privileges_to_share.example '||OnTable|..'` ### OnSchema -`terraform import "||OnAllTablesInSchema|."` +`terraform import snowflake_grant_privileges_to_share.example '||OnAllTablesInSchema|.'` ### OnTag -`terraform import "||OnTag|.."` +`terraform import snowflake_grant_privileges_to_share.example '||OnTag|..'` ### OnView -`terraform import "||OnView|.."` +`terraform import snowflake_grant_privileges_to_share.example '||OnView|..'`