Skip to content

Commit

Permalink
Upgrade terraform-provider-splunk to v1.4.27 (#479)
Browse files Browse the repository at this point in the history
This PR was generated via `$ upgrade-provider pulumi/pulumi-splunk
--kind=provider`.

---

- Upgrading terraform-provider-splunk from 1.4.25  to 1.4.27.
	Fixes #473

Also automates module mappings here.
  • Loading branch information
VenelinMartinov authored Nov 12, 2024
1 parent 57ec6ce commit 27b62d8
Show file tree
Hide file tree
Showing 15 changed files with 1,820 additions and 3 deletions.
97 changes: 97 additions & 0 deletions provider/cmd/pulumi-resource-splunk/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3946,6 +3946,103 @@
"type": "object"
}
},
"splunk:index/lookupTableFile:LookupTableFile": {
"description": "## # Resource: splunk.LookupTableFile\n\nCreate and manage lookup table files.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as splunk from \"@pulumi/splunk\";\n\nconst lookupTableFile = new splunk.LookupTableFile(\"lookup_table_file\", {\n app: \"search\",\n owner: \"nobody\",\n fileName: \"lookup.csv\",\n fileContents: [\n [\n \"status\",\n \"status_description\",\n \"status_type\",\n ],\n [\n \"100\",\n \"Continue\",\n \"Informational\",\n ],\n [\n \"101\",\n \"Switching Protocols\",\n \"Informational\",\n ],\n [\n \"200\",\n \"OK\",\n \"Successful\",\n ],\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_splunk as splunk\n\nlookup_table_file = splunk.LookupTableFile(\"lookup_table_file\",\n app=\"search\",\n owner=\"nobody\",\n file_name=\"lookup.csv\",\n file_contents=[\n [\n \"status\",\n \"status_description\",\n \"status_type\",\n ],\n [\n \"100\",\n \"Continue\",\n \"Informational\",\n ],\n [\n \"101\",\n \"Switching Protocols\",\n \"Informational\",\n ],\n [\n \"200\",\n \"OK\",\n \"Successful\",\n ],\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Splunk = Pulumi.Splunk;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var lookupTableFile = new Splunk.LookupTableFile(\"lookup_table_file\", new()\n {\n App = \"search\",\n Owner = \"nobody\",\n FileName = \"lookup.csv\",\n FileContents = new[]\n {\n new[]\n {\n \"status\",\n \"status_description\",\n \"status_type\",\n },\n new[]\n {\n \"100\",\n \"Continue\",\n \"Informational\",\n },\n new[]\n {\n \"101\",\n \"Switching Protocols\",\n \"Informational\",\n },\n new[]\n {\n \"200\",\n \"OK\",\n \"Successful\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-splunk/sdk/go/splunk\"\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 := splunk.NewLookupTableFile(ctx, \"lookup_table_file\", \u0026splunk.LookupTableFileArgs{\n\t\t\tApp: pulumi.String(\"search\"),\n\t\t\tOwner: pulumi.String(\"nobody\"),\n\t\t\tFileName: pulumi.String(\"lookup.csv\"),\n\t\t\tFileContents: pulumi.StringArrayArray{\n\t\t\t\tpulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"status\"),\n\t\t\t\t\tpulumi.String(\"status_description\"),\n\t\t\t\t\tpulumi.String(\"status_type\"),\n\t\t\t\t},\n\t\t\t\tpulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"100\"),\n\t\t\t\t\tpulumi.String(\"Continue\"),\n\t\t\t\t\tpulumi.String(\"Informational\"),\n\t\t\t\t},\n\t\t\t\tpulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"101\"),\n\t\t\t\t\tpulumi.String(\"Switching Protocols\"),\n\t\t\t\t\tpulumi.String(\"Informational\"),\n\t\t\t\t},\n\t\t\t\tpulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"200\"),\n\t\t\t\t\tpulumi.String(\"OK\"),\n\t\t\t\t\tpulumi.String(\"Successful\"),\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.splunk.LookupTableFile;\nimport com.pulumi.splunk.LookupTableFileArgs;\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 lookupTableFile = new LookupTableFile(\"lookupTableFile\", LookupTableFileArgs.builder()\n .app(\"search\")\n .owner(\"nobody\")\n .fileName(\"lookup.csv\")\n .fileContents( \n \n \"status\",\n \"status_description\",\n \"status_type\",\n \n \"100\",\n \"Continue\",\n \"Informational\",\n \n \"101\",\n \"Switching Protocols\",\n \"Informational\",\n \n \"200\",\n \"OK\",\n \"Successful\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n lookupTableFile:\n type: splunk:LookupTableFile\n name: lookup_table_file\n properties:\n app: search\n owner: nobody\n fileName: lookup.csv\n fileContents:\n - - status\n - status_description\n - status_type\n - - '100'\n - Continue\n - Informational\n - - '101'\n - Switching Protocols\n - Informational\n - - '200'\n - OK\n - Successful\n```\n\u003c!--End PulumiCodeChooser --\u003e\n",
"properties": {
"app": {
"type": "string",
"description": "The app context for the resource.\n"
},
"fileContents": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string"
}
},
"description": "The column header and row value contents for the lookup table file.\n"
},
"fileName": {
"type": "string",
"description": "A name for the lookup table file. Generally ends with \".csv\"\n"
},
"owner": {
"type": "string",
"description": "User name of resource owner. Defaults to the resource creator. Required for updating any knowledge object ACL properties. nobody = All users may access the resource, but write access to the resource might be restricted.\n"
}
},
"required": [
"app",
"fileContents",
"fileName",
"owner"
],
"inputProperties": {
"app": {
"type": "string",
"description": "The app context for the resource.\n",
"willReplaceOnChanges": true
},
"fileContents": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string"
}
},
"description": "The column header and row value contents for the lookup table file.\n"
},
"fileName": {
"type": "string",
"description": "A name for the lookup table file. Generally ends with \".csv\"\n",
"willReplaceOnChanges": true
},
"owner": {
"type": "string",
"description": "User name of resource owner. Defaults to the resource creator. Required for updating any knowledge object ACL properties. nobody = All users may access the resource, but write access to the resource might be restricted.\n",
"willReplaceOnChanges": true
}
},
"requiredInputs": [
"app",
"fileContents",
"fileName",
"owner"
],
"stateInputs": {
"description": "Input properties used for looking up and filtering LookupTableFile resources.\n",
"properties": {
"app": {
"type": "string",
"description": "The app context for the resource.\n",
"willReplaceOnChanges": true
},
"fileContents": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string"
}
},
"description": "The column header and row value contents for the lookup table file.\n"
},
"fileName": {
"type": "string",
"description": "A name for the lookup table file. Generally ends with \".csv\"\n",
"willReplaceOnChanges": true
},
"owner": {
"type": "string",
"description": "User name of resource owner. Defaults to the resource creator. Required for updating any knowledge object ACL properties. nobody = All users may access the resource, but write access to the resource might be restricted.\n",
"willReplaceOnChanges": true
}
},
"type": "object"
}
},
"splunk:index/outputsTcpDefault:OutputsTcpDefault": {
"description": "## # Resource: splunk.OutputsTcpDefault\n\nManage to global tcpout properties.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as splunk from \"@pulumi/splunk\";\n\nconst tcpDefault = new splunk.OutputsTcpDefault(\"tcp_default\", {\n name: \"tcpout\",\n disabled: false,\n defaultGroup: \"test-indexers\",\n dropEventsOnQueueFull: 60,\n indexAndForward: true,\n sendCookedData: true,\n maxQueueSize: \"100KB\",\n});\n```\n```python\nimport pulumi\nimport pulumi_splunk as splunk\n\ntcp_default = splunk.OutputsTcpDefault(\"tcp_default\",\n name=\"tcpout\",\n disabled=False,\n default_group=\"test-indexers\",\n drop_events_on_queue_full=60,\n index_and_forward=True,\n send_cooked_data=True,\n max_queue_size=\"100KB\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Splunk = Pulumi.Splunk;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var tcpDefault = new Splunk.OutputsTcpDefault(\"tcp_default\", new()\n {\n Name = \"tcpout\",\n Disabled = false,\n DefaultGroup = \"test-indexers\",\n DropEventsOnQueueFull = 60,\n IndexAndForward = true,\n SendCookedData = true,\n MaxQueueSize = \"100KB\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-splunk/sdk/go/splunk\"\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 := splunk.NewOutputsTcpDefault(ctx, \"tcp_default\", \u0026splunk.OutputsTcpDefaultArgs{\n\t\t\tName: pulumi.String(\"tcpout\"),\n\t\t\tDisabled: pulumi.Bool(false),\n\t\t\tDefaultGroup: pulumi.String(\"test-indexers\"),\n\t\t\tDropEventsOnQueueFull: pulumi.Int(60),\n\t\t\tIndexAndForward: pulumi.Bool(true),\n\t\t\tSendCookedData: pulumi.Bool(true),\n\t\t\tMaxQueueSize: pulumi.String(\"100KB\"),\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.splunk.OutputsTcpDefault;\nimport com.pulumi.splunk.OutputsTcpDefaultArgs;\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 tcpDefault = new OutputsTcpDefault(\"tcpDefault\", OutputsTcpDefaultArgs.builder()\n .name(\"tcpout\")\n .disabled(false)\n .defaultGroup(\"test-indexers\")\n .dropEventsOnQueueFull(60)\n .indexAndForward(true)\n .sendCookedData(true)\n .maxQueueSize(\"100KB\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n tcpDefault:\n type: splunk:OutputsTcpDefault\n name: tcp_default\n properties:\n name: tcpout\n disabled: false\n defaultGroup: test-indexers\n dropEventsOnQueueFull: 60\n indexAndForward: true\n sendCookedData: true\n maxQueueSize: 100KB\n```\n\u003c!--End PulumiCodeChooser --\u003e\n",
"properties": {
Expand Down
3 changes: 2 additions & 1 deletion provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/hashicorp/terraform-plugin-sdk v1.15.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.95.0
github.com/pulumi/pulumi/sdk/v3 v3.137.0
github.com/splunk/terraform-provider-splunk v1.4.25
github.com/splunk/terraform-provider-splunk v1.4.27
)

// tfinstall was removed from terraform-exec in v0.16.0.
Expand Down Expand Up @@ -42,6 +42,7 @@ require (
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
github.com/armon/go-radix v1.0.0 // indirect
github.com/atotto/clipboard v0.1.4 // indirect
github.com/avast/retry-go/v4 v4.6.0 // indirect
github.com/aws/aws-sdk-go v1.50.36 // indirect
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
Expand Down
6 changes: 4 additions & 2 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1232,6 +1232,8 @@ github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPd
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
github.com/atotto/clipboard v0.1.4 h1:EH0zSVneZPSuFR11BlR9YppQTVDbh5+16AmcJi4g1z4=
github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI=
github.com/avast/retry-go/v4 v4.6.0 h1:K9xNA+KeB8HHc2aWFuLb25Offp+0iVRXEvFx8IinRJA=
github.com/avast/retry-go/v4 v4.6.0/go.mod h1:gvWlPhBVsvBbLkVGDg/KwvBv0bEkCOLRRSHKIr2PyOE=
github.com/aws/aws-sdk-go v1.15.78/go.mod h1:E3/ieXAlvM0XWO57iftYVDLLvQ824smPP3ATZkfNZeM=
github.com/aws/aws-sdk-go v1.25.3/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
github.com/aws/aws-sdk-go v1.44.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
Expand Down Expand Up @@ -1992,8 +1994,8 @@ github.com/spf13/pflag v1.0.2/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnIn
github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/splunk/terraform-provider-splunk v1.4.25 h1:tXF/EP/7QFDbxZKVuGoe3abHcFh/3SLyKCdSE8AWDR8=
github.com/splunk/terraform-provider-splunk v1.4.25/go.mod h1:XgvDuS4BiuDWgsFufPz2/iUQ5gM/nNl0gULrc6OpL34=
github.com/splunk/terraform-provider-splunk v1.4.27 h1:HqcIMkutKFI1MhlfJ1A2FOulJto1F68zK7IBbtnh168=
github.com/splunk/terraform-provider-splunk v1.4.27/go.mod h1:BBQgS4FK7oM2pF1ZNa8S+UirfG3UtzMSWs8wpx6AmYo=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
Expand Down
3 changes: 3 additions & 0 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
"github.com/splunk/terraform-provider-splunk/splunk"

"github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge"
tks "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge/tokens"
shimv1 "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v1"
"github.com/pulumi/pulumi/sdk/v3/go/common/tokens"

Expand Down Expand Up @@ -247,6 +248,8 @@ func Provider() tfbridge.ProviderInfo {

prov.SetAutonaming(255, "-")

prov.MustComputeTokens(tks.SingleModule("splunk_", mainMod, tks.MakeStandard(mainPkg)))

return prov
}

Expand Down
Loading

0 comments on commit 27b62d8

Please sign in to comment.