diff --git a/CHANGELOG.md b/CHANGELOG.md index dc60707..7a40d31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ CHANGELOG ========= +## 0.3.11 2024-11-21 +Update to Terraform Provider [0.8.11](https://github.com/MaterializeInc/terraform-provider-materialize/releases/tag/v0.8.11). + ## 0.3.10 2024-10-07 Update to Terraform Provider [0.8.10](https://github.com/MaterializeInc/terraform-provider-materialize/releases/tag/v0.8.10). diff --git a/provider/cmd/pulumi-resource-materialize/schema.json b/provider/cmd/pulumi-resource-materialize/schema.json index 7b86fb6..4617aff 100644 --- a/provider/cmd/pulumi-resource-materialize/schema.json +++ b/provider/cmd/pulumi-resource-materialize/schema.json @@ -1290,6 +1290,66 @@ } } }, + "materialize:index/GetNetworkPoliciesNetworkPolicy:GetNetworkPoliciesNetworkPolicy": { + "properties": { + "comment": { + "type": "string" + }, + "id": { + "type": "string", + "description": "The ID of this resource.\n" + }, + "name": { + "type": "string" + }, + "rules": { + "type": "array", + "items": { + "$ref": "#/types/materialize:index/GetNetworkPoliciesNetworkPolicyRule:GetNetworkPoliciesNetworkPolicyRule" + } + } + }, + "type": "object", + "required": [ + "comment", + "id", + "name", + "rules" + ], + "language": { + "nodejs": { + "requiredInputs": [] + } + } + }, + "materialize:index/GetNetworkPoliciesNetworkPolicyRule:GetNetworkPoliciesNetworkPolicyRule": { + "properties": { + "action": { + "type": "string" + }, + "address": { + "type": "string" + }, + "direction": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object", + "required": [ + "action", + "address", + "direction", + "name" + ], + "language": { + "nodejs": { + "requiredInputs": [] + } + } + }, "materialize:index/GetRolesRole:GetRolesRole": { "properties": { "id": { @@ -1889,6 +1949,33 @@ "name" ] }, + "materialize:index/NetworkPolicyRule:NetworkPolicyRule": { + "properties": { + "action": { + "type": "string", + "description": "The action to take for this rule. Currently only 'allow' is supported.\n" + }, + "address": { + "type": "string", + "description": "The CIDR block the rule will be applied to.\n" + }, + "direction": { + "type": "string", + "description": "The direction of traffic the rule applies to. Currently only 'ingress' is supported.\n" + }, + "name": { + "type": "string", + "description": "The name of the rule.\n" + } + }, + "type": "object", + "required": [ + "action", + "address", + "direction", + "name" + ] + }, "materialize:index/RegionRegion:RegionRegion": { "properties": { "cloudProvider": { @@ -6606,7 +6693,7 @@ } }, "materialize:index/grantSystemPrivilege:GrantSystemPrivilege": { - "description": "Manages the system privileges for roles.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as materialize from \"@pulumi/materialize\";\n\n// Grant role the privilege CREATEDB\nconst roleCreatedb = new materialize.GrantSystemPrivilege(\"roleCreatedb\", {\n privilege: \"CREATEDB\",\n roleName: \"role\",\n});\n```\n```python\nimport pulumi\nimport pulumi_materialize as materialize\n\n# Grant role the privilege CREATEDB\nrole_createdb = materialize.GrantSystemPrivilege(\"roleCreatedb\",\n privilege=\"CREATEDB\",\n role_name=\"role\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Materialize = Pulumi.Materialize;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Grant role the privilege CREATEDB\n var roleCreatedb = new Materialize.GrantSystemPrivilege(\"roleCreatedb\", new()\n {\n Privilege = \"CREATEDB\",\n RoleName = \"role\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-materialize/sdk/go/materialize\"\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 := materialize.NewGrantSystemPrivilege(ctx, \"roleCreatedb\", \u0026materialize.GrantSystemPrivilegeArgs{\n\t\t\tPrivilege: pulumi.String(\"CREATEDB\"),\n\t\t\tRoleName: pulumi.String(\"role\"),\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.materialize.GrantSystemPrivilege;\nimport com.pulumi.materialize.GrantSystemPrivilegeArgs;\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 roleCreatedb = new GrantSystemPrivilege(\"roleCreatedb\", GrantSystemPrivilegeArgs.builder() \n .privilege(\"CREATEDB\")\n .roleName(\"role\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Grant role the privilege CREATEDB\n roleCreatedb:\n type: materialize:GrantSystemPrivilege\n properties:\n privilege: CREATEDB\n roleName: role\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nGrants can be imported using the concatenation of GRANT SYSTEM, the id of the role and the privilege\n\n```sh\n $ pulumi import materialize:index/grantSystemPrivilege:GrantSystemPrivilege example \u003cregion\u003e:GRANT SYSTEM|\u003crole_id\u003e|\u003cprivilege\u003e\n```\n\n The region is the region where the database is located (e.g. aws/us-east-1) ", + "description": "Manages the system privileges for roles.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as materialize from \"@pulumi/materialize\";\n\n// Grant role the privilege CREATEDB\nconst roleCreatedb = new materialize.GrantSystemPrivilege(\"roleCreatedb\", {\n privilege: \"CREATEDB\",\n roleName: \"role\",\n});\n// Grant role the privilege CREATENETWORKPOLICY to allow the role to create network policies\nconst roleCreatenetworkpolicy = new materialize.GrantSystemPrivilege(\"roleCreatenetworkpolicy\", {\n privilege: \"CREATENETWORKPOLICY\",\n roleName: \"role\",\n});\n```\n```python\nimport pulumi\nimport pulumi_materialize as materialize\n\n# Grant role the privilege CREATEDB\nrole_createdb = materialize.GrantSystemPrivilege(\"roleCreatedb\",\n privilege=\"CREATEDB\",\n role_name=\"role\")\n# Grant role the privilege CREATENETWORKPOLICY to allow the role to create network policies\nrole_createnetworkpolicy = materialize.GrantSystemPrivilege(\"roleCreatenetworkpolicy\",\n privilege=\"CREATENETWORKPOLICY\",\n role_name=\"role\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Materialize = Pulumi.Materialize;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Grant role the privilege CREATEDB\n var roleCreatedb = new Materialize.GrantSystemPrivilege(\"roleCreatedb\", new()\n {\n Privilege = \"CREATEDB\",\n RoleName = \"role\",\n });\n\n // Grant role the privilege CREATENETWORKPOLICY to allow the role to create network policies\n var roleCreatenetworkpolicy = new Materialize.GrantSystemPrivilege(\"roleCreatenetworkpolicy\", new()\n {\n Privilege = \"CREATENETWORKPOLICY\",\n RoleName = \"role\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-materialize/sdk/go/materialize\"\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 := materialize.NewGrantSystemPrivilege(ctx, \"roleCreatedb\", \u0026materialize.GrantSystemPrivilegeArgs{\n\t\t\tPrivilege: pulumi.String(\"CREATEDB\"),\n\t\t\tRoleName: pulumi.String(\"role\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = materialize.NewGrantSystemPrivilege(ctx, \"roleCreatenetworkpolicy\", \u0026materialize.GrantSystemPrivilegeArgs{\n\t\t\tPrivilege: pulumi.String(\"CREATENETWORKPOLICY\"),\n\t\t\tRoleName: pulumi.String(\"role\"),\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.materialize.GrantSystemPrivilege;\nimport com.pulumi.materialize.GrantSystemPrivilegeArgs;\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 roleCreatedb = new GrantSystemPrivilege(\"roleCreatedb\", GrantSystemPrivilegeArgs.builder() \n .privilege(\"CREATEDB\")\n .roleName(\"role\")\n .build());\n\n var roleCreatenetworkpolicy = new GrantSystemPrivilege(\"roleCreatenetworkpolicy\", GrantSystemPrivilegeArgs.builder() \n .privilege(\"CREATENETWORKPOLICY\")\n .roleName(\"role\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Grant role the privilege CREATEDB\n roleCreatedb:\n type: materialize:GrantSystemPrivilege\n properties:\n privilege: CREATEDB\n roleName: role\n # Grant role the privilege CREATENETWORKPOLICY to allow the role to create network policies\n roleCreatenetworkpolicy:\n type: materialize:GrantSystemPrivilege\n properties:\n privilege: CREATENETWORKPOLICY\n roleName: role\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nGrants can be imported using the concatenation of GRANT SYSTEM, the id of the role and the privilege\n\n```sh\n $ pulumi import materialize:index/grantSystemPrivilege:GrantSystemPrivilege example \u003cregion\u003e:GRANT SYSTEM|\u003crole_id\u003e|\u003cprivilege\u003e\n```\n\n The region is the region where the database is located (e.g. aws/us-east-1) ", "properties": { "privilege": { "type": "string", @@ -7561,6 +7648,88 @@ "type": "object" } }, + "materialize:index/networkPolicy:NetworkPolicy": { + "description": "A network policy manages access to the system through IP-based rules.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as materialize from \"@pulumi/materialize\";\n\nconst officePolicy = new materialize.NetworkPolicy(\"officePolicy\", {\n comment: \"Network policy for office locations\",\n rules: [\n {\n action: \"allow\",\n address: \"2.3.4.5/32\",\n direction: \"ingress\",\n name: \"minnesota\",\n },\n {\n action: \"allow\",\n address: \"1.2.3.4/28\",\n direction: \"ingress\",\n name: \"new_york\",\n },\n ],\n});\n// An initial `default` network policy will be created.\n// This policy allows open access to the environment and can be altered by a `superuser`.\n// Use the `ALTER SYSTEM SET network_policy TO 'office_access_policy'` command.\n// Or the `materialize_system_parameter` resource to set the default network policy.\nconst systemParameter = new materialize.SystemParameter(\"systemParameter\", {value: \"office_access_policy\"});\n```\n```python\nimport pulumi\nimport pulumi_materialize as materialize\n\noffice_policy = materialize.NetworkPolicy(\"officePolicy\",\n comment=\"Network policy for office locations\",\n rules=[\n materialize.NetworkPolicyRuleArgs(\n action=\"allow\",\n address=\"2.3.4.5/32\",\n direction=\"ingress\",\n name=\"minnesota\",\n ),\n materialize.NetworkPolicyRuleArgs(\n action=\"allow\",\n address=\"1.2.3.4/28\",\n direction=\"ingress\",\n name=\"new_york\",\n ),\n ])\n# An initial `default` network policy will be created.\n# This policy allows open access to the environment and can be altered by a `superuser`.\n# Use the `ALTER SYSTEM SET network_policy TO 'office_access_policy'` command.\n# Or the `materialize_system_parameter` resource to set the default network policy.\nsystem_parameter = materialize.SystemParameter(\"systemParameter\", value=\"office_access_policy\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Materialize = Pulumi.Materialize;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var officePolicy = new Materialize.NetworkPolicy(\"officePolicy\", new()\n {\n Comment = \"Network policy for office locations\",\n Rules = new[]\n {\n new Materialize.Inputs.NetworkPolicyRuleArgs\n {\n Action = \"allow\",\n Address = \"2.3.4.5/32\",\n Direction = \"ingress\",\n Name = \"minnesota\",\n },\n new Materialize.Inputs.NetworkPolicyRuleArgs\n {\n Action = \"allow\",\n Address = \"1.2.3.4/28\",\n Direction = \"ingress\",\n Name = \"new_york\",\n },\n },\n });\n\n // An initial `default` network policy will be created.\n // This policy allows open access to the environment and can be altered by a `superuser`.\n // Use the `ALTER SYSTEM SET network_policy TO 'office_access_policy'` command.\n // Or the `materialize_system_parameter` resource to set the default network policy.\n var systemParameter = new Materialize.SystemParameter(\"systemParameter\", new()\n {\n Value = \"office_access_policy\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-materialize/sdk/go/materialize\"\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 := materialize.NewNetworkPolicy(ctx, \"officePolicy\", \u0026materialize.NetworkPolicyArgs{\n\t\t\tComment: pulumi.String(\"Network policy for office locations\"),\n\t\t\tRules: materialize.NetworkPolicyRuleArray{\n\t\t\t\t\u0026materialize.NetworkPolicyRuleArgs{\n\t\t\t\t\tAction: pulumi.String(\"allow\"),\n\t\t\t\t\tAddress: pulumi.String(\"2.3.4.5/32\"),\n\t\t\t\t\tDirection: pulumi.String(\"ingress\"),\n\t\t\t\t\tName: pulumi.String(\"minnesota\"),\n\t\t\t\t},\n\t\t\t\t\u0026materialize.NetworkPolicyRuleArgs{\n\t\t\t\t\tAction: pulumi.String(\"allow\"),\n\t\t\t\t\tAddress: pulumi.String(\"1.2.3.4/28\"),\n\t\t\t\t\tDirection: pulumi.String(\"ingress\"),\n\t\t\t\t\tName: pulumi.String(\"new_york\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = materialize.NewSystemParameter(ctx, \"systemParameter\", \u0026materialize.SystemParameterArgs{\n\t\t\tValue: pulumi.String(\"office_access_policy\"),\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.materialize.NetworkPolicy;\nimport com.pulumi.materialize.NetworkPolicyArgs;\nimport com.pulumi.materialize.inputs.NetworkPolicyRuleArgs;\nimport com.pulumi.materialize.SystemParameter;\nimport com.pulumi.materialize.SystemParameterArgs;\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 officePolicy = new NetworkPolicy(\"officePolicy\", NetworkPolicyArgs.builder() \n .comment(\"Network policy for office locations\")\n .rules( \n NetworkPolicyRuleArgs.builder()\n .action(\"allow\")\n .address(\"2.3.4.5/32\")\n .direction(\"ingress\")\n .name(\"minnesota\")\n .build(),\n NetworkPolicyRuleArgs.builder()\n .action(\"allow\")\n .address(\"1.2.3.4/28\")\n .direction(\"ingress\")\n .name(\"new_york\")\n .build())\n .build());\n\n var systemParameter = new SystemParameter(\"systemParameter\", SystemParameterArgs.builder() \n .value(\"office_access_policy\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n officePolicy:\n type: materialize:NetworkPolicy\n properties:\n comment: Network policy for office locations\n rules:\n - action: allow\n address: 2.3.4.5/32\n direction: ingress\n name: minnesota\n - action: allow\n address: 1.2.3.4/28\n direction: ingress\n name: new_york\n # An initial `default` network policy will be created.\n # // This policy allows open access to the environment and can be altered by a `superuser`.\n # // Use the `ALTER SYSTEM SET network_policy TO 'office_access_policy'` command.\n # // Or the `materialize_system_parameter` resource to set the default network policy.\n systemParameter:\n type: materialize:SystemParameter\n properties:\n value: office_access_policy\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\n\n\n```sh\n $ pulumi import materialize:index/networkPolicy:NetworkPolicy Network policies can be imported using the `terraform import` command.\n```\n\n\n\n```sh\n $ pulumi import materialize:index/networkPolicy:NetworkPolicy example_network_policy \u003cregion\u003e:\u003cnetwork_policy_id\u003e\n```\n\n The network_policy_id is the ID of the network policy. You can find it from the `mz_internal.mz_network_policy_rules` table in the materialize The region is the region where the database is located (e.g. aws/us-east-1) ", + "properties": { + "comment": { + "type": "string", + "description": "**Public Preview** Comment on an object in the database.\n" + }, + "name": { + "type": "string", + "description": "The name of the network policy.\n" + }, + "region": { + "type": "string", + "description": "The region to use for the resource connection. If not set, the default region is used.\n" + }, + "rules": { + "type": "array", + "items": { + "$ref": "#/types/materialize:index/NetworkPolicyRule:NetworkPolicyRule" + }, + "description": "Rules for the network policy.\n" + } + }, + "required": [ + "name", + "region", + "rules" + ], + "inputProperties": { + "comment": { + "type": "string", + "description": "**Public Preview** Comment on an object in the database.\n" + }, + "name": { + "type": "string", + "description": "The name of the network policy.\n", + "willReplaceOnChanges": true + }, + "region": { + "type": "string", + "description": "The region to use for the resource connection. If not set, the default region is used.\n", + "willReplaceOnChanges": true + }, + "rules": { + "type": "array", + "items": { + "$ref": "#/types/materialize:index/NetworkPolicyRule:NetworkPolicyRule" + }, + "description": "Rules for the network policy.\n" + } + }, + "requiredInputs": [ + "rules" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering NetworkPolicy resources.\n", + "properties": { + "comment": { + "type": "string", + "description": "**Public Preview** Comment on an object in the database.\n" + }, + "name": { + "type": "string", + "description": "The name of the network policy.\n", + "willReplaceOnChanges": true + }, + "region": { + "type": "string", + "description": "The region to use for the resource connection. If not set, the default region is used.\n", + "willReplaceOnChanges": true + }, + "rules": { + "type": "array", + "items": { + "$ref": "#/types/materialize:index/NetworkPolicyRule:NetworkPolicyRule" + }, + "description": "Rules for the network policy.\n" + } + }, + "type": "object" + } + }, "materialize:index/role:Role": { "description": "A role is a collection of privileges you can apply to users.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as materialize from \"@pulumi/materialize\";\n\nconst exampleRole = new materialize.Role(\"exampleRole\", {});\n```\n```python\nimport pulumi\nimport pulumi_materialize as materialize\n\nexample_role = materialize.Role(\"exampleRole\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Materialize = Pulumi.Materialize;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var exampleRole = new Materialize.Role(\"exampleRole\");\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-materialize/sdk/go/materialize\"\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 := materialize.NewRole(ctx, \"exampleRole\", 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.materialize.Role;\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 exampleRole = new Role(\"exampleRole\");\n\n }\n}\n```\n```yaml\nresources:\n exampleRole:\n type: materialize:Role\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nRoles can be imported using the role id\n\n```sh\n $ pulumi import materialize:index/role:Role example_role \u003cregion\u003e:\u003crole_id\u003e\n```\n\n Role id and information be found in the `mz_catalog.mz_roles` table The region is the region where the database is located (e.g. aws/us-east-1) ", "properties": { @@ -11102,6 +11271,45 @@ ] } }, + "materialize:index/getNetworkPolicies:GetNetworkPolicies": { + "description": "A network policy data source. This can be used to get information about all network policies in Materialize.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as materialize from \"@pulumi/materialize\";\n\nconst all = materialize.GetNetworkPolicies({});\n```\n```python\nimport pulumi\nimport pulumi_materialize as materialize\n\nall = materialize.get_network_policies()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Materialize = Pulumi.Materialize;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var all = Materialize.GetNetworkPolicies.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-materialize/sdk/go/materialize\"\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 := materialize.GetNetworkPolicies(ctx, nil, 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.materialize.MaterializeFunctions;\nimport com.pulumi.materialize.inputs.GetNetworkPoliciesArgs;\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 all = MaterializeFunctions.GetNetworkPolicies();\n\n }\n}\n```\n```yaml\nvariables:\n all:\n fn::invoke:\n Function: materialize:GetNetworkPolicies\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}", + "inputs": { + "description": "A collection of arguments for invoking GetNetworkPolicies.\n", + "properties": { + "region": { + "type": "string", + "description": "The region in which the resource is located.\n" + } + }, + "type": "object" + }, + "outputs": { + "description": "A collection of values returned by GetNetworkPolicies.\n", + "properties": { + "id": { + "type": "string", + "description": "The provider-assigned unique ID for this managed resource.\n" + }, + "networkPolicies": { + "type": "array", + "items": { + "$ref": "#/types/materialize:index/GetNetworkPoliciesNetworkPolicy:GetNetworkPoliciesNetworkPolicy" + }, + "description": "The network policies in the account\n" + }, + "region": { + "type": "string", + "description": "The region in which the resource is located.\n" + } + }, + "type": "object", + "required": [ + "networkPolicies", + "region", + "id" + ] + } + }, "materialize:index/getRoles:GetRoles": { "description": "{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as materialize from \"@pulumi/materialize\";\n\nconst all = materialize.GetRoles({});\n```\n```python\nimport pulumi\nimport pulumi_materialize as materialize\n\nall = materialize.get_roles()\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Materialize = Pulumi.Materialize;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var all = Materialize.GetRoles.Invoke();\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-materialize/sdk/go/materialize\"\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 := materialize.GetRoles(ctx, nil, 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.materialize.MaterializeFunctions;\nimport com.pulumi.materialize.inputs.GetRolesArgs;\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 all = MaterializeFunctions.GetRoles();\n\n }\n}\n```\n```yaml\nvariables:\n all:\n fn::invoke:\n Function: materialize:GetRoles\n Arguments: {}\n```\n{{% /example %}}\n{{% /examples %}}", "inputs": { diff --git a/provider/go.mod b/provider/go.mod index 750c74d..c3d2d7f 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -1,13 +1,13 @@ module github.com/MaterializeInc/pulumi-materialize/provider -go 1.22.0 +go 1.22.7 -toolchain go1.22.6 +toolchain go1.22.9 replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20240520223432-0c0bf0d65f10 require ( - github.com/MaterializeInc/terraform-provider-materialize v0.8.10 + github.com/MaterializeInc/terraform-provider-materialize v0.8.11 github.com/pulumi/pulumi-terraform-bridge/v3 v3.59.0 github.com/pulumi/pulumi/sdk/v3 v3.81.0 ) @@ -125,7 +125,7 @@ require ( github.com/hashicorp/go-hclog v1.6.3 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect - github.com/hashicorp/go-plugin v1.6.1 // indirect + github.com/hashicorp/go-plugin v1.6.2 // indirect github.com/hashicorp/go-retryablehttp v0.7.7 // indirect github.com/hashicorp/go-rootcerts v1.0.2 // indirect github.com/hashicorp/go-safetemp v1.0.0 // indirect @@ -140,9 +140,9 @@ require ( github.com/hashicorp/hcl/v2 v2.22.0 // indirect github.com/hashicorp/hil v0.0.0-20190212132231-97b3a9cdfa93 // indirect github.com/hashicorp/logutils v1.0.0 // indirect - github.com/hashicorp/terraform-plugin-go v0.24.0 // indirect + github.com/hashicorp/terraform-plugin-go v0.25.0 // indirect github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect - github.com/hashicorp/terraform-plugin-sdk/v2 v2.34.0 // indirect + github.com/hashicorp/terraform-plugin-sdk/v2 v2.35.0 // indirect github.com/hashicorp/terraform-svchost v0.1.1 // indirect github.com/hashicorp/vault/api v1.8.2 // indirect github.com/hashicorp/vault/sdk v0.6.1 // indirect @@ -152,7 +152,14 @@ require ( github.com/ijc/Gotty v0.0.0-20170406111628-a8b993ba6abd // indirect github.com/imdario/mergo v0.3.15 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect - github.com/jackc/pgx v3.6.2+incompatible // indirect + github.com/jackc/chunkreader/v2 v2.0.1 // indirect + github.com/jackc/pgconn v1.14.3 // indirect + github.com/jackc/pgio v1.0.0 // indirect + github.com/jackc/pgpassfile v1.0.0 // indirect + github.com/jackc/pgproto3/v2 v2.3.3 // indirect + github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect + github.com/jackc/pgtype v1.14.0 // indirect + github.com/jackc/pgx/v4 v4.18.3 // indirect github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/jmoiron/sqlx v1.4.0 // indirect @@ -239,15 +246,15 @@ require ( go.uber.org/atomic v1.9.0 // indirect gocloud.dev v0.27.0 // indirect gocloud.dev/secrets/hashivault v0.27.0 // indirect - golang.org/x/crypto v0.27.0 // indirect + golang.org/x/crypto v0.28.0 // indirect golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect golang.org/x/mod v0.21.0 // indirect golang.org/x/net v0.29.0 // indirect golang.org/x/oauth2 v0.22.0 // indirect golang.org/x/sync v0.8.0 // indirect - golang.org/x/sys v0.25.0 // indirect - golang.org/x/term v0.24.0 // indirect - golang.org/x/text v0.18.0 // indirect + golang.org/x/sys v0.26.0 // indirect + golang.org/x/term v0.25.0 // indirect + golang.org/x/text v0.19.0 // indirect golang.org/x/time v0.5.0 // indirect golang.org/x/tools v0.25.0 // indirect golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect @@ -257,7 +264,7 @@ require ( google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240930140551-af27646dc61f // indirect google.golang.org/grpc v1.67.1 // indirect - google.golang.org/protobuf v1.34.2 // indirect + google.golang.org/protobuf v1.35.1 // indirect gopkg.in/square/go-jose.v2 v2.6.0 // indirect gopkg.in/warnings.v0 v0.1.2 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/provider/go.sum b/provider/go.sum index 32e19ea..f786497 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1258,8 +1258,8 @@ github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYr github.com/Masterminds/sprig/v3 v3.2.1/go.mod h1:UoaO7Yp8KlPnJIYWTFkMaqPUYKTfGFPhxNuwnnxkKlk= github.com/Masterminds/sprig/v3 v3.2.3 h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA= github.com/Masterminds/sprig/v3 v3.2.3/go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBaRMhvYXJNkGuM= -github.com/MaterializeInc/terraform-provider-materialize v0.8.10 h1:ikl9RRlemLuqeKjM7llg9zKmui6fcZqkGZzFxTz6GS8= -github.com/MaterializeInc/terraform-provider-materialize v0.8.10/go.mod h1:mj40x7zl4S/G3CXuI4Kxb65y5kdDfWXT1i/Jchi8OzA= +github.com/MaterializeInc/terraform-provider-materialize v0.8.11 h1:I+toSHJ+Knd/yjD3AptkOF4uoVp8iCOOYpbZenwSEBM= +github.com/MaterializeInc/terraform-provider-materialize v0.8.11/go.mod h1:gKq2a3OJcItqnRcI8xzmP8Yw/Hv6S823Hpi7j9PmimQ= github.com/Microsoft/go-winio v0.4.11/go.mod h1:VhR8bwka0BXejwEJY73c50VrPtXAaKcyvVC4A4RozmA= github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA= github.com/Microsoft/go-winio v0.4.15-0.20190919025122-fc70bd9a86b5/go.mod h1:tTuCMEN+UleMWgg9dVx4Hu52b1bJo+59jBh3ajtinzw= @@ -2184,8 +2184,8 @@ github.com/hashicorp/go-plugin v1.0.1/go.mod h1:++UyYGoz3o5w9ZzAdZxtQKrWWP+iqPBn github.com/hashicorp/go-plugin v1.4.3/go.mod h1:5fGEH17QVwTTcR0zV7yhDPLLmFX9YSZ38b18Udy6vYQ= github.com/hashicorp/go-plugin v1.4.4/go.mod h1:viDMjcLJuDui6pXb8U4HVfb8AamCWhHGUjr2IrTF67s= github.com/hashicorp/go-plugin v1.6.0/go.mod h1:lBS5MtSSBZk0SHc66KACcjjlU6WzEVP/8pwz68aMkCI= -github.com/hashicorp/go-plugin v1.6.1 h1:P7MR2UP6gNKGPp+y7EZw2kOiq4IR9WiqLvp0XOsVdwI= -github.com/hashicorp/go-plugin v1.6.1/go.mod h1:XPHFku2tFo3o3QKFgSYo+cghcUhw1NA1hZyMK0PWAw0= +github.com/hashicorp/go-plugin v1.6.2 h1:zdGAEd0V1lCaU0u+MxWQhtSDQmahpkwOun8U8EiRVog= +github.com/hashicorp/go-plugin v1.6.2/go.mod h1:CkgLQ5CZqNmdL9U9JzM532t8ZiYQ35+pj3b1FD37R0Q= github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= github.com/hashicorp/go-retryablehttp v0.6.6/go.mod h1:vAew36LZh98gCBJNLH42IQ1ER/9wtLZZ8meHqQvEYWY= github.com/hashicorp/go-retryablehttp v0.7.1/go.mod h1:vAew36LZh98gCBJNLH42IQ1ER/9wtLZZ8meHqQvEYWY= @@ -2229,8 +2229,8 @@ github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+l github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/hc-install v0.6.2/go.mod h1:2JBpd+NCFKiHiu/yYCGaPyPHhZLxXTpz8oreHa/a3Ps= github.com/hashicorp/hc-install v0.6.3/go.mod h1:KamGdbodYzlufbWh4r9NRo8y6GLHWZP2GBtdnms1Ln0= -github.com/hashicorp/hc-install v0.8.0 h1:LdpZeXkZYMQhoKPCecJHlKvUkQFixN/nvyR1CdfOLjI= -github.com/hashicorp/hc-install v0.8.0/go.mod h1:+MwJYjDfCruSD/udvBmRB22Nlkwwkwf5sAB6uTIhSaU= +github.com/hashicorp/hc-install v0.9.0 h1:2dIk8LcvANwtv3QZLckxcjyF5w8KVtiMxu6G6eLhghE= +github.com/hashicorp/hc-install v0.9.0/go.mod h1:+6vOP+mf3tuGgMApVYtmsnDoKWMDcFXeTxCACYZ8SFg= github.com/hashicorp/hcl v0.0.0-20170504190234-a4b07c25de5f/go.mod h1:oZtUIOe8dh44I2q6ScRibXws4Ajl+d+nod3AaR9vL5w= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= @@ -2257,11 +2257,11 @@ github.com/hashicorp/terraform-exec v0.21.0/go.mod h1:1PPeMYou+KDUSSeRE9szMZ/oHf github.com/hashicorp/terraform-json v0.4.0/go.mod h1:eAbqb4w0pSlRmdvl8fOyHAi/+8jnkVYN28gJkSJrLhU= github.com/hashicorp/terraform-json v0.19.0/go.mod h1:qdeBs11ovMzo5puhrRibdD6d2Dq6TyE/28JiU4tIQxk= github.com/hashicorp/terraform-json v0.21.0/go.mod h1:qdeBs11ovMzo5puhrRibdD6d2Dq6TyE/28JiU4tIQxk= -github.com/hashicorp/terraform-json v0.22.1 h1:xft84GZR0QzjPVWs4lRUwvTcPnegqlyS7orfb5Ltvec= -github.com/hashicorp/terraform-json v0.22.1/go.mod h1:JbWSQCLFSXFFhg42T7l9iJwdGXBYV8fmmD6o/ML4p3A= +github.com/hashicorp/terraform-json v0.23.0 h1:sniCkExU4iKtTADReHzACkk8fnpQXrdD2xoR+lppBkI= +github.com/hashicorp/terraform-json v0.23.0/go.mod h1:MHdXbBAbSg0GvzuWazEGKAn/cyNfIB7mN6y7KJN6y2c= github.com/hashicorp/terraform-plugin-go v0.22.0/go.mod h1:mPULV91VKss7sik6KFEcEu7HuTogMLLO/EvWCuFkRVE= -github.com/hashicorp/terraform-plugin-go v0.24.0 h1:2WpHhginCdVhFIrWHxDEg6RBn3YaWzR2o6qUeIEat2U= -github.com/hashicorp/terraform-plugin-go v0.24.0/go.mod h1:tUQ53lAsOyYSckFGEefGC5C8BAaO0ENqzFd3bQeuYQg= +github.com/hashicorp/terraform-plugin-go v0.25.0 h1:oi13cx7xXA6QciMcpcFi/rwA974rdTxjqEhXJjbAyks= +github.com/hashicorp/terraform-plugin-go v0.25.0/go.mod h1:+SYagMYadJP86Kvn+TGeV+ofr/R3g4/If0O5sO96MVw= github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0= github.com/hashicorp/terraform-plugin-log v0.9.0/go.mod h1:rKL8egZQ/eXSyDqzLUuwUYLVdlYeamldAHSxjUFADow= github.com/hashicorp/terraform-plugin-sdk v1.7.0 h1:B//oq0ZORG+EkVrIJy0uPGSonvmXqxSzXe8+GhknoW0= @@ -2328,9 +2328,8 @@ github.com/j-keck/arping v0.0.0-20160618110441-2cf9dc699c56/go.mod h1:ymszkNOg6t github.com/j-keck/arping v1.0.2/go.mod h1:aJbELhR92bSk7tp79AWM/ftfc90EfEi2bQJrbBFOsPw= github.com/jackc/chunkreader v1.0.0/go.mod h1:RT6O25fNZIuasFJRyZ4R/Y2BbhasbmZXF9QQ7T3kePo= github.com/jackc/chunkreader/v2 v2.0.0/go.mod h1:odVSm741yZoC3dpHEUXIqA9tQRhFrgOHwnPIn9lDKlk= +github.com/jackc/chunkreader/v2 v2.0.1 h1:i+RDz65UE+mmpjTfyz0MoVTnzeYxroil2G82ki7MGG8= github.com/jackc/chunkreader/v2 v2.0.1/go.mod h1:odVSm741yZoC3dpHEUXIqA9tQRhFrgOHwnPIn9lDKlk= -github.com/jackc/fake v0.0.0-20150926172116-812a484cc733 h1:vr3AYkKovP8uR8AvSGGUK1IDqRa5lAAvEkZG1LKaCRc= -github.com/jackc/fake v0.0.0-20150926172116-812a484cc733/go.mod h1:WrMFNQdiFJ80sQsxDoMokWK1W5TQtxBFNpzWTD84ibQ= github.com/jackc/pgconn v0.0.0-20190420214824-7e0022ef6ba3/go.mod h1:jkELnwuX+w9qN5YIfX0fl88Ehu4XC3keFuOJJk9pcnA= github.com/jackc/pgconn v0.0.0-20190824142844-760dd75542eb/go.mod h1:lLjNuW/+OfW9/pnVKPazfWOgNfH2aPem8YQ7ilXGvJE= github.com/jackc/pgconn v0.0.0-20190831204454-2fabfa3c18b7/go.mod h1:ZJKsE/KZfsUgOEh9hBm+xYTstcNHg7UPMVJqRfQxq4s= @@ -2338,10 +2337,15 @@ github.com/jackc/pgconn v1.8.0/go.mod h1:1C2Pb36bGIP9QHGBYCjnyhqu7Rv3sGshaQUvmfG github.com/jackc/pgconn v1.9.0/go.mod h1:YctiPyvzfU11JFxoXokUOOKQXQmDMoJL9vJzHH8/2JY= github.com/jackc/pgconn v1.9.1-0.20210724152538-d89c8390a530/go.mod h1:4z2w8XhRbP1hYxkpTuBjTS3ne3J48K83+u0zoyvg2pI= github.com/jackc/pgconn v1.12.1/go.mod h1:ZkhRC59Llhrq3oSfrikvwQ5NaxYExr6twkdkMLaKono= +github.com/jackc/pgconn v1.14.3 h1:bVoTr12EGANZz66nZPkMInAV/KHD2TxH9npjXXgiB3w= +github.com/jackc/pgconn v1.14.3/go.mod h1:RZbme4uasqzybK2RK5c65VsHxoyaml09lx3tXOcO/VM= +github.com/jackc/pgio v1.0.0 h1:g12B9UwVnzGhueNavwioyEEpAmqMe1E/BN9ES+8ovkE= github.com/jackc/pgio v1.0.0/go.mod h1:oP+2QK2wFfUWgr+gxjoBH9KGBb31Eio69xUb0w5bYf8= github.com/jackc/pgmock v0.0.0-20190831213851-13a1b77aafa2/go.mod h1:fGZlG77KXmcq05nJLRkk0+p82V8B8Dw8KN2/V9c/OAE= github.com/jackc/pgmock v0.0.0-20201204152224-4fe30f7445fd/go.mod h1:hrBW0Enj2AZTNpt/7Y5rr2xe/9Mn757Wtb2xeBzPv2c= +github.com/jackc/pgmock v0.0.0-20210724152146-4ad1a8207f65 h1:DadwsjnMwFjfWc9y5Wi/+Zz7xoE5ALHsRQlOctkOiHc= github.com/jackc/pgmock v0.0.0-20210724152146-4ad1a8207f65/go.mod h1:5R2h2EEX+qri8jOWMbJCtaPWkrrNc7OHwsp2TCqp7ak= +github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM= github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg= github.com/jackc/pgproto3 v1.1.0/go.mod h1:eR5FA3leWg7p9aeAqi37XOTgTIbkABlvcPB3E5rlc78= github.com/jackc/pgproto3/v2 v2.0.0-alpha1.0.20190420180111-c116219b62db/go.mod h1:bhq50y+xrl9n5mRYyCBFKkpRVTLYJVWeCc+mEAI3yXA= @@ -2351,19 +2355,25 @@ github.com/jackc/pgproto3/v2 v2.0.0-rc3.0.20190831210041-4c03ce451f29/go.mod h1: github.com/jackc/pgproto3/v2 v2.0.6/go.mod h1:WfJCnwN3HIg9Ish/j3sgWXnAfK8A9Y0bwXYU5xKaEdA= github.com/jackc/pgproto3/v2 v2.1.1/go.mod h1:WfJCnwN3HIg9Ish/j3sgWXnAfK8A9Y0bwXYU5xKaEdA= github.com/jackc/pgproto3/v2 v2.3.0/go.mod h1:WfJCnwN3HIg9Ish/j3sgWXnAfK8A9Y0bwXYU5xKaEdA= +github.com/jackc/pgproto3/v2 v2.3.3 h1:1HLSx5H+tXR9pW3in3zaztoEwQYRC9SQaYUHjTSUOag= +github.com/jackc/pgproto3/v2 v2.3.3/go.mod h1:WfJCnwN3HIg9Ish/j3sgWXnAfK8A9Y0bwXYU5xKaEdA= github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b/go.mod h1:vsD4gTJCa9TptPL8sPkXrLZ+hDuNrZCnj29CQpr4X1E= +github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a h1:bbPeKD0xmW/Y25WS6cokEszi5g+S0QxI/d45PkRi7Nk= +github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM= github.com/jackc/pgtype v0.0.0-20190421001408-4ed0de4755e0/go.mod h1:hdSHsc1V01CGwFsrv11mJRHWJ6aifDLfdV3aVjFF0zg= github.com/jackc/pgtype v0.0.0-20190824184912-ab885b375b90/go.mod h1:KcahbBH1nCMSo2DXpzsoWOAfFkdEtEJpPbVLq8eE+mc= github.com/jackc/pgtype v0.0.0-20190828014616-a8802b16cc59/go.mod h1:MWlu30kVJrUS8lot6TQqcg7mtthZ9T0EoIBFiJcmcyw= github.com/jackc/pgtype v1.8.1-0.20210724151600-32e20a603178/go.mod h1:C516IlIV9NKqfsMCXTdChteoXmwgUceqaLfjg2e3NlM= github.com/jackc/pgtype v1.11.0/go.mod h1:LUMuVrfsFfdKGLw+AFFVv6KtHOFMwRgDDzBt76IqCA4= -github.com/jackc/pgx v3.6.2+incompatible h1:2zP5OD7kiyR3xzRYMhOcXVvkDZsImVXfj+yIyTQf3/o= -github.com/jackc/pgx v3.6.2+incompatible/go.mod h1:0ZGrqGqkRlliWnWB4zKnWtjbSWbGkVEFm4TeybAXq+I= +github.com/jackc/pgtype v1.14.0 h1:y+xUdabmyMkJLyApYuPj38mW+aAIqCe5uuBB51rH3Vw= +github.com/jackc/pgtype v1.14.0/go.mod h1:LUMuVrfsFfdKGLw+AFFVv6KtHOFMwRgDDzBt76IqCA4= github.com/jackc/pgx/v4 v4.0.0-20190420224344-cc3461e65d96/go.mod h1:mdxmSJJuR08CZQyj1PVQBHy9XOp5p8/SHH6a0psbY9Y= github.com/jackc/pgx/v4 v4.0.0-20190421002000-1b8f0016e912/go.mod h1:no/Y67Jkk/9WuGR0JG/JseM9irFbnEPbuWV2EELPNuM= github.com/jackc/pgx/v4 v4.0.0-pre1.0.20190824185557-6972a5742186/go.mod h1:X+GQnOEnf1dqHGpw7JmHqHc1NxDoalibchSk9/RWuDc= github.com/jackc/pgx/v4 v4.12.1-0.20210724153913-640aa07df17c/go.mod h1:1QD0+tgSXP7iUjYm9C1NxKhny7lq6ee99u/z+IHFcgs= github.com/jackc/pgx/v4 v4.16.1/go.mod h1:SIhx0D5hoADaiXZVyv+3gSm3LCIIINTVO0PficsvWGQ= +github.com/jackc/pgx/v4 v4.18.3 h1:dE2/TrEsGX3RBprb3qryqSV9Y60iZN1C6i8IrmW9/BA= +github.com/jackc/pgx/v4 v4.18.3/go.mod h1:Ey4Oru5tH5sB6tV7hDmfWFahwF15Eb7DNXlRKx2CkVw= github.com/jackc/puddle v0.0.0-20190413234325-e4ced69a3a2b/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= github.com/jackc/puddle v0.0.0-20190608224051-11cab39313c9/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= github.com/jackc/puddle v1.1.3/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= @@ -3251,8 +3261,8 @@ golang.org/x/crypto v0.15.0/go.mod h1:4ChreQoLWfG3xLDer1WdlH5NdlQ3+mwnQq1YTKY+72 golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= -golang.org/x/crypto v0.27.0 h1:GXm2NjJrPaiv/h1tb2UH8QfgC/hOf/+z0p6PT8o1w7A= -golang.org/x/crypto v0.27.0/go.mod h1:1Xngt8kV6Dvbssa53Ziq6Eqn0HqbZi5Z6R0ZpwQzt70= +golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw= +golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U= golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -3660,8 +3670,8 @@ golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34= -golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo= +golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= @@ -3684,8 +3694,8 @@ golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U= golang.org/x/term v0.14.0/go.mod h1:TySc+nGkYR6qt8km8wUhuFRTVSMIX3XPR58y2lC8vww= golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= -golang.org/x/term v0.24.0 h1:Mh5cbb+Zk2hqqXNO7S1iTjEphVL+jb8ZWaqh/g+JWkM= -golang.org/x/term v0.24.0/go.mod h1:lOBK/LVxemqiMij05LGJ0tzNr8xlmwBRJ81PX6wVLH8= +golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24= +golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -3707,8 +3717,8 @@ golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224= -golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= +golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -4225,8 +4235,8 @@ google.golang.org/protobuf v1.29.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqw google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= -google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= -google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= +google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA= +google.golang.org/protobuf v1.35.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/airbrake/gobrake.v2 v2.0.9/go.mod h1:/h5ZAUhDkGaJfjzjKLSjv6zCL6O0LLBxU4K+aSYdM/U= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/provider/resources.go b/provider/resources.go index 7bec93b..b8dfdf2 100644 --- a/provider/resources.go +++ b/provider/resources.go @@ -109,6 +109,7 @@ func Provider() tfbridge.ProviderInfo { "materialize_index": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "Index")}, "materialize_materialized_view": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "MaterializedView")}, "materialize_materialized_view_grant": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "GrantMaterializedView")}, + "materialize_network_policy": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "NetworkPolicy")}, "materialize_region": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "CloudRegion")}, "materialize_role": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "Role")}, "materialize_role_grant": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "GrantRole")}, @@ -155,6 +156,7 @@ func Provider() tfbridge.ProviderInfo { "materialize_egress_ips": {Tok: tfbridge.MakeDataSource(mainPkg, mainMod, "GetEgressIps")}, "materialize_index": {Tok: tfbridge.MakeDataSource(mainPkg, mainMod, "GetIndexes")}, "materialize_materialized_view": {Tok: tfbridge.MakeDataSource(mainPkg, mainMod, "GetMaterializedViews")}, + "materialize_network_policy": {Tok: tfbridge.MakeDataSource(mainPkg, mainMod, "GetNetworkPolicies")}, "materialize_region": {Tok: tfbridge.MakeDataSource(mainPkg, mainMod, "Region")}, "materialize_role": {Tok: tfbridge.MakeDataSource(mainPkg, mainMod, "GetRoles")}, "materialize_schema": {Tok: tfbridge.MakeDataSource(mainPkg, mainMod, "GetSchemas")},