diff --git a/examples/go.mod b/examples/go.mod index fcb9b4d..2501948 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -2,7 +2,7 @@ module github.com/pulumi/pulumi-postgresql/examples/v3 go 1.21 -require github.com/pulumi/pulumi/pkg/v3 v3.140.0 +require github.com/pulumi/pulumi/pkg/v3 v3.142.0 require ( cloud.google.com/go v0.112.1 // indirect @@ -123,7 +123,7 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect github.com/pulumi/esc v0.10.0 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.140.0 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.142.0 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.12.0 // indirect github.com/ryanuber/go-glob v1.0.0 // indirect diff --git a/examples/go.sum b/examples/go.sum index e2374cd..304740d 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -339,10 +339,10 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.10.0 h1:jzBKzkLVW0mePeanDRfqSQoCJ5yrkux0jIwAkUxpRKE= github.com/pulumi/esc v0.10.0/go.mod h1:2Bfa+FWj/xl8CKqRTWbWgDX0SOD4opdQgvYSURTGK2c= -github.com/pulumi/pulumi/pkg/v3 v3.140.0 h1:/bvHa19HY/6qHWvuAOVII8qr72MDGGczBWlPYlPo3j0= -github.com/pulumi/pulumi/pkg/v3 v3.140.0/go.mod h1:rcTtSyisd7BzZTugNk/s9zlYgX9S0S10+pha3Tko6yM= -github.com/pulumi/pulumi/sdk/v3 v3.140.0 h1:+Z/RBvdYg7tBNkBwk4p/FzlV7niBT3TbLAICq/Y0LDU= -github.com/pulumi/pulumi/sdk/v3 v3.140.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= +github.com/pulumi/pulumi/pkg/v3 v3.142.0 h1:UE8TFyXrlxvPrATpd3Kl3En34KrFIFWOxxNAodywPNU= +github.com/pulumi/pulumi/pkg/v3 v3.142.0/go.mod h1:3k6WwRIT7veiDnk3Yo2NtqEYX+4dgLCrMIFvEOnjQqI= +github.com/pulumi/pulumi/sdk/v3 v3.142.0 h1:SmcVddGuvwAh3g3XUVQQ5gVRQUKH1yZ6iETpDNHIHlw= +github.com/pulumi/pulumi/sdk/v3 v3.142.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= diff --git a/provider/cmd/pulumi-resource-postgresql/schema.json b/provider/cmd/pulumi-resource-postgresql/schema.json index d720844..fdcd356 100644 --- a/provider/cmd/pulumi-resource-postgresql/schema.json +++ b/provider/cmd/pulumi-resource-postgresql/schema.json @@ -2151,7 +2151,7 @@ } }, "postgresql:index/server:Server": { - "description": "The ``postgresql.Server`` resource creates and manages a foreign server on a PostgreSQL server.\n\n\n## Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as postgresql from \"@pulumi/postgresql\";\n\nconst extPostgresFdw = new postgresql.Extension(\"ext_postgres_fdw\", {name: \"postgres_fdw\"});\nconst myserverPostgres = new postgresql.Server(\"myserver_postgres\", {\n serverName: \"myserver_postgres\",\n fdwName: \"postgres_fdw\",\n options: {\n host: \"foo\",\n dbname: \"foodb\",\n port: \"5432\",\n },\n}, {\n dependsOn: [extPostgresFdw],\n});\n```\n```python\nimport pulumi\nimport pulumi_postgresql as postgresql\n\next_postgres_fdw = postgresql.Extension(\"ext_postgres_fdw\", name=\"postgres_fdw\")\nmyserver_postgres = postgresql.Server(\"myserver_postgres\",\n server_name=\"myserver_postgres\",\n fdw_name=\"postgres_fdw\",\n options={\n \"host\": \"foo\",\n \"dbname\": \"foodb\",\n \"port\": \"5432\",\n },\n opts = pulumi.ResourceOptions(depends_on=[ext_postgres_fdw]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing PostgreSql = Pulumi.PostgreSql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var extPostgresFdw = new PostgreSql.Extension(\"ext_postgres_fdw\", new()\n {\n Name = \"postgres_fdw\",\n });\n\n var myserverPostgres = new PostgreSql.Server(\"myserver_postgres\", new()\n {\n ServerName = \"myserver_postgres\",\n FdwName = \"postgres_fdw\",\n Options = \n {\n { \"host\", \"foo\" },\n { \"dbname\", \"foodb\" },\n { \"port\", \"5432\" },\n },\n }, new CustomResourceOptions\n {\n DependsOn =\n {\n extPostgresFdw,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-postgresql/sdk/v3/go/postgresql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\textPostgresFdw, err := postgresql.NewExtension(ctx, \"ext_postgres_fdw\", \u0026postgresql.ExtensionArgs{\n\t\t\tName: pulumi.String(\"postgres_fdw\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = postgresql.NewServer(ctx, \"myserver_postgres\", \u0026postgresql.ServerArgs{\n\t\t\tServerName: pulumi.String(\"myserver_postgres\"),\n\t\t\tFdwName: pulumi.String(\"postgres_fdw\"),\n\t\t\tOptions: pulumi.StringMap{\n\t\t\t\t\"host\": pulumi.String(\"foo\"),\n\t\t\t\t\"dbname\": pulumi.String(\"foodb\"),\n\t\t\t\t\"port\": pulumi.String(\"5432\"),\n\t\t\t},\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\textPostgresFdw,\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.postgresql.Extension;\nimport com.pulumi.postgresql.ExtensionArgs;\nimport com.pulumi.postgresql.Server;\nimport com.pulumi.postgresql.ServerArgs;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var extPostgresFdw = new Extension(\"extPostgresFdw\", ExtensionArgs.builder()\n .name(\"postgres_fdw\")\n .build());\n\n var myserverPostgres = new Server(\"myserverPostgres\", ServerArgs.builder()\n .serverName(\"myserver_postgres\")\n .fdwName(\"postgres_fdw\")\n .options(Map.ofEntries(\n Map.entry(\"host\", \"foo\"),\n Map.entry(\"dbname\", \"foodb\"),\n Map.entry(\"port\", \"5432\")\n ))\n .build(), CustomResourceOptions.builder()\n .dependsOn(extPostgresFdw)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n extPostgresFdw:\n type: postgresql:Extension\n name: ext_postgres_fdw\n properties:\n name: postgres_fdw\n myserverPostgres:\n type: postgresql:Server\n name: myserver_postgres\n properties:\n serverName: myserver_postgres\n fdwName: postgres_fdw\n options:\n host: foo\n dbname: foodb\n port: '5432'\n options:\n dependson:\n - ${extPostgresFdw}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as postgresql from \"@pulumi/postgresql\";\n\nconst extFileFdw = new postgresql.Extension(\"ext_file_fdw\", {name: \"file_fdw\"});\nconst myserverFile = new postgresql.Server(\"myserver_file\", {\n serverName: \"myserver_file\",\n fdwName: \"file_fdw\",\n}, {\n dependsOn: [extFileFdw],\n});\n```\n```python\nimport pulumi\nimport pulumi_postgresql as postgresql\n\next_file_fdw = postgresql.Extension(\"ext_file_fdw\", name=\"file_fdw\")\nmyserver_file = postgresql.Server(\"myserver_file\",\n server_name=\"myserver_file\",\n fdw_name=\"file_fdw\",\n opts = pulumi.ResourceOptions(depends_on=[ext_file_fdw]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing PostgreSql = Pulumi.PostgreSql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var extFileFdw = new PostgreSql.Extension(\"ext_file_fdw\", new()\n {\n Name = \"file_fdw\",\n });\n\n var myserverFile = new PostgreSql.Server(\"myserver_file\", new()\n {\n ServerName = \"myserver_file\",\n FdwName = \"file_fdw\",\n }, new CustomResourceOptions\n {\n DependsOn =\n {\n extFileFdw,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-postgresql/sdk/v3/go/postgresql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\textFileFdw, err := postgresql.NewExtension(ctx, \"ext_file_fdw\", \u0026postgresql.ExtensionArgs{\n\t\t\tName: pulumi.String(\"file_fdw\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = postgresql.NewServer(ctx, \"myserver_file\", \u0026postgresql.ServerArgs{\n\t\t\tServerName: pulumi.String(\"myserver_file\"),\n\t\t\tFdwName: pulumi.String(\"file_fdw\"),\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\textFileFdw,\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.postgresql.Extension;\nimport com.pulumi.postgresql.ExtensionArgs;\nimport com.pulumi.postgresql.Server;\nimport com.pulumi.postgresql.ServerArgs;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var extFileFdw = new Extension(\"extFileFdw\", ExtensionArgs.builder()\n .name(\"file_fdw\")\n .build());\n\n var myserverFile = new Server(\"myserverFile\", ServerArgs.builder()\n .serverName(\"myserver_file\")\n .fdwName(\"file_fdw\")\n .build(), CustomResourceOptions.builder()\n .dependsOn(extFileFdw)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n extFileFdw:\n type: postgresql:Extension\n name: ext_file_fdw\n properties:\n name: file_fdw\n myserverFile:\n type: postgresql:Server\n name: myserver_file\n properties:\n serverName: myserver_file\n fdwName: file_fdw\n options:\n dependson:\n - ${extFileFdw}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "The ``postgresql.Server`` resource creates and manages a foreign server on a PostgreSQL server.\n\n\n## Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as postgresql from \"@pulumi/postgresql\";\n\nconst extPostgresFdw = new postgresql.Extension(\"ext_postgres_fdw\", {name: \"postgres_fdw\"});\nconst myserverPostgres = new postgresql.Server(\"myserver_postgres\", {\n serverName: \"myserver_postgres\",\n fdwName: \"postgres_fdw\",\n options: {\n host: \"foo\",\n dbname: \"foodb\",\n port: \"5432\",\n },\n}, {\n dependsOn: [extPostgresFdw],\n});\n```\n```python\nimport pulumi\nimport pulumi_postgresql as postgresql\n\next_postgres_fdw = postgresql.Extension(\"ext_postgres_fdw\", name=\"postgres_fdw\")\nmyserver_postgres = postgresql.Server(\"myserver_postgres\",\n server_name=\"myserver_postgres\",\n fdw_name=\"postgres_fdw\",\n options={\n \"host\": \"foo\",\n \"dbname\": \"foodb\",\n \"port\": \"5432\",\n },\n opts = pulumi.ResourceOptions(depends_on=[ext_postgres_fdw]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing PostgreSql = Pulumi.PostgreSql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var extPostgresFdw = new PostgreSql.Extension(\"ext_postgres_fdw\", new()\n {\n Name = \"postgres_fdw\",\n });\n\n var myserverPostgres = new PostgreSql.Server(\"myserver_postgres\", new()\n {\n ServerName = \"myserver_postgres\",\n FdwName = \"postgres_fdw\",\n Options = \n {\n { \"host\", \"foo\" },\n { \"dbname\", \"foodb\" },\n { \"port\", \"5432\" },\n },\n }, new CustomResourceOptions\n {\n DependsOn =\n {\n extPostgresFdw,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-postgresql/sdk/v3/go/postgresql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\textPostgresFdw, err := postgresql.NewExtension(ctx, \"ext_postgres_fdw\", \u0026postgresql.ExtensionArgs{\n\t\t\tName: pulumi.String(\"postgres_fdw\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = postgresql.NewServer(ctx, \"myserver_postgres\", \u0026postgresql.ServerArgs{\n\t\t\tServerName: pulumi.String(\"myserver_postgres\"),\n\t\t\tFdwName: pulumi.String(\"postgres_fdw\"),\n\t\t\tOptions: pulumi.StringMap{\n\t\t\t\t\"host\": pulumi.String(\"foo\"),\n\t\t\t\t\"dbname\": pulumi.String(\"foodb\"),\n\t\t\t\t\"port\": pulumi.String(\"5432\"),\n\t\t\t},\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\textPostgresFdw,\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.postgresql.Extension;\nimport com.pulumi.postgresql.ExtensionArgs;\nimport com.pulumi.postgresql.Server;\nimport com.pulumi.postgresql.ServerArgs;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var extPostgresFdw = new Extension(\"extPostgresFdw\", ExtensionArgs.builder()\n .name(\"postgres_fdw\")\n .build());\n\n var myserverPostgres = new Server(\"myserverPostgres\", ServerArgs.builder()\n .serverName(\"myserver_postgres\")\n .fdwName(\"postgres_fdw\")\n .options(Map.ofEntries(\n Map.entry(\"host\", \"foo\"),\n Map.entry(\"dbname\", \"foodb\"),\n Map.entry(\"port\", \"5432\")\n ))\n .build(), CustomResourceOptions.builder()\n .dependsOn(extPostgresFdw)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n extPostgresFdw:\n type: postgresql:Extension\n name: ext_postgres_fdw\n properties:\n name: postgres_fdw\n myserverPostgres:\n type: postgresql:Server\n name: myserver_postgres\n properties:\n serverName: myserver_postgres\n fdwName: postgres_fdw\n options:\n host: foo\n dbname: foodb\n port: '5432'\n options:\n dependsOn:\n - ${extPostgresFdw}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as postgresql from \"@pulumi/postgresql\";\n\nconst extFileFdw = new postgresql.Extension(\"ext_file_fdw\", {name: \"file_fdw\"});\nconst myserverFile = new postgresql.Server(\"myserver_file\", {\n serverName: \"myserver_file\",\n fdwName: \"file_fdw\",\n}, {\n dependsOn: [extFileFdw],\n});\n```\n```python\nimport pulumi\nimport pulumi_postgresql as postgresql\n\next_file_fdw = postgresql.Extension(\"ext_file_fdw\", name=\"file_fdw\")\nmyserver_file = postgresql.Server(\"myserver_file\",\n server_name=\"myserver_file\",\n fdw_name=\"file_fdw\",\n opts = pulumi.ResourceOptions(depends_on=[ext_file_fdw]))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing PostgreSql = Pulumi.PostgreSql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var extFileFdw = new PostgreSql.Extension(\"ext_file_fdw\", new()\n {\n Name = \"file_fdw\",\n });\n\n var myserverFile = new PostgreSql.Server(\"myserver_file\", new()\n {\n ServerName = \"myserver_file\",\n FdwName = \"file_fdw\",\n }, new CustomResourceOptions\n {\n DependsOn =\n {\n extFileFdw,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-postgresql/sdk/v3/go/postgresql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\textFileFdw, err := postgresql.NewExtension(ctx, \"ext_file_fdw\", \u0026postgresql.ExtensionArgs{\n\t\t\tName: pulumi.String(\"file_fdw\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = postgresql.NewServer(ctx, \"myserver_file\", \u0026postgresql.ServerArgs{\n\t\t\tServerName: pulumi.String(\"myserver_file\"),\n\t\t\tFdwName: pulumi.String(\"file_fdw\"),\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\textFileFdw,\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.postgresql.Extension;\nimport com.pulumi.postgresql.ExtensionArgs;\nimport com.pulumi.postgresql.Server;\nimport com.pulumi.postgresql.ServerArgs;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var extFileFdw = new Extension(\"extFileFdw\", ExtensionArgs.builder()\n .name(\"file_fdw\")\n .build());\n\n var myserverFile = new Server(\"myserverFile\", ServerArgs.builder()\n .serverName(\"myserver_file\")\n .fdwName(\"file_fdw\")\n .build(), CustomResourceOptions.builder()\n .dependsOn(extFileFdw)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n extFileFdw:\n type: postgresql:Extension\n name: ext_file_fdw\n properties:\n name: file_fdw\n myserverFile:\n type: postgresql:Server\n name: myserver_file\n properties:\n serverName: myserver_file\n fdwName: file_fdw\n options:\n dependsOn:\n - ${extFileFdw}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "dropCascade": { "type": "boolean", @@ -2389,7 +2389,7 @@ } }, "postgresql:index/userMapping:UserMapping": { - "description": "The ``postgresql.UserMapping`` resource creates and manages a user mapping on a PostgreSQL server.\n\n\n## Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as postgresql from \"@pulumi/postgresql\";\n\nconst extPostgresFdw = new postgresql.Extension(\"ext_postgres_fdw\", {name: \"postgres_fdw\"});\nconst myserverPostgres = new postgresql.Server(\"myserver_postgres\", {\n serverName: \"myserver_postgres\",\n fdwName: \"postgres_fdw\",\n options: {\n host: \"foo\",\n dbname: \"foodb\",\n port: \"5432\",\n },\n}, {\n dependsOn: [extPostgresFdw],\n});\nconst remote = new postgresql.Role(\"remote\", {name: \"remote\"});\nconst remoteUserMapping = new postgresql.UserMapping(\"remote\", {\n serverName: myserverPostgres.serverName,\n userName: remote.name,\n options: {\n user: \"admin\",\n password: \"pass\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_postgresql as postgresql\n\next_postgres_fdw = postgresql.Extension(\"ext_postgres_fdw\", name=\"postgres_fdw\")\nmyserver_postgres = postgresql.Server(\"myserver_postgres\",\n server_name=\"myserver_postgres\",\n fdw_name=\"postgres_fdw\",\n options={\n \"host\": \"foo\",\n \"dbname\": \"foodb\",\n \"port\": \"5432\",\n },\n opts = pulumi.ResourceOptions(depends_on=[ext_postgres_fdw]))\nremote = postgresql.Role(\"remote\", name=\"remote\")\nremote_user_mapping = postgresql.UserMapping(\"remote\",\n server_name=myserver_postgres.server_name,\n user_name=remote.name,\n options={\n \"user\": \"admin\",\n \"password\": \"pass\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing PostgreSql = Pulumi.PostgreSql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var extPostgresFdw = new PostgreSql.Extension(\"ext_postgres_fdw\", new()\n {\n Name = \"postgres_fdw\",\n });\n\n var myserverPostgres = new PostgreSql.Server(\"myserver_postgres\", new()\n {\n ServerName = \"myserver_postgres\",\n FdwName = \"postgres_fdw\",\n Options = \n {\n { \"host\", \"foo\" },\n { \"dbname\", \"foodb\" },\n { \"port\", \"5432\" },\n },\n }, new CustomResourceOptions\n {\n DependsOn =\n {\n extPostgresFdw,\n },\n });\n\n var remote = new PostgreSql.Role(\"remote\", new()\n {\n Name = \"remote\",\n });\n\n var remoteUserMapping = new PostgreSql.UserMapping(\"remote\", new()\n {\n ServerName = myserverPostgres.ServerName,\n UserName = remote.Name,\n Options = \n {\n { \"user\", \"admin\" },\n { \"password\", \"pass\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-postgresql/sdk/v3/go/postgresql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\textPostgresFdw, err := postgresql.NewExtension(ctx, \"ext_postgres_fdw\", \u0026postgresql.ExtensionArgs{\n\t\t\tName: pulumi.String(\"postgres_fdw\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tmyserverPostgres, err := postgresql.NewServer(ctx, \"myserver_postgres\", \u0026postgresql.ServerArgs{\n\t\t\tServerName: pulumi.String(\"myserver_postgres\"),\n\t\t\tFdwName: pulumi.String(\"postgres_fdw\"),\n\t\t\tOptions: pulumi.StringMap{\n\t\t\t\t\"host\": pulumi.String(\"foo\"),\n\t\t\t\t\"dbname\": pulumi.String(\"foodb\"),\n\t\t\t\t\"port\": pulumi.String(\"5432\"),\n\t\t\t},\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\textPostgresFdw,\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tremote, err := postgresql.NewRole(ctx, \"remote\", \u0026postgresql.RoleArgs{\n\t\t\tName: pulumi.String(\"remote\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = postgresql.NewUserMapping(ctx, \"remote\", \u0026postgresql.UserMappingArgs{\n\t\t\tServerName: myserverPostgres.ServerName,\n\t\t\tUserName: remote.Name,\n\t\t\tOptions: pulumi.StringMap{\n\t\t\t\t\"user\": pulumi.String(\"admin\"),\n\t\t\t\t\"password\": pulumi.String(\"pass\"),\n\t\t\t},\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.postgresql.Extension;\nimport com.pulumi.postgresql.ExtensionArgs;\nimport com.pulumi.postgresql.Server;\nimport com.pulumi.postgresql.ServerArgs;\nimport com.pulumi.postgresql.Role;\nimport com.pulumi.postgresql.RoleArgs;\nimport com.pulumi.postgresql.UserMapping;\nimport com.pulumi.postgresql.UserMappingArgs;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var extPostgresFdw = new Extension(\"extPostgresFdw\", ExtensionArgs.builder()\n .name(\"postgres_fdw\")\n .build());\n\n var myserverPostgres = new Server(\"myserverPostgres\", ServerArgs.builder()\n .serverName(\"myserver_postgres\")\n .fdwName(\"postgres_fdw\")\n .options(Map.ofEntries(\n Map.entry(\"host\", \"foo\"),\n Map.entry(\"dbname\", \"foodb\"),\n Map.entry(\"port\", \"5432\")\n ))\n .build(), CustomResourceOptions.builder()\n .dependsOn(extPostgresFdw)\n .build());\n\n var remote = new Role(\"remote\", RoleArgs.builder()\n .name(\"remote\")\n .build());\n\n var remoteUserMapping = new UserMapping(\"remoteUserMapping\", UserMappingArgs.builder()\n .serverName(myserverPostgres.serverName())\n .userName(remote.name())\n .options(Map.ofEntries(\n Map.entry(\"user\", \"admin\"),\n Map.entry(\"password\", \"pass\")\n ))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n extPostgresFdw:\n type: postgresql:Extension\n name: ext_postgres_fdw\n properties:\n name: postgres_fdw\n myserverPostgres:\n type: postgresql:Server\n name: myserver_postgres\n properties:\n serverName: myserver_postgres\n fdwName: postgres_fdw\n options:\n host: foo\n dbname: foodb\n port: '5432'\n options:\n dependson:\n - ${extPostgresFdw}\n remote:\n type: postgresql:Role\n properties:\n name: remote\n remoteUserMapping:\n type: postgresql:UserMapping\n name: remote\n properties:\n serverName: ${myserverPostgres.serverName}\n userName: ${remote.name}\n options:\n user: admin\n password: pass\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "The ``postgresql.UserMapping`` resource creates and manages a user mapping on a PostgreSQL server.\n\n\n## Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as postgresql from \"@pulumi/postgresql\";\n\nconst extPostgresFdw = new postgresql.Extension(\"ext_postgres_fdw\", {name: \"postgres_fdw\"});\nconst myserverPostgres = new postgresql.Server(\"myserver_postgres\", {\n serverName: \"myserver_postgres\",\n fdwName: \"postgres_fdw\",\n options: {\n host: \"foo\",\n dbname: \"foodb\",\n port: \"5432\",\n },\n}, {\n dependsOn: [extPostgresFdw],\n});\nconst remote = new postgresql.Role(\"remote\", {name: \"remote\"});\nconst remoteUserMapping = new postgresql.UserMapping(\"remote\", {\n serverName: myserverPostgres.serverName,\n userName: remote.name,\n options: {\n user: \"admin\",\n password: \"pass\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_postgresql as postgresql\n\next_postgres_fdw = postgresql.Extension(\"ext_postgres_fdw\", name=\"postgres_fdw\")\nmyserver_postgres = postgresql.Server(\"myserver_postgres\",\n server_name=\"myserver_postgres\",\n fdw_name=\"postgres_fdw\",\n options={\n \"host\": \"foo\",\n \"dbname\": \"foodb\",\n \"port\": \"5432\",\n },\n opts = pulumi.ResourceOptions(depends_on=[ext_postgres_fdw]))\nremote = postgresql.Role(\"remote\", name=\"remote\")\nremote_user_mapping = postgresql.UserMapping(\"remote\",\n server_name=myserver_postgres.server_name,\n user_name=remote.name,\n options={\n \"user\": \"admin\",\n \"password\": \"pass\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing PostgreSql = Pulumi.PostgreSql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var extPostgresFdw = new PostgreSql.Extension(\"ext_postgres_fdw\", new()\n {\n Name = \"postgres_fdw\",\n });\n\n var myserverPostgres = new PostgreSql.Server(\"myserver_postgres\", new()\n {\n ServerName = \"myserver_postgres\",\n FdwName = \"postgres_fdw\",\n Options = \n {\n { \"host\", \"foo\" },\n { \"dbname\", \"foodb\" },\n { \"port\", \"5432\" },\n },\n }, new CustomResourceOptions\n {\n DependsOn =\n {\n extPostgresFdw,\n },\n });\n\n var remote = new PostgreSql.Role(\"remote\", new()\n {\n Name = \"remote\",\n });\n\n var remoteUserMapping = new PostgreSql.UserMapping(\"remote\", new()\n {\n ServerName = myserverPostgres.ServerName,\n UserName = remote.Name,\n Options = \n {\n { \"user\", \"admin\" },\n { \"password\", \"pass\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-postgresql/sdk/v3/go/postgresql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\textPostgresFdw, err := postgresql.NewExtension(ctx, \"ext_postgres_fdw\", \u0026postgresql.ExtensionArgs{\n\t\t\tName: pulumi.String(\"postgres_fdw\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tmyserverPostgres, err := postgresql.NewServer(ctx, \"myserver_postgres\", \u0026postgresql.ServerArgs{\n\t\t\tServerName: pulumi.String(\"myserver_postgres\"),\n\t\t\tFdwName: pulumi.String(\"postgres_fdw\"),\n\t\t\tOptions: pulumi.StringMap{\n\t\t\t\t\"host\": pulumi.String(\"foo\"),\n\t\t\t\t\"dbname\": pulumi.String(\"foodb\"),\n\t\t\t\t\"port\": pulumi.String(\"5432\"),\n\t\t\t},\n\t\t}, pulumi.DependsOn([]pulumi.Resource{\n\t\t\textPostgresFdw,\n\t\t}))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tremote, err := postgresql.NewRole(ctx, \"remote\", \u0026postgresql.RoleArgs{\n\t\t\tName: pulumi.String(\"remote\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = postgresql.NewUserMapping(ctx, \"remote\", \u0026postgresql.UserMappingArgs{\n\t\t\tServerName: myserverPostgres.ServerName,\n\t\t\tUserName: remote.Name,\n\t\t\tOptions: pulumi.StringMap{\n\t\t\t\t\"user\": pulumi.String(\"admin\"),\n\t\t\t\t\"password\": pulumi.String(\"pass\"),\n\t\t\t},\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```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.postgresql.Extension;\nimport com.pulumi.postgresql.ExtensionArgs;\nimport com.pulumi.postgresql.Server;\nimport com.pulumi.postgresql.ServerArgs;\nimport com.pulumi.postgresql.Role;\nimport com.pulumi.postgresql.RoleArgs;\nimport com.pulumi.postgresql.UserMapping;\nimport com.pulumi.postgresql.UserMappingArgs;\nimport com.pulumi.resources.CustomResourceOptions;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var extPostgresFdw = new Extension(\"extPostgresFdw\", ExtensionArgs.builder()\n .name(\"postgres_fdw\")\n .build());\n\n var myserverPostgres = new Server(\"myserverPostgres\", ServerArgs.builder()\n .serverName(\"myserver_postgres\")\n .fdwName(\"postgres_fdw\")\n .options(Map.ofEntries(\n Map.entry(\"host\", \"foo\"),\n Map.entry(\"dbname\", \"foodb\"),\n Map.entry(\"port\", \"5432\")\n ))\n .build(), CustomResourceOptions.builder()\n .dependsOn(extPostgresFdw)\n .build());\n\n var remote = new Role(\"remote\", RoleArgs.builder()\n .name(\"remote\")\n .build());\n\n var remoteUserMapping = new UserMapping(\"remoteUserMapping\", UserMappingArgs.builder()\n .serverName(myserverPostgres.serverName())\n .userName(remote.name())\n .options(Map.ofEntries(\n Map.entry(\"user\", \"admin\"),\n Map.entry(\"password\", \"pass\")\n ))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n extPostgresFdw:\n type: postgresql:Extension\n name: ext_postgres_fdw\n properties:\n name: postgres_fdw\n myserverPostgres:\n type: postgresql:Server\n name: myserver_postgres\n properties:\n serverName: myserver_postgres\n fdwName: postgres_fdw\n options:\n host: foo\n dbname: foodb\n port: '5432'\n options:\n dependsOn:\n - ${extPostgresFdw}\n remote:\n type: postgresql:Role\n properties:\n name: remote\n remoteUserMapping:\n type: postgresql:UserMapping\n name: remote\n properties:\n serverName: ${myserverPostgres.serverName}\n userName: ${remote.name}\n options:\n user: admin\n password: pass\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "properties": { "options": { "type": "object", @@ -2461,7 +2461,7 @@ }, "functions": { "postgresql:index/getSchemas:getSchemas": { - "description": "The ``postgresql.getSchemas`` data source retrieves a list of schema names from a specified PostgreSQL database.\n\n\n## Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as postgresql from \"@pulumi/postgresql\";\n\nconst mySchemas = postgresql.getSchemas({\n database: \"my_database\",\n});\n```\n```python\nimport pulumi\nimport pulumi_postgresql as postgresql\n\nmy_schemas = postgresql.get_schemas(database=\"my_database\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing PostgreSql = Pulumi.PostgreSql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var mySchemas = PostgreSql.GetSchemas.Invoke(new()\n {\n Database = \"my_database\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-postgresql/sdk/v3/go/postgresql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := postgresql.GetSchemas(ctx, \u0026postgresql.GetSchemasArgs{\n\t\t\tDatabase: \"my_database\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.postgresql.PostgresqlFunctions;\nimport com.pulumi.postgresql.inputs.GetSchemasArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var mySchemas = PostgresqlFunctions.getSchemas(GetSchemasArgs.builder()\n .database(\"my_database\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n mySchemas:\n fn::invoke:\n Function: postgresql:getSchemas\n Arguments:\n database: my_database\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "The ``postgresql.getSchemas`` data source retrieves a list of schema names from a specified PostgreSQL database.\n\n\n## Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as postgresql from \"@pulumi/postgresql\";\n\nconst mySchemas = postgresql.getSchemas({\n database: \"my_database\",\n});\n```\n```python\nimport pulumi\nimport pulumi_postgresql as postgresql\n\nmy_schemas = postgresql.get_schemas(database=\"my_database\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing PostgreSql = Pulumi.PostgreSql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var mySchemas = PostgreSql.GetSchemas.Invoke(new()\n {\n Database = \"my_database\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-postgresql/sdk/v3/go/postgresql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := postgresql.GetSchemas(ctx, \u0026postgresql.GetSchemasArgs{\n\t\t\tDatabase: \"my_database\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.postgresql.PostgresqlFunctions;\nimport com.pulumi.postgresql.inputs.GetSchemasArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var mySchemas = PostgresqlFunctions.getSchemas(GetSchemasArgs.builder()\n .database(\"my_database\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n mySchemas:\n fn::invoke:\n function: postgresql:getSchemas\n arguments:\n database: my_database\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getSchemas.\n", "properties": { @@ -2556,7 +2556,7 @@ } }, "postgresql:index/getSequences:getSequences": { - "description": "The ``postgresql.getSequences`` data source retrieves a list of sequence names from a specified PostgreSQL database.\n\n\n## Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as postgresql from \"@pulumi/postgresql\";\n\nconst mySequences = postgresql.getSequences({\n database: \"my_database\",\n});\n```\n```python\nimport pulumi\nimport pulumi_postgresql as postgresql\n\nmy_sequences = postgresql.get_sequences(database=\"my_database\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing PostgreSql = Pulumi.PostgreSql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var mySequences = PostgreSql.GetSequences.Invoke(new()\n {\n Database = \"my_database\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-postgresql/sdk/v3/go/postgresql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := postgresql.GetSequences(ctx, \u0026postgresql.GetSequencesArgs{\n\t\t\tDatabase: \"my_database\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.postgresql.PostgresqlFunctions;\nimport com.pulumi.postgresql.inputs.GetSequencesArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var mySequences = PostgresqlFunctions.getSequences(GetSequencesArgs.builder()\n .database(\"my_database\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n mySequences:\n fn::invoke:\n Function: postgresql:getSequences\n Arguments:\n database: my_database\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "The ``postgresql.getSequences`` data source retrieves a list of sequence names from a specified PostgreSQL database.\n\n\n## Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as postgresql from \"@pulumi/postgresql\";\n\nconst mySequences = postgresql.getSequences({\n database: \"my_database\",\n});\n```\n```python\nimport pulumi\nimport pulumi_postgresql as postgresql\n\nmy_sequences = postgresql.get_sequences(database=\"my_database\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing PostgreSql = Pulumi.PostgreSql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var mySequences = PostgreSql.GetSequences.Invoke(new()\n {\n Database = \"my_database\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-postgresql/sdk/v3/go/postgresql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := postgresql.GetSequences(ctx, \u0026postgresql.GetSequencesArgs{\n\t\t\tDatabase: \"my_database\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.postgresql.PostgresqlFunctions;\nimport com.pulumi.postgresql.inputs.GetSequencesArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var mySequences = PostgresqlFunctions.getSequences(GetSequencesArgs.builder()\n .database(\"my_database\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n mySequences:\n fn::invoke:\n function: postgresql:getSequences\n arguments:\n database: my_database\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getSequences.\n", "properties": { @@ -2657,7 +2657,7 @@ } }, "postgresql:index/getTables:getTables": { - "description": "The ``postgresql.getTables`` data source retrieves a list of table names from a specified PostgreSQL database.\n\n\n## Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as postgresql from \"@pulumi/postgresql\";\n\nconst myTables = postgresql.getTables({\n database: \"my_database\",\n});\n```\n```python\nimport pulumi\nimport pulumi_postgresql as postgresql\n\nmy_tables = postgresql.get_tables(database=\"my_database\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing PostgreSql = Pulumi.PostgreSql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var myTables = PostgreSql.GetTables.Invoke(new()\n {\n Database = \"my_database\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-postgresql/sdk/v3/go/postgresql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := postgresql.GetTables(ctx, \u0026postgresql.GetTablesArgs{\n\t\t\tDatabase: \"my_database\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.postgresql.PostgresqlFunctions;\nimport com.pulumi.postgresql.inputs.GetTablesArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var myTables = PostgresqlFunctions.getTables(GetTablesArgs.builder()\n .database(\"my_database\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n myTables:\n fn::invoke:\n Function: postgresql:getTables\n Arguments:\n database: my_database\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "The ``postgresql.getTables`` data source retrieves a list of table names from a specified PostgreSQL database.\n\n\n## Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as postgresql from \"@pulumi/postgresql\";\n\nconst myTables = postgresql.getTables({\n database: \"my_database\",\n});\n```\n```python\nimport pulumi\nimport pulumi_postgresql as postgresql\n\nmy_tables = postgresql.get_tables(database=\"my_database\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing PostgreSql = Pulumi.PostgreSql;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var myTables = PostgreSql.GetTables.Invoke(new()\n {\n Database = \"my_database\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-postgresql/sdk/v3/go/postgresql\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := postgresql.GetTables(ctx, \u0026postgresql.GetTablesArgs{\n\t\t\tDatabase: \"my_database\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.postgresql.PostgresqlFunctions;\nimport com.pulumi.postgresql.inputs.GetTablesArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var myTables = PostgresqlFunctions.getTables(GetTablesArgs.builder()\n .database(\"my_database\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n myTables:\n fn::invoke:\n function: postgresql:getTables\n arguments:\n database: my_database\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getTables.\n", "properties": { diff --git a/provider/go.mod b/provider/go.mod index 60e3837..629701b 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -7,8 +7,8 @@ toolchain go1.23.2 require ( github.com/cyrilgdn/terraform-provider-postgresql v0.0.0 github.com/pulumi/providertest v0.1.3 - github.com/pulumi/pulumi-terraform-bridge/v3 v3.96.0 - github.com/pulumi/pulumi/sdk/v3 v3.140.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.96.1-0.20241209191100-0c46ff573f44 + github.com/pulumi/pulumi/sdk/v3 v3.142.0 github.com/stretchr/testify v1.9.0 ) @@ -171,9 +171,9 @@ require ( github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect github.com/pulumi/esc v0.10.0 // indirect github.com/pulumi/inflector v0.1.1 // indirect - github.com/pulumi/pulumi-java/pkg v0.17.0 // indirect - github.com/pulumi/pulumi-yaml v1.11.2 // indirect - github.com/pulumi/pulumi/pkg/v3 v3.140.0 // indirect + github.com/pulumi/pulumi-java/pkg v0.18.0 // indirect + github.com/pulumi/pulumi-yaml v1.12.0 // indirect + github.com/pulumi/pulumi/pkg/v3 v3.142.0 // indirect github.com/pulumi/schema-tools v0.1.2 // indirect github.com/pulumi/terraform-diff-reader v0.0.2 // indirect github.com/rivo/uniseg v0.4.4 // indirect diff --git a/provider/go.sum b/provider/go.sum index e90f934..d34e954 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1927,16 +1927,16 @@ github.com/pulumi/inflector v0.1.1 h1:dvlxlWtXwOJTUUtcYDvwnl6Mpg33prhK+7mzeF+Sob github.com/pulumi/inflector v0.1.1/go.mod h1:HUFCjcPTz96YtTuUlwG3i3EZG4WlniBvR9bd+iJxCUY= github.com/pulumi/providertest v0.1.3 h1:GpNKRy/haNjRHiUA9bi4diU4Op2zf3axYXbga5AepHg= github.com/pulumi/providertest v0.1.3/go.mod h1:GcsqEGgSngwaNOD+kICJPIUQlnA911fGBU8HDlJvVL0= -github.com/pulumi/pulumi-java/pkg v0.17.0 h1:KmaVLrVmlkzShOfaJNJDlckorbFm8dM/C7L4hj6LX8U= -github.com/pulumi/pulumi-java/pkg v0.17.0/go.mod h1:ji4U4H7t81X4aaE88D9+z5CmKH/QoLwQi9N1iGl+2KQ= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.96.0 h1:uJB3tM1j+9SKeXLCAx3DBVHsYk4ddXNrVoiqpgXal2Q= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.96.0/go.mod h1:WnOTAfdtm5+kW3rIU0rLhxFSEHtJIMf19FdOU6NFXG0= -github.com/pulumi/pulumi-yaml v1.11.2 h1:MU7TTNbruGCSgNHhaBygjIbLWm3WSbd1q98GpMIgQzE= -github.com/pulumi/pulumi-yaml v1.11.2/go.mod h1:RdXRBupRGGAD1kbYNG1V1h6pyFnXisvQsl0AANvVjGI= -github.com/pulumi/pulumi/pkg/v3 v3.140.0 h1:/bvHa19HY/6qHWvuAOVII8qr72MDGGczBWlPYlPo3j0= -github.com/pulumi/pulumi/pkg/v3 v3.140.0/go.mod h1:rcTtSyisd7BzZTugNk/s9zlYgX9S0S10+pha3Tko6yM= -github.com/pulumi/pulumi/sdk/v3 v3.140.0 h1:+Z/RBvdYg7tBNkBwk4p/FzlV7niBT3TbLAICq/Y0LDU= -github.com/pulumi/pulumi/sdk/v3 v3.140.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= +github.com/pulumi/pulumi-java/pkg v0.18.0 h1:3PApc5YegH69n6oubB63mqI97pF+oQywWr7ii4082Mw= +github.com/pulumi/pulumi-java/pkg v0.18.0/go.mod h1:YKYYFEb3Jvzf/dDJo0xOeEkIfBAMkkkdhXulauvEjmc= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.96.1-0.20241209191100-0c46ff573f44 h1:EQrVmZTk66w6IXDLAKPlqHGvDchvCYEcxzYL2CoEURE= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.96.1-0.20241209191100-0c46ff573f44/go.mod h1:B/Auryr+yVUkLOMzgpFe7HLwKAtXc6YJwpAXfNGyLPk= +github.com/pulumi/pulumi-yaml v1.12.0 h1:ThJP+EBqeJyCnS6w6/PwcEFOT5o112qv0lObhefmFCk= +github.com/pulumi/pulumi-yaml v1.12.0/go.mod h1:EhZd1XDfuLa15O51qVVE16U6r8ldK9mLIBclqWCX27Y= +github.com/pulumi/pulumi/pkg/v3 v3.142.0 h1:UE8TFyXrlxvPrATpd3Kl3En34KrFIFWOxxNAodywPNU= +github.com/pulumi/pulumi/pkg/v3 v3.142.0/go.mod h1:3k6WwRIT7veiDnk3Yo2NtqEYX+4dgLCrMIFvEOnjQqI= +github.com/pulumi/pulumi/sdk/v3 v3.142.0 h1:SmcVddGuvwAh3g3XUVQQ5gVRQUKH1yZ6iETpDNHIHlw= +github.com/pulumi/pulumi/sdk/v3 v3.142.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= github.com/pulumi/schema-tools v0.1.2 h1:Fd9xvUjgck4NA+7/jSk7InqCUT4Kj940+EcnbQKpfZo= github.com/pulumi/schema-tools v0.1.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k= github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI= diff --git a/sdk/go.mod b/sdk/go.mod index b5bf8e7..8722611 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/blang/semver v3.5.1+incompatible - github.com/pulumi/pulumi/sdk/v3 v3.140.0 + github.com/pulumi/pulumi/sdk/v3 v3.142.0 ) require ( diff --git a/sdk/go.sum b/sdk/go.sum index 5d5453c..54cd0ac 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -150,8 +150,8 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.9.1 h1:HH5eEv8sgyxSpY5a8yePyqFXzA8cvBvapfH8457+mIs= github.com/pulumi/esc v0.9.1/go.mod h1:oEJ6bOsjYlQUpjf70GiX+CXn3VBmpwFDxUTlmtUN84c= -github.com/pulumi/pulumi/sdk/v3 v3.140.0 h1:+Z/RBvdYg7tBNkBwk4p/FzlV7niBT3TbLAICq/Y0LDU= -github.com/pulumi/pulumi/sdk/v3 v3.140.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= +github.com/pulumi/pulumi/sdk/v3 v3.142.0 h1:SmcVddGuvwAh3g3XUVQQ5gVRQUKH1yZ6iETpDNHIHlw= +github.com/pulumi/pulumi/sdk/v3 v3.142.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= diff --git a/sdk/nodejs/getSchemas.ts b/sdk/nodejs/getSchemas.ts index a4f993a..e226705 100644 --- a/sdk/nodejs/getSchemas.ts +++ b/sdk/nodejs/getSchemas.ts @@ -95,7 +95,7 @@ export interface GetSchemasResult { * }); * ``` */ -export function getSchemasOutput(args: GetSchemasOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getSchemasOutput(args: GetSchemasOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("postgresql:index/getSchemas:getSchemas", { "database": args.database, diff --git a/sdk/nodejs/getSequences.ts b/sdk/nodejs/getSequences.ts index 6fbb472..a2816c3 100644 --- a/sdk/nodejs/getSequences.ts +++ b/sdk/nodejs/getSequences.ts @@ -98,7 +98,7 @@ export interface GetSequencesResult { * }); * ``` */ -export function getSequencesOutput(args: GetSequencesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getSequencesOutput(args: GetSequencesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("postgresql:index/getSequences:getSequences", { "database": args.database, diff --git a/sdk/nodejs/getTables.ts b/sdk/nodejs/getTables.ts index a9fd113..ff0541a 100644 --- a/sdk/nodejs/getTables.ts +++ b/sdk/nodejs/getTables.ts @@ -104,7 +104,7 @@ export interface GetTablesResult { * }); * ``` */ -export function getTablesOutput(args: GetTablesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getTablesOutput(args: GetTablesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("postgresql:index/getTables:getTables", { "database": args.database, diff --git a/sdk/python/pulumi_postgresql/get_schemas.py b/sdk/python/pulumi_postgresql/get_schemas.py index b3f0b83..9c6c752 100644 --- a/sdk/python/pulumi_postgresql/get_schemas.py +++ b/sdk/python/pulumi_postgresql/get_schemas.py @@ -169,7 +169,7 @@ def get_schemas_output(database: Optional[pulumi.Input[str]] = None, like_any_patterns: Optional[pulumi.Input[Optional[Sequence[str]]]] = None, not_like_all_patterns: Optional[pulumi.Input[Optional[Sequence[str]]]] = None, regex_pattern: Optional[pulumi.Input[Optional[str]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSchemasResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSchemasResult]: """ The ``get_schemas`` data source retrieves a list of schema names from a specified PostgreSQL database. @@ -199,7 +199,7 @@ def get_schemas_output(database: Optional[pulumi.Input[str]] = None, __args__['likeAnyPatterns'] = like_any_patterns __args__['notLikeAllPatterns'] = not_like_all_patterns __args__['regexPattern'] = regex_pattern - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('postgresql:index/getSchemas:getSchemas', __args__, opts=opts, typ=GetSchemasResult) return __ret__.apply(lambda __response__: GetSchemasResult( database=pulumi.get(__response__, 'database'), diff --git a/sdk/python/pulumi_postgresql/get_sequences.py b/sdk/python/pulumi_postgresql/get_sequences.py index 5df8bc2..c736a5b 100644 --- a/sdk/python/pulumi_postgresql/get_sequences.py +++ b/sdk/python/pulumi_postgresql/get_sequences.py @@ -171,7 +171,7 @@ def get_sequences_output(database: Optional[pulumi.Input[str]] = None, not_like_all_patterns: Optional[pulumi.Input[Optional[Sequence[str]]]] = None, regex_pattern: Optional[pulumi.Input[Optional[str]]] = None, schemas: Optional[pulumi.Input[Optional[Sequence[str]]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSequencesResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSequencesResult]: """ The ``get_sequences`` data source retrieves a list of sequence names from a specified PostgreSQL database. @@ -201,7 +201,7 @@ def get_sequences_output(database: Optional[pulumi.Input[str]] = None, __args__['notLikeAllPatterns'] = not_like_all_patterns __args__['regexPattern'] = regex_pattern __args__['schemas'] = schemas - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('postgresql:index/getSequences:getSequences', __args__, opts=opts, typ=GetSequencesResult) return __ret__.apply(lambda __response__: GetSequencesResult( database=pulumi.get(__response__, 'database'), diff --git a/sdk/python/pulumi_postgresql/get_tables.py b/sdk/python/pulumi_postgresql/get_tables.py index af55b4c..f1f0929 100644 --- a/sdk/python/pulumi_postgresql/get_tables.py +++ b/sdk/python/pulumi_postgresql/get_tables.py @@ -185,7 +185,7 @@ def get_tables_output(database: Optional[pulumi.Input[str]] = None, regex_pattern: Optional[pulumi.Input[Optional[str]]] = None, schemas: Optional[pulumi.Input[Optional[Sequence[str]]]] = None, table_types: Optional[pulumi.Input[Optional[Sequence[str]]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTablesResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetTablesResult]: """ The ``get_tables`` data source retrieves a list of table names from a specified PostgreSQL database. @@ -217,7 +217,7 @@ def get_tables_output(database: Optional[pulumi.Input[str]] = None, __args__['regexPattern'] = regex_pattern __args__['schemas'] = schemas __args__['tableTypes'] = table_types - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('postgresql:index/getTables:getTables', __args__, opts=opts, typ=GetTablesResult) return __ret__.apply(lambda __response__: GetTablesResult( database=pulumi.get(__response__, 'database'),