From 5998bd454934f2a8e5ecec871a4ce0f6f6369998 Mon Sep 17 00:00:00 2001 From: Thulasiraj Komminar <39799163+thulasirajkomminar@users.noreply.github.com> Date: Sun, 29 Sep 2024 18:55:28 +0200 Subject: [PATCH] Fixed error handling --- .golangci.yml | 2 +- CHANGELOG.md | 6 ++++ Makefile | 2 +- .../schema-embed.json | 2 +- provider/go.mod | 2 +- provider/go.sum | 4 +-- provider/shim/go.mod | 2 +- provider/shim/go.sum | 4 +-- sdk/dotnet/version.txt | 2 +- sdk/nodejs/yarn.lock | 36 +++++++++---------- 10 files changed, 34 insertions(+), 28 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 16e23b5..49e6484 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -27,5 +27,5 @@ linters-settings: - blank # Blank section: contains all blank imports. - default # Default section: contains all imports that could not be matched to another section type. - prefix(github.com/pulumi/) # Custom section: groups all imports with the github.com/pulumi/ prefix. - - prefix(github.com/komminarlabs/pulumi-influxdb) # Custom section: local imports + - prefix(github.com/komminarlabs/pulumi-influxdb3) # Custom section: local imports custom-order: true diff --git a/CHANGELOG.md b/CHANGELOG.md index d5ea2fe..6499112 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ CHANGELOG ========= +## [1.2.3] - 2024-09-29 + +### Fixed: + +* Fixed error handling. + ## [1.2.2] - 2024-09-12 ### Added: diff --git a/Makefile b/Makefile index 28ca207..3ca347c 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ PROJECT := github.com/komminarlabs/pulumi-influxdb3 NODE_MODULE_NAME := @komminarlabs/influxdb3 TF_NAME := influxdb3 PROVIDER_PATH := provider -PROVIDER_VERSION := 1.2.2 +PROVIDER_VERSION := 1.2.3 VERSION_PATH := ${PROVIDER_PATH}/pkg/version.Version TFGEN := pulumi-tfgen-influxdb3 diff --git a/provider/cmd/pulumi-resource-influxdb3/schema-embed.json b/provider/cmd/pulumi-resource-influxdb3/schema-embed.json index 489097f..2906cf0 100644 --- a/provider/cmd/pulumi-resource-influxdb3/schema-embed.json +++ b/provider/cmd/pulumi-resource-influxdb3/schema-embed.json @@ -1 +1 @@ -{"name":"influxdb3","displayName":"InfluxDB3","version":"1.3.0-alpha.1724696180+e020f774.dirty","description":"A Pulumi package for creating and managing InfluxDB V3 resources.","keywords":["pulumi","influxdb3","category/database"],"homepage":"https://www.influxdata.com","license":"Apache-2.0","attribution":"This Pulumi package is based on the [`influxdb3` Terraform Provider](https://github.com/komminarlabs/terraform-provider-influxdb3).","repository":"https://github.com/komminarlabs/pulumi-influxdb3","logoUrl":"https://avatars.githubusercontent.com/u/5713248?s=200\u0026v=4","pluginDownloadURL":"github://api.github.com/komminarlabs","publisher":"komminarlabs","meta":{"moduleFormat":"(.*)(?:/[^/]*)"},"language":{"csharp":{"packageReferences":{"Pulumi":"3.*"},"namespaces":{"influxdb3":"InfluxDB3"},"compatibility":"tfbridge20","rootNamespace":"KomminarLabs"},"go":{"importBasePath":"github.com/komminarlabs/pulumi-influxdb3/sdk/go/influxdb3","generateResourceContainerTypes":true,"generateExtraInputTypes":true},"nodejs":{"packageName":"@komminarlabs/influxdb3","packageDescription":"A Pulumi package for creating and managing InfluxDB V3 resources.","readme":"\u003e This provider is a derived work of the [Terraform Provider](https://github.com/komminarlabs/terraform-provider-influxdb3)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-influxdb3` repo](https://github.com/komminarlabs/pulumi-influxdb3/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-influxdb3` repo](https://github.com/komminarlabs/terraform-provider-influxdb3/issues).","dependencies":{"@pulumi/pulumi":"^3.0.0"},"devDependencies":{"@types/mime":"^2.0.0","@types/node":"^10.0.0"},"compatibility":"tfbridge20","disableUnionOutputTypes":true},"python":{"packageName":"komminarlabs_influxdb3","requires":{"pulumi":"\u003e=3.0.0,\u003c4.0.0"},"readme":"\u003e This provider is a derived work of the [Terraform Provider](https://github.com/komminarlabs/terraform-provider-influxdb3)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-influxdb3` repo](https://github.com/komminarlabs/pulumi-influxdb3/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-influxdb3` repo](https://github.com/komminarlabs/terraform-provider-influxdb3/issues).","compatibility":"tfbridge20","pyproject":{}}},"config":{"variables":{"accountId":{"type":"string","description":"The ID of the account that the cluster belongs to\n","secret":true},"clusterId":{"type":"string","description":"The ID of the cluster that you want to manage\n","secret":true},"token":{"type":"string","description":"The InfluxDB management token\n","secret":true},"url":{"type":"string","description":"The InfluxDB Cloud Dedicated Management API URL\n"}}},"types":{"influxdb3:index/DatabasePartitionTemplate:DatabasePartitionTemplate":{"properties":{"type":{"type":"string","description":"The type of template part. Valid values are `bucket`, `tag` or `time`.\n"},"value":{"type":"string","description":"The value of template part. **Note:** For `bucket` partition template type use `jsonencode()` function to encode the value to a string.\n"}},"type":"object","required":["type","value"]},"influxdb3:index/TokenPermission:TokenPermission":{"properties":{"action":{"type":"string","description":"The action the database token permission allows. Valid values are `read` or `write`.\n"},"resource":{"type":"string","description":"The resource the database token permission applies to. `*` refers to all databases.\n"}},"type":"object","required":["action","resource"]},"influxdb3:index/getDatabasePartitionTemplate:getDatabasePartitionTemplate":{"properties":{"type":{"type":"string","description":"The type of template part.\n"},"value":{"type":"string","description":"The value of template part.\n"}},"type":"object","required":["type","value"],"language":{"nodejs":{"requiredInputs":[]}}},"influxdb3:index/getDatabasesDatabase:getDatabasesDatabase":{"properties":{"accountId":{"type":"string","description":"The ID of the account that the cluster belongs to.\n"},"clusterId":{"type":"string","description":"The ID of the cluster that you want to manage.\n"},"maxColumnsPerTable":{"type":"integer","description":"The maximum number of columns per table for the cluster database.\n"},"maxTables":{"type":"integer","description":"The maximum number of tables for the cluster database.\n"},"name":{"type":"string","description":"The name of the cluster database.\n"},"partitionTemplates":{"type":"array","items":{"$ref":"#/types/influxdb3:index/getDatabasesDatabasePartitionTemplate:getDatabasesDatabasePartitionTemplate"},"description":"The template partitioning of the cluster database.\n"},"retentionPeriod":{"type":"integer","description":"The retention period of the cluster database in nanoseconds.\n"}},"type":"object","required":["accountId","clusterId","maxColumnsPerTable","maxTables","name","partitionTemplates","retentionPeriod"],"language":{"nodejs":{"requiredInputs":[]}}},"influxdb3:index/getDatabasesDatabasePartitionTemplate:getDatabasesDatabasePartitionTemplate":{"properties":{"type":{"type":"string","description":"The type of template part.\n"},"value":{"type":"string","description":"The value of template part.\n"}},"type":"object","required":["type","value"],"language":{"nodejs":{"requiredInputs":[]}}},"influxdb3:index/getTokenPermission:getTokenPermission":{"properties":{"action":{"type":"string","description":"The action the database token permission allows.\n"},"resource":{"type":"string","description":"The resource the database token permission applies to. `*` refers to all databases.\n"}},"type":"object","required":["action","resource"],"language":{"nodejs":{"requiredInputs":[]}}},"influxdb3:index/getTokensToken:getTokensToken":{"properties":{"accessToken":{"type":"string","description":"The access token that can be used to authenticate query and write requests to the cluster. The access token is never stored by InfluxDB and is only returned once when the token is created. If the access token is lost, a new token must be created.\n","secret":true},"accountId":{"type":"string","description":"The ID of the account that the database token belongs to.\n"},"clusterId":{"type":"string","description":"The ID of the cluster that the database token belongs to.\n"},"createdAt":{"type":"string","description":"The date and time that the database token was created. Uses RFC3339 format.\n"},"description":{"type":"string","description":"The description of the database token.\n"},"id":{"type":"string","description":"The ID of the database token.\n"},"permissions":{"type":"array","items":{"$ref":"#/types/influxdb3:index/getTokensTokenPermission:getTokensTokenPermission"},"description":"The list of permissions the database token allows.\n"}},"type":"object","required":["accessToken","accountId","clusterId","createdAt","description","id","permissions"],"language":{"nodejs":{"requiredInputs":[]}}},"influxdb3:index/getTokensTokenPermission:getTokensTokenPermission":{"properties":{"action":{"type":"string","description":"The action the database token permission allows.\n"},"resource":{"type":"string","description":"The resource the database token permission applies to. `*` refers to all databases.\n"}},"type":"object","required":["action","resource"],"language":{"nodejs":{"requiredInputs":[]}}}},"provider":{"description":"The provider type for the influxdb3 package. By default, resources use package-wide configuration\nsettings, however an explicit `Provider` instance may be created and passed during resource\nconstruction to achieve fine-grained programmatic control over provider settings. See the\n[documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.\n","properties":{"accountId":{"type":"string","description":"The ID of the account that the cluster belongs to\n","secret":true},"clusterId":{"type":"string","description":"The ID of the cluster that you want to manage\n","secret":true},"token":{"type":"string","description":"The InfluxDB management token\n","secret":true},"url":{"type":"string","description":"The InfluxDB Cloud Dedicated Management API URL\n"}},"inputProperties":{"accountId":{"type":"string","description":"The ID of the account that the cluster belongs to\n","secret":true},"clusterId":{"type":"string","description":"The ID of the cluster that you want to manage\n","secret":true},"token":{"type":"string","description":"The InfluxDB management token\n","secret":true},"url":{"type":"string","description":"The InfluxDB Cloud Dedicated Management API URL\n"}}},"resources":{"influxdb3:index/database:Database":{"description":"Creates and manages a database.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as influxdb3 from \"@komminarlabs/influxdb3\";\n\nconst signals = new influxdb3.Database(\"signals\", {\n retentionPeriod: 604800,\n partitionTemplates: [\n {\n type: \"tag\",\n value: \"line\",\n },\n {\n type: \"tag\",\n value: \"station\",\n },\n {\n type: \"time\",\n value: \"%Y-%m-%d\",\n },\n {\n type: \"bucket\",\n value: JSON.stringify({\n tagName: \"temperature\",\n numberOfBuckets: 10,\n }),\n },\n ],\n});\n```\n```python\nimport pulumi\nimport json\nimport komminarlabs_influxdb3 as influxdb3\n\nsignals = influxdb3.Database(\"signals\",\n retention_period=604800,\n partition_templates=[\n influxdb3.DatabasePartitionTemplateArgs(\n type=\"tag\",\n value=\"line\",\n ),\n influxdb3.DatabasePartitionTemplateArgs(\n type=\"tag\",\n value=\"station\",\n ),\n influxdb3.DatabasePartitionTemplateArgs(\n type=\"time\",\n value=\"%Y-%m-%d\",\n ),\n influxdb3.DatabasePartitionTemplateArgs(\n type=\"bucket\",\n value=json.dumps({\n \"tagName\": \"temperature\",\n \"numberOfBuckets\": 10,\n }),\n ),\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing InfluxDB3 = KomminarLabs.InfluxDB3;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var signals = new InfluxDB3.Database(\"signals\", new()\n {\n RetentionPeriod = 604800,\n PartitionTemplates = new[]\n {\n new InfluxDB3.Inputs.DatabasePartitionTemplateArgs\n {\n Type = \"tag\",\n Value = \"line\",\n },\n new InfluxDB3.Inputs.DatabasePartitionTemplateArgs\n {\n Type = \"tag\",\n Value = \"station\",\n },\n new InfluxDB3.Inputs.DatabasePartitionTemplateArgs\n {\n Type = \"time\",\n Value = \"%Y-%m-%d\",\n },\n new InfluxDB3.Inputs.DatabasePartitionTemplateArgs\n {\n Type = \"bucket\",\n Value = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"tagName\"] = \"temperature\",\n [\"numberOfBuckets\"] = 10,\n }),\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/komminarlabs/pulumi-influxdb3/sdk/go/influxdb3\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttmpJSON0, err := json.Marshal(map[string]interface{}{\n\t\t\t\"tagName\": \"temperature\",\n\t\t\t\"numberOfBuckets\": 10,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\t_, err = influxdb3.NewDatabase(ctx, \"signals\", \u0026influxdb3.DatabaseArgs{\n\t\t\tRetentionPeriod: pulumi.Int(604800),\n\t\t\tPartitionTemplates: influxdb3.DatabasePartitionTemplateArray{\n\t\t\t\t\u0026influxdb3.DatabasePartitionTemplateArgs{\n\t\t\t\t\tType: pulumi.String(\"tag\"),\n\t\t\t\t\tValue: pulumi.String(\"line\"),\n\t\t\t\t},\n\t\t\t\t\u0026influxdb3.DatabasePartitionTemplateArgs{\n\t\t\t\t\tType: pulumi.String(\"tag\"),\n\t\t\t\t\tValue: pulumi.String(\"station\"),\n\t\t\t\t},\n\t\t\t\t\u0026influxdb3.DatabasePartitionTemplateArgs{\n\t\t\t\t\tType: pulumi.String(\"time\"),\n\t\t\t\t\tValue: pulumi.String(\"%Y-%m-%d\"),\n\t\t\t\t},\n\t\t\t\t\u0026influxdb3.DatabasePartitionTemplateArgs{\n\t\t\t\t\tType: pulumi.String(\"bucket\"),\n\t\t\t\t\tValue: pulumi.String(json0),\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\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.influxdb3.Database;\nimport com.pulumi.influxdb3.DatabaseArgs;\nimport com.pulumi.influxdb3.inputs.DatabasePartitionTemplateArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\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 signals = new Database(\"signals\", DatabaseArgs.builder() \n .retentionPeriod(604800)\n .partitionTemplates( \n DatabasePartitionTemplateArgs.builder()\n .type(\"tag\")\n .value(\"line\")\n .build(),\n DatabasePartitionTemplateArgs.builder()\n .type(\"tag\")\n .value(\"station\")\n .build(),\n DatabasePartitionTemplateArgs.builder()\n .type(\"time\")\n .value(\"%Y-%m-%d\")\n .build(),\n DatabasePartitionTemplateArgs.builder()\n .type(\"bucket\")\n .value(serializeJson(\n jsonObject(\n jsonProperty(\"tagName\", \"temperature\"),\n jsonProperty(\"numberOfBuckets\", 10)\n )))\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n signals:\n type: influxdb3:Database\n properties:\n retentionPeriod: 604800\n partitionTemplates:\n - type: tag\n value: line\n - type: tag\n value: station\n - type: time\n value: '%Y-%m-%d'\n - type: bucket\n value:\n fn::toJSON:\n tagName: temperature\n numberOfBuckets: 10\n```\n{{% /example %}}\n{{% /examples %}}","properties":{"accountId":{"type":"string","description":"The ID of the account that the cluster belongs to.\n"},"clusterId":{"type":"string","description":"The ID of the cluster that you want to manage.\n"},"maxColumnsPerTable":{"type":"integer","description":"The maximum number of columns per table for the cluster database. The default is `200`\n"},"maxTables":{"type":"integer","description":"The maximum number of tables for the cluster database. The default is `500`\n"},"name":{"type":"string","description":"The name of the cluster database. The Length should be between `[ 1 .. 64 ]` characters. **Note:** Database names can't be updated. An update will result in resource replacement. After a database is deleted, you cannot [reuse](https://docs.influxdata.com/influxdb/cloud-dedicated/admin/databases/delete/#cannot-reuse-database-names) the same name for a new database.\n"},"partitionTemplates":{"type":"array","items":{"$ref":"#/types/influxdb3:index/DatabasePartitionTemplate:DatabasePartitionTemplate"},"description":"A template for [partitioning](https://docs.influxdata.com/influxdb/cloud-dedicated/admin/custom-partitions/partition-templates/) a cluster database. **Note:** A partition template can include up to 7 total tag and tag bucket parts and only 1 time part. You can only apply a partition template when creating a database. You [can't update a partition template](https://docs.influxdata.com/influxdb/cloud-dedicated/admin/databases/create/#partition-templates-can-only-be-applied-on-create) on an existing database. An update will result in resource replacement.\n"},"retentionPeriod":{"type":"integer","description":"The retention period of the cluster database in nanoseconds. The default is `0`. If the retention period is not set or is set to `0`, the database will have infinite retention.\n"}},"required":["accountId","clusterId","maxColumnsPerTable","maxTables","name","partitionTemplates","retentionPeriod"],"inputProperties":{"maxColumnsPerTable":{"type":"integer","description":"The maximum number of columns per table for the cluster database. The default is `200`\n"},"maxTables":{"type":"integer","description":"The maximum number of tables for the cluster database. The default is `500`\n"},"name":{"type":"string","description":"The name of the cluster database. The Length should be between `[ 1 .. 64 ]` characters. **Note:** Database names can't be updated. An update will result in resource replacement. After a database is deleted, you cannot [reuse](https://docs.influxdata.com/influxdb/cloud-dedicated/admin/databases/delete/#cannot-reuse-database-names) the same name for a new database.\n"},"partitionTemplates":{"type":"array","items":{"$ref":"#/types/influxdb3:index/DatabasePartitionTemplate:DatabasePartitionTemplate"},"description":"A template for [partitioning](https://docs.influxdata.com/influxdb/cloud-dedicated/admin/custom-partitions/partition-templates/) a cluster database. **Note:** A partition template can include up to 7 total tag and tag bucket parts and only 1 time part. You can only apply a partition template when creating a database. You [can't update a partition template](https://docs.influxdata.com/influxdb/cloud-dedicated/admin/databases/create/#partition-templates-can-only-be-applied-on-create) on an existing database. An update will result in resource replacement.\n"},"retentionPeriod":{"type":"integer","description":"The retention period of the cluster database in nanoseconds. The default is `0`. If the retention period is not set or is set to `0`, the database will have infinite retention.\n"}},"stateInputs":{"description":"Input properties used for looking up and filtering Database resources.\n","properties":{"accountId":{"type":"string","description":"The ID of the account that the cluster belongs to.\n"},"clusterId":{"type":"string","description":"The ID of the cluster that you want to manage.\n"},"maxColumnsPerTable":{"type":"integer","description":"The maximum number of columns per table for the cluster database. The default is `200`\n"},"maxTables":{"type":"integer","description":"The maximum number of tables for the cluster database. The default is `500`\n"},"name":{"type":"string","description":"The name of the cluster database. The Length should be between `[ 1 .. 64 ]` characters. **Note:** Database names can't be updated. An update will result in resource replacement. After a database is deleted, you cannot [reuse](https://docs.influxdata.com/influxdb/cloud-dedicated/admin/databases/delete/#cannot-reuse-database-names) the same name for a new database.\n"},"partitionTemplates":{"type":"array","items":{"$ref":"#/types/influxdb3:index/DatabasePartitionTemplate:DatabasePartitionTemplate"},"description":"A template for [partitioning](https://docs.influxdata.com/influxdb/cloud-dedicated/admin/custom-partitions/partition-templates/) a cluster database. **Note:** A partition template can include up to 7 total tag and tag bucket parts and only 1 time part. You can only apply a partition template when creating a database. You [can't update a partition template](https://docs.influxdata.com/influxdb/cloud-dedicated/admin/databases/create/#partition-templates-can-only-be-applied-on-create) on an existing database. An update will result in resource replacement.\n"},"retentionPeriod":{"type":"integer","description":"The retention period of the cluster database in nanoseconds. The default is `0`. If the retention period is not set or is set to `0`, the database will have infinite retention.\n"}},"type":"object"}},"influxdb3:index/token:Token":{"description":"Creates and manages a token and returns the generated database token. Use this resource to create/manage a token, which generates an database token with permissions to read or write to a specific database.\n","properties":{"accessToken":{"type":"string","description":"The access token that can be used to authenticate query and write requests to the cluster. The access token is never stored by InfluxDB and is only returned once when the token is created. If the access token is lost, a new token must be created.\n","secret":true},"accountId":{"type":"string","description":"The ID of the account that the database token belongs to.\n"},"clusterId":{"type":"string","description":"The ID of the cluster that the database token belongs to.\n"},"createdAt":{"type":"string","description":"The date and time that the database token was created. Uses RFC3339 format.\n"},"description":{"type":"string","description":"The description of the database token.\n"},"permissions":{"type":"array","items":{"$ref":"#/types/influxdb3:index/TokenPermission:TokenPermission"},"description":"The list of permissions the database token allows.\n"}},"required":["accessToken","accountId","clusterId","createdAt","description","permissions"],"inputProperties":{"description":{"type":"string","description":"The description of the database token.\n"},"permissions":{"type":"array","items":{"$ref":"#/types/influxdb3:index/TokenPermission:TokenPermission"},"description":"The list of permissions the database token allows.\n"}},"requiredInputs":["description","permissions"],"stateInputs":{"description":"Input properties used for looking up and filtering Token resources.\n","properties":{"accessToken":{"type":"string","description":"The access token that can be used to authenticate query and write requests to the cluster. The access token is never stored by InfluxDB and is only returned once when the token is created. If the access token is lost, a new token must be created.\n","secret":true},"accountId":{"type":"string","description":"The ID of the account that the database token belongs to.\n"},"clusterId":{"type":"string","description":"The ID of the cluster that the database token belongs to.\n"},"createdAt":{"type":"string","description":"The date and time that the database token was created. Uses RFC3339 format.\n"},"description":{"type":"string","description":"The description of the database token.\n"},"permissions":{"type":"array","items":{"$ref":"#/types/influxdb3:index/TokenPermission:TokenPermission"},"description":"The list of permissions the database token allows.\n"}},"type":"object"}}},"functions":{"influxdb3:index/getDatabase:getDatabase":{"description":"Retrieves a database. Use this data source to retrieve information for a specific database.\n","inputs":{"description":"A collection of arguments for invoking getDatabase.\n","properties":{"name":{"type":"string","description":"The name of the cluster database.\n"}},"type":"object","required":["name"]},"outputs":{"description":"A collection of values returned by getDatabase.\n","properties":{"accountId":{"description":"The ID of the account that the cluster belongs to.\n","type":"string"},"clusterId":{"description":"The ID of the cluster that you want to manage.\n","type":"string"},"id":{"description":"The provider-assigned unique ID for this managed resource.\n","type":"string"},"maxColumnsPerTable":{"description":"The maximum number of columns per table for the cluster database.\n","type":"integer"},"maxTables":{"description":"The maximum number of tables for the cluster database.\n","type":"integer"},"name":{"description":"The name of the cluster database.\n","type":"string"},"partitionTemplates":{"description":"The template partitioning of the cluster database.\n","items":{"$ref":"#/types/influxdb3:index/getDatabasePartitionTemplate:getDatabasePartitionTemplate"},"type":"array"},"retentionPeriod":{"description":"The retention period of the cluster database in nanoseconds.\n","type":"integer"}},"required":["accountId","clusterId","maxColumnsPerTable","maxTables","name","partitionTemplates","retentionPeriod","id"],"type":"object"}},"influxdb3:index/getDatabases:getDatabases":{"description":"Gets all databases for a cluster.\n","outputs":{"description":"A collection of values returned by getDatabases.\n","properties":{"databases":{"items":{"$ref":"#/types/influxdb3:index/getDatabasesDatabase:getDatabasesDatabase"},"type":"array"},"id":{"description":"The provider-assigned unique ID for this managed resource.\n","type":"string"}},"required":["databases","id"],"type":"object"}},"influxdb3:index/getToken:getToken":{"description":"Gets a database token. Use this data source to retrieve information about a database token, including the token's permissions.\n","inputs":{"description":"A collection of arguments for invoking getToken.\n","properties":{"id":{"type":"string","description":"The ID of the database token.\n"}},"type":"object","required":["id"]},"outputs":{"description":"A collection of values returned by getToken.\n","properties":{"accessToken":{"description":"The access token that can be used to authenticate query and write requests to the cluster. The access token is never stored by InfluxDB and is only returned once when the token is created. If the access token is lost, a new token must be created.\n","secret":true,"type":"string"},"accountId":{"description":"The ID of the account that the database token belongs to.\n","type":"string"},"clusterId":{"description":"The ID of the cluster that the database token belongs to.\n","type":"string"},"createdAt":{"description":"The date and time that the database token was created. Uses RFC3339 format.\n","type":"string"},"description":{"description":"The description of the database token.\n","type":"string"},"id":{"description":"The ID of the database token.\n","type":"string"},"permissions":{"description":"The list of permissions the database token allows.\n","items":{"$ref":"#/types/influxdb3:index/getTokenPermission:getTokenPermission"},"type":"array"}},"required":["accessToken","accountId","clusterId","createdAt","description","id","permissions"],"type":"object"}},"influxdb3:index/getTokens:getTokens":{"description":"Gets all database tokens for a cluster.\n","outputs":{"description":"A collection of values returned by getTokens.\n","properties":{"id":{"description":"The provider-assigned unique ID for this managed resource.\n","type":"string"},"tokens":{"items":{"$ref":"#/types/influxdb3:index/getTokensToken:getTokensToken"},"type":"array"}},"required":["tokens","id"],"type":"object"}}}} \ No newline at end of file +{"name":"influxdb3","displayName":"InfluxDB3","version":"1.2.2+dirty","description":"A Pulumi package for creating and managing InfluxDB V3 resources.","keywords":["pulumi","influxdb3","category/database"],"homepage":"https://www.influxdata.com","license":"Apache-2.0","attribution":"This Pulumi package is based on the [`influxdb3` Terraform Provider](https://github.com/komminarlabs/terraform-provider-influxdb3).","repository":"https://github.com/komminarlabs/pulumi-influxdb3","logoUrl":"https://avatars.githubusercontent.com/u/5713248?s=200\u0026v=4","pluginDownloadURL":"github://api.github.com/komminarlabs","publisher":"komminarlabs","meta":{"moduleFormat":"(.*)(?:/[^/]*)"},"language":{"csharp":{"packageReferences":{"Pulumi":"3.*"},"namespaces":{"influxdb3":"InfluxDB3"},"compatibility":"tfbridge20","rootNamespace":"KomminarLabs"},"go":{"importBasePath":"github.com/komminarlabs/pulumi-influxdb3/sdk/go/influxdb3","generateResourceContainerTypes":true,"generateExtraInputTypes":true},"nodejs":{"packageName":"@komminarlabs/influxdb3","packageDescription":"A Pulumi package for creating and managing InfluxDB V3 resources.","readme":"\u003e This provider is a derived work of the [Terraform Provider](https://github.com/komminarlabs/terraform-provider-influxdb3)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-influxdb3` repo](https://github.com/komminarlabs/pulumi-influxdb3/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-influxdb3` repo](https://github.com/komminarlabs/terraform-provider-influxdb3/issues).","dependencies":{"@pulumi/pulumi":"^3.0.0"},"devDependencies":{"@types/mime":"^2.0.0","@types/node":"^10.0.0"},"compatibility":"tfbridge20","disableUnionOutputTypes":true},"python":{"packageName":"komminarlabs_influxdb3","requires":{"pulumi":"\u003e=3.0.0,\u003c4.0.0"},"readme":"\u003e This provider is a derived work of the [Terraform Provider](https://github.com/komminarlabs/terraform-provider-influxdb3)\n\u003e distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,\n\u003e first check the [`pulumi-influxdb3` repo](https://github.com/komminarlabs/pulumi-influxdb3/issues); however, if that doesn't turn up anything,\n\u003e please consult the source [`terraform-provider-influxdb3` repo](https://github.com/komminarlabs/terraform-provider-influxdb3/issues).","compatibility":"tfbridge20","pyproject":{}}},"config":{"variables":{"accountId":{"type":"string","description":"The ID of the account that the cluster belongs to\n","secret":true},"clusterId":{"type":"string","description":"The ID of the cluster that you want to manage\n","secret":true},"token":{"type":"string","description":"The InfluxDB management token\n","secret":true},"url":{"type":"string","description":"The InfluxDB Cloud Dedicated Management API URL\n"}}},"types":{"influxdb3:index/DatabasePartitionTemplate:DatabasePartitionTemplate":{"properties":{"type":{"type":"string","description":"The type of template part. Valid values are `bucket`, `tag` or `time`.\n"},"value":{"type":"string","description":"The value of template part. **Note:** For `bucket` partition template type use `jsonencode()` function to encode the value to a string.\n"}},"type":"object","required":["type","value"]},"influxdb3:index/TokenPermission:TokenPermission":{"properties":{"action":{"type":"string","description":"The action the database token permission allows. Valid values are `read` or `write`.\n"},"resource":{"type":"string","description":"The resource the database token permission applies to. `*` refers to all databases.\n"}},"type":"object","required":["action","resource"]},"influxdb3:index/getDatabasePartitionTemplate:getDatabasePartitionTemplate":{"properties":{"type":{"type":"string","description":"The type of template part.\n"},"value":{"type":"string","description":"The value of template part.\n"}},"type":"object","required":["type","value"],"language":{"nodejs":{"requiredInputs":[]}}},"influxdb3:index/getDatabasesDatabase:getDatabasesDatabase":{"properties":{"accountId":{"type":"string","description":"The ID of the account that the cluster belongs to.\n"},"clusterId":{"type":"string","description":"The ID of the cluster that you want to manage.\n"},"maxColumnsPerTable":{"type":"integer","description":"The maximum number of columns per table for the cluster database.\n"},"maxTables":{"type":"integer","description":"The maximum number of tables for the cluster database.\n"},"name":{"type":"string","description":"The name of the cluster database.\n"},"partitionTemplates":{"type":"array","items":{"$ref":"#/types/influxdb3:index/getDatabasesDatabasePartitionTemplate:getDatabasesDatabasePartitionTemplate"},"description":"The template partitioning of the cluster database.\n"},"retentionPeriod":{"type":"integer","description":"The retention period of the cluster database in nanoseconds.\n"}},"type":"object","required":["accountId","clusterId","maxColumnsPerTable","maxTables","name","partitionTemplates","retentionPeriod"],"language":{"nodejs":{"requiredInputs":[]}}},"influxdb3:index/getDatabasesDatabasePartitionTemplate:getDatabasesDatabasePartitionTemplate":{"properties":{"type":{"type":"string","description":"The type of template part.\n"},"value":{"type":"string","description":"The value of template part.\n"}},"type":"object","required":["type","value"],"language":{"nodejs":{"requiredInputs":[]}}},"influxdb3:index/getTokenPermission:getTokenPermission":{"properties":{"action":{"type":"string","description":"The action the database token permission allows.\n"},"resource":{"type":"string","description":"The resource the database token permission applies to. `*` refers to all databases.\n"}},"type":"object","required":["action","resource"],"language":{"nodejs":{"requiredInputs":[]}}},"influxdb3:index/getTokensToken:getTokensToken":{"properties":{"accessToken":{"type":"string","description":"The access token that can be used to authenticate query and write requests to the cluster. The access token is never stored by InfluxDB and is only returned once when the token is created. If the access token is lost, a new token must be created.\n","secret":true},"accountId":{"type":"string","description":"The ID of the account that the database token belongs to.\n"},"clusterId":{"type":"string","description":"The ID of the cluster that the database token belongs to.\n"},"createdAt":{"type":"string","description":"The date and time that the database token was created. Uses RFC3339 format.\n"},"description":{"type":"string","description":"The description of the database token.\n"},"id":{"type":"string","description":"The ID of the database token.\n"},"permissions":{"type":"array","items":{"$ref":"#/types/influxdb3:index/getTokensTokenPermission:getTokensTokenPermission"},"description":"The list of permissions the database token allows.\n"}},"type":"object","required":["accessToken","accountId","clusterId","createdAt","description","id","permissions"],"language":{"nodejs":{"requiredInputs":[]}}},"influxdb3:index/getTokensTokenPermission:getTokensTokenPermission":{"properties":{"action":{"type":"string","description":"The action the database token permission allows.\n"},"resource":{"type":"string","description":"The resource the database token permission applies to. `*` refers to all databases.\n"}},"type":"object","required":["action","resource"],"language":{"nodejs":{"requiredInputs":[]}}}},"provider":{"description":"The provider type for the influxdb3 package. By default, resources use package-wide configuration\nsettings, however an explicit `Provider` instance may be created and passed during resource\nconstruction to achieve fine-grained programmatic control over provider settings. See the\n[documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.\n","properties":{"accountId":{"type":"string","description":"The ID of the account that the cluster belongs to\n","secret":true},"clusterId":{"type":"string","description":"The ID of the cluster that you want to manage\n","secret":true},"token":{"type":"string","description":"The InfluxDB management token\n","secret":true},"url":{"type":"string","description":"The InfluxDB Cloud Dedicated Management API URL\n"}},"inputProperties":{"accountId":{"type":"string","description":"The ID of the account that the cluster belongs to\n","secret":true},"clusterId":{"type":"string","description":"The ID of the cluster that you want to manage\n","secret":true},"token":{"type":"string","description":"The InfluxDB management token\n","secret":true},"url":{"type":"string","description":"The InfluxDB Cloud Dedicated Management API URL\n"}}},"resources":{"influxdb3:index/database:Database":{"description":"Creates and manages a database.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as influxdb3 from \"@komminarlabs/influxdb3\";\n\nconst signals = new influxdb3.Database(\"signals\", {\n retentionPeriod: 604800,\n partitionTemplates: [\n {\n type: \"tag\",\n value: \"line\",\n },\n {\n type: \"tag\",\n value: \"station\",\n },\n {\n type: \"time\",\n value: \"%Y-%m-%d\",\n },\n {\n type: \"bucket\",\n value: JSON.stringify({\n tagName: \"temperature\",\n numberOfBuckets: 10,\n }),\n },\n ],\n});\n```\n```python\nimport pulumi\nimport json\nimport komminarlabs_influxdb3 as influxdb3\n\nsignals = influxdb3.Database(\"signals\",\n retention_period=604800,\n partition_templates=[\n influxdb3.DatabasePartitionTemplateArgs(\n type=\"tag\",\n value=\"line\",\n ),\n influxdb3.DatabasePartitionTemplateArgs(\n type=\"tag\",\n value=\"station\",\n ),\n influxdb3.DatabasePartitionTemplateArgs(\n type=\"time\",\n value=\"%Y-%m-%d\",\n ),\n influxdb3.DatabasePartitionTemplateArgs(\n type=\"bucket\",\n value=json.dumps({\n \"tagName\": \"temperature\",\n \"numberOfBuckets\": 10,\n }),\n ),\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text.Json;\nusing Pulumi;\nusing InfluxDB3 = KomminarLabs.InfluxDB3;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var signals = new InfluxDB3.Database(\"signals\", new()\n {\n RetentionPeriod = 604800,\n PartitionTemplates = new[]\n {\n new InfluxDB3.Inputs.DatabasePartitionTemplateArgs\n {\n Type = \"tag\",\n Value = \"line\",\n },\n new InfluxDB3.Inputs.DatabasePartitionTemplateArgs\n {\n Type = \"tag\",\n Value = \"station\",\n },\n new InfluxDB3.Inputs.DatabasePartitionTemplateArgs\n {\n Type = \"time\",\n Value = \"%Y-%m-%d\",\n },\n new InfluxDB3.Inputs.DatabasePartitionTemplateArgs\n {\n Type = \"bucket\",\n Value = JsonSerializer.Serialize(new Dictionary\u003cstring, object?\u003e\n {\n [\"tagName\"] = \"temperature\",\n [\"numberOfBuckets\"] = 10,\n }),\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\n\t\"github.com/komminarlabs/pulumi-influxdb3/sdk/go/influxdb3\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttmpJSON0, err := json.Marshal(map[string]interface{}{\n\t\t\t\"tagName\": \"temperature\",\n\t\t\t\"numberOfBuckets\": 10,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tjson0 := string(tmpJSON0)\n\t\t_, err = influxdb3.NewDatabase(ctx, \"signals\", \u0026influxdb3.DatabaseArgs{\n\t\t\tRetentionPeriod: pulumi.Int(604800),\n\t\t\tPartitionTemplates: influxdb3.DatabasePartitionTemplateArray{\n\t\t\t\t\u0026influxdb3.DatabasePartitionTemplateArgs{\n\t\t\t\t\tType: pulumi.String(\"tag\"),\n\t\t\t\t\tValue: pulumi.String(\"line\"),\n\t\t\t\t},\n\t\t\t\t\u0026influxdb3.DatabasePartitionTemplateArgs{\n\t\t\t\t\tType: pulumi.String(\"tag\"),\n\t\t\t\t\tValue: pulumi.String(\"station\"),\n\t\t\t\t},\n\t\t\t\t\u0026influxdb3.DatabasePartitionTemplateArgs{\n\t\t\t\t\tType: pulumi.String(\"time\"),\n\t\t\t\t\tValue: pulumi.String(\"%Y-%m-%d\"),\n\t\t\t\t},\n\t\t\t\t\u0026influxdb3.DatabasePartitionTemplateArgs{\n\t\t\t\t\tType: pulumi.String(\"bucket\"),\n\t\t\t\t\tValue: pulumi.String(json0),\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\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.influxdb3.Database;\nimport com.pulumi.influxdb3.DatabaseArgs;\nimport com.pulumi.influxdb3.inputs.DatabasePartitionTemplateArgs;\nimport static com.pulumi.codegen.internal.Serialization.*;\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 signals = new Database(\"signals\", DatabaseArgs.builder() \n .retentionPeriod(604800)\n .partitionTemplates( \n DatabasePartitionTemplateArgs.builder()\n .type(\"tag\")\n .value(\"line\")\n .build(),\n DatabasePartitionTemplateArgs.builder()\n .type(\"tag\")\n .value(\"station\")\n .build(),\n DatabasePartitionTemplateArgs.builder()\n .type(\"time\")\n .value(\"%Y-%m-%d\")\n .build(),\n DatabasePartitionTemplateArgs.builder()\n .type(\"bucket\")\n .value(serializeJson(\n jsonObject(\n jsonProperty(\"tagName\", \"temperature\"),\n jsonProperty(\"numberOfBuckets\", 10)\n )))\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n signals:\n type: influxdb3:Database\n properties:\n retentionPeriod: 604800\n partitionTemplates:\n - type: tag\n value: line\n - type: tag\n value: station\n - type: time\n value: '%Y-%m-%d'\n - type: bucket\n value:\n fn::toJSON:\n tagName: temperature\n numberOfBuckets: 10\n```\n{{% /example %}}\n{{% /examples %}}","properties":{"accountId":{"type":"string","description":"The ID of the account that the cluster belongs to.\n"},"clusterId":{"type":"string","description":"The ID of the cluster that you want to manage.\n"},"maxColumnsPerTable":{"type":"integer","description":"The maximum number of columns per table for the cluster database. The default is `200`\n"},"maxTables":{"type":"integer","description":"The maximum number of tables for the cluster database. The default is `500`\n"},"name":{"type":"string","description":"The name of the cluster database. The Length should be between `[ 1 .. 64 ]` characters. **Note:** Database names can't be updated. An update will result in resource replacement. After a database is deleted, you cannot [reuse](https://docs.influxdata.com/influxdb/cloud-dedicated/admin/databases/delete/#cannot-reuse-database-names) the same name for a new database.\n"},"partitionTemplates":{"type":"array","items":{"$ref":"#/types/influxdb3:index/DatabasePartitionTemplate:DatabasePartitionTemplate"},"description":"A template for [partitioning](https://docs.influxdata.com/influxdb/cloud-dedicated/admin/custom-partitions/partition-templates/) a cluster database. **Note:** A partition template can include up to 7 total tag and tag bucket parts and only 1 time part. You can only apply a partition template when creating a database. You [can't update a partition template](https://docs.influxdata.com/influxdb/cloud-dedicated/admin/databases/create/#partition-templates-can-only-be-applied-on-create) on an existing database. An update will result in resource replacement.\n"},"retentionPeriod":{"type":"integer","description":"The retention period of the cluster database in nanoseconds. The default is `0`. If the retention period is not set or is set to `0`, the database will have infinite retention.\n"}},"required":["accountId","clusterId","maxColumnsPerTable","maxTables","name","partitionTemplates","retentionPeriod"],"inputProperties":{"maxColumnsPerTable":{"type":"integer","description":"The maximum number of columns per table for the cluster database. The default is `200`\n"},"maxTables":{"type":"integer","description":"The maximum number of tables for the cluster database. The default is `500`\n"},"name":{"type":"string","description":"The name of the cluster database. The Length should be between `[ 1 .. 64 ]` characters. **Note:** Database names can't be updated. An update will result in resource replacement. After a database is deleted, you cannot [reuse](https://docs.influxdata.com/influxdb/cloud-dedicated/admin/databases/delete/#cannot-reuse-database-names) the same name for a new database.\n"},"partitionTemplates":{"type":"array","items":{"$ref":"#/types/influxdb3:index/DatabasePartitionTemplate:DatabasePartitionTemplate"},"description":"A template for [partitioning](https://docs.influxdata.com/influxdb/cloud-dedicated/admin/custom-partitions/partition-templates/) a cluster database. **Note:** A partition template can include up to 7 total tag and tag bucket parts and only 1 time part. You can only apply a partition template when creating a database. You [can't update a partition template](https://docs.influxdata.com/influxdb/cloud-dedicated/admin/databases/create/#partition-templates-can-only-be-applied-on-create) on an existing database. An update will result in resource replacement.\n"},"retentionPeriod":{"type":"integer","description":"The retention period of the cluster database in nanoseconds. The default is `0`. If the retention period is not set or is set to `0`, the database will have infinite retention.\n"}},"stateInputs":{"description":"Input properties used for looking up and filtering Database resources.\n","properties":{"accountId":{"type":"string","description":"The ID of the account that the cluster belongs to.\n"},"clusterId":{"type":"string","description":"The ID of the cluster that you want to manage.\n"},"maxColumnsPerTable":{"type":"integer","description":"The maximum number of columns per table for the cluster database. The default is `200`\n"},"maxTables":{"type":"integer","description":"The maximum number of tables for the cluster database. The default is `500`\n"},"name":{"type":"string","description":"The name of the cluster database. The Length should be between `[ 1 .. 64 ]` characters. **Note:** Database names can't be updated. An update will result in resource replacement. After a database is deleted, you cannot [reuse](https://docs.influxdata.com/influxdb/cloud-dedicated/admin/databases/delete/#cannot-reuse-database-names) the same name for a new database.\n"},"partitionTemplates":{"type":"array","items":{"$ref":"#/types/influxdb3:index/DatabasePartitionTemplate:DatabasePartitionTemplate"},"description":"A template for [partitioning](https://docs.influxdata.com/influxdb/cloud-dedicated/admin/custom-partitions/partition-templates/) a cluster database. **Note:** A partition template can include up to 7 total tag and tag bucket parts and only 1 time part. You can only apply a partition template when creating a database. You [can't update a partition template](https://docs.influxdata.com/influxdb/cloud-dedicated/admin/databases/create/#partition-templates-can-only-be-applied-on-create) on an existing database. An update will result in resource replacement.\n"},"retentionPeriod":{"type":"integer","description":"The retention period of the cluster database in nanoseconds. The default is `0`. If the retention period is not set or is set to `0`, the database will have infinite retention.\n"}},"type":"object"}},"influxdb3:index/token:Token":{"description":"Creates and manages a token and returns the generated database token. Use this resource to create/manage a token, which generates an database token with permissions to read or write to a specific database.\n","properties":{"accessToken":{"type":"string","description":"The access token that can be used to authenticate query and write requests to the cluster. The access token is never stored by InfluxDB and is only returned once when the token is created. If the access token is lost, a new token must be created.\n","secret":true},"accountId":{"type":"string","description":"The ID of the account that the database token belongs to.\n"},"clusterId":{"type":"string","description":"The ID of the cluster that the database token belongs to.\n"},"createdAt":{"type":"string","description":"The date and time that the database token was created. Uses RFC3339 format.\n"},"description":{"type":"string","description":"The description of the database token.\n"},"permissions":{"type":"array","items":{"$ref":"#/types/influxdb3:index/TokenPermission:TokenPermission"},"description":"The list of permissions the database token allows.\n"}},"required":["accessToken","accountId","clusterId","createdAt","description","permissions"],"inputProperties":{"description":{"type":"string","description":"The description of the database token.\n"},"permissions":{"type":"array","items":{"$ref":"#/types/influxdb3:index/TokenPermission:TokenPermission"},"description":"The list of permissions the database token allows.\n"}},"requiredInputs":["description","permissions"],"stateInputs":{"description":"Input properties used for looking up and filtering Token resources.\n","properties":{"accessToken":{"type":"string","description":"The access token that can be used to authenticate query and write requests to the cluster. The access token is never stored by InfluxDB and is only returned once when the token is created. If the access token is lost, a new token must be created.\n","secret":true},"accountId":{"type":"string","description":"The ID of the account that the database token belongs to.\n"},"clusterId":{"type":"string","description":"The ID of the cluster that the database token belongs to.\n"},"createdAt":{"type":"string","description":"The date and time that the database token was created. Uses RFC3339 format.\n"},"description":{"type":"string","description":"The description of the database token.\n"},"permissions":{"type":"array","items":{"$ref":"#/types/influxdb3:index/TokenPermission:TokenPermission"},"description":"The list of permissions the database token allows.\n"}},"type":"object"}}},"functions":{"influxdb3:index/getDatabase:getDatabase":{"description":"Retrieves a database. Use this data source to retrieve information for a specific database.\n","inputs":{"description":"A collection of arguments for invoking getDatabase.\n","properties":{"name":{"type":"string","description":"The name of the cluster database.\n"}},"type":"object","required":["name"]},"outputs":{"description":"A collection of values returned by getDatabase.\n","properties":{"accountId":{"description":"The ID of the account that the cluster belongs to.\n","type":"string"},"clusterId":{"description":"The ID of the cluster that you want to manage.\n","type":"string"},"id":{"description":"The provider-assigned unique ID for this managed resource.\n","type":"string"},"maxColumnsPerTable":{"description":"The maximum number of columns per table for the cluster database.\n","type":"integer"},"maxTables":{"description":"The maximum number of tables for the cluster database.\n","type":"integer"},"name":{"description":"The name of the cluster database.\n","type":"string"},"partitionTemplates":{"description":"The template partitioning of the cluster database.\n","items":{"$ref":"#/types/influxdb3:index/getDatabasePartitionTemplate:getDatabasePartitionTemplate"},"type":"array"},"retentionPeriod":{"description":"The retention period of the cluster database in nanoseconds.\n","type":"integer"}},"required":["accountId","clusterId","maxColumnsPerTable","maxTables","name","partitionTemplates","retentionPeriod","id"],"type":"object"}},"influxdb3:index/getDatabases:getDatabases":{"description":"Gets all databases for a cluster.\n","outputs":{"description":"A collection of values returned by getDatabases.\n","properties":{"databases":{"items":{"$ref":"#/types/influxdb3:index/getDatabasesDatabase:getDatabasesDatabase"},"type":"array"},"id":{"description":"The provider-assigned unique ID for this managed resource.\n","type":"string"}},"required":["databases","id"],"type":"object"}},"influxdb3:index/getToken:getToken":{"description":"Gets a database token. Use this data source to retrieve information about a database token, including the token's permissions.\n","inputs":{"description":"A collection of arguments for invoking getToken.\n","properties":{"id":{"type":"string","description":"The ID of the database token.\n"}},"type":"object","required":["id"]},"outputs":{"description":"A collection of values returned by getToken.\n","properties":{"accessToken":{"description":"The access token that can be used to authenticate query and write requests to the cluster. The access token is never stored by InfluxDB and is only returned once when the token is created. If the access token is lost, a new token must be created.\n","secret":true,"type":"string"},"accountId":{"description":"The ID of the account that the database token belongs to.\n","type":"string"},"clusterId":{"description":"The ID of the cluster that the database token belongs to.\n","type":"string"},"createdAt":{"description":"The date and time that the database token was created. Uses RFC3339 format.\n","type":"string"},"description":{"description":"The description of the database token.\n","type":"string"},"id":{"description":"The ID of the database token.\n","type":"string"},"permissions":{"description":"The list of permissions the database token allows.\n","items":{"$ref":"#/types/influxdb3:index/getTokenPermission:getTokenPermission"},"type":"array"}},"required":["accessToken","accountId","clusterId","createdAt","description","id","permissions"],"type":"object"}},"influxdb3:index/getTokens:getTokens":{"description":"Gets all database tokens for a cluster.\n","outputs":{"description":"A collection of values returned by getTokens.\n","properties":{"id":{"description":"The provider-assigned unique ID for this managed resource.\n","type":"string"},"tokens":{"items":{"$ref":"#/types/influxdb3:index/getTokensToken:getTokensToken"},"type":"array"}},"required":["tokens","id"],"type":"object"}}}} \ No newline at end of file diff --git a/provider/go.mod b/provider/go.mod index 95315a5..26e9e2b 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -145,7 +145,7 @@ require ( github.com/kevinburke/ssh_config v1.2.0 // indirect github.com/klauspost/compress v1.16.7 // indirect github.com/komminarlabs/influxdb3 v0.1.0 // indirect - github.com/komminarlabs/terraform-provider-influxdb3 v1.2.2 // indirect + github.com/komminarlabs/terraform-provider-influxdb3 v1.2.3 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/lucasb-eyer/go-colorful v1.2.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect diff --git a/provider/go.sum b/provider/go.sum index 34a110a..eadb044 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1357,8 +1357,8 @@ github.com/klauspost/compress v1.16.7/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQs github.com/kolo/xmlrpc v0.0.0-20201022064351-38db28db192b/go.mod h1:pcaDhQK0/NJZEvtCO0qQPPropqV0sJOJ6YW7X+9kRwM= github.com/komminarlabs/influxdb3 v0.1.0 h1:C/Ka8mzYABMXZIAjvZYw+ZXlk0jo6u9shJ7vPgKoseo= github.com/komminarlabs/influxdb3 v0.1.0/go.mod h1:yEFMuSRwwd1/nO9tKtc1HapjEm5h1Ac/3+or3ckkURE= -github.com/komminarlabs/terraform-provider-influxdb3 v1.2.2 h1:Z6mIeg4tiLU0dtuF8cdzVEGVxjkC7eRHnnQ9ehEzz3s= -github.com/komminarlabs/terraform-provider-influxdb3 v1.2.2/go.mod h1:id8YiWqrmfghW6XexKh2M085essYOXrpN3T0LvrufmQ= +github.com/komminarlabs/terraform-provider-influxdb3 v1.2.3 h1:8xBFzjt7R4ZxtQZOQuh7xOC42OEWONhlae8USlbTWMM= +github.com/komminarlabs/terraform-provider-influxdb3 v1.2.3/go.mod h1:id8YiWqrmfghW6XexKh2M085essYOXrpN3T0LvrufmQ= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= diff --git a/provider/shim/go.mod b/provider/shim/go.mod index f283e1d..d7531e9 100644 --- a/provider/shim/go.mod +++ b/provider/shim/go.mod @@ -4,7 +4,7 @@ go 1.22.2 require ( github.com/hashicorp/terraform-plugin-framework v1.11.0 - github.com/komminarlabs/terraform-provider-influxdb3 v1.2.2 + github.com/komminarlabs/terraform-provider-influxdb3 v1.2.3 ) require ( diff --git a/provider/shim/go.sum b/provider/shim/go.sum index e6bf12b..5fc290b 100644 --- a/provider/shim/go.sum +++ b/provider/shim/go.sum @@ -73,8 +73,8 @@ github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbg github.com/juju/gnuflag v0.0.0-20171113085948-2ce1bb71843d/go.mod h1:2PavIy+JPciBPrBUjwbNvtwB6RQlve+hkpll6QSNmOE= github.com/komminarlabs/influxdb3 v0.1.0 h1:C/Ka8mzYABMXZIAjvZYw+ZXlk0jo6u9shJ7vPgKoseo= github.com/komminarlabs/influxdb3 v0.1.0/go.mod h1:yEFMuSRwwd1/nO9tKtc1HapjEm5h1Ac/3+or3ckkURE= -github.com/komminarlabs/terraform-provider-influxdb3 v1.2.2 h1:Z6mIeg4tiLU0dtuF8cdzVEGVxjkC7eRHnnQ9ehEzz3s= -github.com/komminarlabs/terraform-provider-influxdb3 v1.2.2/go.mod h1:id8YiWqrmfghW6XexKh2M085essYOXrpN3T0LvrufmQ= +github.com/komminarlabs/terraform-provider-influxdb3 v1.2.3 h1:8xBFzjt7R4ZxtQZOQuh7xOC42OEWONhlae8USlbTWMM= +github.com/komminarlabs/terraform-provider-influxdb3 v1.2.3/go.mod h1:id8YiWqrmfghW6XexKh2M085essYOXrpN3T0LvrufmQ= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= diff --git a/sdk/dotnet/version.txt b/sdk/dotnet/version.txt index bea240d..3563cdc 100644 --- a/sdk/dotnet/version.txt +++ b/sdk/dotnet/version.txt @@ -1 +1 @@ -1.3.0-alpha.1724696180+e020f774.dirty +1.2.2+dirty diff --git a/sdk/nodejs/yarn.lock b/sdk/nodejs/yarn.lock index 9b68e7d..1336d50 100644 --- a/sdk/nodejs/yarn.lock +++ b/sdk/nodejs/yarn.lock @@ -3,9 +3,9 @@ "@grpc/grpc-js@^1.10.1": - version "1.11.2" - resolved "https://registry.yarnpkg.com/@grpc/grpc-js/-/grpc-js-1.11.2.tgz#541a00303e533b5efe9d84ed61b84cdf9dd93ee7" - integrity sha512-DWp92gDD7/Qkj7r8kus6/HCINeo3yPZWZ3paKgDgsbKbSpoxKg1yvN8xe2Q8uE3zOsPe3bX8FQX2+XValq2yTw== + version "1.11.3" + resolved "https://registry.yarnpkg.com/@grpc/grpc-js/-/grpc-js-1.11.3.tgz#a33a472618d166fbb195012ae390dbfc277470ed" + integrity sha512-i9UraDzFHMR+Iz/MhFLljT+fCpgxZ3O6CxwGJ8YuNYHJItIHUzKJpW2LvoFZNnGPwqc9iWy9RAucxV0JoR9aUQ== dependencies: "@grpc/proto-loader" "^0.7.13" "@js-sdsl/ordered-map" "^4.4.2" @@ -161,9 +161,9 @@ integrity sha512-gp8pRXC2oOxu0DUE1/M3bYtb1b3/DbJ5aM113+XJBgfXdussRAsX0YOrOhdd8WvnAR6auDBvJomGAkLKA5ydxA== "@npmcli/package-json@^5.0.0", "@npmcli/package-json@^5.1.0": - version "5.2.0" - resolved "https://registry.yarnpkg.com/@npmcli/package-json/-/package-json-5.2.0.tgz#a1429d3111c10044c7efbfb0fce9f2c501f4cfad" - integrity sha512-qe/kiqqkW0AGtvBjL8TJKZk/eBBSpnJkUWvHdQ9jM2lKHXRYYJuyNpJPlJw3c8QjC2ow6NZYiLExhUaeJelbxQ== + version "5.2.1" + resolved "https://registry.yarnpkg.com/@npmcli/package-json/-/package-json-5.2.1.tgz#df69477b1023b81ff8503f2b9db4db4faea567ed" + integrity sha512-f7zYC6kQautXHvNbLEWgD/uGu1+xCn9izgqBfgItWSx22U0ZDekxN08A1vM8cTxj/cRVe0Q94Ode+tdoYmIOOQ== dependencies: "@npmcli/git" "^5.0.0" glob "^10.2.2" @@ -370,9 +370,9 @@ integrity sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw== "@pulumi/pulumi@^3.0.0": - version "3.132.0" - resolved "https://registry.yarnpkg.com/@pulumi/pulumi/-/pulumi-3.132.0.tgz#d1cf60037c3fa1cd343b7b3a3cb97a2291747f9a" - integrity sha512-ntsEo17gALvRdkfKMFrf7EEWrfPHPuRHG/96ziVSItYHofwMLtMk2f7BoRqOSYq3B08wHRkz6J15IUrT9l9wuQ== + version "3.134.1" + resolved "https://registry.yarnpkg.com/@pulumi/pulumi/-/pulumi-3.134.1.tgz#4de3ab192b55419fd2cb2f1c59adc8ee382c7fa7" + integrity sha512-uXUldyEsYbEXkqE3nPfgABnfgnXjQv3YkzkiigeOBzTF2+7rQe7C/9nMnMJHs4k5XMW5183t7bYMU/W4qUUVcA== dependencies: "@grpc/grpc-js" "^1.10.1" "@logdna/tail-file" "^2.0.6" @@ -514,9 +514,9 @@ integrity sha512-Jus9s4CDbqwocc5pOAnh8ShfrnMcPHuJYzVcSUU7lrh8Ni5HuIqX3oilL86p3dlTrk0LzHRCgA/GQ7uNCw6l2Q== "@types/node@*", "@types/node@>=13.7.0": - version "22.5.4" - resolved "https://registry.yarnpkg.com/@types/node/-/node-22.5.4.tgz#83f7d1f65bc2ed223bdbf57c7884f1d5a4fa84e8" - integrity sha512-FDuKUJQm/ju9fT/SeX/6+gBzoPzlVCzfzmGkwKvRHQVxi4BntVbyIwf6a4Xn62mrvndLiml6z/UBXIdEVjQLXg== + version "22.7.4" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.7.4.tgz#e35d6f48dca3255ce44256ddc05dee1c23353fcc" + integrity sha512-y+NPi1rFzDs1NdQHHToqeiX2TIS79SWEAw9GYhkkx8bD0ChpfqC+n2j5OXOCpzfojBEBt6DnEnnG9MY0zk1XLg== dependencies: undici-types "~6.19.2" @@ -983,9 +983,9 @@ ignore-walk@^6.0.4: minimatch "^9.0.0" import-in-the-middle@^1.8.1: - version "1.11.0" - resolved "https://registry.yarnpkg.com/import-in-the-middle/-/import-in-the-middle-1.11.0.tgz#a94c4925b8da18256cde3b3b7b38253e6ca5e708" - integrity sha512-5DimNQGoe0pLUHbR9qK84iWaWjjbsxiqXnw6Qz64+azRgleqv9k2kTt5fw7QsOpmaGYtuxxursnPPsnTKEx10Q== + version "1.11.1" + resolved "https://registry.yarnpkg.com/import-in-the-middle/-/import-in-the-middle-1.11.1.tgz#ccbb9ecc311ab6cea0a116d2d3986ec01c96b2aa" + integrity sha512-lGdg70ECFGv/OHQXL/IPhcxkFPeQ7YA4zborlA54XHVr58oM50QNxItRiayHMqj1MspC5Y9zaHf+QHod/gq7Ug== dependencies: acorn "^8.8.2" acorn-import-attributes "^1.9.5" @@ -1417,9 +1417,9 @@ p-map@^4.0.0: aggregate-error "^3.0.0" package-json-from-dist@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz#e501cd3094b278495eb4258d4c9f6d5ac3019f00" - integrity sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw== + version "1.0.1" + resolved "https://registry.yarnpkg.com/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz#4f1471a010827a86f94cfd9b0727e36d267de505" + integrity sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw== pacote@^18.0.0, pacote@^18.0.6: version "18.0.6"