@pulumi/snowflake 0.50.3-alpha.1712555816 → 0.50.3-alpha.1712742318

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/types/output.d.ts CHANGED
@@ -471,65 +471,67 @@ export interface GetGrantsFutureGrantsIn {
471
471
  */
472
472
  database?: string;
473
473
  /**
474
- * Lists all privileges on new (i.e. future) objects of a specified type in the schema granted to a role.
474
+ * Lists all privileges on new (i.e. future) objects of a specified type in the schema granted to a role. Schema must be a fully qualified name ("<db*name>"."<schema*name>").
475
475
  */
476
- schema?: outputs.GetGrantsFutureGrantsInSchema;
476
+ schema?: string;
477
477
  }
478
- export interface GetGrantsFutureGrantsInSchema {
478
+ export interface GetGrantsFutureGrantsTo {
479
479
  /**
480
- * The database in which the scehma resides. Optional when querying a schema in the current database.
480
+ * Lists all privileges on new (i.e. future) objects of a specified type in a database or schema granted to the account role.
481
481
  */
482
- databaseName?: string;
482
+ accountRole?: string;
483
483
  /**
484
- * The name of the schema to list all privileges of new (ie. future) objects granted to
484
+ * Lists all privileges on new (i.e. future) objects granted to the database role. Must be a fully qualified name ("<db*name>"."<database*role_name>").
485
485
  */
486
- schemaName: string;
487
- }
488
- export interface GetGrantsFutureGrantsTo {
489
- /**
490
- * Lists all privileges on new (i.e. future) objects of a specified type in a database or schema granted to the role.
491
- */
492
- role: string;
486
+ databaseRole?: string;
493
487
  }
494
488
  export interface GetGrantsGrant {
495
489
  /**
496
- * The date and time the grant was created
490
+ * The date and time the grant was created.
497
491
  */
498
492
  createdOn: string;
499
493
  /**
500
- * Whether the grantee can grant the privilege to others
494
+ * Whether the grantee can grant the privilege to others.
501
495
  */
502
496
  grantOption: boolean;
503
497
  /**
504
- * The role that granted the privilege
498
+ * The role that granted the privilege.
505
499
  */
506
500
  grantedBy: string;
507
501
  /**
508
- * The object on which the privilege was granted
502
+ * The object on which the privilege was granted.
509
503
  */
510
504
  grantedOn: string;
511
505
  /**
512
- * The role to which the privilege was granted
506
+ * The role to which the privilege was granted.
513
507
  */
514
508
  grantedTo: string;
515
509
  /**
516
- * The name of the role to which the privilege was granted
510
+ * The name of the role to which the privilege was granted.
517
511
  */
518
512
  granteeName: string;
519
513
  /**
520
- * The name of the object on which the privilege was granted
514
+ * The name of the object on which the privilege was granted.
521
515
  */
522
516
  name: string;
523
517
  /**
524
- * The privilege granted
518
+ * The privilege granted.
525
519
  */
526
520
  privilege: string;
527
521
  }
528
522
  export interface GetGrantsGrantsOf {
529
523
  /**
530
- * Lists all users and roles to which the role has been granted
524
+ * Lists all users and roles to which the account role has been granted.
525
+ */
526
+ accountRole?: string;
527
+ /**
528
+ * Lists all the users and roles to which the application role has been granted. Must be a fully qualified name ("<db*name>"."<database*role_name>").
531
529
  */
532
- role?: string;
530
+ applicationRole?: string;
531
+ /**
532
+ * Lists all users and roles to which the database role has been granted. Must be a fully qualified name ("<db*name>"."<database*role_name>").
533
+ */
534
+ databaseRole?: string;
533
535
  /**
534
536
  * Lists all the accounts for the share and indicates the accounts that are using the share.
535
537
  */
@@ -541,7 +543,7 @@ export interface GetGrantsGrantsOn {
541
543
  */
542
544
  account?: boolean;
543
545
  /**
544
- * Name of object to list privileges on
546
+ * Name of object to list privileges on.
545
547
  */
546
548
  objectName?: string;
547
549
  /**
@@ -551,18 +553,36 @@ export interface GetGrantsGrantsOn {
551
553
  }
552
554
  export interface GetGrantsGrantsTo {
553
555
  /**
554
- * Lists all privileges and roles granted to the role
556
+ * Lists all privileges and roles granted to the role.
555
557
  */
556
- role?: string;
558
+ accountRole?: string;
557
559
  /**
558
- * Lists all the privileges granted to the share
560
+ * Lists all the privileges and roles granted to the application.
559
561
  */
560
- share?: string;
562
+ application?: string;
563
+ /**
564
+ * Lists all the privileges and roles granted to the application role. Must be a fully qualified name ("<app*name>"."<app*role_name>").
565
+ */
566
+ applicationRole?: string;
567
+ /**
568
+ * Lists all privileges and roles granted to the database role. Must be a fully qualified name ("<db*name>"."<database*role_name>").
569
+ */
570
+ databaseRole?: string;
571
+ /**
572
+ * Lists all the privileges granted to the share.
573
+ */
574
+ share?: outputs.GetGrantsGrantsToShare;
561
575
  /**
562
- * Lists all the roles granted to the user. Note that the PUBLIC role, which is automatically available to every user, is not listed
576
+ * Lists all the roles granted to the user. Note that the PUBLIC role, which is automatically available to every user, is not listed.
563
577
  */
564
578
  user?: string;
565
579
  }
580
+ export interface GetGrantsGrantsToShare {
581
+ /**
582
+ * Lists all of the privileges and roles granted to the specified share.
583
+ */
584
+ shareName: string;
585
+ }
566
586
  export interface GetMaskingPoliciesMaskingPolicy {
567
587
  comment: string;
568
588
  database: string;
@@ -734,6 +754,52 @@ export interface GetWarehousesWarehouse {
734
754
  state: string;
735
755
  type: string;
736
756
  }
757
+ export interface GrantOwnershipOn {
758
+ /**
759
+ * Configures the privilege to be granted on all objects in either a database or schema.
760
+ */
761
+ all?: outputs.GrantOwnershipOnAll;
762
+ /**
763
+ * Configures the privilege to be granted on all objects in either a database or schema.
764
+ */
765
+ future?: outputs.GrantOwnershipOnFuture;
766
+ /**
767
+ * Specifies the identifier for the object on which you are transferring ownership.
768
+ */
769
+ objectName?: string;
770
+ /**
771
+ * Specifies the type of object on which you are transferring ownership. Available values are: AGGREGATION POLICY | ALERT | AUTHENTICATION POLICY | COMPUTE POOL | DATABASE | DATABASE ROLE | DYNAMIC TABLE | EVENT TABLE | EXTERNAL TABLE | EXTERNAL VOLUME | FAILOVER GROUP | FILE FORMAT | FUNCTION | HYBRID TABLE | ICEBERG TABLE | IMAGE REPOSITORY | INTEGRATION | MATERIALIZED VIEW | NETWORK POLICY | NETWORK RULE | PACKAGES POLICY | PIPE | PROCEDURE | MASKING POLICY | PASSWORD POLICY | PROJECTION POLICY | REPLICATION GROUP | ROLE | ROW ACCESS POLICY | SCHEMA | SESSION POLICY | SECRET | SEQUENCE | STAGE | STREAM | TABLE | TAG | TASK | USER | VIEW | WAREHOUSE
772
+ */
773
+ objectType?: string;
774
+ }
775
+ export interface GrantOwnershipOnAll {
776
+ /**
777
+ * The fully qualified name of the database.
778
+ */
779
+ inDatabase?: string;
780
+ /**
781
+ * The fully qualified name of the schema.
782
+ */
783
+ inSchema?: string;
784
+ /**
785
+ * Specifies the type of object in plural form on which you are transferring ownership. Available values are: AGGREGATION POLICIES | ALERTS | AUTHENTICATION POLICIES | COMPUTE POOLS | DATABASES | DATABASE ROLES | DYNAMIC TABLES | EVENT TABLES | EXTERNAL TABLES | EXTERNAL VOLUMES | FAILOVER GROUPS | FILE FORMATS | FUNCTIONS | HYBRID TABLES | ICEBERG TABLES | IMAGE REPOSITORIES | INTEGRATIONS | MATERIALIZED VIEWS | NETWORK POLICIES | NETWORK RULES | PACKAGES POLICIES | PIPES | PROCEDURES | MASKING POLICIES | PASSWORD POLICIES | PROJECTION POLICIES | REPLICATION GROUPS | ROLES | ROW ACCESS POLICIES | SCHEMAS | SESSION POLICIES | SECRETS | SEQUENCES | STAGES | STREAMS | TABLES | TAGS | TASKS | USERS | VIEWS | WAREHOUSES. For more information head over to [Snowflake documentation](https://docs.snowflake.com/en/sql-reference/sql/grant-ownership#required-parameters).
786
+ */
787
+ objectTypePlural: string;
788
+ }
789
+ export interface GrantOwnershipOnFuture {
790
+ /**
791
+ * The fully qualified name of the database.
792
+ */
793
+ inDatabase?: string;
794
+ /**
795
+ * The fully qualified name of the schema.
796
+ */
797
+ inSchema?: string;
798
+ /**
799
+ * Specifies the type of object in plural form on which you are transferring ownership. Available values are: AGGREGATION POLICIES | ALERTS | AUTHENTICATION POLICIES | COMPUTE POOLS | DATABASES | DATABASE ROLES | DYNAMIC TABLES | EVENT TABLES | EXTERNAL TABLES | EXTERNAL VOLUMES | FAILOVER GROUPS | FILE FORMATS | FUNCTIONS | HYBRID TABLES | ICEBERG TABLES | IMAGE REPOSITORIES | INTEGRATIONS | MATERIALIZED VIEWS | NETWORK POLICIES | NETWORK RULES | PACKAGES POLICIES | PIPES | PROCEDURES | MASKING POLICIES | PASSWORD POLICIES | PROJECTION POLICIES | REPLICATION GROUPS | ROLES | ROW ACCESS POLICIES | SCHEMAS | SESSION POLICIES | SECRETS | SEQUENCES | STAGES | STREAMS | TABLES | TAGS | TASKS | USERS | VIEWS | WAREHOUSES. For more information head over to [Snowflake documentation](https://docs.snowflake.com/en/sql-reference/sql/grant-ownership#required-parameters).
800
+ */
801
+ objectTypePlural: string;
802
+ }
737
803
  export interface GrantPrivilegesToAccountRoleOnAccountObject {
738
804
  /**
739
805
  * The fully qualified name of the object on which privileges will be granted.
@@ -764,7 +830,7 @@ export interface GrantPrivilegesToAccountRoleOnSchemaObject {
764
830
  */
765
831
  all?: outputs.GrantPrivilegesToAccountRoleOnSchemaObjectAll;
766
832
  /**
767
- * Configures the privilege to be granted on all objects in either a database or schema.
833
+ * Configures the privilege to be granted on future objects in either a database or schema.
768
834
  */
769
835
  future?: outputs.GrantPrivilegesToAccountRoleOnSchemaObjectFuture;
770
836
  /**
@@ -772,7 +838,7 @@ export interface GrantPrivilegesToAccountRoleOnSchemaObject {
772
838
  */
773
839
  objectName?: string;
774
840
  /**
775
- * The object type of the schema object on which privileges will be granted. Valid values are: ALERT | DYNAMIC TABLE | EVENT TABLE | FILE FORMAT | FUNCTION | PROCEDURE | SECRET | SEQUENCE | PIPE | MASKING POLICY | PASSWORD POLICY | ROW ACCESS POLICY | SESSION POLICY | TAG | STAGE | STREAM | TABLE | EXTERNAL TABLE | TASK | VIEW | MATERIALIZED VIEW | NETWORK RULE | PACKAGES POLICY | ICEBERG TABLE
841
+ * The object type of the schema object on which privileges will be granted. Valid values are: ALERT | DYNAMIC TABLE | EVENT TABLE | FILE FORMAT | FUNCTION | PROCEDURE | SECRET | SEQUENCE | PIPE | MASKING POLICY | PASSWORD POLICY | ROW ACCESS POLICY | SESSION POLICY | TAG | STAGE | STREAM | TABLE | EXTERNAL TABLE | TASK | VIEW | MATERIALIZED VIEW | NETWORK RULE | PACKAGES POLICY | STREAMLIT | ICEBERG TABLE
776
842
  */
777
843
  objectType?: string;
778
844
  }
@@ -780,7 +846,7 @@ export interface GrantPrivilegesToAccountRoleOnSchemaObjectAll {
780
846
  inDatabase?: string;
781
847
  inSchema?: string;
782
848
  /**
783
- * The plural object type of the schema object on which privileges will be granted. Valid values are: ALERTS | DYNAMIC TABLES | EVENT TABLES | FILE FORMATS | FUNCTIONS | PROCEDURES | SECRETS | SEQUENCES | PIPES | MASKING POLICIES | PASSWORD POLICIES | ROW ACCESS POLICIES | SESSION POLICIES | TAGS | STAGES | STREAMS | TABLES | EXTERNAL TABLES | TASKS | VIEWS | MATERIALIZED VIEWS | NETWORK RULES | PACKAGES POLICIES | ICEBERG TABLES
849
+ * The plural object type of the schema object on which privileges will be granted. Valid values are: ALERTS | DYNAMIC TABLES | EVENT TABLES | FILE FORMATS | FUNCTIONS | PROCEDURES | SECRETS | SEQUENCES | PIPES | MASKING POLICIES | PASSWORD POLICIES | ROW ACCESS POLICIES | SESSION POLICIES | TAGS | STAGES | STREAMS | TABLES | EXTERNAL TABLES | TASKS | VIEWS | MATERIALIZED VIEWS | NETWORK RULES | PACKAGES POLICIES | STREAMLITS | ICEBERG TABLES.
784
850
  */
785
851
  objectTypePlural: string;
786
852
  }
@@ -788,7 +854,7 @@ export interface GrantPrivilegesToAccountRoleOnSchemaObjectFuture {
788
854
  inDatabase?: string;
789
855
  inSchema?: string;
790
856
  /**
791
- * The plural object type of the schema object on which privileges will be granted. Valid values are: ALERTS | DYNAMIC TABLES | EVENT TABLES | FILE FORMATS | FUNCTIONS | PROCEDURES | SECRETS | SEQUENCES | PIPES | MASKING POLICIES | PASSWORD POLICIES | ROW ACCESS POLICIES | SESSION POLICIES | TAGS | STAGES | STREAMS | TABLES | EXTERNAL TABLES | TASKS | VIEWS | MATERIALIZED VIEWS | NETWORK RULES | PACKAGES POLICIES | ICEBERG TABLES
857
+ * The plural object type of the schema object on which privileges will be granted. Valid values are: ALERTS | DYNAMIC TABLES | EVENT TABLES | FILE FORMATS | FUNCTIONS | PROCEDURES | SECRETS | SEQUENCES | PIPES | MASKING POLICIES | PASSWORD POLICIES | ROW ACCESS POLICIES | SESSION POLICIES | TAGS | STAGES | STREAMS | TABLES | EXTERNAL TABLES | TASKS | VIEWS | MATERIALIZED VIEWS | NETWORK RULES | PACKAGES POLICIES | STREAMLITS | ICEBERG TABLES.
792
858
  */
793
859
  objectTypePlural: string;
794
860
  }
@@ -820,23 +886,35 @@ export interface GrantPrivilegesToDatabaseRoleOnSchemaObject {
820
886
  */
821
887
  objectName?: string;
822
888
  /**
823
- * The object type of the schema object on which privileges will be granted. Valid values are: ALERT | DYNAMIC TABLE | EVENT TABLE | FILE FORMAT | FUNCTION | PROCEDURE | SECRET | SEQUENCE | PIPE | MASKING POLICY | PASSWORD POLICY | ROW ACCESS POLICY | SESSION POLICY | TAG | STAGE | STREAM | TABLE | EXTERNAL TABLE | TASK | VIEW | MATERIALIZED VIEW | NETWORK RULE | PACKAGES POLICY | ICEBERG TABLE
889
+ * The object type of the schema object on which privileges will be granted. Valid values are: ALERT | DYNAMIC TABLE | EVENT TABLE | FILE FORMAT | FUNCTION | PROCEDURE | SECRET | SEQUENCE | PIPE | MASKING POLICY | PASSWORD POLICY | ROW ACCESS POLICY | SESSION POLICY | TAG | STAGE | STREAM | TABLE | EXTERNAL TABLE | TASK | VIEW | MATERIALIZED VIEW | NETWORK RULE | PACKAGES POLICY | STREAMLIT | ICEBERG TABLE
824
890
  */
825
891
  objectType?: string;
826
892
  }
827
893
  export interface GrantPrivilegesToDatabaseRoleOnSchemaObjectAll {
894
+ /**
895
+ * The fully qualified name of the database.
896
+ */
828
897
  inDatabase?: string;
898
+ /**
899
+ * The fully qualified name of the schema.
900
+ */
829
901
  inSchema?: string;
830
902
  /**
831
- * The plural object type of the schema object on which privileges will be granted. Valid values are: ALERTS | DYNAMIC TABLES | EVENT TABLES | FILE FORMATS | FUNCTIONS | PROCEDURES | SECRETS | SEQUENCES | PIPES | MASKING POLICIES | PASSWORD POLICIES | ROW ACCESS POLICIES | SESSION POLICIES | TAGS | STAGES | STREAMS | TABLES | EXTERNAL TABLES | TASKS | VIEWS | MATERIALIZED VIEWS | NETWORK RULES | PACKAGES POLICIES | ICEBERG TABLES
903
+ * The plural object type of the schema object on which privileges will be granted. Valid values are: ALERTS | DYNAMIC TABLES | EVENT TABLES | FILE FORMATS | FUNCTIONS | PROCEDURES | SECRETS | SEQUENCES | PIPES | MASKING POLICIES | PASSWORD POLICIES | ROW ACCESS POLICIES | SESSION POLICIES | TAGS | STAGES | STREAMS | TABLES | EXTERNAL TABLES | TASKS | VIEWS | MATERIALIZED VIEWS | NETWORK RULES | PACKAGES POLICIES | STREAMLITS | ICEBERG TABLES.
832
904
  */
833
905
  objectTypePlural: string;
834
906
  }
835
907
  export interface GrantPrivilegesToDatabaseRoleOnSchemaObjectFuture {
908
+ /**
909
+ * The fully qualified name of the database.
910
+ */
836
911
  inDatabase?: string;
912
+ /**
913
+ * The fully qualified name of the schema.
914
+ */
837
915
  inSchema?: string;
838
916
  /**
839
- * The plural object type of the schema object on which privileges will be granted. Valid values are: ALERTS | DYNAMIC TABLES | EVENT TABLES | FILE FORMATS | FUNCTIONS | PROCEDURES | SECRETS | SEQUENCES | PIPES | MASKING POLICIES | PASSWORD POLICIES | ROW ACCESS POLICIES | SESSION POLICIES | TAGS | STAGES | STREAMS | TABLES | EXTERNAL TABLES | TASKS | VIEWS | MATERIALIZED VIEWS | NETWORK RULES | PACKAGES POLICIES | ICEBERG TABLES
917
+ * The plural object type of the schema object on which privileges will be granted. Valid values are: ALERTS | DYNAMIC TABLES | EVENT TABLES | FILE FORMATS | FUNCTIONS | PROCEDURES | SECRETS | SEQUENCES | PIPES | MASKING POLICIES | PASSWORD POLICIES | ROW ACCESS POLICIES | SESSION POLICIES | TAGS | STAGES | STREAMS | TABLES | EXTERNAL TABLES | TASKS | VIEWS | MATERIALIZED VIEWS | NETWORK RULES | PACKAGES POLICIES | STREAMLITS | ICEBERG TABLES.
840
918
  */
841
919
  objectTypePlural: string;
842
920
  }
@@ -878,7 +956,7 @@ export interface GrantPrivilegesToRoleOnSchemaObject {
878
956
  */
879
957
  objectName?: string;
880
958
  /**
881
- * The object type of the schema object on which privileges will be granted. Valid values are: ALERT | DYNAMIC TABLE | EVENT TABLE | FILE FORMAT | FUNCTION | ICEBERG TABLE | PROCEDURE | SECRET | SEQUENCE | PIPE | MASKING POLICY | PASSWORD POLICY | ROW ACCESS POLICY | SESSION POLICY | TAG | STAGE | STREAM | TABLE | EXTERNAL TABLE | TASK | VIEW | MATERIALIZED VIEW
959
+ * The object type of the schema object on which privileges will be granted. Valid values are: ALERT | DYNAMIC TABLE | EVENT TABLE | FILE FORMAT | FUNCTION | PROCEDURE | SECRET | SEQUENCE | PIPE | MASKING POLICY | PASSWORD POLICY | ROW ACCESS POLICY | SESSION POLICY | TAG | STAGE | STREAM | TABLE | EXTERNAL TABLE | TASK | VIEW | MATERIALIZED VIEW | NETWORK RULE | PACKAGES POLICY | STREAMLIT | ICEBERG TABLE
882
960
  */
883
961
  objectType?: string;
884
962
  }
@@ -892,7 +970,7 @@ export interface GrantPrivilegesToRoleOnSchemaObjectAll {
892
970
  */
893
971
  inSchema?: string;
894
972
  /**
895
- * The plural object type of the schema object on which privileges will be granted. Valid values are: ALERTS | DYNAMIC TABLES | EVENT TABLES | FILE FORMATS | FUNCTIONS | ICEBERG TABLES | PROCEDURES | SECRETS | SEQUENCES | PIPES | MASKING POLICIES | PASSWORD POLICIES | ROW ACCESS POLICIES | SESSION POLICIES | TAGS | STAGES | STREAMS | TABLES | EXTERNAL TABLES | TASKS | VIEWS | MATERIALIZED VIEWS
973
+ * The plural object type of the schema object on which privileges will be granted. Valid values are: ALERTS | DYNAMIC TABLES | EVENT TABLES | FILE FORMATS | FUNCTIONS | PROCEDURES | SECRETS | SEQUENCES | PIPES | MASKING POLICIES | PASSWORD POLICIES | ROW ACCESS POLICIES | SESSION POLICIES | TAGS | STAGES | STREAMS | TABLES | EXTERNAL TABLES | TASKS | VIEWS | MATERIALIZED VIEWS | NETWORK RULES | PACKAGES POLICIES | STREAMLITS | ICEBERG TABLES
896
974
  */
897
975
  objectTypePlural: string;
898
976
  }
@@ -906,7 +984,7 @@ export interface GrantPrivilegesToRoleOnSchemaObjectFuture {
906
984
  */
907
985
  inSchema?: string;
908
986
  /**
909
- * The plural object type of the schema object on which privileges will be granted. Valid values are: ALERTS | DYNAMIC TABLES | EVENT TABLES | FILE FORMATS | FUNCTIONS | ICEBERG TABLES | PROCEDURES | SECRETS | SEQUENCES | PIPES | MASKING POLICIES | PASSWORD POLICIES | ROW ACCESS POLICIES | SESSION POLICIES | TAGS | STAGES | STREAMS | TABLES | EXTERNAL TABLES | TASKS | VIEWS | MATERIALIZED VIEWS
987
+ * The plural object type of the schema object on which privileges will be granted. Valid values are: ALERTS | DYNAMIC TABLES | EVENT TABLES | FILE FORMATS | FUNCTIONS | PROCEDURES | SECRETS | SEQUENCES | PIPES | MASKING POLICIES | PASSWORD POLICIES | ROW ACCESS POLICIES | SESSION POLICIES | TAGS | STAGES | STREAMS | TABLES | EXTERNAL TABLES | TASKS | VIEWS | MATERIALIZED VIEWS | NETWORK RULES | PACKAGES POLICIES | STREAMLITS | ICEBERG TABLES
910
988
  */
911
989
  objectTypePlural: string;
912
990
  }
package/view.d.ts CHANGED
@@ -61,7 +61,9 @@ export declare class View extends pulumi.CustomResource {
61
61
  */
62
62
  readonly database: pulumi.Output<string>;
63
63
  /**
64
- * Specifies that the view is secure.
64
+ * Specifies that the view is secure. By design, the Snowflake's `SHOW VIEWS` command does not provide information about
65
+ * secure views (consult [view usage notes](https://docs.snowflake.com/en/sql-reference/sql/create-view#usage-notes)) which
66
+ * is essential to manage/import view with Terraform. Use the role owning the view while managing secure views.
65
67
  */
66
68
  readonly isSecure: pulumi.Output<boolean | undefined>;
67
69
  /**
@@ -116,7 +118,9 @@ export interface ViewState {
116
118
  */
117
119
  database?: pulumi.Input<string>;
118
120
  /**
119
- * Specifies that the view is secure.
121
+ * Specifies that the view is secure. By design, the Snowflake's `SHOW VIEWS` command does not provide information about
122
+ * secure views (consult [view usage notes](https://docs.snowflake.com/en/sql-reference/sql/create-view#usage-notes)) which
123
+ * is essential to manage/import view with Terraform. Use the role owning the view while managing secure views.
120
124
  */
121
125
  isSecure?: pulumi.Input<boolean>;
122
126
  /**
@@ -159,7 +163,9 @@ export interface ViewArgs {
159
163
  */
160
164
  database: pulumi.Input<string>;
161
165
  /**
162
- * Specifies that the view is secure.
166
+ * Specifies that the view is secure. By design, the Snowflake's `SHOW VIEWS` command does not provide information about
167
+ * secure views (consult [view usage notes](https://docs.snowflake.com/en/sql-reference/sql/create-view#usage-notes)) which
168
+ * is essential to manage/import view with Terraform. Use the role owning the view while managing secure views.
163
169
  */
164
170
  isSecure?: pulumi.Input<boolean>;
165
171
  /**
package/view.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"view.js","sourceRoot":"","sources":["../view.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAC3C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiB,EAAE,IAAmC;QAC/G,OAAO,IAAI,IAAI,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC3D,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,IAAI,CAAC,YAAY,CAAC;IACrD,CAAC;IAqDD,YAAY,IAAY,EAAE,WAAkC,EAAE,IAAmC;QAC7F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IA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