|
464 | 464 | }, |
465 | 465 | "objectType": { |
466 | 466 | "type": "string", |
467 | | - "description": "The PostgreSQL object type to set the default privileges on (one of: table, sequence)\n" |
| 467 | + "description": "The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type)\n" |
468 | 468 | }, |
469 | 469 | "owner": { |
470 | 470 | "type": "string", |
|
501 | 501 | }, |
502 | 502 | "objectType": { |
503 | 503 | "type": "string", |
504 | | - "description": "The PostgreSQL object type to set the default privileges on (one of: table, sequence)\n" |
| 504 | + "description": "The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type)\n" |
505 | 505 | }, |
506 | 506 | "owner": { |
507 | 507 | "type": "string", |
|
540 | 540 | }, |
541 | 541 | "objectType": { |
542 | 542 | "type": "string", |
543 | | - "description": "The PostgreSQL object type to set the default privileges on (one of: table, sequence)\n" |
| 543 | + "description": "The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type)\n" |
544 | 544 | }, |
545 | 545 | "owner": { |
546 | 546 | "type": "string", |
|
575 | 575 | }, |
576 | 576 | "objectType": { |
577 | 577 | "type": "string", |
578 | | - "description": "The PostgreSQL object type to set the default privileges on (one of: table, sequence).\n" |
| 578 | + "description": "The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type).\n" |
579 | 579 | }, |
580 | 580 | "owner": { |
581 | 581 | "type": "string", |
|
612 | 612 | }, |
613 | 613 | "objectType": { |
614 | 614 | "type": "string", |
615 | | - "description": "The PostgreSQL object type to set the default privileges on (one of: table, sequence).\n" |
| 615 | + "description": "The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type).\n" |
616 | 616 | }, |
617 | 617 | "owner": { |
618 | 618 | "type": "string", |
|
651 | 651 | }, |
652 | 652 | "objectType": { |
653 | 653 | "type": "string", |
654 | | - "description": "The PostgreSQL object type to set the default privileges on (one of: table, sequence).\n" |
| 654 | + "description": "The PostgreSQL object type to set the default privileges on (one of: table, sequence, function, type).\n" |
655 | 655 | }, |
656 | 656 | "owner": { |
657 | 657 | "type": "string", |
|
749 | 749 | } |
750 | 750 | }, |
751 | 751 | "postgresql:index/grant:Grant": { |
752 | | - "description": "The ``postgresql.Grant`` resource creates and manages privileges given to a user for a database schema.\n\n\u003e **Note:** This resource needs Postgresql version 9 or above.\n\n## Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as postgresql from \"@pulumi/postgresql\";\n\nconst readonlyTables = new postgresql.Grant(\"readonly_tables\", {\n database: \"test_db\",\n objectType: \"table\",\n privileges: [\"SELECT\"],\n role: \"test_role\",\n schema: \"public\",\n});\n```\n```python\nimport pulumi\nimport pulumi_postgresql as postgresql\n\nreadonly_tables = postgresql.Grant(\"readonlyTables\",\n database=\"test_db\",\n object_type=\"table\",\n privileges=[\"SELECT\"],\n role=\"test_role\",\n schema=\"public\")\n```\n```csharp\nusing Pulumi;\nusing PostgreSql = Pulumi.PostgreSql;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var readonlyTables = new PostgreSql.Grant(\"readonlyTables\", new PostgreSql.GrantArgs\n {\n Database = \"test_db\",\n ObjectType = \"table\",\n Privileges = \n {\n \"SELECT\",\n },\n Role = \"test_role\",\n Schema = \"public\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-postgresql/sdk/v2/go/postgresql\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := postgresql.NewGrant(ctx, \"readonlyTables\", \u0026postgresql.GrantArgs{\n\t\t\tDatabase: pulumi.String(\"test_db\"),\n\t\t\tObjectType: pulumi.String(\"table\"),\n\t\t\tPrivileges: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"SELECT\"),\n\t\t\t},\n\t\t\tRole: pulumi.String(\"test_role\"),\n\t\t\tSchema: pulumi.String(\"public\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n", |
| 752 | + "description": "The ``postgresql.Grant`` resource creates and manages privileges given to a user for a database schema.\n\nSee [PostgreSQL documentation](https://www.postgresql.org/docs/current/sql-grant.html)\n\n\u003e **Note:** This resource needs Postgresql version 9 or above.\n\n## Usage\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as postgresql from \"@pulumi/postgresql\";\n\nconst readonlyTables = new postgresql.Grant(\"readonly_tables\", {\n database: \"test_db\",\n objectType: \"table\",\n privileges: [\"SELECT\"],\n role: \"test_role\",\n schema: \"public\",\n});\n```\n```python\nimport pulumi\nimport pulumi_postgresql as postgresql\n\nreadonly_tables = postgresql.Grant(\"readonlyTables\",\n database=\"test_db\",\n object_type=\"table\",\n privileges=[\"SELECT\"],\n role=\"test_role\",\n schema=\"public\")\n```\n```csharp\nusing Pulumi;\nusing PostgreSql = Pulumi.PostgreSql;\n\nclass MyStack : Stack\n{\n public MyStack()\n {\n var readonlyTables = new PostgreSql.Grant(\"readonlyTables\", new PostgreSql.GrantArgs\n {\n Database = \"test_db\",\n ObjectType = \"table\",\n Privileges = \n {\n \"SELECT\",\n },\n Role = \"test_role\",\n Schema = \"public\",\n });\n }\n\n}\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-postgresql/sdk/v2/go/postgresql\"\n\t\"github.com/pulumi/pulumi/sdk/v2/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := postgresql.NewGrant(ctx, \"readonlyTables\", \u0026postgresql.GrantArgs{\n\t\t\tDatabase: pulumi.String(\"test_db\"),\n\t\t\tObjectType: pulumi.String(\"table\"),\n\t\t\tPrivileges: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"SELECT\"),\n\t\t\t},\n\t\t\tRole: pulumi.String(\"test_role\"),\n\t\t\tSchema: pulumi.String(\"public\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n", |
753 | 753 | "properties": { |
754 | 754 | "database": { |
755 | 755 | "type": "string", |
756 | 756 | "description": "The database to grant privileges on for this role.\n" |
757 | 757 | }, |
758 | 758 | "objectType": { |
759 | 759 | "type": "string", |
760 | | - "description": "The PostgreSQL object type to grant the privileges on (one of: table, sequence).\n" |
| 760 | + "description": "The PostgreSQL object type to grant the privileges on (one of: database, table, sequence,function).\n" |
761 | 761 | }, |
762 | 762 | "privileges": { |
763 | 763 | "type": "array", |
764 | 764 | "items": { |
765 | 765 | "type": "string" |
766 | 766 | }, |
767 | | - "description": "The list of privileges to grant.\n" |
| 767 | + "description": "The list of privileges to grant. There are different kinds of privileges: SELECT, INSERT, UPDATE, DELETE, TRUNCATE, REFERENCES, TRIGGER, CREATE, CONNECT, TEMPORARY, EXECUTE, and USAGE.\n" |
768 | 768 | }, |
769 | 769 | "role": { |
770 | 770 | "type": "string", |
|
792 | 792 | }, |
793 | 793 | "objectType": { |
794 | 794 | "type": "string", |
795 | | - "description": "The PostgreSQL object type to grant the privileges on (one of: table, sequence).\n" |
| 795 | + "description": "The PostgreSQL object type to grant the privileges on (one of: database, table, sequence,function).\n" |
796 | 796 | }, |
797 | 797 | "privileges": { |
798 | 798 | "type": "array", |
799 | 799 | "items": { |
800 | 800 | "type": "string" |
801 | 801 | }, |
802 | | - "description": "The list of privileges to grant.\n" |
| 802 | + "description": "The list of privileges to grant. There are different kinds of privileges: SELECT, INSERT, UPDATE, DELETE, TRUNCATE, REFERENCES, TRIGGER, CREATE, CONNECT, TEMPORARY, EXECUTE, and USAGE.\n" |
803 | 803 | }, |
804 | 804 | "role": { |
805 | 805 | "type": "string", |
|
829 | 829 | }, |
830 | 830 | "objectType": { |
831 | 831 | "type": "string", |
832 | | - "description": "The PostgreSQL object type to grant the privileges on (one of: table, sequence).\n" |
| 832 | + "description": "The PostgreSQL object type to grant the privileges on (one of: database, table, sequence,function).\n" |
833 | 833 | }, |
834 | 834 | "privileges": { |
835 | 835 | "type": "array", |
836 | 836 | "items": { |
837 | 837 | "type": "string" |
838 | 838 | }, |
839 | | - "description": "The list of privileges to grant.\n" |
| 839 | + "description": "The list of privileges to grant. There are different kinds of privileges: SELECT, INSERT, UPDATE, DELETE, TRUNCATE, REFERENCES, TRIGGER, CREATE, CONNECT, TEMPORARY, EXECUTE, and USAGE.\n" |
840 | 840 | }, |
841 | 841 | "role": { |
842 | 842 | "type": "string", |
|
0 commit comments