pulumi-snowflake 0.58.0a1723010512__py3-none-any.whl → 0.58.0a1723820305__py3-none-any.whl

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 (49) hide show
  1. pulumi_snowflake/account_role.py +32 -18
  2. pulumi_snowflake/alert.py +11 -11
  3. pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +4 -4
  4. pulumi_snowflake/api_authentication_integration_with_client_credentials.py +4 -4
  5. pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +4 -4
  6. pulumi_snowflake/cortex_search_service.py +76 -0
  7. pulumi_snowflake/database.py +15 -133
  8. pulumi_snowflake/database_old.py +13 -13
  9. pulumi_snowflake/dynamic_table.py +11 -11
  10. pulumi_snowflake/external_function.py +26 -26
  11. pulumi_snowflake/external_oauth_integration.py +6 -6
  12. pulumi_snowflake/external_table.py +26 -26
  13. pulumi_snowflake/failover_group.py +32 -32
  14. pulumi_snowflake/function.py +5 -5
  15. pulumi_snowflake/get_cortex_search_services.py +16 -16
  16. pulumi_snowflake/get_databases.py +4 -4
  17. pulumi_snowflake/get_dynamic_tables.py +12 -12
  18. pulumi_snowflake/get_grants.py +138 -138
  19. pulumi_snowflake/get_schemas.py +8 -8
  20. pulumi_snowflake/get_streamlits.py +8 -8
  21. pulumi_snowflake/grant_ownership.py +5 -5
  22. pulumi_snowflake/grant_privileges_to_account_role.py +19 -19
  23. pulumi_snowflake/grant_privileges_to_database_role.py +10 -10
  24. pulumi_snowflake/grant_privileges_to_share.py +2 -2
  25. pulumi_snowflake/masking_policy.py +17 -17
  26. pulumi_snowflake/materialized_view.py +5 -5
  27. pulumi_snowflake/network_policy.py +12 -34
  28. pulumi_snowflake/oauth_integration_for_custom_clients.py +4 -4
  29. pulumi_snowflake/oauth_integration_for_partner_applications.py +4 -4
  30. pulumi_snowflake/object_parameter.py +37 -37
  31. pulumi_snowflake/procedure.py +5 -5
  32. pulumi_snowflake/provider.py +16 -16
  33. pulumi_snowflake/pulumi-plugin.json +1 -1
  34. pulumi_snowflake/role.py +32 -18
  35. pulumi_snowflake/saml2_integration.py +4 -4
  36. pulumi_snowflake/schema.py +6 -6
  37. pulumi_snowflake/scim_integration.py +4 -4
  38. pulumi_snowflake/stage.py +5 -5
  39. pulumi_snowflake/streamlit.py +4 -4
  40. pulumi_snowflake/table.py +15 -15
  41. pulumi_snowflake/table_constraint.py +67 -67
  42. pulumi_snowflake/tag_association.py +47 -47
  43. pulumi_snowflake/user_password_policy_attachment.py +12 -2
  44. pulumi_snowflake/view.py +5 -5
  45. pulumi_snowflake/warehouse.py +4 -4
  46. {pulumi_snowflake-0.58.0a1723010512.dist-info → pulumi_snowflake-0.58.0a1723820305.dist-info}/METADATA +1 -1
  47. {pulumi_snowflake-0.58.0a1723010512.dist-info → pulumi_snowflake-0.58.0a1723820305.dist-info}/RECORD +49 -49
  48. {pulumi_snowflake-0.58.0a1723010512.dist-info → pulumi_snowflake-0.58.0a1723820305.dist-info}/WHEEL +1 -1
  49. {pulumi_snowflake-0.58.0a1723010512.dist-info → pulumi_snowflake-0.58.0a1723820305.dist-info}/top_level.txt +0 -0
@@ -504,14 +504,14 @@ class Streamlit(pulumi.CustomResource):
504
504
  opts: Optional[pulumi.ResourceOptions] = None,
505
505
  comment: Optional[pulumi.Input[str]] = None,
506
506
  database: Optional[pulumi.Input[str]] = None,
507
- describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['StreamlitDescribeOutputArgs']]]]] = None,
507
+ describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['StreamlitDescribeOutputArgs', 'StreamlitDescribeOutputArgsDict']]]]] = None,
508
508
  directory_location: Optional[pulumi.Input[str]] = None,
509
509
  external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
510
510
  main_file: Optional[pulumi.Input[str]] = None,
511
511
  name: Optional[pulumi.Input[str]] = None,
512
512
  query_warehouse: Optional[pulumi.Input[str]] = None,
513
513
  schema: Optional[pulumi.Input[str]] = None,
514
- show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['StreamlitShowOutputArgs']]]]] = None,
514
+ show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['StreamlitShowOutputArgs', 'StreamlitShowOutputArgsDict']]]]] = None,
515
515
  stage: Optional[pulumi.Input[str]] = None,
516
516
  title: Optional[pulumi.Input[str]] = None) -> 'Streamlit':
517
517
  """
@@ -523,14 +523,14 @@ class Streamlit(pulumi.CustomResource):
523
523
  :param pulumi.ResourceOptions opts: Options for the resource.
524
524
  :param pulumi.Input[str] comment: Specifies a comment for the streamlit.
525
525
  :param pulumi.Input[str] database: The database in which to create the streamlit
526
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['StreamlitDescribeOutputArgs']]]] describe_outputs: Outputs the result of `DESCRIBE STREAMLIT` for the given streamlit.
526
+ :param pulumi.Input[Sequence[pulumi.Input[Union['StreamlitDescribeOutputArgs', 'StreamlitDescribeOutputArgsDict']]]] describe_outputs: Outputs the result of `DESCRIBE STREAMLIT` for the given streamlit.
527
527
  :param pulumi.Input[str] directory_location: Specifies the full path to the named stage containing the Streamlit Python files, media files, and the environment.yml file.
528
528
  :param pulumi.Input[Sequence[pulumi.Input[str]]] external_access_integrations: External access integrations connected to the Streamlit.
529
529
  :param pulumi.Input[str] main_file: Specifies the filename of the Streamlit Python application. This filename is relative to the value of `root_location`
530
530
  :param pulumi.Input[str] name: String that specifies the identifier (i.e. name) for the streamlit; must be unique in your account.
531
531
  :param pulumi.Input[str] query_warehouse: Specifies the warehouse where SQL queries issued by the Streamlit application are run.
532
532
  :param pulumi.Input[str] schema: The schema in which to create the streamlit.
533
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['StreamlitShowOutputArgs']]]] show_outputs: Outputs the result of `SHOW STREAMLIT` for the given streamli.
533
+ :param pulumi.Input[Sequence[pulumi.Input[Union['StreamlitShowOutputArgs', 'StreamlitShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW STREAMLIT` for the given streamli.
534
534
  :param pulumi.Input[str] stage: The stage in which streamlit files are located.
535
535
  :param pulumi.Input[str] title: Specifies a title for the Streamlit app to display in Snowsight.
536
536
  """
pulumi_snowflake/table.py CHANGED
@@ -401,14 +401,14 @@ class Table(pulumi.CustomResource):
401
401
  opts: Optional[pulumi.ResourceOptions] = None,
402
402
  change_tracking: Optional[pulumi.Input[bool]] = None,
403
403
  cluster_bies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
404
- columns: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TableColumnArgs']]]]] = None,
404
+ columns: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TableColumnArgs', 'TableColumnArgsDict']]]]] = None,
405
405
  comment: Optional[pulumi.Input[str]] = None,
406
406
  data_retention_time_in_days: Optional[pulumi.Input[int]] = None,
407
407
  database: Optional[pulumi.Input[str]] = None,
408
408
  name: Optional[pulumi.Input[str]] = None,
409
- primary_key: Optional[pulumi.Input[pulumi.InputType['TablePrimaryKeyArgs']]] = None,
409
+ primary_key: Optional[pulumi.Input[Union['TablePrimaryKeyArgs', 'TablePrimaryKeyArgsDict']]] = None,
410
410
  schema: Optional[pulumi.Input[str]] = None,
411
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TableTagArgs']]]]] = None,
411
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TableTagArgs', 'TableTagArgsDict']]]]] = None,
412
412
  __props__=None):
413
413
  """
414
414
  ## Example Usage
@@ -425,14 +425,14 @@ class Table(pulumi.CustomResource):
425
425
  :param pulumi.ResourceOptions opts: Options for the resource.
426
426
  :param pulumi.Input[bool] change_tracking: Specifies whether to enable change tracking on the table. Default false.
427
427
  :param pulumi.Input[Sequence[pulumi.Input[str]]] cluster_bies: A list of one or more table columns/expressions to be used as clustering key(s) for the table
428
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TableColumnArgs']]]] columns: Definitions of a column to create in the table. Minimum one required.
428
+ :param pulumi.Input[Sequence[pulumi.Input[Union['TableColumnArgs', 'TableColumnArgsDict']]]] columns: Definitions of a column to create in the table. Minimum one required.
429
429
  :param pulumi.Input[str] comment: Specifies a comment for the table.
430
430
  :param pulumi.Input[int] data_retention_time_in_days: Specifies the retention period for the table so that Time Travel actions (SELECT, CLONE, UNDROP) can be performed on historical data in the table. If you wish to inherit the parent schema setting then pass in the schema attribute to this argument or do not fill this parameter at all; the default value for this field is -1, which is a fallback to use Snowflake default - in this case the schema value
431
431
  :param pulumi.Input[str] database: The database in which to create the table.
432
432
  :param pulumi.Input[str] name: Specifies the identifier for the table; must be unique for the database and schema in which the table is created.
433
- :param pulumi.Input[pulumi.InputType['TablePrimaryKeyArgs']] primary_key: Definitions of primary key constraint to create on table
433
+ :param pulumi.Input[Union['TablePrimaryKeyArgs', 'TablePrimaryKeyArgsDict']] primary_key: Definitions of primary key constraint to create on table
434
434
  :param pulumi.Input[str] schema: The schema in which to create the table.
435
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TableTagArgs']]]] tags: Definitions of a tag to associate with the resource.
435
+ :param pulumi.Input[Sequence[pulumi.Input[Union['TableTagArgs', 'TableTagArgsDict']]]] tags: Definitions of a tag to associate with the resource.
436
436
  """
437
437
  ...
438
438
  @overload
@@ -468,14 +468,14 @@ class Table(pulumi.CustomResource):
468
468
  opts: Optional[pulumi.ResourceOptions] = None,
469
469
  change_tracking: Optional[pulumi.Input[bool]] = None,
470
470
  cluster_bies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
471
- columns: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TableColumnArgs']]]]] = None,
471
+ columns: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TableColumnArgs', 'TableColumnArgsDict']]]]] = None,
472
472
  comment: Optional[pulumi.Input[str]] = None,
473
473
  data_retention_time_in_days: Optional[pulumi.Input[int]] = None,
474
474
  database: Optional[pulumi.Input[str]] = None,
475
475
  name: Optional[pulumi.Input[str]] = None,
476
- primary_key: Optional[pulumi.Input[pulumi.InputType['TablePrimaryKeyArgs']]] = None,
476
+ primary_key: Optional[pulumi.Input[Union['TablePrimaryKeyArgs', 'TablePrimaryKeyArgsDict']]] = None,
477
477
  schema: Optional[pulumi.Input[str]] = None,
478
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TableTagArgs']]]]] = None,
478
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TableTagArgs', 'TableTagArgsDict']]]]] = None,
479
479
  __props__=None):
480
480
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
481
481
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -515,16 +515,16 @@ class Table(pulumi.CustomResource):
515
515
  opts: Optional[pulumi.ResourceOptions] = None,
516
516
  change_tracking: Optional[pulumi.Input[bool]] = None,
517
517
  cluster_bies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
518
- columns: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TableColumnArgs']]]]] = None,
518
+ columns: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TableColumnArgs', 'TableColumnArgsDict']]]]] = None,
519
519
  comment: Optional[pulumi.Input[str]] = None,
520
520
  data_retention_time_in_days: Optional[pulumi.Input[int]] = None,
521
521
  database: Optional[pulumi.Input[str]] = None,
522
522
  name: Optional[pulumi.Input[str]] = None,
523
523
  owner: Optional[pulumi.Input[str]] = None,
524
- primary_key: Optional[pulumi.Input[pulumi.InputType['TablePrimaryKeyArgs']]] = None,
524
+ primary_key: Optional[pulumi.Input[Union['TablePrimaryKeyArgs', 'TablePrimaryKeyArgsDict']]] = None,
525
525
  qualified_name: Optional[pulumi.Input[str]] = None,
526
526
  schema: Optional[pulumi.Input[str]] = None,
527
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TableTagArgs']]]]] = None) -> 'Table':
527
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TableTagArgs', 'TableTagArgsDict']]]]] = None) -> 'Table':
528
528
  """
529
529
  Get an existing Table resource's state with the given name, id, and optional extra
530
530
  properties used to qualify the lookup.
@@ -534,16 +534,16 @@ class Table(pulumi.CustomResource):
534
534
  :param pulumi.ResourceOptions opts: Options for the resource.
535
535
  :param pulumi.Input[bool] change_tracking: Specifies whether to enable change tracking on the table. Default false.
536
536
  :param pulumi.Input[Sequence[pulumi.Input[str]]] cluster_bies: A list of one or more table columns/expressions to be used as clustering key(s) for the table
537
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TableColumnArgs']]]] columns: Definitions of a column to create in the table. Minimum one required.
537
+ :param pulumi.Input[Sequence[pulumi.Input[Union['TableColumnArgs', 'TableColumnArgsDict']]]] columns: Definitions of a column to create in the table. Minimum one required.
538
538
  :param pulumi.Input[str] comment: Specifies a comment for the table.
539
539
  :param pulumi.Input[int] data_retention_time_in_days: Specifies the retention period for the table so that Time Travel actions (SELECT, CLONE, UNDROP) can be performed on historical data in the table. If you wish to inherit the parent schema setting then pass in the schema attribute to this argument or do not fill this parameter at all; the default value for this field is -1, which is a fallback to use Snowflake default - in this case the schema value
540
540
  :param pulumi.Input[str] database: The database in which to create the table.
541
541
  :param pulumi.Input[str] name: Specifies the identifier for the table; must be unique for the database and schema in which the table is created.
542
542
  :param pulumi.Input[str] owner: Name of the role that owns the table.
543
- :param pulumi.Input[pulumi.InputType['TablePrimaryKeyArgs']] primary_key: Definitions of primary key constraint to create on table
543
+ :param pulumi.Input[Union['TablePrimaryKeyArgs', 'TablePrimaryKeyArgsDict']] primary_key: Definitions of primary key constraint to create on table
544
544
  :param pulumi.Input[str] qualified_name: Qualified name of the table.
545
545
  :param pulumi.Input[str] schema: The schema in which to create the table.
546
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TableTagArgs']]]] tags: Definitions of a tag to associate with the resource.
546
+ :param pulumi.Input[Sequence[pulumi.Input[Union['TableTagArgs', 'TableTagArgsDict']]]] tags: Definitions of a tag to associate with the resource.
547
547
  """
548
548
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
549
549
 
@@ -428,7 +428,7 @@ class TableConstraint(pulumi.CustomResource):
428
428
  deferrable: Optional[pulumi.Input[bool]] = None,
429
429
  enable: Optional[pulumi.Input[bool]] = None,
430
430
  enforced: Optional[pulumi.Input[bool]] = None,
431
- foreign_key_properties: Optional[pulumi.Input[pulumi.InputType['TableConstraintForeignKeyPropertiesArgs']]] = None,
431
+ foreign_key_properties: Optional[pulumi.Input[Union['TableConstraintForeignKeyPropertiesArgs', 'TableConstraintForeignKeyPropertiesArgsDict']]] = None,
432
432
  initially: Optional[pulumi.Input[str]] = None,
433
433
  name: Optional[pulumi.Input[str]] = None,
434
434
  rely: Optional[pulumi.Input[bool]] = None,
@@ -452,37 +452,37 @@ class TableConstraint(pulumi.CustomResource):
452
452
  schema=s.name,
453
453
  name="some_table",
454
454
  columns=[
455
- snowflake.TableColumnArgs(
456
- name="col1",
457
- type="text",
458
- nullable=False,
459
- ),
460
- snowflake.TableColumnArgs(
461
- name="col2",
462
- type="text",
463
- nullable=False,
464
- ),
465
- snowflake.TableColumnArgs(
466
- name="col3",
467
- type="text",
468
- nullable=False,
469
- ),
455
+ {
456
+ "name": "col1",
457
+ "type": "text",
458
+ "nullable": False,
459
+ },
460
+ {
461
+ "name": "col2",
462
+ "type": "text",
463
+ "nullable": False,
464
+ },
465
+ {
466
+ "name": "col3",
467
+ "type": "text",
468
+ "nullable": False,
469
+ },
470
470
  ])
471
471
  fk_t = snowflake.Table("fk_t",
472
472
  database=d.name,
473
473
  schema=s.name,
474
474
  name="fk_table",
475
475
  columns=[
476
- snowflake.TableColumnArgs(
477
- name="fk_col1",
478
- type="text",
479
- nullable=False,
480
- ),
481
- snowflake.TableColumnArgs(
482
- name="fk_col2",
483
- type="text",
484
- nullable=False,
485
- ),
476
+ {
477
+ "name": "fk_col1",
478
+ "type": "text",
479
+ "nullable": False,
480
+ },
481
+ {
482
+ "name": "fk_col2",
483
+ "type": "text",
484
+ "nullable": False,
485
+ },
486
486
  ])
487
487
  primary_key = snowflake.TableConstraint("primary_key",
488
488
  name="myconstraint",
@@ -495,12 +495,12 @@ class TableConstraint(pulumi.CustomResource):
495
495
  type="FOREIGN KEY",
496
496
  table_id=t.qualified_name,
497
497
  columns=["col2"],
498
- foreign_key_properties=snowflake.TableConstraintForeignKeyPropertiesArgs(
499
- references=snowflake.TableConstraintForeignKeyPropertiesReferencesArgs(
500
- table_id=fk_t.qualified_name,
501
- columns=["fk_col1"],
502
- ),
503
- ),
498
+ foreign_key_properties={
499
+ "references": {
500
+ "table_id": fk_t.qualified_name,
501
+ "columns": ["fk_col1"],
502
+ },
503
+ },
504
504
  enforced=False,
505
505
  deferrable=False,
506
506
  initially="IMMEDIATE",
@@ -526,7 +526,7 @@ class TableConstraint(pulumi.CustomResource):
526
526
  :param pulumi.Input[bool] deferrable: Whether the constraint is deferrable
527
527
  :param pulumi.Input[bool] enable: Specifies whether the constraint is enabled or disabled. These properties are provided for compatibility with Oracle.
528
528
  :param pulumi.Input[bool] enforced: Whether the constraint is enforced
529
- :param pulumi.Input[pulumi.InputType['TableConstraintForeignKeyPropertiesArgs']] foreign_key_properties: Additional properties when type is set to foreign key. Not applicable for primary/unique keys
529
+ :param pulumi.Input[Union['TableConstraintForeignKeyPropertiesArgs', 'TableConstraintForeignKeyPropertiesArgsDict']] foreign_key_properties: Additional properties when type is set to foreign key. Not applicable for primary/unique keys
530
530
  :param pulumi.Input[str] initially: Whether the constraint is initially deferred or immediate
531
531
  :param pulumi.Input[str] name: Name of constraint
532
532
  :param pulumi.Input[bool] rely: Specifies whether a constraint in NOVALIDATE mode is taken into account during query rewrite.
@@ -556,37 +556,37 @@ class TableConstraint(pulumi.CustomResource):
556
556
  schema=s.name,
557
557
  name="some_table",
558
558
  columns=[
559
- snowflake.TableColumnArgs(
560
- name="col1",
561
- type="text",
562
- nullable=False,
563
- ),
564
- snowflake.TableColumnArgs(
565
- name="col2",
566
- type="text",
567
- nullable=False,
568
- ),
569
- snowflake.TableColumnArgs(
570
- name="col3",
571
- type="text",
572
- nullable=False,
573
- ),
559
+ {
560
+ "name": "col1",
561
+ "type": "text",
562
+ "nullable": False,
563
+ },
564
+ {
565
+ "name": "col2",
566
+ "type": "text",
567
+ "nullable": False,
568
+ },
569
+ {
570
+ "name": "col3",
571
+ "type": "text",
572
+ "nullable": False,
573
+ },
574
574
  ])
575
575
  fk_t = snowflake.Table("fk_t",
576
576
  database=d.name,
577
577
  schema=s.name,
578
578
  name="fk_table",
579
579
  columns=[
580
- snowflake.TableColumnArgs(
581
- name="fk_col1",
582
- type="text",
583
- nullable=False,
584
- ),
585
- snowflake.TableColumnArgs(
586
- name="fk_col2",
587
- type="text",
588
- nullable=False,
589
- ),
580
+ {
581
+ "name": "fk_col1",
582
+ "type": "text",
583
+ "nullable": False,
584
+ },
585
+ {
586
+ "name": "fk_col2",
587
+ "type": "text",
588
+ "nullable": False,
589
+ },
590
590
  ])
591
591
  primary_key = snowflake.TableConstraint("primary_key",
592
592
  name="myconstraint",
@@ -599,12 +599,12 @@ class TableConstraint(pulumi.CustomResource):
599
599
  type="FOREIGN KEY",
600
600
  table_id=t.qualified_name,
601
601
  columns=["col2"],
602
- foreign_key_properties=snowflake.TableConstraintForeignKeyPropertiesArgs(
603
- references=snowflake.TableConstraintForeignKeyPropertiesReferencesArgs(
604
- table_id=fk_t.qualified_name,
605
- columns=["fk_col1"],
606
- ),
607
- ),
602
+ foreign_key_properties={
603
+ "references": {
604
+ "table_id": fk_t.qualified_name,
605
+ "columns": ["fk_col1"],
606
+ },
607
+ },
608
608
  enforced=False,
609
609
  deferrable=False,
610
610
  initially="IMMEDIATE",
@@ -643,7 +643,7 @@ class TableConstraint(pulumi.CustomResource):
643
643
  deferrable: Optional[pulumi.Input[bool]] = None,
644
644
  enable: Optional[pulumi.Input[bool]] = None,
645
645
  enforced: Optional[pulumi.Input[bool]] = None,
646
- foreign_key_properties: Optional[pulumi.Input[pulumi.InputType['TableConstraintForeignKeyPropertiesArgs']]] = None,
646
+ foreign_key_properties: Optional[pulumi.Input[Union['TableConstraintForeignKeyPropertiesArgs', 'TableConstraintForeignKeyPropertiesArgsDict']]] = None,
647
647
  initially: Optional[pulumi.Input[str]] = None,
648
648
  name: Optional[pulumi.Input[str]] = None,
649
649
  rely: Optional[pulumi.Input[bool]] = None,
@@ -692,7 +692,7 @@ class TableConstraint(pulumi.CustomResource):
692
692
  deferrable: Optional[pulumi.Input[bool]] = None,
693
693
  enable: Optional[pulumi.Input[bool]] = None,
694
694
  enforced: Optional[pulumi.Input[bool]] = None,
695
- foreign_key_properties: Optional[pulumi.Input[pulumi.InputType['TableConstraintForeignKeyPropertiesArgs']]] = None,
695
+ foreign_key_properties: Optional[pulumi.Input[Union['TableConstraintForeignKeyPropertiesArgs', 'TableConstraintForeignKeyPropertiesArgsDict']]] = None,
696
696
  initially: Optional[pulumi.Input[str]] = None,
697
697
  name: Optional[pulumi.Input[str]] = None,
698
698
  rely: Optional[pulumi.Input[bool]] = None,
@@ -711,7 +711,7 @@ class TableConstraint(pulumi.CustomResource):
711
711
  :param pulumi.Input[bool] deferrable: Whether the constraint is deferrable
712
712
  :param pulumi.Input[bool] enable: Specifies whether the constraint is enabled or disabled. These properties are provided for compatibility with Oracle.
713
713
  :param pulumi.Input[bool] enforced: Whether the constraint is enforced
714
- :param pulumi.Input[pulumi.InputType['TableConstraintForeignKeyPropertiesArgs']] foreign_key_properties: Additional properties when type is set to foreign key. Not applicable for primary/unique keys
714
+ :param pulumi.Input[Union['TableConstraintForeignKeyPropertiesArgs', 'TableConstraintForeignKeyPropertiesArgsDict']] foreign_key_properties: Additional properties when type is set to foreign key. Not applicable for primary/unique keys
715
715
  :param pulumi.Input[str] initially: Whether the constraint is initially deferred or immediate
716
716
  :param pulumi.Input[str] name: Name of constraint
717
717
  :param pulumi.Input[bool] rely: Specifies whether a constraint in NOVALIDATE mode is taken into account during query rewrite.
@@ -230,7 +230,7 @@ class TagAssociation(pulumi.CustomResource):
230
230
  def __init__(__self__,
231
231
  resource_name: str,
232
232
  opts: Optional[pulumi.ResourceOptions] = None,
233
- object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TagAssociationObjectIdentifierArgs']]]]] = None,
233
+ object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TagAssociationObjectIdentifierArgs', 'TagAssociationObjectIdentifierArgsDict']]]]] = None,
234
234
  object_name: Optional[pulumi.Input[str]] = None,
235
235
  object_type: Optional[pulumi.Input[str]] = None,
236
236
  skip_validation: Optional[pulumi.Input[bool]] = None,
@@ -257,9 +257,9 @@ class TagAssociation(pulumi.CustomResource):
257
257
  "engineering",
258
258
  ])
259
259
  db_association = snowflake.TagAssociation("db_association",
260
- object_identifiers=[snowflake.TagAssociationObjectIdentifierArgs(
261
- name=test.name,
262
- )],
260
+ object_identifiers=[{
261
+ "name": test.name,
262
+ }],
263
263
  object_type="DATABASE",
264
264
  tag_id=test_tag.id,
265
265
  tag_value="finance")
@@ -269,30 +269,30 @@ class TagAssociation(pulumi.CustomResource):
269
269
  name="TABLE_NAME",
270
270
  comment="Terraform example table",
271
271
  columns=[
272
- snowflake.TableColumnArgs(
273
- name="column1",
274
- type="VARIANT",
275
- ),
276
- snowflake.TableColumnArgs(
277
- name="column2",
278
- type="VARCHAR(16)",
279
- ),
272
+ {
273
+ "name": "column1",
274
+ "type": "VARIANT",
275
+ },
276
+ {
277
+ "name": "column2",
278
+ "type": "VARCHAR(16)",
279
+ },
280
280
  ])
281
281
  table_association = snowflake.TagAssociation("table_association",
282
- object_identifiers=[snowflake.TagAssociationObjectIdentifierArgs(
283
- name=test_table.name,
284
- database=test.name,
285
- schema=test_schema.name,
286
- )],
282
+ object_identifiers=[{
283
+ "name": test_table.name,
284
+ "database": test.name,
285
+ "schema": test_schema.name,
286
+ }],
287
287
  object_type="TABLE",
288
288
  tag_id=test_tag.id,
289
289
  tag_value="engineering")
290
290
  column_association = snowflake.TagAssociation("column_association",
291
- object_identifiers=[snowflake.TagAssociationObjectIdentifierArgs(
292
- name=test_table.name.apply(lambda name: f"{name}.column_name"),
293
- database=test.name,
294
- schema=test_schema.name,
295
- )],
291
+ object_identifiers=[{
292
+ "name": test_table.name.apply(lambda name: f"{name}.column_name"),
293
+ "database": test.name,
294
+ "schema": test_schema.name,
295
+ }],
296
296
  object_type="COLUMN",
297
297
  tag_id=test_tag.id,
298
298
  tag_value="engineering")
@@ -308,7 +308,7 @@ class TagAssociation(pulumi.CustomResource):
308
308
 
309
309
  :param str resource_name: The name of the resource.
310
310
  :param pulumi.ResourceOptions opts: Options for the resource.
311
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TagAssociationObjectIdentifierArgs']]]] object_identifiers: Specifies the object identifier for the tag association.
311
+ :param pulumi.Input[Sequence[pulumi.Input[Union['TagAssociationObjectIdentifierArgs', 'TagAssociationObjectIdentifierArgsDict']]]] object_identifiers: Specifies the object identifier for the tag association.
312
312
  :param pulumi.Input[str] object_name: Specifies the object identifier for the tag association.
313
313
  :param pulumi.Input[str] object_type: Specifies the type of object to add a tag. Allowed object types: [ACCOUNT APPLICATION APPLICATION PACKAGE DATABASE INTEGRATION NETWORK POLICY ROLE SHARE USER WAREHOUSE DATABASE ROLE SCHEMA ALERT EXTERNAL FUNCTION EXTERNAL TABLE GIT REPOSITORY ICEBERG TABLE MATERIALIZED VIEW PIPE MASKING POLICY PASSWORD POLICY ROW ACCESS POLICY SESSION POLICY PROCEDURE STAGE STREAM TABLE TASK VIEW COLUMN EVENT TABLE].
314
314
  :param pulumi.Input[bool] skip_validation: If true, skips validation of the tag association.
@@ -341,9 +341,9 @@ class TagAssociation(pulumi.CustomResource):
341
341
  "engineering",
342
342
  ])
343
343
  db_association = snowflake.TagAssociation("db_association",
344
- object_identifiers=[snowflake.TagAssociationObjectIdentifierArgs(
345
- name=test.name,
346
- )],
344
+ object_identifiers=[{
345
+ "name": test.name,
346
+ }],
347
347
  object_type="DATABASE",
348
348
  tag_id=test_tag.id,
349
349
  tag_value="finance")
@@ -353,30 +353,30 @@ class TagAssociation(pulumi.CustomResource):
353
353
  name="TABLE_NAME",
354
354
  comment="Terraform example table",
355
355
  columns=[
356
- snowflake.TableColumnArgs(
357
- name="column1",
358
- type="VARIANT",
359
- ),
360
- snowflake.TableColumnArgs(
361
- name="column2",
362
- type="VARCHAR(16)",
363
- ),
356
+ {
357
+ "name": "column1",
358
+ "type": "VARIANT",
359
+ },
360
+ {
361
+ "name": "column2",
362
+ "type": "VARCHAR(16)",
363
+ },
364
364
  ])
365
365
  table_association = snowflake.TagAssociation("table_association",
366
- object_identifiers=[snowflake.TagAssociationObjectIdentifierArgs(
367
- name=test_table.name,
368
- database=test.name,
369
- schema=test_schema.name,
370
- )],
366
+ object_identifiers=[{
367
+ "name": test_table.name,
368
+ "database": test.name,
369
+ "schema": test_schema.name,
370
+ }],
371
371
  object_type="TABLE",
372
372
  tag_id=test_tag.id,
373
373
  tag_value="engineering")
374
374
  column_association = snowflake.TagAssociation("column_association",
375
- object_identifiers=[snowflake.TagAssociationObjectIdentifierArgs(
376
- name=test_table.name.apply(lambda name: f"{name}.column_name"),
377
- database=test.name,
378
- schema=test_schema.name,
379
- )],
375
+ object_identifiers=[{
376
+ "name": test_table.name.apply(lambda name: f"{name}.column_name"),
377
+ "database": test.name,
378
+ "schema": test_schema.name,
379
+ }],
380
380
  object_type="COLUMN",
381
381
  tag_id=test_tag.id,
382
382
  tag_value="engineering")
@@ -405,7 +405,7 @@ class TagAssociation(pulumi.CustomResource):
405
405
  def _internal_init(__self__,
406
406
  resource_name: str,
407
407
  opts: Optional[pulumi.ResourceOptions] = None,
408
- object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TagAssociationObjectIdentifierArgs']]]]] = None,
408
+ object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TagAssociationObjectIdentifierArgs', 'TagAssociationObjectIdentifierArgsDict']]]]] = None,
409
409
  object_name: Optional[pulumi.Input[str]] = None,
410
410
  object_type: Optional[pulumi.Input[str]] = None,
411
411
  skip_validation: Optional[pulumi.Input[bool]] = None,
@@ -444,7 +444,7 @@ class TagAssociation(pulumi.CustomResource):
444
444
  def get(resource_name: str,
445
445
  id: pulumi.Input[str],
446
446
  opts: Optional[pulumi.ResourceOptions] = None,
447
- object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TagAssociationObjectIdentifierArgs']]]]] = None,
447
+ object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TagAssociationObjectIdentifierArgs', 'TagAssociationObjectIdentifierArgsDict']]]]] = None,
448
448
  object_name: Optional[pulumi.Input[str]] = None,
449
449
  object_type: Optional[pulumi.Input[str]] = None,
450
450
  skip_validation: Optional[pulumi.Input[bool]] = None,
@@ -457,7 +457,7 @@ class TagAssociation(pulumi.CustomResource):
457
457
  :param str resource_name: The unique name of the resulting resource.
458
458
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
459
459
  :param pulumi.ResourceOptions opts: Options for the resource.
460
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TagAssociationObjectIdentifierArgs']]]] object_identifiers: Specifies the object identifier for the tag association.
460
+ :param pulumi.Input[Sequence[pulumi.Input[Union['TagAssociationObjectIdentifierArgs', 'TagAssociationObjectIdentifierArgsDict']]]] object_identifiers: Specifies the object identifier for the tag association.
461
461
  :param pulumi.Input[str] object_name: Specifies the object identifier for the tag association.
462
462
  :param pulumi.Input[str] object_type: Specifies the type of object to add a tag. Allowed object types: [ACCOUNT APPLICATION APPLICATION PACKAGE DATABASE INTEGRATION NETWORK POLICY ROLE SHARE USER WAREHOUSE DATABASE ROLE SCHEMA ALERT EXTERNAL FUNCTION EXTERNAL TABLE GIT REPOSITORY ICEBERG TABLE MATERIALIZED VIEW PIPE MASKING POLICY PASSWORD POLICY ROW ACCESS POLICY SESSION POLICY PROCEDURE STAGE STREAM TABLE TASK VIEW COLUMN EVENT TABLE].
463
463
  :param pulumi.Input[bool] skip_validation: If true, skips validation of the tag association.
@@ -112,7 +112,12 @@ class UserPasswordPolicyAttachment(pulumi.CustomResource):
112
112
  schema="security",
113
113
  name="default_policy")
114
114
  ppa = snowflake.UserPasswordPolicyAttachment("ppa",
115
- password_policy_name=pulumi.Output.all(pp.database, pp.schema, pp.name).apply(lambda database, schema, name: f"\\"{database}\\".\\"{schema}\\".\\"{name}\\""),
115
+ password_policy_name=pulumi.Output.all(
116
+ database=pp.database,
117
+ schema=pp.schema,
118
+ name=pp.name
119
+ ).apply(lambda resolved_outputs: f"\\"{resolved_outputs['database']}\\".\\"{resolved_outputs['schema']}\\".\\"{resolved_outputs['name']}\\"")
120
+ ,
116
121
  user_name=user.name)
117
122
  ```
118
123
 
@@ -148,7 +153,12 @@ class UserPasswordPolicyAttachment(pulumi.CustomResource):
148
153
  schema="security",
149
154
  name="default_policy")
150
155
  ppa = snowflake.UserPasswordPolicyAttachment("ppa",
151
- password_policy_name=pulumi.Output.all(pp.database, pp.schema, pp.name).apply(lambda database, schema, name: f"\\"{database}\\".\\"{schema}\\".\\"{name}\\""),
156
+ password_policy_name=pulumi.Output.all(
157
+ database=pp.database,
158
+ schema=pp.schema,
159
+ name=pp.name
160
+ ).apply(lambda resolved_outputs: f"\\"{resolved_outputs['database']}\\".\\"{resolved_outputs['schema']}\\".\\"{resolved_outputs['name']}\\"")
161
+ ,
152
162
  user_name=user.name)
153
163
  ```
154
164
 
pulumi_snowflake/view.py CHANGED
@@ -343,7 +343,7 @@ class View(pulumi.CustomResource):
343
343
  or_replace: Optional[pulumi.Input[bool]] = None,
344
344
  schema: Optional[pulumi.Input[str]] = None,
345
345
  statement: Optional[pulumi.Input[str]] = None,
346
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ViewTagArgs']]]]] = None,
346
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ViewTagArgs', 'ViewTagArgsDict']]]]] = None,
347
347
  __props__=None):
348
348
  """
349
349
  ## Example Usage
@@ -379,7 +379,7 @@ class View(pulumi.CustomResource):
379
379
  :param pulumi.Input[bool] or_replace: Overwrites the View if it exists.
380
380
  :param pulumi.Input[str] schema: The schema in which to create the view. Don't use the | character.
381
381
  :param pulumi.Input[str] statement: Specifies the query used to create the view.
382
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ViewTagArgs']]]] tags: Definitions of a tag to associate with the resource.
382
+ :param pulumi.Input[Sequence[pulumi.Input[Union['ViewTagArgs', 'ViewTagArgsDict']]]] tags: Definitions of a tag to associate with the resource.
383
383
  """
384
384
  ...
385
385
  @overload
@@ -435,7 +435,7 @@ class View(pulumi.CustomResource):
435
435
  or_replace: Optional[pulumi.Input[bool]] = None,
436
436
  schema: Optional[pulumi.Input[str]] = None,
437
437
  statement: Optional[pulumi.Input[str]] = None,
438
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ViewTagArgs']]]]] = None,
438
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ViewTagArgs', 'ViewTagArgsDict']]]]] = None,
439
439
  __props__=None):
440
440
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
441
441
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -480,7 +480,7 @@ class View(pulumi.CustomResource):
480
480
  or_replace: Optional[pulumi.Input[bool]] = None,
481
481
  schema: Optional[pulumi.Input[str]] = None,
482
482
  statement: Optional[pulumi.Input[str]] = None,
483
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ViewTagArgs']]]]] = None) -> 'View':
483
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ViewTagArgs', 'ViewTagArgsDict']]]]] = None) -> 'View':
484
484
  """
485
485
  Get an existing View resource's state with the given name, id, and optional extra
486
486
  properties used to qualify the lookup.
@@ -496,7 +496,7 @@ class View(pulumi.CustomResource):
496
496
  :param pulumi.Input[bool] or_replace: Overwrites the View if it exists.
497
497
  :param pulumi.Input[str] schema: The schema in which to create the view. Don't use the | character.
498
498
  :param pulumi.Input[str] statement: Specifies the query used to create the view.
499
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ViewTagArgs']]]] tags: Definitions of a tag to associate with the resource.
499
+ :param pulumi.Input[Sequence[pulumi.Input[Union['ViewTagArgs', 'ViewTagArgsDict']]]] tags: Definitions of a tag to associate with the resource.
500
500
  """
501
501
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
502
502
 
@@ -743,11 +743,11 @@ class Warehouse(pulumi.CustomResource):
743
743
  max_concurrency_level: Optional[pulumi.Input[int]] = None,
744
744
  min_cluster_count: Optional[pulumi.Input[int]] = None,
745
745
  name: Optional[pulumi.Input[str]] = None,
746
- parameters: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WarehouseParameterArgs']]]]] = None,
746
+ parameters: Optional[pulumi.Input[Sequence[pulumi.Input[Union['WarehouseParameterArgs', 'WarehouseParameterArgsDict']]]]] = None,
747
747
  query_acceleration_max_scale_factor: Optional[pulumi.Input[int]] = None,
748
748
  resource_monitor: Optional[pulumi.Input[str]] = None,
749
749
  scaling_policy: Optional[pulumi.Input[str]] = None,
750
- show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WarehouseShowOutputArgs']]]]] = None,
750
+ show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['WarehouseShowOutputArgs', 'WarehouseShowOutputArgsDict']]]]] = None,
751
751
  statement_queued_timeout_in_seconds: Optional[pulumi.Input[int]] = None,
752
752
  statement_timeout_in_seconds: Optional[pulumi.Input[int]] = None,
753
753
  warehouse_size: Optional[pulumi.Input[str]] = None,
@@ -768,11 +768,11 @@ class Warehouse(pulumi.CustomResource):
768
768
  :param pulumi.Input[int] max_concurrency_level: Object parameter that specifies the concurrency level for SQL statements (i.e. queries and DML) executed by a warehouse.
769
769
  :param pulumi.Input[int] min_cluster_count: Specifies the minimum number of server clusters for the warehouse (only applies to multi-cluster warehouses).
770
770
  :param pulumi.Input[str] name: Identifier for the virtual warehouse; must be unique for your account.
771
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WarehouseParameterArgs']]]] parameters: Outputs the result of `SHOW PARAMETERS IN WAREHOUSE` for the given warehouse.
771
+ :param pulumi.Input[Sequence[pulumi.Input[Union['WarehouseParameterArgs', 'WarehouseParameterArgsDict']]]] parameters: Outputs the result of `SHOW PARAMETERS IN WAREHOUSE` for the given warehouse.
772
772
  :param pulumi.Input[int] query_acceleration_max_scale_factor: Specifies the maximum scale factor for leasing compute resources for query acceleration. The scale factor is used as a multiplier based on warehouse size.
773
773
  :param pulumi.Input[str] resource_monitor: Specifies the name of a resource monitor that is explicitly assigned to the warehouse.
774
774
  :param pulumi.Input[str] scaling_policy: Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode. Valid values are (case-insensitive): `STANDARD` | `ECONOMY`.
775
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WarehouseShowOutputArgs']]]] show_outputs: Outputs the result of `SHOW WAREHOUSE` for the given warehouse.
775
+ :param pulumi.Input[Sequence[pulumi.Input[Union['WarehouseShowOutputArgs', 'WarehouseShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW WAREHOUSE` for the given warehouse.
776
776
  :param pulumi.Input[int] statement_queued_timeout_in_seconds: Object parameter that specifies the time, in seconds, a SQL statement (query, DDL, DML, etc.) can be queued on a warehouse before it is canceled by the system.
777
777
  :param pulumi.Input[int] statement_timeout_in_seconds: Specifies the time, in seconds, after which a running SQL statement (query, DDL, DML, etc.) is canceled by the system
778
778
  :param pulumi.Input[str] warehouse_size: Specifies the size of the virtual warehouse. Valid values are (case-insensitive): `XSMALL` | `X-SMALL` | `SMALL` | `MEDIUM` | `LARGE` | `XLARGE` | `X-LARGE` | `XXLARGE` | `X2LARGE` | `2X-LARGE` | `XXXLARGE` | `X3LARGE` | `3X-LARGE` | `X4LARGE` | `4X-LARGE` | `X5LARGE` | `5X-LARGE` | `X6LARGE` | `6X-LARGE`. Consult [warehouse documentation](https://docs.snowflake.com/en/sql-reference/sql/create-warehouse#optional-properties-objectproperties) for the details. Note: removing the size from config will result in the resource recreation.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_snowflake
3
- Version: 0.58.0a1723010512
3
+ Version: 0.58.0a1723820305
4
4
  Summary: A Pulumi package for creating and managing snowflake cloud resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io