diff --git a/provider/cmd/pulumi-resource-splunk/schema.json b/provider/cmd/pulumi-resource-splunk/schema.json index 3cf26cc9..5899782f 100644 --- a/provider/cmd/pulumi-resource-splunk/schema.json +++ b/provider/cmd/pulumi-resource-splunk/schema.json @@ -128,14 +128,15 @@ }, "sharing": { "type": "string", - "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n" + "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n", + "willReplaceOnChanges": true }, "writes": { "type": "array", "items": { "type": "string" }, - "description": "Properties that indicate write permissions of the resource.\n" + "description": "Properties that indicate resource write permissions.\n" } }, "type": "object", @@ -201,14 +202,15 @@ }, "sharing": { "type": "string", - "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n" + "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n", + "willReplaceOnChanges": true }, "writes": { "type": "array", "items": { "type": "string" }, - "description": "Properties that indicate write permissions of the resource.\n" + "description": "Properties that indicate resource write permissions.\n" } }, "type": "object", @@ -274,14 +276,15 @@ }, "sharing": { "type": "string", - "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n" + "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n", + "willReplaceOnChanges": true }, "writes": { "type": "array", "items": { "type": "string" }, - "description": "Properties that indicate write permissions of the resource.\n" + "description": "Properties that indicate resource write permissions.\n" } }, "type": "object", @@ -347,14 +350,15 @@ }, "sharing": { "type": "string", - "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n" + "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n", + "willReplaceOnChanges": true }, "writes": { "type": "array", "items": { "type": "string" }, - "description": "Properties that indicate write permissions of the resource.\n" + "description": "Properties that indicate resource write permissions.\n" } }, "type": "object", @@ -420,14 +424,15 @@ }, "sharing": { "type": "string", - "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n" + "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n", + "willReplaceOnChanges": true }, "writes": { "type": "array", "items": { "type": "string" }, - "description": "Properties that indicate write permissions of the resource.\n" + "description": "Properties that indicate resource write permissions.\n" } }, "type": "object", @@ -493,14 +498,15 @@ }, "sharing": { "type": "string", - "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n" + "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n", + "willReplaceOnChanges": true }, "writes": { "type": "array", "items": { "type": "string" }, - "description": "Properties that indicate write permissions of the resource.\n" + "description": "Properties that indicate resource write permissions.\n" } }, "type": "object", @@ -566,14 +572,15 @@ }, "sharing": { "type": "string", - "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n" + "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n", + "willReplaceOnChanges": true }, "writes": { "type": "array", "items": { "type": "string" }, - "description": "Properties that indicate write permissions of the resource.\n" + "description": "Properties that indicate resource write permissions.\n" } }, "type": "object", @@ -639,14 +646,15 @@ }, "sharing": { "type": "string", - "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n" + "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n", + "willReplaceOnChanges": true }, "writes": { "type": "array", "items": { "type": "string" }, - "description": "Properties that indicate write permissions of the resource.\n" + "description": "Properties that indicate resource write permissions.\n" } }, "type": "object", @@ -712,14 +720,15 @@ }, "sharing": { "type": "string", - "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n" + "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n", + "willReplaceOnChanges": true }, "writes": { "type": "array", "items": { "type": "string" }, - "description": "Properties that indicate write permissions of the resource.\n" + "description": "Properties that indicate resource write permissions.\n" } }, "type": "object", @@ -785,14 +794,15 @@ }, "sharing": { "type": "string", - "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n" + "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n", + "willReplaceOnChanges": true }, "writes": { "type": "array", "items": { "type": "string" }, - "description": "Properties that indicate write permissions of the resource.\n" + "description": "Properties that indicate resource write permissions.\n" } }, "type": "object", @@ -858,14 +868,15 @@ }, "sharing": { "type": "string", - "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n" + "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n", + "willReplaceOnChanges": true }, "writes": { "type": "array", "items": { "type": "string" }, - "description": "Properties that indicate write permissions of the resource.\n" + "description": "Properties that indicate resource write permissions.\n" } }, "type": "object", @@ -931,14 +942,89 @@ }, "sharing": { "type": "string", - "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n" + "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n", + "willReplaceOnChanges": true + }, + "writes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Properties that indicate resource write permissions.\n" + } + }, + "type": "object", + "language": { + "nodejs": { + "requiredOutputs": [ + "app", + "canChangePerms", + "canShareApp", + "canShareGlobal", + "canShareUser", + "canWrite", + "owner", + "reads", + "removable", + "sharing", + "writes" + ] + } + } + }, + "splunk:index/LookupDefinitionAcl:LookupDefinitionAcl": { + "properties": { + "app": { + "type": "string", + "description": "The app context for the resource. Required for updating saved search ACL properties. Allowed values are:The name of an app and system\n", + "willReplaceOnChanges": true + }, + "canChangePerms": { + "type": "boolean", + "description": "Indicates if the active user can change permissions for this object. Defaults to true.\n" + }, + "canShareApp": { + "type": "boolean", + "description": "Indicates if the active user can change sharing to app level. Defaults to true.\n" + }, + "canShareGlobal": { + "type": "boolean", + "description": "Indicates if the active user can change sharing to system level. Defaults to true.\n" + }, + "canShareUser": { + "type": "boolean", + "description": "Indicates if the active user can change sharing to user level. Defaults to true.\n" + }, + "canWrite": { + "type": "boolean", + "description": "Indicates if the active user can edit this object. Defaults to true.\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" + }, + "reads": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Properties that indicate resource read permissions.\n" + }, + "removable": { + "type": "boolean", + "description": "Indicates whether an admin or user with sufficient permissions can delete the entity.\n" + }, + "sharing": { + "type": "string", + "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n", + "willReplaceOnChanges": true }, "writes": { "type": "array", "items": { "type": "string" }, - "description": "Properties that indicate write permissions of the resource.\n" + "description": "Properties that indicate resource write permissions.\n" } }, "type": "object", @@ -1004,14 +1090,15 @@ }, "sharing": { "type": "string", - "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n" + "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n", + "willReplaceOnChanges": true }, "writes": { "type": "array", "items": { "type": "string" }, - "description": "Properties that indicate write permissions of the resource.\n" + "description": "Properties that indicate resource write permissions.\n" } }, "type": "object", @@ -1077,14 +1164,15 @@ }, "sharing": { "type": "string", - "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n" + "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n", + "willReplaceOnChanges": true }, "writes": { "type": "array", "items": { "type": "string" }, - "description": "Properties that indicate write permissions of the resource.\n" + "description": "Properties that indicate resource write permissions.\n" } }, "type": "object", @@ -1150,14 +1238,15 @@ }, "sharing": { "type": "string", - "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n" + "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n", + "willReplaceOnChanges": true }, "writes": { "type": "array", "items": { "type": "string" }, - "description": "Properties that indicate write permissions of the resource.\n" + "description": "Properties that indicate resource write permissions.\n" } }, "type": "object", @@ -1223,14 +1312,15 @@ }, "sharing": { "type": "string", - "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n" + "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n", + "willReplaceOnChanges": true }, "writes": { "type": "array", "items": { "type": "string" }, - "description": "Properties that indicate write permissions of the resource.\n" + "description": "Properties that indicate resource write permissions.\n" } }, "type": "object", @@ -1296,14 +1386,15 @@ }, "sharing": { "type": "string", - "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n" + "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n", + "willReplaceOnChanges": true }, "writes": { "type": "array", "items": { "type": "string" }, - "description": "Properties that indicate write permissions of the resource.\n" + "description": "Properties that indicate resource write permissions.\n" } }, "type": "object", @@ -1369,14 +1460,15 @@ }, "sharing": { "type": "string", - "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n" + "description": "Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user\n", + "willReplaceOnChanges": true }, "writes": { "type": "array", "items": { "type": "string" }, - "description": "Properties that indicate write permissions of the resource.\n" + "description": "Properties that indicate resource write permissions.\n" } }, "type": "object", @@ -3946,6 +4038,66 @@ "type": "object" } }, + "splunk:index/lookupDefinition:LookupDefinition": { + "description": "## \n\n# Resource: splunk.LookupDefinition\n\nManage lookup definitions in Splunk. For more information on lookup definitions, refer to the official Splunk documentation: https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Aboutlookupsandfieldactions\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 example = new splunk.LookupDefinition(\"example\", {\n name: \"example_lookup_definition\",\n filename: \"example_lookup_file.csv\",\n acl: {\n owner: \"admin\",\n app: \"search\",\n sharing: \"app\",\n reads: [\"*\"],\n writes: [\"admin\"],\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_splunk as splunk\n\nexample = splunk.LookupDefinition(\"example\",\n name=\"example_lookup_definition\",\n filename=\"example_lookup_file.csv\",\n acl={\n \"owner\": \"admin\",\n \"app\": \"search\",\n \"sharing\": \"app\",\n \"reads\": [\"*\"],\n \"writes\": [\"admin\"],\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 example = new Splunk.LookupDefinition(\"example\", new()\n {\n Name = \"example_lookup_definition\",\n Filename = \"example_lookup_file.csv\",\n Acl = new Splunk.Inputs.LookupDefinitionAclArgs\n {\n Owner = \"admin\",\n App = \"search\",\n Sharing = \"app\",\n Reads = new[]\n {\n \"*\",\n },\n Writes = new[]\n {\n \"admin\",\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.NewLookupDefinition(ctx, \"example\", \u0026splunk.LookupDefinitionArgs{\n\t\t\tName: pulumi.String(\"example_lookup_definition\"),\n\t\t\tFilename: pulumi.String(\"example_lookup_file.csv\"),\n\t\t\tAcl: \u0026splunk.LookupDefinitionAclArgs{\n\t\t\t\tOwner: pulumi.String(\"admin\"),\n\t\t\t\tApp: pulumi.String(\"search\"),\n\t\t\t\tSharing: pulumi.String(\"app\"),\n\t\t\t\tReads: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"*\"),\n\t\t\t\t},\n\t\t\t\tWrites: pulumi.StringArray{\n\t\t\t\t\tpulumi.String(\"admin\"),\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.LookupDefinition;\nimport com.pulumi.splunk.LookupDefinitionArgs;\nimport com.pulumi.splunk.inputs.LookupDefinitionAclArgs;\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 example = new LookupDefinition(\"example\", LookupDefinitionArgs.builder()\n .name(\"example_lookup_definition\")\n .filename(\"example_lookup_file.csv\")\n .acl(LookupDefinitionAclArgs.builder()\n .owner(\"admin\")\n .app(\"search\")\n .sharing(\"app\")\n .reads(\"*\")\n .writes(\"admin\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: splunk:LookupDefinition\n properties:\n name: example_lookup_definition\n filename: example_lookup_file.csv\n acl:\n owner: admin\n app: search\n sharing: app\n reads:\n - '*'\n writes:\n - admin\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Validation Rules\n\nWhen `acl.sharing` is set to `user`, the `acl.read` and `acl.write` fields must not be explicitly set. Setting them will trigger a validation error.\n", + "properties": { + "acl": { + "$ref": "#/types/splunk:index/LookupDefinitionAcl:LookupDefinitionAcl", + "description": "Defines the access control list (ACL) for the lookup definition. See acl.md for more details.\n" + }, + "filename": { + "type": "string", + "description": "The filename for the lookup table, usually ending in `.csv`.\n" + }, + "name": { + "type": "string", + "description": "A unique name for the lookup definition within the app context.\n" + } + }, + "required": [ + "acl", + "filename", + "name" + ], + "inputProperties": { + "acl": { + "$ref": "#/types/splunk:index/LookupDefinitionAcl:LookupDefinitionAcl", + "description": "Defines the access control list (ACL) for the lookup definition. See acl.md for more details.\n" + }, + "filename": { + "type": "string", + "description": "The filename for the lookup table, usually ending in `.csv`.\n" + }, + "name": { + "type": "string", + "description": "A unique name for the lookup definition within the app context.\n", + "willReplaceOnChanges": true + } + }, + "requiredInputs": [ + "filename", + "name" + ], + "stateInputs": { + "description": "Input properties used for looking up and filtering LookupDefinition resources.\n", + "properties": { + "acl": { + "$ref": "#/types/splunk:index/LookupDefinitionAcl:LookupDefinitionAcl", + "description": "Defines the access control list (ACL) for the lookup definition. See acl.md for more details.\n" + }, + "filename": { + "type": "string", + "description": "The filename for the lookup table, usually ending in `.csv`.\n" + }, + "name": { + "type": "string", + "description": "A unique name for the lookup definition within the app context.\n", + "willReplaceOnChanges": true + } + }, + "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": { diff --git a/provider/go.mod b/provider/go.mod index 1181afdb..8a97fca5 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -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.27 + github.com/splunk/terraform-provider-splunk v1.4.28 ) // tfinstall was removed from terraform-exec in v0.16.0. diff --git a/provider/go.sum b/provider/go.sum index 9e8f1581..3eb9ba4d 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1994,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.27 h1:HqcIMkutKFI1MhlfJ1A2FOulJto1F68zK7IBbtnh168= -github.com/splunk/terraform-provider-splunk v1.4.27/go.mod h1:BBQgS4FK7oM2pF1ZNa8S+UirfG3UtzMSWs8wpx6AmYo= +github.com/splunk/terraform-provider-splunk v1.4.28 h1:+QgJnvJw0ZK3E9jA14flUBq+ft5dOZ2OPU3iEwyV8zQ= +github.com/splunk/terraform-provider-splunk v1.4.28/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= diff --git a/sdk/dotnet/Inputs/AppsLocalAclArgs.cs b/sdk/dotnet/Inputs/AppsLocalAclArgs.cs index 6a744948..861edd42 100644 --- a/sdk/dotnet/Inputs/AppsLocalAclArgs.cs +++ b/sdk/dotnet/Inputs/AppsLocalAclArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/AppsLocalAclGetArgs.cs b/sdk/dotnet/Inputs/AppsLocalAclGetArgs.cs index 9eae93e2..eab6f66b 100644 --- a/sdk/dotnet/Inputs/AppsLocalAclGetArgs.cs +++ b/sdk/dotnet/Inputs/AppsLocalAclGetArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/ConfigsConfAclArgs.cs b/sdk/dotnet/Inputs/ConfigsConfAclArgs.cs index 580e86e6..88da260b 100644 --- a/sdk/dotnet/Inputs/ConfigsConfAclArgs.cs +++ b/sdk/dotnet/Inputs/ConfigsConfAclArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/ConfigsConfAclGetArgs.cs b/sdk/dotnet/Inputs/ConfigsConfAclGetArgs.cs index 634ef183..a7073f52 100644 --- a/sdk/dotnet/Inputs/ConfigsConfAclGetArgs.cs +++ b/sdk/dotnet/Inputs/ConfigsConfAclGetArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/DataUiViewsAclArgs.cs b/sdk/dotnet/Inputs/DataUiViewsAclArgs.cs index 550ee515..51adfd28 100644 --- a/sdk/dotnet/Inputs/DataUiViewsAclArgs.cs +++ b/sdk/dotnet/Inputs/DataUiViewsAclArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/DataUiViewsAclGetArgs.cs b/sdk/dotnet/Inputs/DataUiViewsAclGetArgs.cs index 8c39b897..9cf44ded 100644 --- a/sdk/dotnet/Inputs/DataUiViewsAclGetArgs.cs +++ b/sdk/dotnet/Inputs/DataUiViewsAclGetArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/GenericAclAclArgs.cs b/sdk/dotnet/Inputs/GenericAclAclArgs.cs index 5584c517..2ab7203a 100644 --- a/sdk/dotnet/Inputs/GenericAclAclArgs.cs +++ b/sdk/dotnet/Inputs/GenericAclAclArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/GenericAclAclGetArgs.cs b/sdk/dotnet/Inputs/GenericAclAclGetArgs.cs index 8b9ab0ea..f0662d9c 100644 --- a/sdk/dotnet/Inputs/GenericAclAclGetArgs.cs +++ b/sdk/dotnet/Inputs/GenericAclAclGetArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/IndexesAclArgs.cs b/sdk/dotnet/Inputs/IndexesAclArgs.cs index 3a01c1e6..411dd34b 100644 --- a/sdk/dotnet/Inputs/IndexesAclArgs.cs +++ b/sdk/dotnet/Inputs/IndexesAclArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/IndexesAclGetArgs.cs b/sdk/dotnet/Inputs/IndexesAclGetArgs.cs index 1a91286d..f60d2845 100644 --- a/sdk/dotnet/Inputs/IndexesAclGetArgs.cs +++ b/sdk/dotnet/Inputs/IndexesAclGetArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/InputsHttpEventCollectorAclArgs.cs b/sdk/dotnet/Inputs/InputsHttpEventCollectorAclArgs.cs index e5e262c6..4e97af6f 100644 --- a/sdk/dotnet/Inputs/InputsHttpEventCollectorAclArgs.cs +++ b/sdk/dotnet/Inputs/InputsHttpEventCollectorAclArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/InputsHttpEventCollectorAclGetArgs.cs b/sdk/dotnet/Inputs/InputsHttpEventCollectorAclGetArgs.cs index f8168f9c..ba9104f4 100644 --- a/sdk/dotnet/Inputs/InputsHttpEventCollectorAclGetArgs.cs +++ b/sdk/dotnet/Inputs/InputsHttpEventCollectorAclGetArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/InputsMonitorAclArgs.cs b/sdk/dotnet/Inputs/InputsMonitorAclArgs.cs index e930d800..6cb78547 100644 --- a/sdk/dotnet/Inputs/InputsMonitorAclArgs.cs +++ b/sdk/dotnet/Inputs/InputsMonitorAclArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/InputsMonitorAclGetArgs.cs b/sdk/dotnet/Inputs/InputsMonitorAclGetArgs.cs index f7d4d555..f76fd9f9 100644 --- a/sdk/dotnet/Inputs/InputsMonitorAclGetArgs.cs +++ b/sdk/dotnet/Inputs/InputsMonitorAclGetArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/InputsScriptAclArgs.cs b/sdk/dotnet/Inputs/InputsScriptAclArgs.cs index 951eeb71..51442fea 100644 --- a/sdk/dotnet/Inputs/InputsScriptAclArgs.cs +++ b/sdk/dotnet/Inputs/InputsScriptAclArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/InputsScriptAclGetArgs.cs b/sdk/dotnet/Inputs/InputsScriptAclGetArgs.cs index d3e92d56..575b8971 100644 --- a/sdk/dotnet/Inputs/InputsScriptAclGetArgs.cs +++ b/sdk/dotnet/Inputs/InputsScriptAclGetArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/InputsTcpCookedAclArgs.cs b/sdk/dotnet/Inputs/InputsTcpCookedAclArgs.cs index ef3898e3..0bf0d0a0 100644 --- a/sdk/dotnet/Inputs/InputsTcpCookedAclArgs.cs +++ b/sdk/dotnet/Inputs/InputsTcpCookedAclArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/InputsTcpCookedAclGetArgs.cs b/sdk/dotnet/Inputs/InputsTcpCookedAclGetArgs.cs index ca836e1c..0c87a42d 100644 --- a/sdk/dotnet/Inputs/InputsTcpCookedAclGetArgs.cs +++ b/sdk/dotnet/Inputs/InputsTcpCookedAclGetArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/InputsTcpRawAclArgs.cs b/sdk/dotnet/Inputs/InputsTcpRawAclArgs.cs index f26e9621..390186a7 100644 --- a/sdk/dotnet/Inputs/InputsTcpRawAclArgs.cs +++ b/sdk/dotnet/Inputs/InputsTcpRawAclArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/InputsTcpRawAclGetArgs.cs b/sdk/dotnet/Inputs/InputsTcpRawAclGetArgs.cs index ac6f3849..1d65fc33 100644 --- a/sdk/dotnet/Inputs/InputsTcpRawAclGetArgs.cs +++ b/sdk/dotnet/Inputs/InputsTcpRawAclGetArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/InputsTcpSplunkTcpTokenAclArgs.cs b/sdk/dotnet/Inputs/InputsTcpSplunkTcpTokenAclArgs.cs index d7ce51db..4221d46c 100644 --- a/sdk/dotnet/Inputs/InputsTcpSplunkTcpTokenAclArgs.cs +++ b/sdk/dotnet/Inputs/InputsTcpSplunkTcpTokenAclArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/InputsTcpSplunkTcpTokenAclGetArgs.cs b/sdk/dotnet/Inputs/InputsTcpSplunkTcpTokenAclGetArgs.cs index b37f2fd4..0034a856 100644 --- a/sdk/dotnet/Inputs/InputsTcpSplunkTcpTokenAclGetArgs.cs +++ b/sdk/dotnet/Inputs/InputsTcpSplunkTcpTokenAclGetArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/InputsUdpAclArgs.cs b/sdk/dotnet/Inputs/InputsUdpAclArgs.cs index b2e8ff3f..b7e910dc 100644 --- a/sdk/dotnet/Inputs/InputsUdpAclArgs.cs +++ b/sdk/dotnet/Inputs/InputsUdpAclArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/InputsUdpAclGetArgs.cs b/sdk/dotnet/Inputs/InputsUdpAclGetArgs.cs index bfdf15c1..596a5f4c 100644 --- a/sdk/dotnet/Inputs/InputsUdpAclGetArgs.cs +++ b/sdk/dotnet/Inputs/InputsUdpAclGetArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/LookupDefinitionAclArgs.cs b/sdk/dotnet/Inputs/LookupDefinitionAclArgs.cs new file mode 100644 index 00000000..b46f9884 --- /dev/null +++ b/sdk/dotnet/Inputs/LookupDefinitionAclArgs.cs @@ -0,0 +1,98 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Splunk.Inputs +{ + + public sealed class LookupDefinitionAclArgs : global::Pulumi.ResourceArgs + { + /// + /// The app context for the resource. Required for updating saved search ACL properties. Allowed values are:The name of an app and system + /// + [Input("app")] + public Input? App { get; set; } + + /// + /// Indicates if the active user can change permissions for this object. Defaults to true. + /// + [Input("canChangePerms")] + public Input? CanChangePerms { get; set; } + + /// + /// Indicates if the active user can change sharing to app level. Defaults to true. + /// + [Input("canShareApp")] + public Input? CanShareApp { get; set; } + + /// + /// Indicates if the active user can change sharing to system level. Defaults to true. + /// + [Input("canShareGlobal")] + public Input? CanShareGlobal { get; set; } + + /// + /// Indicates if the active user can change sharing to user level. Defaults to true. + /// + [Input("canShareUser")] + public Input? CanShareUser { get; set; } + + /// + /// Indicates if the active user can edit this object. Defaults to true. + /// + [Input("canWrite")] + public Input? CanWrite { get; set; } + + /// + /// 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. + /// + [Input("owner")] + public Input? Owner { get; set; } + + [Input("reads")] + private InputList? _reads; + + /// + /// Properties that indicate resource read permissions. + /// + public InputList Reads + { + get => _reads ?? (_reads = new InputList()); + set => _reads = value; + } + + /// + /// Indicates whether an admin or user with sufficient permissions can delete the entity. + /// + [Input("removable")] + public Input? Removable { get; set; } + + /// + /// Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user + /// + [Input("sharing")] + public Input? Sharing { get; set; } + + [Input("writes")] + private InputList? _writes; + + /// + /// Properties that indicate resource write permissions. + /// + public InputList Writes + { + get => _writes ?? (_writes = new InputList()); + set => _writes = value; + } + + public LookupDefinitionAclArgs() + { + } + public static new LookupDefinitionAclArgs Empty => new LookupDefinitionAclArgs(); + } +} diff --git a/sdk/dotnet/Inputs/LookupDefinitionAclGetArgs.cs b/sdk/dotnet/Inputs/LookupDefinitionAclGetArgs.cs new file mode 100644 index 00000000..65806135 --- /dev/null +++ b/sdk/dotnet/Inputs/LookupDefinitionAclGetArgs.cs @@ -0,0 +1,98 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Splunk.Inputs +{ + + public sealed class LookupDefinitionAclGetArgs : global::Pulumi.ResourceArgs + { + /// + /// The app context for the resource. Required for updating saved search ACL properties. Allowed values are:The name of an app and system + /// + [Input("app")] + public Input? App { get; set; } + + /// + /// Indicates if the active user can change permissions for this object. Defaults to true. + /// + [Input("canChangePerms")] + public Input? CanChangePerms { get; set; } + + /// + /// Indicates if the active user can change sharing to app level. Defaults to true. + /// + [Input("canShareApp")] + public Input? CanShareApp { get; set; } + + /// + /// Indicates if the active user can change sharing to system level. Defaults to true. + /// + [Input("canShareGlobal")] + public Input? CanShareGlobal { get; set; } + + /// + /// Indicates if the active user can change sharing to user level. Defaults to true. + /// + [Input("canShareUser")] + public Input? CanShareUser { get; set; } + + /// + /// Indicates if the active user can edit this object. Defaults to true. + /// + [Input("canWrite")] + public Input? CanWrite { get; set; } + + /// + /// 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. + /// + [Input("owner")] + public Input? Owner { get; set; } + + [Input("reads")] + private InputList? _reads; + + /// + /// Properties that indicate resource read permissions. + /// + public InputList Reads + { + get => _reads ?? (_reads = new InputList()); + set => _reads = value; + } + + /// + /// Indicates whether an admin or user with sufficient permissions can delete the entity. + /// + [Input("removable")] + public Input? Removable { get; set; } + + /// + /// Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user + /// + [Input("sharing")] + public Input? Sharing { get; set; } + + [Input("writes")] + private InputList? _writes; + + /// + /// Properties that indicate resource write permissions. + /// + public InputList Writes + { + get => _writes ?? (_writes = new InputList()); + set => _writes = value; + } + + public LookupDefinitionAclGetArgs() + { + } + public static new LookupDefinitionAclGetArgs Empty => new LookupDefinitionAclGetArgs(); + } +} diff --git a/sdk/dotnet/Inputs/OutputsTcpDefaultAclArgs.cs b/sdk/dotnet/Inputs/OutputsTcpDefaultAclArgs.cs index daca453a..2ce16365 100644 --- a/sdk/dotnet/Inputs/OutputsTcpDefaultAclArgs.cs +++ b/sdk/dotnet/Inputs/OutputsTcpDefaultAclArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/OutputsTcpDefaultAclGetArgs.cs b/sdk/dotnet/Inputs/OutputsTcpDefaultAclGetArgs.cs index 488e5603..4b17fcbf 100644 --- a/sdk/dotnet/Inputs/OutputsTcpDefaultAclGetArgs.cs +++ b/sdk/dotnet/Inputs/OutputsTcpDefaultAclGetArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/OutputsTcpGroupAclArgs.cs b/sdk/dotnet/Inputs/OutputsTcpGroupAclArgs.cs index 0b720f64..cd027f09 100644 --- a/sdk/dotnet/Inputs/OutputsTcpGroupAclArgs.cs +++ b/sdk/dotnet/Inputs/OutputsTcpGroupAclArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/OutputsTcpGroupAclGetArgs.cs b/sdk/dotnet/Inputs/OutputsTcpGroupAclGetArgs.cs index c8f7ff9d..8dfa731d 100644 --- a/sdk/dotnet/Inputs/OutputsTcpGroupAclGetArgs.cs +++ b/sdk/dotnet/Inputs/OutputsTcpGroupAclGetArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/OutputsTcpServerAclArgs.cs b/sdk/dotnet/Inputs/OutputsTcpServerAclArgs.cs index 1b313415..2ab89378 100644 --- a/sdk/dotnet/Inputs/OutputsTcpServerAclArgs.cs +++ b/sdk/dotnet/Inputs/OutputsTcpServerAclArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/OutputsTcpServerAclGetArgs.cs b/sdk/dotnet/Inputs/OutputsTcpServerAclGetArgs.cs index d8d0dfcf..3f3457d6 100644 --- a/sdk/dotnet/Inputs/OutputsTcpServerAclGetArgs.cs +++ b/sdk/dotnet/Inputs/OutputsTcpServerAclGetArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/OutputsTcpSyslogAclArgs.cs b/sdk/dotnet/Inputs/OutputsTcpSyslogAclArgs.cs index 4b6e3e14..a0a5aa8d 100644 --- a/sdk/dotnet/Inputs/OutputsTcpSyslogAclArgs.cs +++ b/sdk/dotnet/Inputs/OutputsTcpSyslogAclArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/OutputsTcpSyslogAclGetArgs.cs b/sdk/dotnet/Inputs/OutputsTcpSyslogAclGetArgs.cs index 84ab0e27..bd0859b7 100644 --- a/sdk/dotnet/Inputs/OutputsTcpSyslogAclGetArgs.cs +++ b/sdk/dotnet/Inputs/OutputsTcpSyslogAclGetArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/SavedSearchesAclArgs.cs b/sdk/dotnet/Inputs/SavedSearchesAclArgs.cs index a8bd2cae..2d453121 100644 --- a/sdk/dotnet/Inputs/SavedSearchesAclArgs.cs +++ b/sdk/dotnet/Inputs/SavedSearchesAclArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/SavedSearchesAclGetArgs.cs b/sdk/dotnet/Inputs/SavedSearchesAclGetArgs.cs index b0b1e1bf..5caa1da0 100644 --- a/sdk/dotnet/Inputs/SavedSearchesAclGetArgs.cs +++ b/sdk/dotnet/Inputs/SavedSearchesAclGetArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/ShIndexesManagerAclArgs.cs b/sdk/dotnet/Inputs/ShIndexesManagerAclArgs.cs index 894bca33..b0fc93d4 100644 --- a/sdk/dotnet/Inputs/ShIndexesManagerAclArgs.cs +++ b/sdk/dotnet/Inputs/ShIndexesManagerAclArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/Inputs/ShIndexesManagerAclGetArgs.cs b/sdk/dotnet/Inputs/ShIndexesManagerAclGetArgs.cs index f7a71e59..9b2032ef 100644 --- a/sdk/dotnet/Inputs/ShIndexesManagerAclGetArgs.cs +++ b/sdk/dotnet/Inputs/ShIndexesManagerAclGetArgs.cs @@ -82,7 +82,7 @@ public InputList Reads private InputList? _writes; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public InputList Writes { diff --git a/sdk/dotnet/LookupDefinition.cs b/sdk/dotnet/LookupDefinition.cs new file mode 100644 index 00000000..34d91c88 --- /dev/null +++ b/sdk/dotnet/LookupDefinition.cs @@ -0,0 +1,172 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Splunk +{ + /// + /// ## + /// + /// # Resource: splunk.LookupDefinition + /// + /// Manage lookup definitions in Splunk. For more information on lookup definitions, refer to the official Splunk documentation: https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Aboutlookupsandfieldactions + /// + /// ## Example Usage + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Splunk = Pulumi.Splunk; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = new Splunk.LookupDefinition("example", new() + /// { + /// Name = "example_lookup_definition", + /// Filename = "example_lookup_file.csv", + /// Acl = new Splunk.Inputs.LookupDefinitionAclArgs + /// { + /// Owner = "admin", + /// App = "search", + /// Sharing = "app", + /// Reads = new[] + /// { + /// "*", + /// }, + /// Writes = new[] + /// { + /// "admin", + /// }, + /// }, + /// }); + /// + /// }); + /// ``` + /// + /// ## Validation Rules + /// + /// When `acl.sharing` is set to `user`, the `acl.read` and `acl.write` fields must not be explicitly set. Setting them will trigger a validation error. + /// + [SplunkResourceType("splunk:index/lookupDefinition:LookupDefinition")] + public partial class LookupDefinition : global::Pulumi.CustomResource + { + /// + /// Defines the access control list (ACL) for the lookup definition. See acl.md for more details. + /// + [Output("acl")] + public Output Acl { get; private set; } = null!; + + /// + /// The filename for the lookup table, usually ending in `.csv`. + /// + [Output("filename")] + public Output Filename { get; private set; } = null!; + + /// + /// A unique name for the lookup definition within the app context. + /// + [Output("name")] + public Output Name { get; private set; } = null!; + + + /// + /// Create a LookupDefinition resource with the given unique name, arguments, and options. + /// + /// + /// The unique name of the resource + /// The arguments used to populate this resource's properties + /// A bag of options that control this resource's behavior + public LookupDefinition(string name, LookupDefinitionArgs args, CustomResourceOptions? options = null) + : base("splunk:index/lookupDefinition:LookupDefinition", name, args ?? new LookupDefinitionArgs(), MakeResourceOptions(options, "")) + { + } + + private LookupDefinition(string name, Input id, LookupDefinitionState? state = null, CustomResourceOptions? options = null) + : base("splunk:index/lookupDefinition:LookupDefinition", name, state, MakeResourceOptions(options, id)) + { + } + + private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id) + { + var defaultOptions = new CustomResourceOptions + { + Version = Utilities.Version, + }; + var merged = CustomResourceOptions.Merge(defaultOptions, options); + // Override the ID if one was specified for consistency with other language SDKs. + merged.Id = id ?? merged.Id; + return merged; + } + /// + /// Get an existing LookupDefinition resource's state with the given name, ID, and optional extra + /// properties used to qualify the lookup. + /// + /// + /// The unique name of the resulting resource. + /// The unique provider ID of the resource to lookup. + /// Any extra arguments used during the lookup. + /// A bag of options that control this resource's behavior + public static LookupDefinition Get(string name, Input id, LookupDefinitionState? state = null, CustomResourceOptions? options = null) + { + return new LookupDefinition(name, id, state, options); + } + } + + public sealed class LookupDefinitionArgs : global::Pulumi.ResourceArgs + { + /// + /// Defines the access control list (ACL) for the lookup definition. See acl.md for more details. + /// + [Input("acl")] + public Input? Acl { get; set; } + + /// + /// The filename for the lookup table, usually ending in `.csv`. + /// + [Input("filename", required: true)] + public Input Filename { get; set; } = null!; + + /// + /// A unique name for the lookup definition within the app context. + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + public LookupDefinitionArgs() + { + } + public static new LookupDefinitionArgs Empty => new LookupDefinitionArgs(); + } + + public sealed class LookupDefinitionState : global::Pulumi.ResourceArgs + { + /// + /// Defines the access control list (ACL) for the lookup definition. See acl.md for more details. + /// + [Input("acl")] + public Input? Acl { get; set; } + + /// + /// The filename for the lookup table, usually ending in `.csv`. + /// + [Input("filename")] + public Input? Filename { get; set; } + + /// + /// A unique name for the lookup definition within the app context. + /// + [Input("name")] + public Input? Name { get; set; } + + public LookupDefinitionState() + { + } + public static new LookupDefinitionState Empty => new LookupDefinitionState(); + } +} diff --git a/sdk/dotnet/Outputs/AppsLocalAcl.cs b/sdk/dotnet/Outputs/AppsLocalAcl.cs index 376f395e..0a8ac8f4 100644 --- a/sdk/dotnet/Outputs/AppsLocalAcl.cs +++ b/sdk/dotnet/Outputs/AppsLocalAcl.cs @@ -54,7 +54,7 @@ public sealed class AppsLocalAcl /// public readonly string? Sharing; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public readonly ImmutableArray Writes; diff --git a/sdk/dotnet/Outputs/ConfigsConfAcl.cs b/sdk/dotnet/Outputs/ConfigsConfAcl.cs index 1aa68308..b2ff5900 100644 --- a/sdk/dotnet/Outputs/ConfigsConfAcl.cs +++ b/sdk/dotnet/Outputs/ConfigsConfAcl.cs @@ -54,7 +54,7 @@ public sealed class ConfigsConfAcl /// public readonly string? Sharing; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public readonly ImmutableArray Writes; diff --git a/sdk/dotnet/Outputs/DataUiViewsAcl.cs b/sdk/dotnet/Outputs/DataUiViewsAcl.cs index f63dea1a..2054aa94 100644 --- a/sdk/dotnet/Outputs/DataUiViewsAcl.cs +++ b/sdk/dotnet/Outputs/DataUiViewsAcl.cs @@ -54,7 +54,7 @@ public sealed class DataUiViewsAcl /// public readonly string? Sharing; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public readonly ImmutableArray Writes; diff --git a/sdk/dotnet/Outputs/GenericAclAcl.cs b/sdk/dotnet/Outputs/GenericAclAcl.cs index be39c45e..097622ba 100644 --- a/sdk/dotnet/Outputs/GenericAclAcl.cs +++ b/sdk/dotnet/Outputs/GenericAclAcl.cs @@ -54,7 +54,7 @@ public sealed class GenericAclAcl /// public readonly string? Sharing; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public readonly ImmutableArray Writes; diff --git a/sdk/dotnet/Outputs/IndexesAcl.cs b/sdk/dotnet/Outputs/IndexesAcl.cs index 10180b44..30af7b68 100644 --- a/sdk/dotnet/Outputs/IndexesAcl.cs +++ b/sdk/dotnet/Outputs/IndexesAcl.cs @@ -54,7 +54,7 @@ public sealed class IndexesAcl /// public readonly string? Sharing; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public readonly ImmutableArray Writes; diff --git a/sdk/dotnet/Outputs/InputsHttpEventCollectorAcl.cs b/sdk/dotnet/Outputs/InputsHttpEventCollectorAcl.cs index 6123544b..a90616c4 100644 --- a/sdk/dotnet/Outputs/InputsHttpEventCollectorAcl.cs +++ b/sdk/dotnet/Outputs/InputsHttpEventCollectorAcl.cs @@ -54,7 +54,7 @@ public sealed class InputsHttpEventCollectorAcl /// public readonly string? Sharing; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public readonly ImmutableArray Writes; diff --git a/sdk/dotnet/Outputs/InputsMonitorAcl.cs b/sdk/dotnet/Outputs/InputsMonitorAcl.cs index 9471f4b8..9c20a404 100644 --- a/sdk/dotnet/Outputs/InputsMonitorAcl.cs +++ b/sdk/dotnet/Outputs/InputsMonitorAcl.cs @@ -54,7 +54,7 @@ public sealed class InputsMonitorAcl /// public readonly string? Sharing; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public readonly ImmutableArray Writes; diff --git a/sdk/dotnet/Outputs/InputsScriptAcl.cs b/sdk/dotnet/Outputs/InputsScriptAcl.cs index 6591bbd7..03144795 100644 --- a/sdk/dotnet/Outputs/InputsScriptAcl.cs +++ b/sdk/dotnet/Outputs/InputsScriptAcl.cs @@ -54,7 +54,7 @@ public sealed class InputsScriptAcl /// public readonly string? Sharing; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public readonly ImmutableArray Writes; diff --git a/sdk/dotnet/Outputs/InputsTcpCookedAcl.cs b/sdk/dotnet/Outputs/InputsTcpCookedAcl.cs index bcb1364a..1ac19ed3 100644 --- a/sdk/dotnet/Outputs/InputsTcpCookedAcl.cs +++ b/sdk/dotnet/Outputs/InputsTcpCookedAcl.cs @@ -54,7 +54,7 @@ public sealed class InputsTcpCookedAcl /// public readonly string? Sharing; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public readonly ImmutableArray Writes; diff --git a/sdk/dotnet/Outputs/InputsTcpRawAcl.cs b/sdk/dotnet/Outputs/InputsTcpRawAcl.cs index 0fc2d8c7..2ab6f6b4 100644 --- a/sdk/dotnet/Outputs/InputsTcpRawAcl.cs +++ b/sdk/dotnet/Outputs/InputsTcpRawAcl.cs @@ -54,7 +54,7 @@ public sealed class InputsTcpRawAcl /// public readonly string? Sharing; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public readonly ImmutableArray Writes; diff --git a/sdk/dotnet/Outputs/InputsTcpSplunkTcpTokenAcl.cs b/sdk/dotnet/Outputs/InputsTcpSplunkTcpTokenAcl.cs index 68fdf5cf..c26ee097 100644 --- a/sdk/dotnet/Outputs/InputsTcpSplunkTcpTokenAcl.cs +++ b/sdk/dotnet/Outputs/InputsTcpSplunkTcpTokenAcl.cs @@ -54,7 +54,7 @@ public sealed class InputsTcpSplunkTcpTokenAcl /// public readonly string? Sharing; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public readonly ImmutableArray Writes; diff --git a/sdk/dotnet/Outputs/InputsUdpAcl.cs b/sdk/dotnet/Outputs/InputsUdpAcl.cs index da6b4650..7ec1f499 100644 --- a/sdk/dotnet/Outputs/InputsUdpAcl.cs +++ b/sdk/dotnet/Outputs/InputsUdpAcl.cs @@ -54,7 +54,7 @@ public sealed class InputsUdpAcl /// public readonly string? Sharing; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public readonly ImmutableArray Writes; diff --git a/sdk/dotnet/Outputs/LookupDefinitionAcl.cs b/sdk/dotnet/Outputs/LookupDefinitionAcl.cs new file mode 100644 index 00000000..2d75dcae --- /dev/null +++ b/sdk/dotnet/Outputs/LookupDefinitionAcl.cs @@ -0,0 +1,98 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.Splunk.Outputs +{ + + [OutputType] + public sealed class LookupDefinitionAcl + { + /// + /// The app context for the resource. Required for updating saved search ACL properties. Allowed values are:The name of an app and system + /// + public readonly string? App; + /// + /// Indicates if the active user can change permissions for this object. Defaults to true. + /// + public readonly bool? CanChangePerms; + /// + /// Indicates if the active user can change sharing to app level. Defaults to true. + /// + public readonly bool? CanShareApp; + /// + /// Indicates if the active user can change sharing to system level. Defaults to true. + /// + public readonly bool? CanShareGlobal; + /// + /// Indicates if the active user can change sharing to user level. Defaults to true. + /// + public readonly bool? CanShareUser; + /// + /// Indicates if the active user can edit this object. Defaults to true. + /// + public readonly bool? CanWrite; + /// + /// 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. + /// + public readonly string? Owner; + /// + /// Properties that indicate resource read permissions. + /// + public readonly ImmutableArray Reads; + /// + /// Indicates whether an admin or user with sufficient permissions can delete the entity. + /// + public readonly bool? Removable; + /// + /// Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user + /// + public readonly string? Sharing; + /// + /// Properties that indicate resource write permissions. + /// + public readonly ImmutableArray Writes; + + [OutputConstructor] + private LookupDefinitionAcl( + string? app, + + bool? canChangePerms, + + bool? canShareApp, + + bool? canShareGlobal, + + bool? canShareUser, + + bool? canWrite, + + string? owner, + + ImmutableArray reads, + + bool? removable, + + string? sharing, + + ImmutableArray writes) + { + App = app; + CanChangePerms = canChangePerms; + CanShareApp = canShareApp; + CanShareGlobal = canShareGlobal; + CanShareUser = canShareUser; + CanWrite = canWrite; + Owner = owner; + Reads = reads; + Removable = removable; + Sharing = sharing; + Writes = writes; + } + } +} diff --git a/sdk/dotnet/Outputs/OutputsTcpDefaultAcl.cs b/sdk/dotnet/Outputs/OutputsTcpDefaultAcl.cs index 79b8b398..0db89808 100644 --- a/sdk/dotnet/Outputs/OutputsTcpDefaultAcl.cs +++ b/sdk/dotnet/Outputs/OutputsTcpDefaultAcl.cs @@ -54,7 +54,7 @@ public sealed class OutputsTcpDefaultAcl /// public readonly string? Sharing; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public readonly ImmutableArray Writes; diff --git a/sdk/dotnet/Outputs/OutputsTcpGroupAcl.cs b/sdk/dotnet/Outputs/OutputsTcpGroupAcl.cs index 01c2aac0..97d7b07a 100644 --- a/sdk/dotnet/Outputs/OutputsTcpGroupAcl.cs +++ b/sdk/dotnet/Outputs/OutputsTcpGroupAcl.cs @@ -54,7 +54,7 @@ public sealed class OutputsTcpGroupAcl /// public readonly string? Sharing; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public readonly ImmutableArray Writes; diff --git a/sdk/dotnet/Outputs/OutputsTcpServerAcl.cs b/sdk/dotnet/Outputs/OutputsTcpServerAcl.cs index b84175ef..236dc4b9 100644 --- a/sdk/dotnet/Outputs/OutputsTcpServerAcl.cs +++ b/sdk/dotnet/Outputs/OutputsTcpServerAcl.cs @@ -54,7 +54,7 @@ public sealed class OutputsTcpServerAcl /// public readonly string? Sharing; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public readonly ImmutableArray Writes; diff --git a/sdk/dotnet/Outputs/OutputsTcpSyslogAcl.cs b/sdk/dotnet/Outputs/OutputsTcpSyslogAcl.cs index 7aba743a..fafbd092 100644 --- a/sdk/dotnet/Outputs/OutputsTcpSyslogAcl.cs +++ b/sdk/dotnet/Outputs/OutputsTcpSyslogAcl.cs @@ -54,7 +54,7 @@ public sealed class OutputsTcpSyslogAcl /// public readonly string? Sharing; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public readonly ImmutableArray Writes; diff --git a/sdk/dotnet/Outputs/SavedSearchesAcl.cs b/sdk/dotnet/Outputs/SavedSearchesAcl.cs index 7e05efc0..5fa42056 100644 --- a/sdk/dotnet/Outputs/SavedSearchesAcl.cs +++ b/sdk/dotnet/Outputs/SavedSearchesAcl.cs @@ -54,7 +54,7 @@ public sealed class SavedSearchesAcl /// public readonly string? Sharing; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public readonly ImmutableArray Writes; diff --git a/sdk/dotnet/Outputs/ShIndexesManagerAcl.cs b/sdk/dotnet/Outputs/ShIndexesManagerAcl.cs index 47f89fbd..d9c7785d 100644 --- a/sdk/dotnet/Outputs/ShIndexesManagerAcl.cs +++ b/sdk/dotnet/Outputs/ShIndexesManagerAcl.cs @@ -54,7 +54,7 @@ public sealed class ShIndexesManagerAcl /// public readonly string? Sharing; /// - /// Properties that indicate write permissions of the resource. + /// Properties that indicate resource write permissions. /// public readonly ImmutableArray Writes; diff --git a/sdk/go/splunk/init.go b/sdk/go/splunk/init.go index 1efdbd1f..6710e8fc 100644 --- a/sdk/go/splunk/init.go +++ b/sdk/go/splunk/init.go @@ -55,6 +55,8 @@ func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi r = &InputsTcpSsl{} case "splunk:index/inputsUdp:InputsUdp": r = &InputsUdp{} + case "splunk:index/lookupDefinition:LookupDefinition": + r = &LookupDefinition{} case "splunk:index/lookupTableFile:LookupTableFile": r = &LookupTableFile{} case "splunk:index/outputsTcpDefault:OutputsTcpDefault": @@ -185,6 +187,11 @@ func init() { "index/inputsUdp", &module{version}, ) + pulumi.RegisterResourceModule( + "splunk", + "index/lookupDefinition", + &module{version}, + ) pulumi.RegisterResourceModule( "splunk", "index/lookupTableFile", diff --git a/sdk/go/splunk/lookupDefinition.go b/sdk/go/splunk/lookupDefinition.go new file mode 100644 index 00000000..a4a07e7f --- /dev/null +++ b/sdk/go/splunk/lookupDefinition.go @@ -0,0 +1,298 @@ +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. +// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** + +package splunk + +import ( + "context" + "reflect" + + "errors" + "github.com/pulumi/pulumi-splunk/sdk/go/splunk/internal" + "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +) + +// ## +// +// # Resource: LookupDefinition +// +// Manage lookup definitions in Splunk. For more information on lookup definitions, refer to the official Splunk documentation: https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Aboutlookupsandfieldactions +// +// ## Example Usage +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-splunk/sdk/go/splunk" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := splunk.NewLookupDefinition(ctx, "example", &splunk.LookupDefinitionArgs{ +// Name: pulumi.String("example_lookup_definition"), +// Filename: pulumi.String("example_lookup_file.csv"), +// Acl: &splunk.LookupDefinitionAclArgs{ +// Owner: pulumi.String("admin"), +// App: pulumi.String("search"), +// Sharing: pulumi.String("app"), +// Reads: pulumi.StringArray{ +// pulumi.String("*"), +// }, +// Writes: pulumi.StringArray{ +// pulumi.String("admin"), +// }, +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// +// ## Validation Rules +// +// When `acl.sharing` is set to `user`, the `acl.read` and `acl.write` fields must not be explicitly set. Setting them will trigger a validation error. +type LookupDefinition struct { + pulumi.CustomResourceState + + // Defines the access control list (ACL) for the lookup definition. See acl.md for more details. + Acl LookupDefinitionAclOutput `pulumi:"acl"` + // The filename for the lookup table, usually ending in `.csv`. + Filename pulumi.StringOutput `pulumi:"filename"` + // A unique name for the lookup definition within the app context. + Name pulumi.StringOutput `pulumi:"name"` +} + +// NewLookupDefinition registers a new resource with the given unique name, arguments, and options. +func NewLookupDefinition(ctx *pulumi.Context, + name string, args *LookupDefinitionArgs, opts ...pulumi.ResourceOption) (*LookupDefinition, error) { + if args == nil { + return nil, errors.New("missing one or more required arguments") + } + + if args.Filename == nil { + return nil, errors.New("invalid value for required argument 'Filename'") + } + if args.Name == nil { + return nil, errors.New("invalid value for required argument 'Name'") + } + opts = internal.PkgResourceDefaultOpts(opts) + var resource LookupDefinition + err := ctx.RegisterResource("splunk:index/lookupDefinition:LookupDefinition", name, args, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// GetLookupDefinition gets an existing LookupDefinition resource's state with the given name, ID, and optional +// state properties that are used to uniquely qualify the lookup (nil if not required). +func GetLookupDefinition(ctx *pulumi.Context, + name string, id pulumi.IDInput, state *LookupDefinitionState, opts ...pulumi.ResourceOption) (*LookupDefinition, error) { + var resource LookupDefinition + err := ctx.ReadResource("splunk:index/lookupDefinition:LookupDefinition", name, id, state, &resource, opts...) + if err != nil { + return nil, err + } + return &resource, nil +} + +// Input properties used for looking up and filtering LookupDefinition resources. +type lookupDefinitionState struct { + // Defines the access control list (ACL) for the lookup definition. See acl.md for more details. + Acl *LookupDefinitionAcl `pulumi:"acl"` + // The filename for the lookup table, usually ending in `.csv`. + Filename *string `pulumi:"filename"` + // A unique name for the lookup definition within the app context. + Name *string `pulumi:"name"` +} + +type LookupDefinitionState struct { + // Defines the access control list (ACL) for the lookup definition. See acl.md for more details. + Acl LookupDefinitionAclPtrInput + // The filename for the lookup table, usually ending in `.csv`. + Filename pulumi.StringPtrInput + // A unique name for the lookup definition within the app context. + Name pulumi.StringPtrInput +} + +func (LookupDefinitionState) ElementType() reflect.Type { + return reflect.TypeOf((*lookupDefinitionState)(nil)).Elem() +} + +type lookupDefinitionArgs struct { + // Defines the access control list (ACL) for the lookup definition. See acl.md for more details. + Acl *LookupDefinitionAcl `pulumi:"acl"` + // The filename for the lookup table, usually ending in `.csv`. + Filename string `pulumi:"filename"` + // A unique name for the lookup definition within the app context. + Name string `pulumi:"name"` +} + +// The set of arguments for constructing a LookupDefinition resource. +type LookupDefinitionArgs struct { + // Defines the access control list (ACL) for the lookup definition. See acl.md for more details. + Acl LookupDefinitionAclPtrInput + // The filename for the lookup table, usually ending in `.csv`. + Filename pulumi.StringInput + // A unique name for the lookup definition within the app context. + Name pulumi.StringInput +} + +func (LookupDefinitionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*lookupDefinitionArgs)(nil)).Elem() +} + +type LookupDefinitionInput interface { + pulumi.Input + + ToLookupDefinitionOutput() LookupDefinitionOutput + ToLookupDefinitionOutputWithContext(ctx context.Context) LookupDefinitionOutput +} + +func (*LookupDefinition) ElementType() reflect.Type { + return reflect.TypeOf((**LookupDefinition)(nil)).Elem() +} + +func (i *LookupDefinition) ToLookupDefinitionOutput() LookupDefinitionOutput { + return i.ToLookupDefinitionOutputWithContext(context.Background()) +} + +func (i *LookupDefinition) ToLookupDefinitionOutputWithContext(ctx context.Context) LookupDefinitionOutput { + return pulumi.ToOutputWithContext(ctx, i).(LookupDefinitionOutput) +} + +// LookupDefinitionArrayInput is an input type that accepts LookupDefinitionArray and LookupDefinitionArrayOutput values. +// You can construct a concrete instance of `LookupDefinitionArrayInput` via: +// +// LookupDefinitionArray{ LookupDefinitionArgs{...} } +type LookupDefinitionArrayInput interface { + pulumi.Input + + ToLookupDefinitionArrayOutput() LookupDefinitionArrayOutput + ToLookupDefinitionArrayOutputWithContext(context.Context) LookupDefinitionArrayOutput +} + +type LookupDefinitionArray []LookupDefinitionInput + +func (LookupDefinitionArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]*LookupDefinition)(nil)).Elem() +} + +func (i LookupDefinitionArray) ToLookupDefinitionArrayOutput() LookupDefinitionArrayOutput { + return i.ToLookupDefinitionArrayOutputWithContext(context.Background()) +} + +func (i LookupDefinitionArray) ToLookupDefinitionArrayOutputWithContext(ctx context.Context) LookupDefinitionArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(LookupDefinitionArrayOutput) +} + +// LookupDefinitionMapInput is an input type that accepts LookupDefinitionMap and LookupDefinitionMapOutput values. +// You can construct a concrete instance of `LookupDefinitionMapInput` via: +// +// LookupDefinitionMap{ "key": LookupDefinitionArgs{...} } +type LookupDefinitionMapInput interface { + pulumi.Input + + ToLookupDefinitionMapOutput() LookupDefinitionMapOutput + ToLookupDefinitionMapOutputWithContext(context.Context) LookupDefinitionMapOutput +} + +type LookupDefinitionMap map[string]LookupDefinitionInput + +func (LookupDefinitionMap) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*LookupDefinition)(nil)).Elem() +} + +func (i LookupDefinitionMap) ToLookupDefinitionMapOutput() LookupDefinitionMapOutput { + return i.ToLookupDefinitionMapOutputWithContext(context.Background()) +} + +func (i LookupDefinitionMap) ToLookupDefinitionMapOutputWithContext(ctx context.Context) LookupDefinitionMapOutput { + return pulumi.ToOutputWithContext(ctx, i).(LookupDefinitionMapOutput) +} + +type LookupDefinitionOutput struct{ *pulumi.OutputState } + +func (LookupDefinitionOutput) ElementType() reflect.Type { + return reflect.TypeOf((**LookupDefinition)(nil)).Elem() +} + +func (o LookupDefinitionOutput) ToLookupDefinitionOutput() LookupDefinitionOutput { + return o +} + +func (o LookupDefinitionOutput) ToLookupDefinitionOutputWithContext(ctx context.Context) LookupDefinitionOutput { + return o +} + +// Defines the access control list (ACL) for the lookup definition. See acl.md for more details. +func (o LookupDefinitionOutput) Acl() LookupDefinitionAclOutput { + return o.ApplyT(func(v *LookupDefinition) LookupDefinitionAclOutput { return v.Acl }).(LookupDefinitionAclOutput) +} + +// The filename for the lookup table, usually ending in `.csv`. +func (o LookupDefinitionOutput) Filename() pulumi.StringOutput { + return o.ApplyT(func(v *LookupDefinition) pulumi.StringOutput { return v.Filename }).(pulumi.StringOutput) +} + +// A unique name for the lookup definition within the app context. +func (o LookupDefinitionOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v *LookupDefinition) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) +} + +type LookupDefinitionArrayOutput struct{ *pulumi.OutputState } + +func (LookupDefinitionArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]*LookupDefinition)(nil)).Elem() +} + +func (o LookupDefinitionArrayOutput) ToLookupDefinitionArrayOutput() LookupDefinitionArrayOutput { + return o +} + +func (o LookupDefinitionArrayOutput) ToLookupDefinitionArrayOutputWithContext(ctx context.Context) LookupDefinitionArrayOutput { + return o +} + +func (o LookupDefinitionArrayOutput) Index(i pulumi.IntInput) LookupDefinitionOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LookupDefinition { + return vs[0].([]*LookupDefinition)[vs[1].(int)] + }).(LookupDefinitionOutput) +} + +type LookupDefinitionMapOutput struct{ *pulumi.OutputState } + +func (LookupDefinitionMapOutput) ElementType() reflect.Type { + return reflect.TypeOf((*map[string]*LookupDefinition)(nil)).Elem() +} + +func (o LookupDefinitionMapOutput) ToLookupDefinitionMapOutput() LookupDefinitionMapOutput { + return o +} + +func (o LookupDefinitionMapOutput) ToLookupDefinitionMapOutputWithContext(ctx context.Context) LookupDefinitionMapOutput { + return o +} + +func (o LookupDefinitionMapOutput) MapIndex(k pulumi.StringInput) LookupDefinitionOutput { + return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LookupDefinition { + return vs[0].(map[string]*LookupDefinition)[vs[1].(string)] + }).(LookupDefinitionOutput) +} + +func init() { + pulumi.RegisterInputType(reflect.TypeOf((*LookupDefinitionInput)(nil)).Elem(), &LookupDefinition{}) + pulumi.RegisterInputType(reflect.TypeOf((*LookupDefinitionArrayInput)(nil)).Elem(), LookupDefinitionArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*LookupDefinitionMapInput)(nil)).Elem(), LookupDefinitionMap{}) + pulumi.RegisterOutputType(LookupDefinitionOutput{}) + pulumi.RegisterOutputType(LookupDefinitionArrayOutput{}) + pulumi.RegisterOutputType(LookupDefinitionMapOutput{}) +} diff --git a/sdk/go/splunk/pulumiTypes.go b/sdk/go/splunk/pulumiTypes.go index 34af5bcb..dd74e245 100644 --- a/sdk/go/splunk/pulumiTypes.go +++ b/sdk/go/splunk/pulumiTypes.go @@ -34,7 +34,7 @@ type AppsLocalAcl struct { Removable *bool `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing *string `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes []string `pulumi:"writes"` } @@ -70,7 +70,7 @@ type AppsLocalAclArgs struct { Removable pulumi.BoolPtrInput `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing pulumi.StringPtrInput `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes pulumi.StringArrayInput `pulumi:"writes"` } @@ -201,7 +201,7 @@ func (o AppsLocalAclOutput) Sharing() pulumi.StringPtrOutput { return o.ApplyT(func(v AppsLocalAcl) *string { return v.Sharing }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o AppsLocalAclOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v AppsLocalAcl) []string { return v.Writes }).(pulumi.StringArrayOutput) } @@ -330,7 +330,7 @@ func (o AppsLocalAclPtrOutput) Sharing() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o AppsLocalAclPtrOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v *AppsLocalAcl) []string { if v == nil { @@ -361,7 +361,7 @@ type ConfigsConfAcl struct { Removable *bool `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing *string `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes []string `pulumi:"writes"` } @@ -397,7 +397,7 @@ type ConfigsConfAclArgs struct { Removable pulumi.BoolPtrInput `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing pulumi.StringPtrInput `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes pulumi.StringArrayInput `pulumi:"writes"` } @@ -528,7 +528,7 @@ func (o ConfigsConfAclOutput) Sharing() pulumi.StringPtrOutput { return o.ApplyT(func(v ConfigsConfAcl) *string { return v.Sharing }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o ConfigsConfAclOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v ConfigsConfAcl) []string { return v.Writes }).(pulumi.StringArrayOutput) } @@ -657,7 +657,7 @@ func (o ConfigsConfAclPtrOutput) Sharing() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o ConfigsConfAclPtrOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v *ConfigsConfAcl) []string { if v == nil { @@ -688,7 +688,7 @@ type DataUiViewsAcl struct { Removable *bool `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing *string `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes []string `pulumi:"writes"` } @@ -724,7 +724,7 @@ type DataUiViewsAclArgs struct { Removable pulumi.BoolPtrInput `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing pulumi.StringPtrInput `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes pulumi.StringArrayInput `pulumi:"writes"` } @@ -855,7 +855,7 @@ func (o DataUiViewsAclOutput) Sharing() pulumi.StringPtrOutput { return o.ApplyT(func(v DataUiViewsAcl) *string { return v.Sharing }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o DataUiViewsAclOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v DataUiViewsAcl) []string { return v.Writes }).(pulumi.StringArrayOutput) } @@ -984,7 +984,7 @@ func (o DataUiViewsAclPtrOutput) Sharing() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o DataUiViewsAclPtrOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v *DataUiViewsAcl) []string { if v == nil { @@ -1015,7 +1015,7 @@ type GenericAclAcl struct { Removable *bool `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing *string `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes []string `pulumi:"writes"` } @@ -1051,7 +1051,7 @@ type GenericAclAclArgs struct { Removable pulumi.BoolPtrInput `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing pulumi.StringPtrInput `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes pulumi.StringArrayInput `pulumi:"writes"` } @@ -1182,7 +1182,7 @@ func (o GenericAclAclOutput) Sharing() pulumi.StringPtrOutput { return o.ApplyT(func(v GenericAclAcl) *string { return v.Sharing }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o GenericAclAclOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v GenericAclAcl) []string { return v.Writes }).(pulumi.StringArrayOutput) } @@ -1311,7 +1311,7 @@ func (o GenericAclAclPtrOutput) Sharing() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o GenericAclAclPtrOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v *GenericAclAcl) []string { if v == nil { @@ -1342,7 +1342,7 @@ type IndexesAcl struct { Removable *bool `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing *string `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes []string `pulumi:"writes"` } @@ -1378,7 +1378,7 @@ type IndexesAclArgs struct { Removable pulumi.BoolPtrInput `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing pulumi.StringPtrInput `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes pulumi.StringArrayInput `pulumi:"writes"` } @@ -1509,7 +1509,7 @@ func (o IndexesAclOutput) Sharing() pulumi.StringPtrOutput { return o.ApplyT(func(v IndexesAcl) *string { return v.Sharing }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o IndexesAclOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v IndexesAcl) []string { return v.Writes }).(pulumi.StringArrayOutput) } @@ -1638,7 +1638,7 @@ func (o IndexesAclPtrOutput) Sharing() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o IndexesAclPtrOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v *IndexesAcl) []string { if v == nil { @@ -1669,7 +1669,7 @@ type InputsHttpEventCollectorAcl struct { Removable *bool `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing *string `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes []string `pulumi:"writes"` } @@ -1705,7 +1705,7 @@ type InputsHttpEventCollectorAclArgs struct { Removable pulumi.BoolPtrInput `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing pulumi.StringPtrInput `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes pulumi.StringArrayInput `pulumi:"writes"` } @@ -1836,7 +1836,7 @@ func (o InputsHttpEventCollectorAclOutput) Sharing() pulumi.StringPtrOutput { return o.ApplyT(func(v InputsHttpEventCollectorAcl) *string { return v.Sharing }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o InputsHttpEventCollectorAclOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v InputsHttpEventCollectorAcl) []string { return v.Writes }).(pulumi.StringArrayOutput) } @@ -1965,7 +1965,7 @@ func (o InputsHttpEventCollectorAclPtrOutput) Sharing() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o InputsHttpEventCollectorAclPtrOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v *InputsHttpEventCollectorAcl) []string { if v == nil { @@ -1996,7 +1996,7 @@ type InputsMonitorAcl struct { Removable *bool `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing *string `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes []string `pulumi:"writes"` } @@ -2032,7 +2032,7 @@ type InputsMonitorAclArgs struct { Removable pulumi.BoolPtrInput `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing pulumi.StringPtrInput `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes pulumi.StringArrayInput `pulumi:"writes"` } @@ -2163,7 +2163,7 @@ func (o InputsMonitorAclOutput) Sharing() pulumi.StringPtrOutput { return o.ApplyT(func(v InputsMonitorAcl) *string { return v.Sharing }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o InputsMonitorAclOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v InputsMonitorAcl) []string { return v.Writes }).(pulumi.StringArrayOutput) } @@ -2292,7 +2292,7 @@ func (o InputsMonitorAclPtrOutput) Sharing() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o InputsMonitorAclPtrOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v *InputsMonitorAcl) []string { if v == nil { @@ -2323,7 +2323,7 @@ type InputsScriptAcl struct { Removable *bool `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing *string `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes []string `pulumi:"writes"` } @@ -2359,7 +2359,7 @@ type InputsScriptAclArgs struct { Removable pulumi.BoolPtrInput `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing pulumi.StringPtrInput `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes pulumi.StringArrayInput `pulumi:"writes"` } @@ -2490,7 +2490,7 @@ func (o InputsScriptAclOutput) Sharing() pulumi.StringPtrOutput { return o.ApplyT(func(v InputsScriptAcl) *string { return v.Sharing }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o InputsScriptAclOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v InputsScriptAcl) []string { return v.Writes }).(pulumi.StringArrayOutput) } @@ -2619,7 +2619,7 @@ func (o InputsScriptAclPtrOutput) Sharing() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o InputsScriptAclPtrOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v *InputsScriptAcl) []string { if v == nil { @@ -2650,7 +2650,7 @@ type InputsTcpCookedAcl struct { Removable *bool `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing *string `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes []string `pulumi:"writes"` } @@ -2686,7 +2686,7 @@ type InputsTcpCookedAclArgs struct { Removable pulumi.BoolPtrInput `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing pulumi.StringPtrInput `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes pulumi.StringArrayInput `pulumi:"writes"` } @@ -2817,7 +2817,7 @@ func (o InputsTcpCookedAclOutput) Sharing() pulumi.StringPtrOutput { return o.ApplyT(func(v InputsTcpCookedAcl) *string { return v.Sharing }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o InputsTcpCookedAclOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v InputsTcpCookedAcl) []string { return v.Writes }).(pulumi.StringArrayOutput) } @@ -2946,7 +2946,7 @@ func (o InputsTcpCookedAclPtrOutput) Sharing() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o InputsTcpCookedAclPtrOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v *InputsTcpCookedAcl) []string { if v == nil { @@ -2977,7 +2977,7 @@ type InputsTcpRawAcl struct { Removable *bool `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing *string `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes []string `pulumi:"writes"` } @@ -3013,7 +3013,7 @@ type InputsTcpRawAclArgs struct { Removable pulumi.BoolPtrInput `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing pulumi.StringPtrInput `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes pulumi.StringArrayInput `pulumi:"writes"` } @@ -3144,7 +3144,7 @@ func (o InputsTcpRawAclOutput) Sharing() pulumi.StringPtrOutput { return o.ApplyT(func(v InputsTcpRawAcl) *string { return v.Sharing }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o InputsTcpRawAclOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v InputsTcpRawAcl) []string { return v.Writes }).(pulumi.StringArrayOutput) } @@ -3273,7 +3273,7 @@ func (o InputsTcpRawAclPtrOutput) Sharing() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o InputsTcpRawAclPtrOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v *InputsTcpRawAcl) []string { if v == nil { @@ -3304,7 +3304,7 @@ type InputsTcpSplunkTcpTokenAcl struct { Removable *bool `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing *string `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes []string `pulumi:"writes"` } @@ -3340,7 +3340,7 @@ type InputsTcpSplunkTcpTokenAclArgs struct { Removable pulumi.BoolPtrInput `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing pulumi.StringPtrInput `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes pulumi.StringArrayInput `pulumi:"writes"` } @@ -3471,7 +3471,7 @@ func (o InputsTcpSplunkTcpTokenAclOutput) Sharing() pulumi.StringPtrOutput { return o.ApplyT(func(v InputsTcpSplunkTcpTokenAcl) *string { return v.Sharing }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o InputsTcpSplunkTcpTokenAclOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v InputsTcpSplunkTcpTokenAcl) []string { return v.Writes }).(pulumi.StringArrayOutput) } @@ -3600,7 +3600,7 @@ func (o InputsTcpSplunkTcpTokenAclPtrOutput) Sharing() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o InputsTcpSplunkTcpTokenAclPtrOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v *InputsTcpSplunkTcpTokenAcl) []string { if v == nil { @@ -3631,7 +3631,7 @@ type InputsUdpAcl struct { Removable *bool `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing *string `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes []string `pulumi:"writes"` } @@ -3667,7 +3667,7 @@ type InputsUdpAclArgs struct { Removable pulumi.BoolPtrInput `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing pulumi.StringPtrInput `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes pulumi.StringArrayInput `pulumi:"writes"` } @@ -3798,7 +3798,7 @@ func (o InputsUdpAclOutput) Sharing() pulumi.StringPtrOutput { return o.ApplyT(func(v InputsUdpAcl) *string { return v.Sharing }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o InputsUdpAclOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v InputsUdpAcl) []string { return v.Writes }).(pulumi.StringArrayOutput) } @@ -3927,7 +3927,7 @@ func (o InputsUdpAclPtrOutput) Sharing() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o InputsUdpAclPtrOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v *InputsUdpAcl) []string { if v == nil { @@ -3937,6 +3937,333 @@ func (o InputsUdpAclPtrOutput) Writes() pulumi.StringArrayOutput { }).(pulumi.StringArrayOutput) } +type LookupDefinitionAcl struct { + // The app context for the resource. Required for updating saved search ACL properties. Allowed values are:The name of an app and system + App *string `pulumi:"app"` + // Indicates if the active user can change permissions for this object. Defaults to true. + CanChangePerms *bool `pulumi:"canChangePerms"` + // Indicates if the active user can change sharing to app level. Defaults to true. + CanShareApp *bool `pulumi:"canShareApp"` + // Indicates if the active user can change sharing to system level. Defaults to true. + CanShareGlobal *bool `pulumi:"canShareGlobal"` + // Indicates if the active user can change sharing to user level. Defaults to true. + CanShareUser *bool `pulumi:"canShareUser"` + // Indicates if the active user can edit this object. Defaults to true. + CanWrite *bool `pulumi:"canWrite"` + // 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. + Owner *string `pulumi:"owner"` + // Properties that indicate resource read permissions. + Reads []string `pulumi:"reads"` + // Indicates whether an admin or user with sufficient permissions can delete the entity. + Removable *bool `pulumi:"removable"` + // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user + Sharing *string `pulumi:"sharing"` + // Properties that indicate resource write permissions. + Writes []string `pulumi:"writes"` +} + +// LookupDefinitionAclInput is an input type that accepts LookupDefinitionAclArgs and LookupDefinitionAclOutput values. +// You can construct a concrete instance of `LookupDefinitionAclInput` via: +// +// LookupDefinitionAclArgs{...} +type LookupDefinitionAclInput interface { + pulumi.Input + + ToLookupDefinitionAclOutput() LookupDefinitionAclOutput + ToLookupDefinitionAclOutputWithContext(context.Context) LookupDefinitionAclOutput +} + +type LookupDefinitionAclArgs struct { + // The app context for the resource. Required for updating saved search ACL properties. Allowed values are:The name of an app and system + App pulumi.StringPtrInput `pulumi:"app"` + // Indicates if the active user can change permissions for this object. Defaults to true. + CanChangePerms pulumi.BoolPtrInput `pulumi:"canChangePerms"` + // Indicates if the active user can change sharing to app level. Defaults to true. + CanShareApp pulumi.BoolPtrInput `pulumi:"canShareApp"` + // Indicates if the active user can change sharing to system level. Defaults to true. + CanShareGlobal pulumi.BoolPtrInput `pulumi:"canShareGlobal"` + // Indicates if the active user can change sharing to user level. Defaults to true. + CanShareUser pulumi.BoolPtrInput `pulumi:"canShareUser"` + // Indicates if the active user can edit this object. Defaults to true. + CanWrite pulumi.BoolPtrInput `pulumi:"canWrite"` + // 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. + Owner pulumi.StringPtrInput `pulumi:"owner"` + // Properties that indicate resource read permissions. + Reads pulumi.StringArrayInput `pulumi:"reads"` + // Indicates whether an admin or user with sufficient permissions can delete the entity. + Removable pulumi.BoolPtrInput `pulumi:"removable"` + // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user + Sharing pulumi.StringPtrInput `pulumi:"sharing"` + // Properties that indicate resource write permissions. + Writes pulumi.StringArrayInput `pulumi:"writes"` +} + +func (LookupDefinitionAclArgs) ElementType() reflect.Type { + return reflect.TypeOf((*LookupDefinitionAcl)(nil)).Elem() +} + +func (i LookupDefinitionAclArgs) ToLookupDefinitionAclOutput() LookupDefinitionAclOutput { + return i.ToLookupDefinitionAclOutputWithContext(context.Background()) +} + +func (i LookupDefinitionAclArgs) ToLookupDefinitionAclOutputWithContext(ctx context.Context) LookupDefinitionAclOutput { + return pulumi.ToOutputWithContext(ctx, i).(LookupDefinitionAclOutput) +} + +func (i LookupDefinitionAclArgs) ToLookupDefinitionAclPtrOutput() LookupDefinitionAclPtrOutput { + return i.ToLookupDefinitionAclPtrOutputWithContext(context.Background()) +} + +func (i LookupDefinitionAclArgs) ToLookupDefinitionAclPtrOutputWithContext(ctx context.Context) LookupDefinitionAclPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(LookupDefinitionAclOutput).ToLookupDefinitionAclPtrOutputWithContext(ctx) +} + +// LookupDefinitionAclPtrInput is an input type that accepts LookupDefinitionAclArgs, LookupDefinitionAclPtr and LookupDefinitionAclPtrOutput values. +// You can construct a concrete instance of `LookupDefinitionAclPtrInput` via: +// +// LookupDefinitionAclArgs{...} +// +// or: +// +// nil +type LookupDefinitionAclPtrInput interface { + pulumi.Input + + ToLookupDefinitionAclPtrOutput() LookupDefinitionAclPtrOutput + ToLookupDefinitionAclPtrOutputWithContext(context.Context) LookupDefinitionAclPtrOutput +} + +type lookupDefinitionAclPtrType LookupDefinitionAclArgs + +func LookupDefinitionAclPtr(v *LookupDefinitionAclArgs) LookupDefinitionAclPtrInput { + return (*lookupDefinitionAclPtrType)(v) +} + +func (*lookupDefinitionAclPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**LookupDefinitionAcl)(nil)).Elem() +} + +func (i *lookupDefinitionAclPtrType) ToLookupDefinitionAclPtrOutput() LookupDefinitionAclPtrOutput { + return i.ToLookupDefinitionAclPtrOutputWithContext(context.Background()) +} + +func (i *lookupDefinitionAclPtrType) ToLookupDefinitionAclPtrOutputWithContext(ctx context.Context) LookupDefinitionAclPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(LookupDefinitionAclPtrOutput) +} + +type LookupDefinitionAclOutput struct{ *pulumi.OutputState } + +func (LookupDefinitionAclOutput) ElementType() reflect.Type { + return reflect.TypeOf((*LookupDefinitionAcl)(nil)).Elem() +} + +func (o LookupDefinitionAclOutput) ToLookupDefinitionAclOutput() LookupDefinitionAclOutput { + return o +} + +func (o LookupDefinitionAclOutput) ToLookupDefinitionAclOutputWithContext(ctx context.Context) LookupDefinitionAclOutput { + return o +} + +func (o LookupDefinitionAclOutput) ToLookupDefinitionAclPtrOutput() LookupDefinitionAclPtrOutput { + return o.ToLookupDefinitionAclPtrOutputWithContext(context.Background()) +} + +func (o LookupDefinitionAclOutput) ToLookupDefinitionAclPtrOutputWithContext(ctx context.Context) LookupDefinitionAclPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v LookupDefinitionAcl) *LookupDefinitionAcl { + return &v + }).(LookupDefinitionAclPtrOutput) +} + +// The app context for the resource. Required for updating saved search ACL properties. Allowed values are:The name of an app and system +func (o LookupDefinitionAclOutput) App() pulumi.StringPtrOutput { + return o.ApplyT(func(v LookupDefinitionAcl) *string { return v.App }).(pulumi.StringPtrOutput) +} + +// Indicates if the active user can change permissions for this object. Defaults to true. +func (o LookupDefinitionAclOutput) CanChangePerms() pulumi.BoolPtrOutput { + return o.ApplyT(func(v LookupDefinitionAcl) *bool { return v.CanChangePerms }).(pulumi.BoolPtrOutput) +} + +// Indicates if the active user can change sharing to app level. Defaults to true. +func (o LookupDefinitionAclOutput) CanShareApp() pulumi.BoolPtrOutput { + return o.ApplyT(func(v LookupDefinitionAcl) *bool { return v.CanShareApp }).(pulumi.BoolPtrOutput) +} + +// Indicates if the active user can change sharing to system level. Defaults to true. +func (o LookupDefinitionAclOutput) CanShareGlobal() pulumi.BoolPtrOutput { + return o.ApplyT(func(v LookupDefinitionAcl) *bool { return v.CanShareGlobal }).(pulumi.BoolPtrOutput) +} + +// Indicates if the active user can change sharing to user level. Defaults to true. +func (o LookupDefinitionAclOutput) CanShareUser() pulumi.BoolPtrOutput { + return o.ApplyT(func(v LookupDefinitionAcl) *bool { return v.CanShareUser }).(pulumi.BoolPtrOutput) +} + +// Indicates if the active user can edit this object. Defaults to true. +func (o LookupDefinitionAclOutput) CanWrite() pulumi.BoolPtrOutput { + return o.ApplyT(func(v LookupDefinitionAcl) *bool { return v.CanWrite }).(pulumi.BoolPtrOutput) +} + +// 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. +func (o LookupDefinitionAclOutput) Owner() pulumi.StringPtrOutput { + return o.ApplyT(func(v LookupDefinitionAcl) *string { return v.Owner }).(pulumi.StringPtrOutput) +} + +// Properties that indicate resource read permissions. +func (o LookupDefinitionAclOutput) Reads() pulumi.StringArrayOutput { + return o.ApplyT(func(v LookupDefinitionAcl) []string { return v.Reads }).(pulumi.StringArrayOutput) +} + +// Indicates whether an admin or user with sufficient permissions can delete the entity. +func (o LookupDefinitionAclOutput) Removable() pulumi.BoolPtrOutput { + return o.ApplyT(func(v LookupDefinitionAcl) *bool { return v.Removable }).(pulumi.BoolPtrOutput) +} + +// Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user +func (o LookupDefinitionAclOutput) Sharing() pulumi.StringPtrOutput { + return o.ApplyT(func(v LookupDefinitionAcl) *string { return v.Sharing }).(pulumi.StringPtrOutput) +} + +// Properties that indicate resource write permissions. +func (o LookupDefinitionAclOutput) Writes() pulumi.StringArrayOutput { + return o.ApplyT(func(v LookupDefinitionAcl) []string { return v.Writes }).(pulumi.StringArrayOutput) +} + +type LookupDefinitionAclPtrOutput struct{ *pulumi.OutputState } + +func (LookupDefinitionAclPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**LookupDefinitionAcl)(nil)).Elem() +} + +func (o LookupDefinitionAclPtrOutput) ToLookupDefinitionAclPtrOutput() LookupDefinitionAclPtrOutput { + return o +} + +func (o LookupDefinitionAclPtrOutput) ToLookupDefinitionAclPtrOutputWithContext(ctx context.Context) LookupDefinitionAclPtrOutput { + return o +} + +func (o LookupDefinitionAclPtrOutput) Elem() LookupDefinitionAclOutput { + return o.ApplyT(func(v *LookupDefinitionAcl) LookupDefinitionAcl { + if v != nil { + return *v + } + var ret LookupDefinitionAcl + return ret + }).(LookupDefinitionAclOutput) +} + +// The app context for the resource. Required for updating saved search ACL properties. Allowed values are:The name of an app and system +func (o LookupDefinitionAclPtrOutput) App() pulumi.StringPtrOutput { + return o.ApplyT(func(v *LookupDefinitionAcl) *string { + if v == nil { + return nil + } + return v.App + }).(pulumi.StringPtrOutput) +} + +// Indicates if the active user can change permissions for this object. Defaults to true. +func (o LookupDefinitionAclPtrOutput) CanChangePerms() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *LookupDefinitionAcl) *bool { + if v == nil { + return nil + } + return v.CanChangePerms + }).(pulumi.BoolPtrOutput) +} + +// Indicates if the active user can change sharing to app level. Defaults to true. +func (o LookupDefinitionAclPtrOutput) CanShareApp() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *LookupDefinitionAcl) *bool { + if v == nil { + return nil + } + return v.CanShareApp + }).(pulumi.BoolPtrOutput) +} + +// Indicates if the active user can change sharing to system level. Defaults to true. +func (o LookupDefinitionAclPtrOutput) CanShareGlobal() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *LookupDefinitionAcl) *bool { + if v == nil { + return nil + } + return v.CanShareGlobal + }).(pulumi.BoolPtrOutput) +} + +// Indicates if the active user can change sharing to user level. Defaults to true. +func (o LookupDefinitionAclPtrOutput) CanShareUser() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *LookupDefinitionAcl) *bool { + if v == nil { + return nil + } + return v.CanShareUser + }).(pulumi.BoolPtrOutput) +} + +// Indicates if the active user can edit this object. Defaults to true. +func (o LookupDefinitionAclPtrOutput) CanWrite() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *LookupDefinitionAcl) *bool { + if v == nil { + return nil + } + return v.CanWrite + }).(pulumi.BoolPtrOutput) +} + +// 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. +func (o LookupDefinitionAclPtrOutput) Owner() pulumi.StringPtrOutput { + return o.ApplyT(func(v *LookupDefinitionAcl) *string { + if v == nil { + return nil + } + return v.Owner + }).(pulumi.StringPtrOutput) +} + +// Properties that indicate resource read permissions. +func (o LookupDefinitionAclPtrOutput) Reads() pulumi.StringArrayOutput { + return o.ApplyT(func(v *LookupDefinitionAcl) []string { + if v == nil { + return nil + } + return v.Reads + }).(pulumi.StringArrayOutput) +} + +// Indicates whether an admin or user with sufficient permissions can delete the entity. +func (o LookupDefinitionAclPtrOutput) Removable() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *LookupDefinitionAcl) *bool { + if v == nil { + return nil + } + return v.Removable + }).(pulumi.BoolPtrOutput) +} + +// Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user +func (o LookupDefinitionAclPtrOutput) Sharing() pulumi.StringPtrOutput { + return o.ApplyT(func(v *LookupDefinitionAcl) *string { + if v == nil { + return nil + } + return v.Sharing + }).(pulumi.StringPtrOutput) +} + +// Properties that indicate resource write permissions. +func (o LookupDefinitionAclPtrOutput) Writes() pulumi.StringArrayOutput { + return o.ApplyT(func(v *LookupDefinitionAcl) []string { + if v == nil { + return nil + } + return v.Writes + }).(pulumi.StringArrayOutput) +} + type OutputsTcpDefaultAcl struct { // The app context for the resource. Required for updating saved search ACL properties. Allowed values are:The name of an app and system App *string `pulumi:"app"` @@ -3958,7 +4285,7 @@ type OutputsTcpDefaultAcl struct { Removable *bool `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing *string `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes []string `pulumi:"writes"` } @@ -3994,7 +4321,7 @@ type OutputsTcpDefaultAclArgs struct { Removable pulumi.BoolPtrInput `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing pulumi.StringPtrInput `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes pulumi.StringArrayInput `pulumi:"writes"` } @@ -4125,7 +4452,7 @@ func (o OutputsTcpDefaultAclOutput) Sharing() pulumi.StringPtrOutput { return o.ApplyT(func(v OutputsTcpDefaultAcl) *string { return v.Sharing }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o OutputsTcpDefaultAclOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v OutputsTcpDefaultAcl) []string { return v.Writes }).(pulumi.StringArrayOutput) } @@ -4254,7 +4581,7 @@ func (o OutputsTcpDefaultAclPtrOutput) Sharing() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o OutputsTcpDefaultAclPtrOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v *OutputsTcpDefaultAcl) []string { if v == nil { @@ -4285,7 +4612,7 @@ type OutputsTcpGroupAcl struct { Removable *bool `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing *string `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes []string `pulumi:"writes"` } @@ -4321,7 +4648,7 @@ type OutputsTcpGroupAclArgs struct { Removable pulumi.BoolPtrInput `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing pulumi.StringPtrInput `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes pulumi.StringArrayInput `pulumi:"writes"` } @@ -4452,7 +4779,7 @@ func (o OutputsTcpGroupAclOutput) Sharing() pulumi.StringPtrOutput { return o.ApplyT(func(v OutputsTcpGroupAcl) *string { return v.Sharing }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o OutputsTcpGroupAclOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v OutputsTcpGroupAcl) []string { return v.Writes }).(pulumi.StringArrayOutput) } @@ -4581,7 +4908,7 @@ func (o OutputsTcpGroupAclPtrOutput) Sharing() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o OutputsTcpGroupAclPtrOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v *OutputsTcpGroupAcl) []string { if v == nil { @@ -4612,7 +4939,7 @@ type OutputsTcpServerAcl struct { Removable *bool `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing *string `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes []string `pulumi:"writes"` } @@ -4648,7 +4975,7 @@ type OutputsTcpServerAclArgs struct { Removable pulumi.BoolPtrInput `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing pulumi.StringPtrInput `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes pulumi.StringArrayInput `pulumi:"writes"` } @@ -4779,7 +5106,7 @@ func (o OutputsTcpServerAclOutput) Sharing() pulumi.StringPtrOutput { return o.ApplyT(func(v OutputsTcpServerAcl) *string { return v.Sharing }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o OutputsTcpServerAclOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v OutputsTcpServerAcl) []string { return v.Writes }).(pulumi.StringArrayOutput) } @@ -4908,7 +5235,7 @@ func (o OutputsTcpServerAclPtrOutput) Sharing() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o OutputsTcpServerAclPtrOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v *OutputsTcpServerAcl) []string { if v == nil { @@ -4939,7 +5266,7 @@ type OutputsTcpSyslogAcl struct { Removable *bool `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing *string `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes []string `pulumi:"writes"` } @@ -4975,7 +5302,7 @@ type OutputsTcpSyslogAclArgs struct { Removable pulumi.BoolPtrInput `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing pulumi.StringPtrInput `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes pulumi.StringArrayInput `pulumi:"writes"` } @@ -5106,7 +5433,7 @@ func (o OutputsTcpSyslogAclOutput) Sharing() pulumi.StringPtrOutput { return o.ApplyT(func(v OutputsTcpSyslogAcl) *string { return v.Sharing }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o OutputsTcpSyslogAclOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v OutputsTcpSyslogAcl) []string { return v.Writes }).(pulumi.StringArrayOutput) } @@ -5235,7 +5562,7 @@ func (o OutputsTcpSyslogAclPtrOutput) Sharing() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o OutputsTcpSyslogAclPtrOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v *OutputsTcpSyslogAcl) []string { if v == nil { @@ -5266,7 +5593,7 @@ type SavedSearchesAcl struct { Removable *bool `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing *string `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes []string `pulumi:"writes"` } @@ -5302,7 +5629,7 @@ type SavedSearchesAclArgs struct { Removable pulumi.BoolPtrInput `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing pulumi.StringPtrInput `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes pulumi.StringArrayInput `pulumi:"writes"` } @@ -5433,7 +5760,7 @@ func (o SavedSearchesAclOutput) Sharing() pulumi.StringPtrOutput { return o.ApplyT(func(v SavedSearchesAcl) *string { return v.Sharing }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o SavedSearchesAclOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v SavedSearchesAcl) []string { return v.Writes }).(pulumi.StringArrayOutput) } @@ -5562,7 +5889,7 @@ func (o SavedSearchesAclPtrOutput) Sharing() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o SavedSearchesAclPtrOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v *SavedSearchesAcl) []string { if v == nil { @@ -5593,7 +5920,7 @@ type ShIndexesManagerAcl struct { Removable *bool `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing *string `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes []string `pulumi:"writes"` } @@ -5629,7 +5956,7 @@ type ShIndexesManagerAclArgs struct { Removable pulumi.BoolPtrInput `pulumi:"removable"` // Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user Sharing pulumi.StringPtrInput `pulumi:"sharing"` - // Properties that indicate write permissions of the resource. + // Properties that indicate resource write permissions. Writes pulumi.StringArrayInput `pulumi:"writes"` } @@ -5760,7 +6087,7 @@ func (o ShIndexesManagerAclOutput) Sharing() pulumi.StringPtrOutput { return o.ApplyT(func(v ShIndexesManagerAcl) *string { return v.Sharing }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o ShIndexesManagerAclOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v ShIndexesManagerAcl) []string { return v.Writes }).(pulumi.StringArrayOutput) } @@ -5889,7 +6216,7 @@ func (o ShIndexesManagerAclPtrOutput) Sharing() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -// Properties that indicate write permissions of the resource. +// Properties that indicate resource write permissions. func (o ShIndexesManagerAclPtrOutput) Writes() pulumi.StringArrayOutput { return o.ApplyT(func(v *ShIndexesManagerAcl) []string { if v == nil { @@ -5924,6 +6251,8 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*InputsTcpSplunkTcpTokenAclPtrInput)(nil)).Elem(), InputsTcpSplunkTcpTokenAclArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*InputsUdpAclInput)(nil)).Elem(), InputsUdpAclArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*InputsUdpAclPtrInput)(nil)).Elem(), InputsUdpAclArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LookupDefinitionAclInput)(nil)).Elem(), LookupDefinitionAclArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*LookupDefinitionAclPtrInput)(nil)).Elem(), LookupDefinitionAclArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*OutputsTcpDefaultAclInput)(nil)).Elem(), OutputsTcpDefaultAclArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*OutputsTcpDefaultAclPtrInput)(nil)).Elem(), OutputsTcpDefaultAclArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*OutputsTcpGroupAclInput)(nil)).Elem(), OutputsTcpGroupAclArgs{}) @@ -5960,6 +6289,8 @@ func init() { pulumi.RegisterOutputType(InputsTcpSplunkTcpTokenAclPtrOutput{}) pulumi.RegisterOutputType(InputsUdpAclOutput{}) pulumi.RegisterOutputType(InputsUdpAclPtrOutput{}) + pulumi.RegisterOutputType(LookupDefinitionAclOutput{}) + pulumi.RegisterOutputType(LookupDefinitionAclPtrOutput{}) pulumi.RegisterOutputType(OutputsTcpDefaultAclOutput{}) pulumi.RegisterOutputType(OutputsTcpDefaultAclPtrOutput{}) pulumi.RegisterOutputType(OutputsTcpGroupAclOutput{}) diff --git a/sdk/java/src/main/java/com/pulumi/splunk/LookupDefinition.java b/sdk/java/src/main/java/com/pulumi/splunk/LookupDefinition.java new file mode 100644 index 00000000..98a64dce --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/splunk/LookupDefinition.java @@ -0,0 +1,173 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.splunk; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Export; +import com.pulumi.core.annotations.ResourceType; +import com.pulumi.core.internal.Codegen; +import com.pulumi.splunk.LookupDefinitionArgs; +import com.pulumi.splunk.Utilities; +import com.pulumi.splunk.inputs.LookupDefinitionState; +import com.pulumi.splunk.outputs.LookupDefinitionAcl; +import java.lang.String; +import javax.annotation.Nullable; + +/** + * ## + * + * # Resource: splunk.LookupDefinition + * + * Manage lookup definitions in Splunk. For more information on lookup definitions, refer to the official Splunk documentation: https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Aboutlookupsandfieldactions + * + * ## Example Usage + * + * <!--Start PulumiCodeChooser --> + *
+ * {@code
+ * package generated_program;
+ * 
+ * import com.pulumi.Context;
+ * import com.pulumi.Pulumi;
+ * import com.pulumi.core.Output;
+ * import com.pulumi.splunk.LookupDefinition;
+ * import com.pulumi.splunk.LookupDefinitionArgs;
+ * import com.pulumi.splunk.inputs.LookupDefinitionAclArgs;
+ * import java.util.List;
+ * import java.util.ArrayList;
+ * import java.util.Map;
+ * import java.io.File;
+ * import java.nio.file.Files;
+ * import java.nio.file.Paths;
+ * 
+ * public class App {
+ *     public static void main(String[] args) {
+ *         Pulumi.run(App::stack);
+ *     }
+ * 
+ *     public static void stack(Context ctx) {
+ *         var example = new LookupDefinition("example", LookupDefinitionArgs.builder()
+ *             .name("example_lookup_definition")
+ *             .filename("example_lookup_file.csv")
+ *             .acl(LookupDefinitionAclArgs.builder()
+ *                 .owner("admin")
+ *                 .app("search")
+ *                 .sharing("app")
+ *                 .reads("*")
+ *                 .writes("admin")
+ *                 .build())
+ *             .build());
+ * 
+ *     }
+ * }
+ * }
+ * 
+ * <!--End PulumiCodeChooser --> + * + * ## Validation Rules + * + * When `acl.sharing` is set to `user`, the `acl.read` and `acl.write` fields must not be explicitly set. Setting them will trigger a validation error. + * + */ +@ResourceType(type="splunk:index/lookupDefinition:LookupDefinition") +public class LookupDefinition extends com.pulumi.resources.CustomResource { + /** + * Defines the access control list (ACL) for the lookup definition. See acl.md for more details. + * + */ + @Export(name="acl", refs={LookupDefinitionAcl.class}, tree="[0]") + private Output acl; + + /** + * @return Defines the access control list (ACL) for the lookup definition. See acl.md for more details. + * + */ + public Output acl() { + return this.acl; + } + /** + * The filename for the lookup table, usually ending in `.csv`. + * + */ + @Export(name="filename", refs={String.class}, tree="[0]") + private Output filename; + + /** + * @return The filename for the lookup table, usually ending in `.csv`. + * + */ + public Output filename() { + return this.filename; + } + /** + * A unique name for the lookup definition within the app context. + * + */ + @Export(name="name", refs={String.class}, tree="[0]") + private Output name; + + /** + * @return A unique name for the lookup definition within the app context. + * + */ + public Output name() { + return this.name; + } + + /** + * + * @param name The _unique_ name of the resulting resource. + */ + public LookupDefinition(java.lang.String name) { + this(name, LookupDefinitionArgs.Empty); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + */ + public LookupDefinition(java.lang.String name, LookupDefinitionArgs args) { + this(name, args, null); + } + /** + * + * @param name The _unique_ name of the resulting resource. + * @param args The arguments to use to populate this resource's properties. + * @param options A bag of options that control this resource's behavior. + */ + public LookupDefinition(java.lang.String name, LookupDefinitionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/lookupDefinition:LookupDefinition", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); + } + + private LookupDefinition(java.lang.String name, Output id, @Nullable LookupDefinitionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + super("splunk:index/lookupDefinition:LookupDefinition", name, state, makeResourceOptions(options, id), false); + } + + private static LookupDefinitionArgs makeArgs(LookupDefinitionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? LookupDefinitionArgs.Empty : args; + } + + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { + var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() + .version(Utilities.getVersion()) + .build(); + return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); + } + + /** + * Get an existing Host resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state + * @param options Optional settings to control the behavior of the CustomResource. + */ + public static LookupDefinition get(java.lang.String name, Output id, @Nullable LookupDefinitionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { + return new LookupDefinition(name, id, state, options); + } +} diff --git a/sdk/java/src/main/java/com/pulumi/splunk/LookupDefinitionArgs.java b/sdk/java/src/main/java/com/pulumi/splunk/LookupDefinitionArgs.java new file mode 100644 index 00000000..96268b3f --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/splunk/LookupDefinitionArgs.java @@ -0,0 +1,165 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.splunk; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import com.pulumi.splunk.inputs.LookupDefinitionAclArgs; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class LookupDefinitionArgs extends com.pulumi.resources.ResourceArgs { + + public static final LookupDefinitionArgs Empty = new LookupDefinitionArgs(); + + /** + * Defines the access control list (ACL) for the lookup definition. See acl.md for more details. + * + */ + @Import(name="acl") + private @Nullable Output acl; + + /** + * @return Defines the access control list (ACL) for the lookup definition. See acl.md for more details. + * + */ + public Optional> acl() { + return Optional.ofNullable(this.acl); + } + + /** + * The filename for the lookup table, usually ending in `.csv`. + * + */ + @Import(name="filename", required=true) + private Output filename; + + /** + * @return The filename for the lookup table, usually ending in `.csv`. + * + */ + public Output filename() { + return this.filename; + } + + /** + * A unique name for the lookup definition within the app context. + * + */ + @Import(name="name", required=true) + private Output name; + + /** + * @return A unique name for the lookup definition within the app context. + * + */ + public Output name() { + return this.name; + } + + private LookupDefinitionArgs() {} + + private LookupDefinitionArgs(LookupDefinitionArgs $) { + this.acl = $.acl; + this.filename = $.filename; + this.name = $.name; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LookupDefinitionArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LookupDefinitionArgs $; + + public Builder() { + $ = new LookupDefinitionArgs(); + } + + public Builder(LookupDefinitionArgs defaults) { + $ = new LookupDefinitionArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param acl Defines the access control list (ACL) for the lookup definition. See acl.md for more details. + * + * @return builder + * + */ + public Builder acl(@Nullable Output acl) { + $.acl = acl; + return this; + } + + /** + * @param acl Defines the access control list (ACL) for the lookup definition. See acl.md for more details. + * + * @return builder + * + */ + public Builder acl(LookupDefinitionAclArgs acl) { + return acl(Output.of(acl)); + } + + /** + * @param filename The filename for the lookup table, usually ending in `.csv`. + * + * @return builder + * + */ + public Builder filename(Output filename) { + $.filename = filename; + return this; + } + + /** + * @param filename The filename for the lookup table, usually ending in `.csv`. + * + * @return builder + * + */ + public Builder filename(String filename) { + return filename(Output.of(filename)); + } + + /** + * @param name A unique name for the lookup definition within the app context. + * + * @return builder + * + */ + public Builder name(Output name) { + $.name = name; + return this; + } + + /** + * @param name A unique name for the lookup definition within the app context. + * + * @return builder + * + */ + public Builder name(String name) { + return name(Output.of(name)); + } + + public LookupDefinitionArgs build() { + if ($.filename == null) { + throw new MissingRequiredPropertyException("LookupDefinitionArgs", "filename"); + } + if ($.name == null) { + throw new MissingRequiredPropertyException("LookupDefinitionArgs", "name"); + } + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/splunk/inputs/AppsLocalAclArgs.java b/sdk/java/src/main/java/com/pulumi/splunk/inputs/AppsLocalAclArgs.java index d8ed74ce..cc918a0d 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/inputs/AppsLocalAclArgs.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/inputs/AppsLocalAclArgs.java @@ -168,14 +168,14 @@ public Optional> sharing() { } /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. * */ @Import(name="writes") private @Nullable Output> writes; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public Optional>> writes() { @@ -437,7 +437,7 @@ public Builder sharing(String sharing) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -448,7 +448,7 @@ public Builder writes(@Nullable Output> writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -458,7 +458,7 @@ public Builder writes(List writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/splunk/inputs/ConfigsConfAclArgs.java b/sdk/java/src/main/java/com/pulumi/splunk/inputs/ConfigsConfAclArgs.java index 04934b09..05a65a57 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/inputs/ConfigsConfAclArgs.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/inputs/ConfigsConfAclArgs.java @@ -168,14 +168,14 @@ public Optional> sharing() { } /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. * */ @Import(name="writes") private @Nullable Output> writes; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public Optional>> writes() { @@ -437,7 +437,7 @@ public Builder sharing(String sharing) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -448,7 +448,7 @@ public Builder writes(@Nullable Output> writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -458,7 +458,7 @@ public Builder writes(List writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/splunk/inputs/DataUiViewsAclArgs.java b/sdk/java/src/main/java/com/pulumi/splunk/inputs/DataUiViewsAclArgs.java index f3a068ae..73f49d35 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/inputs/DataUiViewsAclArgs.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/inputs/DataUiViewsAclArgs.java @@ -168,14 +168,14 @@ public Optional> sharing() { } /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. * */ @Import(name="writes") private @Nullable Output> writes; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public Optional>> writes() { @@ -437,7 +437,7 @@ public Builder sharing(String sharing) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -448,7 +448,7 @@ public Builder writes(@Nullable Output> writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -458,7 +458,7 @@ public Builder writes(List writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/splunk/inputs/GenericAclAclArgs.java b/sdk/java/src/main/java/com/pulumi/splunk/inputs/GenericAclAclArgs.java index d30c1bd3..dee2766e 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/inputs/GenericAclAclArgs.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/inputs/GenericAclAclArgs.java @@ -168,14 +168,14 @@ public Optional> sharing() { } /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. * */ @Import(name="writes") private @Nullable Output> writes; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public Optional>> writes() { @@ -437,7 +437,7 @@ public Builder sharing(String sharing) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -448,7 +448,7 @@ public Builder writes(@Nullable Output> writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -458,7 +458,7 @@ public Builder writes(List writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/splunk/inputs/IndexesAclArgs.java b/sdk/java/src/main/java/com/pulumi/splunk/inputs/IndexesAclArgs.java index 119cb632..ff680496 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/inputs/IndexesAclArgs.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/inputs/IndexesAclArgs.java @@ -168,14 +168,14 @@ public Optional> sharing() { } /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. * */ @Import(name="writes") private @Nullable Output> writes; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public Optional>> writes() { @@ -437,7 +437,7 @@ public Builder sharing(String sharing) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -448,7 +448,7 @@ public Builder writes(@Nullable Output> writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -458,7 +458,7 @@ public Builder writes(List writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/splunk/inputs/InputsHttpEventCollectorAclArgs.java b/sdk/java/src/main/java/com/pulumi/splunk/inputs/InputsHttpEventCollectorAclArgs.java index c10ea17d..062c10a6 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/inputs/InputsHttpEventCollectorAclArgs.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/inputs/InputsHttpEventCollectorAclArgs.java @@ -168,14 +168,14 @@ public Optional> sharing() { } /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. * */ @Import(name="writes") private @Nullable Output> writes; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public Optional>> writes() { @@ -437,7 +437,7 @@ public Builder sharing(String sharing) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -448,7 +448,7 @@ public Builder writes(@Nullable Output> writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -458,7 +458,7 @@ public Builder writes(List writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/splunk/inputs/InputsMonitorAclArgs.java b/sdk/java/src/main/java/com/pulumi/splunk/inputs/InputsMonitorAclArgs.java index d47646e2..be409b3f 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/inputs/InputsMonitorAclArgs.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/inputs/InputsMonitorAclArgs.java @@ -168,14 +168,14 @@ public Optional> sharing() { } /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. * */ @Import(name="writes") private @Nullable Output> writes; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public Optional>> writes() { @@ -437,7 +437,7 @@ public Builder sharing(String sharing) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -448,7 +448,7 @@ public Builder writes(@Nullable Output> writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -458,7 +458,7 @@ public Builder writes(List writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/splunk/inputs/InputsScriptAclArgs.java b/sdk/java/src/main/java/com/pulumi/splunk/inputs/InputsScriptAclArgs.java index c63bb389..7145107a 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/inputs/InputsScriptAclArgs.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/inputs/InputsScriptAclArgs.java @@ -168,14 +168,14 @@ public Optional> sharing() { } /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. * */ @Import(name="writes") private @Nullable Output> writes; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public Optional>> writes() { @@ -437,7 +437,7 @@ public Builder sharing(String sharing) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -448,7 +448,7 @@ public Builder writes(@Nullable Output> writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -458,7 +458,7 @@ public Builder writes(List writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/splunk/inputs/InputsTcpCookedAclArgs.java b/sdk/java/src/main/java/com/pulumi/splunk/inputs/InputsTcpCookedAclArgs.java index 27c478d8..4e650247 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/inputs/InputsTcpCookedAclArgs.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/inputs/InputsTcpCookedAclArgs.java @@ -168,14 +168,14 @@ public Optional> sharing() { } /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. * */ @Import(name="writes") private @Nullable Output> writes; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public Optional>> writes() { @@ -437,7 +437,7 @@ public Builder sharing(String sharing) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -448,7 +448,7 @@ public Builder writes(@Nullable Output> writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -458,7 +458,7 @@ public Builder writes(List writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/splunk/inputs/InputsTcpRawAclArgs.java b/sdk/java/src/main/java/com/pulumi/splunk/inputs/InputsTcpRawAclArgs.java index c0c2c24d..894df4a0 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/inputs/InputsTcpRawAclArgs.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/inputs/InputsTcpRawAclArgs.java @@ -168,14 +168,14 @@ public Optional> sharing() { } /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. * */ @Import(name="writes") private @Nullable Output> writes; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public Optional>> writes() { @@ -437,7 +437,7 @@ public Builder sharing(String sharing) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -448,7 +448,7 @@ public Builder writes(@Nullable Output> writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -458,7 +458,7 @@ public Builder writes(List writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/splunk/inputs/InputsTcpSplunkTcpTokenAclArgs.java b/sdk/java/src/main/java/com/pulumi/splunk/inputs/InputsTcpSplunkTcpTokenAclArgs.java index bc5598de..f114ee71 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/inputs/InputsTcpSplunkTcpTokenAclArgs.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/inputs/InputsTcpSplunkTcpTokenAclArgs.java @@ -168,14 +168,14 @@ public Optional> sharing() { } /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. * */ @Import(name="writes") private @Nullable Output> writes; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public Optional>> writes() { @@ -437,7 +437,7 @@ public Builder sharing(String sharing) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -448,7 +448,7 @@ public Builder writes(@Nullable Output> writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -458,7 +458,7 @@ public Builder writes(List writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/splunk/inputs/InputsUdpAclArgs.java b/sdk/java/src/main/java/com/pulumi/splunk/inputs/InputsUdpAclArgs.java index 0a21156c..f8f786fc 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/inputs/InputsUdpAclArgs.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/inputs/InputsUdpAclArgs.java @@ -168,14 +168,14 @@ public Optional> sharing() { } /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. * */ @Import(name="writes") private @Nullable Output> writes; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public Optional>> writes() { @@ -437,7 +437,7 @@ public Builder sharing(String sharing) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -448,7 +448,7 @@ public Builder writes(@Nullable Output> writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -458,7 +458,7 @@ public Builder writes(List writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/splunk/inputs/LookupDefinitionAclArgs.java b/sdk/java/src/main/java/com/pulumi/splunk/inputs/LookupDefinitionAclArgs.java new file mode 100644 index 00000000..82d67743 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/splunk/inputs/LookupDefinitionAclArgs.java @@ -0,0 +1,475 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.splunk.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Boolean; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class LookupDefinitionAclArgs extends com.pulumi.resources.ResourceArgs { + + public static final LookupDefinitionAclArgs Empty = new LookupDefinitionAclArgs(); + + /** + * The app context for the resource. Required for updating saved search ACL properties. Allowed values are:The name of an app and system + * + */ + @Import(name="app") + private @Nullable Output app; + + /** + * @return The app context for the resource. Required for updating saved search ACL properties. Allowed values are:The name of an app and system + * + */ + public Optional> app() { + return Optional.ofNullable(this.app); + } + + /** + * Indicates if the active user can change permissions for this object. Defaults to true. + * + */ + @Import(name="canChangePerms") + private @Nullable Output canChangePerms; + + /** + * @return Indicates if the active user can change permissions for this object. Defaults to true. + * + */ + public Optional> canChangePerms() { + return Optional.ofNullable(this.canChangePerms); + } + + /** + * Indicates if the active user can change sharing to app level. Defaults to true. + * + */ + @Import(name="canShareApp") + private @Nullable Output canShareApp; + + /** + * @return Indicates if the active user can change sharing to app level. Defaults to true. + * + */ + public Optional> canShareApp() { + return Optional.ofNullable(this.canShareApp); + } + + /** + * Indicates if the active user can change sharing to system level. Defaults to true. + * + */ + @Import(name="canShareGlobal") + private @Nullable Output canShareGlobal; + + /** + * @return Indicates if the active user can change sharing to system level. Defaults to true. + * + */ + public Optional> canShareGlobal() { + return Optional.ofNullable(this.canShareGlobal); + } + + /** + * Indicates if the active user can change sharing to user level. Defaults to true. + * + */ + @Import(name="canShareUser") + private @Nullable Output canShareUser; + + /** + * @return Indicates if the active user can change sharing to user level. Defaults to true. + * + */ + public Optional> canShareUser() { + return Optional.ofNullable(this.canShareUser); + } + + /** + * Indicates if the active user can edit this object. Defaults to true. + * + */ + @Import(name="canWrite") + private @Nullable Output canWrite; + + /** + * @return Indicates if the active user can edit this object. Defaults to true. + * + */ + public Optional> canWrite() { + return Optional.ofNullable(this.canWrite); + } + + /** + * 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. + * + */ + @Import(name="owner") + private @Nullable Output owner; + + /** + * @return 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. + * + */ + public Optional> owner() { + return Optional.ofNullable(this.owner); + } + + /** + * Properties that indicate resource read permissions. + * + */ + @Import(name="reads") + private @Nullable Output> reads; + + /** + * @return Properties that indicate resource read permissions. + * + */ + public Optional>> reads() { + return Optional.ofNullable(this.reads); + } + + /** + * Indicates whether an admin or user with sufficient permissions can delete the entity. + * + */ + @Import(name="removable") + private @Nullable Output removable; + + /** + * @return Indicates whether an admin or user with sufficient permissions can delete the entity. + * + */ + public Optional> removable() { + return Optional.ofNullable(this.removable); + } + + /** + * Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user + * + */ + @Import(name="sharing") + private @Nullable Output sharing; + + /** + * @return Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user + * + */ + public Optional> sharing() { + return Optional.ofNullable(this.sharing); + } + + /** + * Properties that indicate resource write permissions. + * + */ + @Import(name="writes") + private @Nullable Output> writes; + + /** + * @return Properties that indicate resource write permissions. + * + */ + public Optional>> writes() { + return Optional.ofNullable(this.writes); + } + + private LookupDefinitionAclArgs() {} + + private LookupDefinitionAclArgs(LookupDefinitionAclArgs $) { + this.app = $.app; + this.canChangePerms = $.canChangePerms; + this.canShareApp = $.canShareApp; + this.canShareGlobal = $.canShareGlobal; + this.canShareUser = $.canShareUser; + this.canWrite = $.canWrite; + this.owner = $.owner; + this.reads = $.reads; + this.removable = $.removable; + this.sharing = $.sharing; + this.writes = $.writes; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LookupDefinitionAclArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LookupDefinitionAclArgs $; + + public Builder() { + $ = new LookupDefinitionAclArgs(); + } + + public Builder(LookupDefinitionAclArgs defaults) { + $ = new LookupDefinitionAclArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param app The app context for the resource. Required for updating saved search ACL properties. Allowed values are:The name of an app and system + * + * @return builder + * + */ + public Builder app(@Nullable Output app) { + $.app = app; + return this; + } + + /** + * @param app The app context for the resource. Required for updating saved search ACL properties. Allowed values are:The name of an app and system + * + * @return builder + * + */ + public Builder app(String app) { + return app(Output.of(app)); + } + + /** + * @param canChangePerms Indicates if the active user can change permissions for this object. Defaults to true. + * + * @return builder + * + */ + public Builder canChangePerms(@Nullable Output canChangePerms) { + $.canChangePerms = canChangePerms; + return this; + } + + /** + * @param canChangePerms Indicates if the active user can change permissions for this object. Defaults to true. + * + * @return builder + * + */ + public Builder canChangePerms(Boolean canChangePerms) { + return canChangePerms(Output.of(canChangePerms)); + } + + /** + * @param canShareApp Indicates if the active user can change sharing to app level. Defaults to true. + * + * @return builder + * + */ + public Builder canShareApp(@Nullable Output canShareApp) { + $.canShareApp = canShareApp; + return this; + } + + /** + * @param canShareApp Indicates if the active user can change sharing to app level. Defaults to true. + * + * @return builder + * + */ + public Builder canShareApp(Boolean canShareApp) { + return canShareApp(Output.of(canShareApp)); + } + + /** + * @param canShareGlobal Indicates if the active user can change sharing to system level. Defaults to true. + * + * @return builder + * + */ + public Builder canShareGlobal(@Nullable Output canShareGlobal) { + $.canShareGlobal = canShareGlobal; + return this; + } + + /** + * @param canShareGlobal Indicates if the active user can change sharing to system level. Defaults to true. + * + * @return builder + * + */ + public Builder canShareGlobal(Boolean canShareGlobal) { + return canShareGlobal(Output.of(canShareGlobal)); + } + + /** + * @param canShareUser Indicates if the active user can change sharing to user level. Defaults to true. + * + * @return builder + * + */ + public Builder canShareUser(@Nullable Output canShareUser) { + $.canShareUser = canShareUser; + return this; + } + + /** + * @param canShareUser Indicates if the active user can change sharing to user level. Defaults to true. + * + * @return builder + * + */ + public Builder canShareUser(Boolean canShareUser) { + return canShareUser(Output.of(canShareUser)); + } + + /** + * @param canWrite Indicates if the active user can edit this object. Defaults to true. + * + * @return builder + * + */ + public Builder canWrite(@Nullable Output canWrite) { + $.canWrite = canWrite; + return this; + } + + /** + * @param canWrite Indicates if the active user can edit this object. Defaults to true. + * + * @return builder + * + */ + public Builder canWrite(Boolean canWrite) { + return canWrite(Output.of(canWrite)); + } + + /** + * @param owner 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. + * + * @return builder + * + */ + public Builder owner(@Nullable Output owner) { + $.owner = owner; + return this; + } + + /** + * @param owner 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. + * + * @return builder + * + */ + public Builder owner(String owner) { + return owner(Output.of(owner)); + } + + /** + * @param reads Properties that indicate resource read permissions. + * + * @return builder + * + */ + public Builder reads(@Nullable Output> reads) { + $.reads = reads; + return this; + } + + /** + * @param reads Properties that indicate resource read permissions. + * + * @return builder + * + */ + public Builder reads(List reads) { + return reads(Output.of(reads)); + } + + /** + * @param reads Properties that indicate resource read permissions. + * + * @return builder + * + */ + public Builder reads(String... reads) { + return reads(List.of(reads)); + } + + /** + * @param removable Indicates whether an admin or user with sufficient permissions can delete the entity. + * + * @return builder + * + */ + public Builder removable(@Nullable Output removable) { + $.removable = removable; + return this; + } + + /** + * @param removable Indicates whether an admin or user with sufficient permissions can delete the entity. + * + * @return builder + * + */ + public Builder removable(Boolean removable) { + return removable(Output.of(removable)); + } + + /** + * @param sharing Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user + * + * @return builder + * + */ + public Builder sharing(@Nullable Output sharing) { + $.sharing = sharing; + return this; + } + + /** + * @param sharing Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user + * + * @return builder + * + */ + public Builder sharing(String sharing) { + return sharing(Output.of(sharing)); + } + + /** + * @param writes Properties that indicate resource write permissions. + * + * @return builder + * + */ + public Builder writes(@Nullable Output> writes) { + $.writes = writes; + return this; + } + + /** + * @param writes Properties that indicate resource write permissions. + * + * @return builder + * + */ + public Builder writes(List writes) { + return writes(Output.of(writes)); + } + + /** + * @param writes Properties that indicate resource write permissions. + * + * @return builder + * + */ + public Builder writes(String... writes) { + return writes(List.of(writes)); + } + + public LookupDefinitionAclArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/splunk/inputs/LookupDefinitionState.java b/sdk/java/src/main/java/com/pulumi/splunk/inputs/LookupDefinitionState.java new file mode 100644 index 00000000..646e0637 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/splunk/inputs/LookupDefinitionState.java @@ -0,0 +1,158 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.splunk.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import com.pulumi.splunk.inputs.LookupDefinitionAclArgs; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class LookupDefinitionState extends com.pulumi.resources.ResourceArgs { + + public static final LookupDefinitionState Empty = new LookupDefinitionState(); + + /** + * Defines the access control list (ACL) for the lookup definition. See acl.md for more details. + * + */ + @Import(name="acl") + private @Nullable Output acl; + + /** + * @return Defines the access control list (ACL) for the lookup definition. See acl.md for more details. + * + */ + public Optional> acl() { + return Optional.ofNullable(this.acl); + } + + /** + * The filename for the lookup table, usually ending in `.csv`. + * + */ + @Import(name="filename") + private @Nullable Output filename; + + /** + * @return The filename for the lookup table, usually ending in `.csv`. + * + */ + public Optional> filename() { + return Optional.ofNullable(this.filename); + } + + /** + * A unique name for the lookup definition within the app context. + * + */ + @Import(name="name") + private @Nullable Output name; + + /** + * @return A unique name for the lookup definition within the app context. + * + */ + public Optional> name() { + return Optional.ofNullable(this.name); + } + + private LookupDefinitionState() {} + + private LookupDefinitionState(LookupDefinitionState $) { + this.acl = $.acl; + this.filename = $.filename; + this.name = $.name; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(LookupDefinitionState defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private LookupDefinitionState $; + + public Builder() { + $ = new LookupDefinitionState(); + } + + public Builder(LookupDefinitionState defaults) { + $ = new LookupDefinitionState(Objects.requireNonNull(defaults)); + } + + /** + * @param acl Defines the access control list (ACL) for the lookup definition. See acl.md for more details. + * + * @return builder + * + */ + public Builder acl(@Nullable Output acl) { + $.acl = acl; + return this; + } + + /** + * @param acl Defines the access control list (ACL) for the lookup definition. See acl.md for more details. + * + * @return builder + * + */ + public Builder acl(LookupDefinitionAclArgs acl) { + return acl(Output.of(acl)); + } + + /** + * @param filename The filename for the lookup table, usually ending in `.csv`. + * + * @return builder + * + */ + public Builder filename(@Nullable Output filename) { + $.filename = filename; + return this; + } + + /** + * @param filename The filename for the lookup table, usually ending in `.csv`. + * + * @return builder + * + */ + public Builder filename(String filename) { + return filename(Output.of(filename)); + } + + /** + * @param name A unique name for the lookup definition within the app context. + * + * @return builder + * + */ + public Builder name(@Nullable Output name) { + $.name = name; + return this; + } + + /** + * @param name A unique name for the lookup definition within the app context. + * + * @return builder + * + */ + public Builder name(String name) { + return name(Output.of(name)); + } + + public LookupDefinitionState build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/splunk/inputs/OutputsTcpDefaultAclArgs.java b/sdk/java/src/main/java/com/pulumi/splunk/inputs/OutputsTcpDefaultAclArgs.java index 84f5c7ee..21a5d1b5 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/inputs/OutputsTcpDefaultAclArgs.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/inputs/OutputsTcpDefaultAclArgs.java @@ -168,14 +168,14 @@ public Optional> sharing() { } /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. * */ @Import(name="writes") private @Nullable Output> writes; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public Optional>> writes() { @@ -437,7 +437,7 @@ public Builder sharing(String sharing) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -448,7 +448,7 @@ public Builder writes(@Nullable Output> writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -458,7 +458,7 @@ public Builder writes(List writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/splunk/inputs/OutputsTcpGroupAclArgs.java b/sdk/java/src/main/java/com/pulumi/splunk/inputs/OutputsTcpGroupAclArgs.java index 3d2044ab..afc0c3bb 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/inputs/OutputsTcpGroupAclArgs.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/inputs/OutputsTcpGroupAclArgs.java @@ -168,14 +168,14 @@ public Optional> sharing() { } /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. * */ @Import(name="writes") private @Nullable Output> writes; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public Optional>> writes() { @@ -437,7 +437,7 @@ public Builder sharing(String sharing) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -448,7 +448,7 @@ public Builder writes(@Nullable Output> writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -458,7 +458,7 @@ public Builder writes(List writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/splunk/inputs/OutputsTcpServerAclArgs.java b/sdk/java/src/main/java/com/pulumi/splunk/inputs/OutputsTcpServerAclArgs.java index e9abc563..65388503 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/inputs/OutputsTcpServerAclArgs.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/inputs/OutputsTcpServerAclArgs.java @@ -168,14 +168,14 @@ public Optional> sharing() { } /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. * */ @Import(name="writes") private @Nullable Output> writes; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public Optional>> writes() { @@ -437,7 +437,7 @@ public Builder sharing(String sharing) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -448,7 +448,7 @@ public Builder writes(@Nullable Output> writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -458,7 +458,7 @@ public Builder writes(List writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/splunk/inputs/OutputsTcpSyslogAclArgs.java b/sdk/java/src/main/java/com/pulumi/splunk/inputs/OutputsTcpSyslogAclArgs.java index 044057f9..8e399bb9 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/inputs/OutputsTcpSyslogAclArgs.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/inputs/OutputsTcpSyslogAclArgs.java @@ -168,14 +168,14 @@ public Optional> sharing() { } /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. * */ @Import(name="writes") private @Nullable Output> writes; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public Optional>> writes() { @@ -437,7 +437,7 @@ public Builder sharing(String sharing) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -448,7 +448,7 @@ public Builder writes(@Nullable Output> writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -458,7 +458,7 @@ public Builder writes(List writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/splunk/inputs/SavedSearchesAclArgs.java b/sdk/java/src/main/java/com/pulumi/splunk/inputs/SavedSearchesAclArgs.java index c4d4d53d..165a8d9d 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/inputs/SavedSearchesAclArgs.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/inputs/SavedSearchesAclArgs.java @@ -168,14 +168,14 @@ public Optional> sharing() { } /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. * */ @Import(name="writes") private @Nullable Output> writes; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public Optional>> writes() { @@ -437,7 +437,7 @@ public Builder sharing(String sharing) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -448,7 +448,7 @@ public Builder writes(@Nullable Output> writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -458,7 +458,7 @@ public Builder writes(List writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/splunk/inputs/ShIndexesManagerAclArgs.java b/sdk/java/src/main/java/com/pulumi/splunk/inputs/ShIndexesManagerAclArgs.java index 6a1fefc2..1ffd96a6 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/inputs/ShIndexesManagerAclArgs.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/inputs/ShIndexesManagerAclArgs.java @@ -168,14 +168,14 @@ public Optional> sharing() { } /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. * */ @Import(name="writes") private @Nullable Output> writes; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public Optional>> writes() { @@ -437,7 +437,7 @@ public Builder sharing(String sharing) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -448,7 +448,7 @@ public Builder writes(@Nullable Output> writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * @@ -458,7 +458,7 @@ public Builder writes(List writes) { } /** - * @param writes Properties that indicate write permissions of the resource. + * @param writes Properties that indicate resource write permissions. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/splunk/outputs/AppsLocalAcl.java b/sdk/java/src/main/java/com/pulumi/splunk/outputs/AppsLocalAcl.java index ab3ae63d..03c762c2 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/outputs/AppsLocalAcl.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/outputs/AppsLocalAcl.java @@ -64,7 +64,7 @@ public final class AppsLocalAcl { */ private @Nullable String sharing; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ private @Nullable List writes; @@ -141,7 +141,7 @@ public Optional sharing() { return Optional.ofNullable(this.sharing); } /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public List writes() { diff --git a/sdk/java/src/main/java/com/pulumi/splunk/outputs/ConfigsConfAcl.java b/sdk/java/src/main/java/com/pulumi/splunk/outputs/ConfigsConfAcl.java index 23199b26..ebfeea42 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/outputs/ConfigsConfAcl.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/outputs/ConfigsConfAcl.java @@ -64,7 +64,7 @@ public final class ConfigsConfAcl { */ private @Nullable String sharing; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ private @Nullable List writes; @@ -141,7 +141,7 @@ public Optional sharing() { return Optional.ofNullable(this.sharing); } /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public List writes() { diff --git a/sdk/java/src/main/java/com/pulumi/splunk/outputs/DataUiViewsAcl.java b/sdk/java/src/main/java/com/pulumi/splunk/outputs/DataUiViewsAcl.java index be8e181d..71f69e56 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/outputs/DataUiViewsAcl.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/outputs/DataUiViewsAcl.java @@ -64,7 +64,7 @@ public final class DataUiViewsAcl { */ private @Nullable String sharing; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ private @Nullable List writes; @@ -141,7 +141,7 @@ public Optional sharing() { return Optional.ofNullable(this.sharing); } /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public List writes() { diff --git a/sdk/java/src/main/java/com/pulumi/splunk/outputs/GenericAclAcl.java b/sdk/java/src/main/java/com/pulumi/splunk/outputs/GenericAclAcl.java index 44f9650c..2e93dca5 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/outputs/GenericAclAcl.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/outputs/GenericAclAcl.java @@ -64,7 +64,7 @@ public final class GenericAclAcl { */ private @Nullable String sharing; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ private @Nullable List writes; @@ -141,7 +141,7 @@ public Optional sharing() { return Optional.ofNullable(this.sharing); } /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public List writes() { diff --git a/sdk/java/src/main/java/com/pulumi/splunk/outputs/IndexesAcl.java b/sdk/java/src/main/java/com/pulumi/splunk/outputs/IndexesAcl.java index f8ae5c87..d02e3507 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/outputs/IndexesAcl.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/outputs/IndexesAcl.java @@ -64,7 +64,7 @@ public final class IndexesAcl { */ private @Nullable String sharing; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ private @Nullable List writes; @@ -141,7 +141,7 @@ public Optional sharing() { return Optional.ofNullable(this.sharing); } /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public List writes() { diff --git a/sdk/java/src/main/java/com/pulumi/splunk/outputs/InputsHttpEventCollectorAcl.java b/sdk/java/src/main/java/com/pulumi/splunk/outputs/InputsHttpEventCollectorAcl.java index cf9137c1..ecf89a39 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/outputs/InputsHttpEventCollectorAcl.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/outputs/InputsHttpEventCollectorAcl.java @@ -64,7 +64,7 @@ public final class InputsHttpEventCollectorAcl { */ private @Nullable String sharing; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ private @Nullable List writes; @@ -141,7 +141,7 @@ public Optional sharing() { return Optional.ofNullable(this.sharing); } /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public List writes() { diff --git a/sdk/java/src/main/java/com/pulumi/splunk/outputs/InputsMonitorAcl.java b/sdk/java/src/main/java/com/pulumi/splunk/outputs/InputsMonitorAcl.java index c5c21ad3..24de89f7 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/outputs/InputsMonitorAcl.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/outputs/InputsMonitorAcl.java @@ -64,7 +64,7 @@ public final class InputsMonitorAcl { */ private @Nullable String sharing; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ private @Nullable List writes; @@ -141,7 +141,7 @@ public Optional sharing() { return Optional.ofNullable(this.sharing); } /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public List writes() { diff --git a/sdk/java/src/main/java/com/pulumi/splunk/outputs/InputsScriptAcl.java b/sdk/java/src/main/java/com/pulumi/splunk/outputs/InputsScriptAcl.java index 1a6cccd3..0ef2134f 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/outputs/InputsScriptAcl.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/outputs/InputsScriptAcl.java @@ -64,7 +64,7 @@ public final class InputsScriptAcl { */ private @Nullable String sharing; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ private @Nullable List writes; @@ -141,7 +141,7 @@ public Optional sharing() { return Optional.ofNullable(this.sharing); } /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public List writes() { diff --git a/sdk/java/src/main/java/com/pulumi/splunk/outputs/InputsTcpCookedAcl.java b/sdk/java/src/main/java/com/pulumi/splunk/outputs/InputsTcpCookedAcl.java index 2c187f80..918751aa 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/outputs/InputsTcpCookedAcl.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/outputs/InputsTcpCookedAcl.java @@ -64,7 +64,7 @@ public final class InputsTcpCookedAcl { */ private @Nullable String sharing; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ private @Nullable List writes; @@ -141,7 +141,7 @@ public Optional sharing() { return Optional.ofNullable(this.sharing); } /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public List writes() { diff --git a/sdk/java/src/main/java/com/pulumi/splunk/outputs/InputsTcpRawAcl.java b/sdk/java/src/main/java/com/pulumi/splunk/outputs/InputsTcpRawAcl.java index da4dfc5c..47b76371 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/outputs/InputsTcpRawAcl.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/outputs/InputsTcpRawAcl.java @@ -64,7 +64,7 @@ public final class InputsTcpRawAcl { */ private @Nullable String sharing; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ private @Nullable List writes; @@ -141,7 +141,7 @@ public Optional sharing() { return Optional.ofNullable(this.sharing); } /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public List writes() { diff --git a/sdk/java/src/main/java/com/pulumi/splunk/outputs/InputsTcpSplunkTcpTokenAcl.java b/sdk/java/src/main/java/com/pulumi/splunk/outputs/InputsTcpSplunkTcpTokenAcl.java index 2bfaf02b..1e44c356 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/outputs/InputsTcpSplunkTcpTokenAcl.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/outputs/InputsTcpSplunkTcpTokenAcl.java @@ -64,7 +64,7 @@ public final class InputsTcpSplunkTcpTokenAcl { */ private @Nullable String sharing; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ private @Nullable List writes; @@ -141,7 +141,7 @@ public Optional sharing() { return Optional.ofNullable(this.sharing); } /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public List writes() { diff --git a/sdk/java/src/main/java/com/pulumi/splunk/outputs/InputsUdpAcl.java b/sdk/java/src/main/java/com/pulumi/splunk/outputs/InputsUdpAcl.java index 5970933a..f8aaa2ec 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/outputs/InputsUdpAcl.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/outputs/InputsUdpAcl.java @@ -64,7 +64,7 @@ public final class InputsUdpAcl { */ private @Nullable String sharing; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ private @Nullable List writes; @@ -141,7 +141,7 @@ public Optional sharing() { return Optional.ofNullable(this.sharing); } /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public List writes() { diff --git a/sdk/java/src/main/java/com/pulumi/splunk/outputs/LookupDefinitionAcl.java b/sdk/java/src/main/java/com/pulumi/splunk/outputs/LookupDefinitionAcl.java new file mode 100644 index 00000000..7a869626 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/splunk/outputs/LookupDefinitionAcl.java @@ -0,0 +1,275 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.splunk.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Boolean; +import java.lang.String; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class LookupDefinitionAcl { + /** + * @return The app context for the resource. Required for updating saved search ACL properties. Allowed values are:The name of an app and system + * + */ + private @Nullable String app; + /** + * @return Indicates if the active user can change permissions for this object. Defaults to true. + * + */ + private @Nullable Boolean canChangePerms; + /** + * @return Indicates if the active user can change sharing to app level. Defaults to true. + * + */ + private @Nullable Boolean canShareApp; + /** + * @return Indicates if the active user can change sharing to system level. Defaults to true. + * + */ + private @Nullable Boolean canShareGlobal; + /** + * @return Indicates if the active user can change sharing to user level. Defaults to true. + * + */ + private @Nullable Boolean canShareUser; + /** + * @return Indicates if the active user can edit this object. Defaults to true. + * + */ + private @Nullable Boolean canWrite; + /** + * @return 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. + * + */ + private @Nullable String owner; + /** + * @return Properties that indicate resource read permissions. + * + */ + private @Nullable List reads; + /** + * @return Indicates whether an admin or user with sufficient permissions can delete the entity. + * + */ + private @Nullable Boolean removable; + /** + * @return Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user + * + */ + private @Nullable String sharing; + /** + * @return Properties that indicate resource write permissions. + * + */ + private @Nullable List writes; + + private LookupDefinitionAcl() {} + /** + * @return The app context for the resource. Required for updating saved search ACL properties. Allowed values are:The name of an app and system + * + */ + public Optional app() { + return Optional.ofNullable(this.app); + } + /** + * @return Indicates if the active user can change permissions for this object. Defaults to true. + * + */ + public Optional canChangePerms() { + return Optional.ofNullable(this.canChangePerms); + } + /** + * @return Indicates if the active user can change sharing to app level. Defaults to true. + * + */ + public Optional canShareApp() { + return Optional.ofNullable(this.canShareApp); + } + /** + * @return Indicates if the active user can change sharing to system level. Defaults to true. + * + */ + public Optional canShareGlobal() { + return Optional.ofNullable(this.canShareGlobal); + } + /** + * @return Indicates if the active user can change sharing to user level. Defaults to true. + * + */ + public Optional canShareUser() { + return Optional.ofNullable(this.canShareUser); + } + /** + * @return Indicates if the active user can edit this object. Defaults to true. + * + */ + public Optional canWrite() { + return Optional.ofNullable(this.canWrite); + } + /** + * @return 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. + * + */ + public Optional owner() { + return Optional.ofNullable(this.owner); + } + /** + * @return Properties that indicate resource read permissions. + * + */ + public List reads() { + return this.reads == null ? List.of() : this.reads; + } + /** + * @return Indicates whether an admin or user with sufficient permissions can delete the entity. + * + */ + public Optional removable() { + return Optional.ofNullable(this.removable); + } + /** + * @return Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user + * + */ + public Optional sharing() { + return Optional.ofNullable(this.sharing); + } + /** + * @return Properties that indicate resource write permissions. + * + */ + public List writes() { + return this.writes == null ? List.of() : this.writes; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(LookupDefinitionAcl defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable String app; + private @Nullable Boolean canChangePerms; + private @Nullable Boolean canShareApp; + private @Nullable Boolean canShareGlobal; + private @Nullable Boolean canShareUser; + private @Nullable Boolean canWrite; + private @Nullable String owner; + private @Nullable List reads; + private @Nullable Boolean removable; + private @Nullable String sharing; + private @Nullable List writes; + public Builder() {} + public Builder(LookupDefinitionAcl defaults) { + Objects.requireNonNull(defaults); + this.app = defaults.app; + this.canChangePerms = defaults.canChangePerms; + this.canShareApp = defaults.canShareApp; + this.canShareGlobal = defaults.canShareGlobal; + this.canShareUser = defaults.canShareUser; + this.canWrite = defaults.canWrite; + this.owner = defaults.owner; + this.reads = defaults.reads; + this.removable = defaults.removable; + this.sharing = defaults.sharing; + this.writes = defaults.writes; + } + + @CustomType.Setter + public Builder app(@Nullable String app) { + + this.app = app; + return this; + } + @CustomType.Setter + public Builder canChangePerms(@Nullable Boolean canChangePerms) { + + this.canChangePerms = canChangePerms; + return this; + } + @CustomType.Setter + public Builder canShareApp(@Nullable Boolean canShareApp) { + + this.canShareApp = canShareApp; + return this; + } + @CustomType.Setter + public Builder canShareGlobal(@Nullable Boolean canShareGlobal) { + + this.canShareGlobal = canShareGlobal; + return this; + } + @CustomType.Setter + public Builder canShareUser(@Nullable Boolean canShareUser) { + + this.canShareUser = canShareUser; + return this; + } + @CustomType.Setter + public Builder canWrite(@Nullable Boolean canWrite) { + + this.canWrite = canWrite; + return this; + } + @CustomType.Setter + public Builder owner(@Nullable String owner) { + + this.owner = owner; + return this; + } + @CustomType.Setter + public Builder reads(@Nullable List reads) { + + this.reads = reads; + return this; + } + public Builder reads(String... reads) { + return reads(List.of(reads)); + } + @CustomType.Setter + public Builder removable(@Nullable Boolean removable) { + + this.removable = removable; + return this; + } + @CustomType.Setter + public Builder sharing(@Nullable String sharing) { + + this.sharing = sharing; + return this; + } + @CustomType.Setter + public Builder writes(@Nullable List writes) { + + this.writes = writes; + return this; + } + public Builder writes(String... writes) { + return writes(List.of(writes)); + } + public LookupDefinitionAcl build() { + final var _resultValue = new LookupDefinitionAcl(); + _resultValue.app = app; + _resultValue.canChangePerms = canChangePerms; + _resultValue.canShareApp = canShareApp; + _resultValue.canShareGlobal = canShareGlobal; + _resultValue.canShareUser = canShareUser; + _resultValue.canWrite = canWrite; + _resultValue.owner = owner; + _resultValue.reads = reads; + _resultValue.removable = removable; + _resultValue.sharing = sharing; + _resultValue.writes = writes; + return _resultValue; + } + } +} diff --git a/sdk/java/src/main/java/com/pulumi/splunk/outputs/OutputsTcpDefaultAcl.java b/sdk/java/src/main/java/com/pulumi/splunk/outputs/OutputsTcpDefaultAcl.java index 972e0719..c64d3f03 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/outputs/OutputsTcpDefaultAcl.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/outputs/OutputsTcpDefaultAcl.java @@ -64,7 +64,7 @@ public final class OutputsTcpDefaultAcl { */ private @Nullable String sharing; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ private @Nullable List writes; @@ -141,7 +141,7 @@ public Optional sharing() { return Optional.ofNullable(this.sharing); } /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public List writes() { diff --git a/sdk/java/src/main/java/com/pulumi/splunk/outputs/OutputsTcpGroupAcl.java b/sdk/java/src/main/java/com/pulumi/splunk/outputs/OutputsTcpGroupAcl.java index ac8192a8..b1468b2c 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/outputs/OutputsTcpGroupAcl.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/outputs/OutputsTcpGroupAcl.java @@ -64,7 +64,7 @@ public final class OutputsTcpGroupAcl { */ private @Nullable String sharing; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ private @Nullable List writes; @@ -141,7 +141,7 @@ public Optional sharing() { return Optional.ofNullable(this.sharing); } /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public List writes() { diff --git a/sdk/java/src/main/java/com/pulumi/splunk/outputs/OutputsTcpServerAcl.java b/sdk/java/src/main/java/com/pulumi/splunk/outputs/OutputsTcpServerAcl.java index 221b060a..d4257ab1 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/outputs/OutputsTcpServerAcl.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/outputs/OutputsTcpServerAcl.java @@ -64,7 +64,7 @@ public final class OutputsTcpServerAcl { */ private @Nullable String sharing; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ private @Nullable List writes; @@ -141,7 +141,7 @@ public Optional sharing() { return Optional.ofNullable(this.sharing); } /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public List writes() { diff --git a/sdk/java/src/main/java/com/pulumi/splunk/outputs/OutputsTcpSyslogAcl.java b/sdk/java/src/main/java/com/pulumi/splunk/outputs/OutputsTcpSyslogAcl.java index 0bcfda15..4614cdae 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/outputs/OutputsTcpSyslogAcl.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/outputs/OutputsTcpSyslogAcl.java @@ -64,7 +64,7 @@ public final class OutputsTcpSyslogAcl { */ private @Nullable String sharing; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ private @Nullable List writes; @@ -141,7 +141,7 @@ public Optional sharing() { return Optional.ofNullable(this.sharing); } /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public List writes() { diff --git a/sdk/java/src/main/java/com/pulumi/splunk/outputs/SavedSearchesAcl.java b/sdk/java/src/main/java/com/pulumi/splunk/outputs/SavedSearchesAcl.java index a932369b..94f5cb20 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/outputs/SavedSearchesAcl.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/outputs/SavedSearchesAcl.java @@ -64,7 +64,7 @@ public final class SavedSearchesAcl { */ private @Nullable String sharing; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ private @Nullable List writes; @@ -141,7 +141,7 @@ public Optional sharing() { return Optional.ofNullable(this.sharing); } /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public List writes() { diff --git a/sdk/java/src/main/java/com/pulumi/splunk/outputs/ShIndexesManagerAcl.java b/sdk/java/src/main/java/com/pulumi/splunk/outputs/ShIndexesManagerAcl.java index 592c8b0b..f7ed9adc 100644 --- a/sdk/java/src/main/java/com/pulumi/splunk/outputs/ShIndexesManagerAcl.java +++ b/sdk/java/src/main/java/com/pulumi/splunk/outputs/ShIndexesManagerAcl.java @@ -64,7 +64,7 @@ public final class ShIndexesManagerAcl { */ private @Nullable String sharing; /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ private @Nullable List writes; @@ -141,7 +141,7 @@ public Optional sharing() { return Optional.ofNullable(this.sharing); } /** - * @return Properties that indicate write permissions of the resource. + * @return Properties that indicate resource write permissions. * */ public List writes() { diff --git a/sdk/nodejs/index.ts b/sdk/nodejs/index.ts index 9e555edd..35c25cff 100644 --- a/sdk/nodejs/index.ts +++ b/sdk/nodejs/index.ts @@ -90,6 +90,11 @@ export type InputsUdp = import("./inputsUdp").InputsUdp; export const InputsUdp: typeof import("./inputsUdp").InputsUdp = null as any; utilities.lazyLoad(exports, ["InputsUdp"], () => require("./inputsUdp")); +export { LookupDefinitionArgs, LookupDefinitionState } from "./lookupDefinition"; +export type LookupDefinition = import("./lookupDefinition").LookupDefinition; +export const LookupDefinition: typeof import("./lookupDefinition").LookupDefinition = null as any; +utilities.lazyLoad(exports, ["LookupDefinition"], () => require("./lookupDefinition")); + export { LookupTableFileArgs, LookupTableFileState } from "./lookupTableFile"; export type LookupTableFile = import("./lookupTableFile").LookupTableFile; export const LookupTableFile: typeof import("./lookupTableFile").LookupTableFile = null as any; @@ -178,6 +183,8 @@ const _module = { return new InputsTcpSsl(name, undefined, { urn }) case "splunk:index/inputsUdp:InputsUdp": return new InputsUdp(name, undefined, { urn }) + case "splunk:index/lookupDefinition:LookupDefinition": + return new LookupDefinition(name, undefined, { urn }) case "splunk:index/lookupTableFile:LookupTableFile": return new LookupTableFile(name, undefined, { urn }) case "splunk:index/outputsTcpDefault:OutputsTcpDefault": @@ -214,6 +221,7 @@ pulumi.runtime.registerResourceModule("splunk", "index/inputsTcpRaw", _module) pulumi.runtime.registerResourceModule("splunk", "index/inputsTcpSplunkTcpToken", _module) pulumi.runtime.registerResourceModule("splunk", "index/inputsTcpSsl", _module) pulumi.runtime.registerResourceModule("splunk", "index/inputsUdp", _module) +pulumi.runtime.registerResourceModule("splunk", "index/lookupDefinition", _module) pulumi.runtime.registerResourceModule("splunk", "index/lookupTableFile", _module) pulumi.runtime.registerResourceModule("splunk", "index/outputsTcpDefault", _module) pulumi.runtime.registerResourceModule("splunk", "index/outputsTcpGroup", _module) diff --git a/sdk/nodejs/lookupDefinition.ts b/sdk/nodejs/lookupDefinition.ts new file mode 100644 index 00000000..4e532ca4 --- /dev/null +++ b/sdk/nodejs/lookupDefinition.ts @@ -0,0 +1,147 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +import * as pulumi from "@pulumi/pulumi"; +import * as inputs from "./types/input"; +import * as outputs from "./types/output"; +import * as utilities from "./utilities"; + +/** + * ## + * + * # Resource: splunk.LookupDefinition + * + * Manage lookup definitions in Splunk. For more information on lookup definitions, refer to the official Splunk documentation: https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Aboutlookupsandfieldactions + * + * ## Example Usage + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as splunk from "@pulumi/splunk"; + * + * const example = new splunk.LookupDefinition("example", { + * name: "example_lookup_definition", + * filename: "example_lookup_file.csv", + * acl: { + * owner: "admin", + * app: "search", + * sharing: "app", + * reads: ["*"], + * writes: ["admin"], + * }, + * }); + * ``` + * + * ## Validation Rules + * + * When `acl.sharing` is set to `user`, the `acl.read` and `acl.write` fields must not be explicitly set. Setting them will trigger a validation error. + */ +export class LookupDefinition extends pulumi.CustomResource { + /** + * Get an existing LookupDefinition resource's state with the given name, ID, and optional extra + * properties used to qualify the lookup. + * + * @param name The _unique_ name of the resulting resource. + * @param id The _unique_ provider ID of the resource to lookup. + * @param state Any extra arguments used during the lookup. + * @param opts Optional settings to control the behavior of the CustomResource. + */ + public static get(name: string, id: pulumi.Input, state?: LookupDefinitionState, opts?: pulumi.CustomResourceOptions): LookupDefinition { + return new LookupDefinition(name, state, { ...opts, id: id }); + } + + /** @internal */ + public static readonly __pulumiType = 'splunk:index/lookupDefinition:LookupDefinition'; + + /** + * Returns true if the given object is an instance of LookupDefinition. This is designed to work even + * when multiple copies of the Pulumi SDK have been loaded into the same process. + */ + public static isInstance(obj: any): obj is LookupDefinition { + if (obj === undefined || obj === null) { + return false; + } + return obj['__pulumiType'] === LookupDefinition.__pulumiType; + } + + /** + * Defines the access control list (ACL) for the lookup definition. See acl.md for more details. + */ + public readonly acl!: pulumi.Output; + /** + * The filename for the lookup table, usually ending in `.csv`. + */ + public readonly filename!: pulumi.Output; + /** + * A unique name for the lookup definition within the app context. + */ + public readonly name!: pulumi.Output; + + /** + * Create a LookupDefinition resource with the given unique name, arguments, and options. + * + * @param name The _unique_ name of the resource. + * @param args The arguments to use to populate this resource's properties. + * @param opts A bag of options that control this resource's behavior. + */ + constructor(name: string, args: LookupDefinitionArgs, opts?: pulumi.CustomResourceOptions) + constructor(name: string, argsOrState?: LookupDefinitionArgs | LookupDefinitionState, opts?: pulumi.CustomResourceOptions) { + let resourceInputs: pulumi.Inputs = {}; + opts = opts || {}; + if (opts.id) { + const state = argsOrState as LookupDefinitionState | undefined; + resourceInputs["acl"] = state ? state.acl : undefined; + resourceInputs["filename"] = state ? state.filename : undefined; + resourceInputs["name"] = state ? state.name : undefined; + } else { + const args = argsOrState as LookupDefinitionArgs | undefined; + if ((!args || args.filename === undefined) && !opts.urn) { + throw new Error("Missing required property 'filename'"); + } + if ((!args || args.name === undefined) && !opts.urn) { + throw new Error("Missing required property 'name'"); + } + resourceInputs["acl"] = args ? args.acl : undefined; + resourceInputs["filename"] = args ? args.filename : undefined; + resourceInputs["name"] = args ? args.name : undefined; + } + opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); + super(LookupDefinition.__pulumiType, name, resourceInputs, opts); + } +} + +/** + * Input properties used for looking up and filtering LookupDefinition resources. + */ +export interface LookupDefinitionState { + /** + * Defines the access control list (ACL) for the lookup definition. See acl.md for more details. + */ + acl?: pulumi.Input; + /** + * The filename for the lookup table, usually ending in `.csv`. + */ + filename?: pulumi.Input; + /** + * A unique name for the lookup definition within the app context. + */ + name?: pulumi.Input; +} + +/** + * The set of arguments for constructing a LookupDefinition resource. + */ +export interface LookupDefinitionArgs { + /** + * Defines the access control list (ACL) for the lookup definition. See acl.md for more details. + */ + acl?: pulumi.Input; + /** + * The filename for the lookup table, usually ending in `.csv`. + */ + filename: pulumi.Input; + /** + * A unique name for the lookup definition within the app context. + */ + name: pulumi.Input; +} diff --git a/sdk/nodejs/tsconfig.json b/sdk/nodejs/tsconfig.json index 36bf992c..ea3a78f1 100644 --- a/sdk/nodejs/tsconfig.json +++ b/sdk/nodejs/tsconfig.json @@ -33,6 +33,7 @@ "inputsTcpSplunkTcpToken.ts", "inputsTcpSsl.ts", "inputsUdp.ts", + "lookupDefinition.ts", "lookupTableFile.ts", "outputsTcpDefault.ts", "outputsTcpGroup.ts", diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index 20d6e4c1..c8d2d7c7 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -47,7 +47,7 @@ export interface AppsLocalAcl { */ sharing?: pulumi.Input; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes?: pulumi.Input[]>; } @@ -94,7 +94,7 @@ export interface ConfigsConfAcl { */ sharing?: pulumi.Input; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes?: pulumi.Input[]>; } @@ -141,7 +141,7 @@ export interface DataUiViewsAcl { */ sharing?: pulumi.Input; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes?: pulumi.Input[]>; } @@ -188,7 +188,7 @@ export interface GenericAclAcl { */ sharing?: pulumi.Input; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes?: pulumi.Input[]>; } @@ -235,7 +235,7 @@ export interface IndexesAcl { */ sharing?: pulumi.Input; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes?: pulumi.Input[]>; } @@ -282,7 +282,7 @@ export interface InputsHttpEventCollectorAcl { */ sharing?: pulumi.Input; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes?: pulumi.Input[]>; } @@ -329,7 +329,7 @@ export interface InputsMonitorAcl { */ sharing?: pulumi.Input; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes?: pulumi.Input[]>; } @@ -376,7 +376,7 @@ export interface InputsScriptAcl { */ sharing?: pulumi.Input; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes?: pulumi.Input[]>; } @@ -423,7 +423,7 @@ export interface InputsTcpCookedAcl { */ sharing?: pulumi.Input; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes?: pulumi.Input[]>; } @@ -470,7 +470,7 @@ export interface InputsTcpRawAcl { */ sharing?: pulumi.Input; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes?: pulumi.Input[]>; } @@ -517,7 +517,7 @@ export interface InputsTcpSplunkTcpTokenAcl { */ sharing?: pulumi.Input; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes?: pulumi.Input[]>; } @@ -564,7 +564,54 @@ export interface InputsUdpAcl { */ sharing?: pulumi.Input; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. + */ + writes?: pulumi.Input[]>; +} + +export interface LookupDefinitionAcl { + /** + * The app context for the resource. Required for updating saved search ACL properties. Allowed values are:The name of an app and system + */ + app?: pulumi.Input; + /** + * Indicates if the active user can change permissions for this object. Defaults to true. + */ + canChangePerms?: pulumi.Input; + /** + * Indicates if the active user can change sharing to app level. Defaults to true. + */ + canShareApp?: pulumi.Input; + /** + * Indicates if the active user can change sharing to system level. Defaults to true. + */ + canShareGlobal?: pulumi.Input; + /** + * Indicates if the active user can change sharing to user level. Defaults to true. + */ + canShareUser?: pulumi.Input; + /** + * Indicates if the active user can edit this object. Defaults to true. + */ + canWrite?: pulumi.Input; + /** + * 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. + */ + owner?: pulumi.Input; + /** + * Properties that indicate resource read permissions. + */ + reads?: pulumi.Input[]>; + /** + * Indicates whether an admin or user with sufficient permissions can delete the entity. + */ + removable?: pulumi.Input; + /** + * Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user + */ + sharing?: pulumi.Input; + /** + * Properties that indicate resource write permissions. */ writes?: pulumi.Input[]>; } @@ -611,7 +658,7 @@ export interface OutputsTcpDefaultAcl { */ sharing?: pulumi.Input; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes?: pulumi.Input[]>; } @@ -658,7 +705,7 @@ export interface OutputsTcpGroupAcl { */ sharing?: pulumi.Input; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes?: pulumi.Input[]>; } @@ -705,7 +752,7 @@ export interface OutputsTcpServerAcl { */ sharing?: pulumi.Input; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes?: pulumi.Input[]>; } @@ -752,7 +799,7 @@ export interface OutputsTcpSyslogAcl { */ sharing?: pulumi.Input; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes?: pulumi.Input[]>; } @@ -799,7 +846,7 @@ export interface SavedSearchesAcl { */ sharing?: pulumi.Input; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes?: pulumi.Input[]>; } @@ -846,7 +893,7 @@ export interface ShIndexesManagerAcl { */ sharing?: pulumi.Input; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes?: pulumi.Input[]>; } diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index ba97ca46..2a578f02 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -47,7 +47,7 @@ export interface AppsLocalAcl { */ sharing: string; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes: string[]; } @@ -94,7 +94,7 @@ export interface ConfigsConfAcl { */ sharing: string; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes: string[]; } @@ -141,7 +141,7 @@ export interface DataUiViewsAcl { */ sharing: string; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes: string[]; } @@ -188,7 +188,7 @@ export interface GenericAclAcl { */ sharing: string; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes: string[]; } @@ -235,7 +235,7 @@ export interface IndexesAcl { */ sharing: string; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes: string[]; } @@ -282,7 +282,7 @@ export interface InputsHttpEventCollectorAcl { */ sharing: string; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes: string[]; } @@ -329,7 +329,7 @@ export interface InputsMonitorAcl { */ sharing: string; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes: string[]; } @@ -376,7 +376,7 @@ export interface InputsScriptAcl { */ sharing: string; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes: string[]; } @@ -423,7 +423,7 @@ export interface InputsTcpCookedAcl { */ sharing: string; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes: string[]; } @@ -470,7 +470,7 @@ export interface InputsTcpRawAcl { */ sharing: string; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes: string[]; } @@ -517,7 +517,7 @@ export interface InputsTcpSplunkTcpTokenAcl { */ sharing: string; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes: string[]; } @@ -564,7 +564,54 @@ export interface InputsUdpAcl { */ sharing: string; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. + */ + writes: string[]; +} + +export interface LookupDefinitionAcl { + /** + * The app context for the resource. Required for updating saved search ACL properties. Allowed values are:The name of an app and system + */ + app: string; + /** + * Indicates if the active user can change permissions for this object. Defaults to true. + */ + canChangePerms: boolean; + /** + * Indicates if the active user can change sharing to app level. Defaults to true. + */ + canShareApp: boolean; + /** + * Indicates if the active user can change sharing to system level. Defaults to true. + */ + canShareGlobal: boolean; + /** + * Indicates if the active user can change sharing to user level. Defaults to true. + */ + canShareUser: boolean; + /** + * Indicates if the active user can edit this object. Defaults to true. + */ + canWrite: boolean; + /** + * 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. + */ + owner: string; + /** + * Properties that indicate resource read permissions. + */ + reads: string[]; + /** + * Indicates whether an admin or user with sufficient permissions can delete the entity. + */ + removable: boolean; + /** + * Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user + */ + sharing: string; + /** + * Properties that indicate resource write permissions. */ writes: string[]; } @@ -611,7 +658,7 @@ export interface OutputsTcpDefaultAcl { */ sharing: string; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes: string[]; } @@ -658,7 +705,7 @@ export interface OutputsTcpGroupAcl { */ sharing: string; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes: string[]; } @@ -705,7 +752,7 @@ export interface OutputsTcpServerAcl { */ sharing: string; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes: string[]; } @@ -752,7 +799,7 @@ export interface OutputsTcpSyslogAcl { */ sharing: string; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes: string[]; } @@ -799,7 +846,7 @@ export interface SavedSearchesAcl { */ sharing: string; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes: string[]; } @@ -846,7 +893,7 @@ export interface ShIndexesManagerAcl { */ sharing: string; /** - * Properties that indicate write permissions of the resource. + * Properties that indicate resource write permissions. */ writes: string[]; } diff --git a/sdk/python/pulumi_splunk/__init__.py b/sdk/python/pulumi_splunk/__init__.py index 390a7e02..897b6a00 100644 --- a/sdk/python/pulumi_splunk/__init__.py +++ b/sdk/python/pulumi_splunk/__init__.py @@ -22,6 +22,7 @@ from .inputs_tcp_splunk_tcp_token import * from .inputs_tcp_ssl import * from .inputs_udp import * +from .lookup_definition import * from .lookup_table_file import * from .outputs_tcp_default import * from .outputs_tcp_group import * @@ -179,6 +180,14 @@ "splunk:index/inputsUdp:InputsUdp": "InputsUdp" } }, + { + "pkg": "splunk", + "mod": "index/lookupDefinition", + "fqn": "pulumi_splunk", + "classes": { + "splunk:index/lookupDefinition:LookupDefinition": "LookupDefinition" + } + }, { "pkg": "splunk", "mod": "index/lookupTableFile", diff --git a/sdk/python/pulumi_splunk/_inputs.py b/sdk/python/pulumi_splunk/_inputs.py index 42cd2f9a..fe8e3b73 100644 --- a/sdk/python/pulumi_splunk/_inputs.py +++ b/sdk/python/pulumi_splunk/_inputs.py @@ -39,6 +39,8 @@ 'InputsTcpSplunkTcpTokenAclArgsDict', 'InputsUdpAclArgs', 'InputsUdpAclArgsDict', + 'LookupDefinitionAclArgs', + 'LookupDefinitionAclArgsDict', 'OutputsTcpDefaultAclArgs', 'OutputsTcpDefaultAclArgsDict', 'OutputsTcpGroupAclArgs', @@ -99,7 +101,7 @@ class AppsLocalAclArgsDict(TypedDict): """ writes: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]] """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ elif False: AppsLocalAclArgsDict: TypeAlias = Mapping[str, Any] @@ -129,7 +131,7 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] reads: Properties that indicate resource read permissions. :param pulumi.Input[bool] removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param pulumi.Input[str] sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate write permissions of the resource. + :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -278,7 +280,7 @@ def sharing(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def writes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -331,7 +333,7 @@ class ConfigsConfAclArgsDict(TypedDict): """ writes: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]] """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ elif False: ConfigsConfAclArgsDict: TypeAlias = Mapping[str, Any] @@ -361,7 +363,7 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] reads: Properties that indicate resource read permissions. :param pulumi.Input[bool] removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param pulumi.Input[str] sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate write permissions of the resource. + :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -510,7 +512,7 @@ def sharing(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def writes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -563,7 +565,7 @@ class DataUiViewsAclArgsDict(TypedDict): """ writes: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]] """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ elif False: DataUiViewsAclArgsDict: TypeAlias = Mapping[str, Any] @@ -593,7 +595,7 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] reads: Properties that indicate resource read permissions. :param pulumi.Input[bool] removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param pulumi.Input[str] sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate write permissions of the resource. + :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -742,7 +744,7 @@ def sharing(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def writes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -795,7 +797,7 @@ class GenericAclAclArgsDict(TypedDict): """ writes: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]] """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ elif False: GenericAclAclArgsDict: TypeAlias = Mapping[str, Any] @@ -825,7 +827,7 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] reads: Properties that indicate resource read permissions. :param pulumi.Input[bool] removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param pulumi.Input[str] sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate write permissions of the resource. + :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -974,7 +976,7 @@ def sharing(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def writes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -1027,7 +1029,7 @@ class IndexesAclArgsDict(TypedDict): """ writes: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]] """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ elif False: IndexesAclArgsDict: TypeAlias = Mapping[str, Any] @@ -1057,7 +1059,7 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] reads: Properties that indicate resource read permissions. :param pulumi.Input[bool] removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param pulumi.Input[str] sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate write permissions of the resource. + :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -1206,7 +1208,7 @@ def sharing(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def writes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -1259,7 +1261,7 @@ class InputsHttpEventCollectorAclArgsDict(TypedDict): """ writes: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]] """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ elif False: InputsHttpEventCollectorAclArgsDict: TypeAlias = Mapping[str, Any] @@ -1289,7 +1291,7 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] reads: Properties that indicate resource read permissions. :param pulumi.Input[bool] removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param pulumi.Input[str] sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate write permissions of the resource. + :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -1438,7 +1440,7 @@ def sharing(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def writes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -1491,7 +1493,7 @@ class InputsMonitorAclArgsDict(TypedDict): """ writes: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]] """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ elif False: InputsMonitorAclArgsDict: TypeAlias = Mapping[str, Any] @@ -1521,7 +1523,7 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] reads: Properties that indicate resource read permissions. :param pulumi.Input[bool] removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param pulumi.Input[str] sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate write permissions of the resource. + :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -1670,7 +1672,7 @@ def sharing(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def writes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -1723,7 +1725,7 @@ class InputsScriptAclArgsDict(TypedDict): """ writes: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]] """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ elif False: InputsScriptAclArgsDict: TypeAlias = Mapping[str, Any] @@ -1753,7 +1755,7 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] reads: Properties that indicate resource read permissions. :param pulumi.Input[bool] removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param pulumi.Input[str] sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate write permissions of the resource. + :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -1902,7 +1904,7 @@ def sharing(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def writes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -1955,7 +1957,7 @@ class InputsTcpCookedAclArgsDict(TypedDict): """ writes: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]] """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ elif False: InputsTcpCookedAclArgsDict: TypeAlias = Mapping[str, Any] @@ -1985,7 +1987,7 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] reads: Properties that indicate resource read permissions. :param pulumi.Input[bool] removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param pulumi.Input[str] sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate write permissions of the resource. + :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -2134,7 +2136,7 @@ def sharing(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def writes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -2187,7 +2189,7 @@ class InputsTcpRawAclArgsDict(TypedDict): """ writes: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]] """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ elif False: InputsTcpRawAclArgsDict: TypeAlias = Mapping[str, Any] @@ -2217,7 +2219,7 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] reads: Properties that indicate resource read permissions. :param pulumi.Input[bool] removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param pulumi.Input[str] sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate write permissions of the resource. + :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -2366,7 +2368,7 @@ def sharing(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def writes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -2419,7 +2421,7 @@ class InputsTcpSplunkTcpTokenAclArgsDict(TypedDict): """ writes: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]] """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ elif False: InputsTcpSplunkTcpTokenAclArgsDict: TypeAlias = Mapping[str, Any] @@ -2449,7 +2451,7 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] reads: Properties that indicate resource read permissions. :param pulumi.Input[bool] removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param pulumi.Input[str] sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate write permissions of the resource. + :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -2598,7 +2600,7 @@ def sharing(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def writes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -2651,7 +2653,7 @@ class InputsUdpAclArgsDict(TypedDict): """ writes: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]] """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ elif False: InputsUdpAclArgsDict: TypeAlias = Mapping[str, Any] @@ -2681,7 +2683,7 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] reads: Properties that indicate resource read permissions. :param pulumi.Input[bool] removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param pulumi.Input[str] sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate write permissions of the resource. + :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -2830,7 +2832,239 @@ def sharing(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def writes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. + """ + return pulumi.get(self, "writes") + + @writes.setter + def writes(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "writes", value) + + +if not MYPY: + class LookupDefinitionAclArgsDict(TypedDict): + app: NotRequired[pulumi.Input[str]] + """ + The app context for the resource. Required for updating saved search ACL properties. Allowed values are:The name of an app and system + """ + can_change_perms: NotRequired[pulumi.Input[bool]] + """ + Indicates if the active user can change permissions for this object. Defaults to true. + """ + can_share_app: NotRequired[pulumi.Input[bool]] + """ + Indicates if the active user can change sharing to app level. Defaults to true. + """ + can_share_global: NotRequired[pulumi.Input[bool]] + """ + Indicates if the active user can change sharing to system level. Defaults to true. + """ + can_share_user: NotRequired[pulumi.Input[bool]] + """ + Indicates if the active user can change sharing to user level. Defaults to true. + """ + can_write: NotRequired[pulumi.Input[bool]] + """ + Indicates if the active user can edit this object. Defaults to true. + """ + owner: NotRequired[pulumi.Input[str]] + """ + 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. + """ + reads: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]] + """ + Properties that indicate resource read permissions. + """ + removable: NotRequired[pulumi.Input[bool]] + """ + Indicates whether an admin or user with sufficient permissions can delete the entity. + """ + sharing: NotRequired[pulumi.Input[str]] + """ + Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user + """ + writes: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]] + """ + Properties that indicate resource write permissions. + """ +elif False: + LookupDefinitionAclArgsDict: TypeAlias = Mapping[str, Any] + +@pulumi.input_type +class LookupDefinitionAclArgs: + def __init__(__self__, *, + app: Optional[pulumi.Input[str]] = None, + can_change_perms: Optional[pulumi.Input[bool]] = None, + can_share_app: Optional[pulumi.Input[bool]] = None, + can_share_global: Optional[pulumi.Input[bool]] = None, + can_share_user: Optional[pulumi.Input[bool]] = None, + can_write: Optional[pulumi.Input[bool]] = None, + owner: Optional[pulumi.Input[str]] = None, + reads: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + removable: Optional[pulumi.Input[bool]] = None, + sharing: Optional[pulumi.Input[str]] = None, + writes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): + """ + :param pulumi.Input[str] app: The app context for the resource. Required for updating saved search ACL properties. Allowed values are:The name of an app and system + :param pulumi.Input[bool] can_change_perms: Indicates if the active user can change permissions for this object. Defaults to true. + :param pulumi.Input[bool] can_share_app: Indicates if the active user can change sharing to app level. Defaults to true. + :param pulumi.Input[bool] can_share_global: Indicates if the active user can change sharing to system level. Defaults to true. + :param pulumi.Input[bool] can_share_user: Indicates if the active user can change sharing to user level. Defaults to true. + :param pulumi.Input[bool] can_write: Indicates if the active user can edit this object. Defaults to true. + :param pulumi.Input[str] owner: 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. + :param pulumi.Input[Sequence[pulumi.Input[str]]] reads: Properties that indicate resource read permissions. + :param pulumi.Input[bool] removable: Indicates whether an admin or user with sufficient permissions can delete the entity. + :param pulumi.Input[str] sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user + :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate resource write permissions. + """ + if app is not None: + pulumi.set(__self__, "app", app) + if can_change_perms is not None: + pulumi.set(__self__, "can_change_perms", can_change_perms) + if can_share_app is not None: + pulumi.set(__self__, "can_share_app", can_share_app) + if can_share_global is not None: + pulumi.set(__self__, "can_share_global", can_share_global) + if can_share_user is not None: + pulumi.set(__self__, "can_share_user", can_share_user) + if can_write is not None: + pulumi.set(__self__, "can_write", can_write) + if owner is not None: + pulumi.set(__self__, "owner", owner) + if reads is not None: + pulumi.set(__self__, "reads", reads) + if removable is not None: + pulumi.set(__self__, "removable", removable) + if sharing is not None: + pulumi.set(__self__, "sharing", sharing) + if writes is not None: + pulumi.set(__self__, "writes", writes) + + @property + @pulumi.getter + def app(self) -> Optional[pulumi.Input[str]]: + """ + The app context for the resource. Required for updating saved search ACL properties. Allowed values are:The name of an app and system + """ + return pulumi.get(self, "app") + + @app.setter + def app(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "app", value) + + @property + @pulumi.getter(name="canChangePerms") + def can_change_perms(self) -> Optional[pulumi.Input[bool]]: + """ + Indicates if the active user can change permissions for this object. Defaults to true. + """ + return pulumi.get(self, "can_change_perms") + + @can_change_perms.setter + def can_change_perms(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "can_change_perms", value) + + @property + @pulumi.getter(name="canShareApp") + def can_share_app(self) -> Optional[pulumi.Input[bool]]: + """ + Indicates if the active user can change sharing to app level. Defaults to true. + """ + return pulumi.get(self, "can_share_app") + + @can_share_app.setter + def can_share_app(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "can_share_app", value) + + @property + @pulumi.getter(name="canShareGlobal") + def can_share_global(self) -> Optional[pulumi.Input[bool]]: + """ + Indicates if the active user can change sharing to system level. Defaults to true. + """ + return pulumi.get(self, "can_share_global") + + @can_share_global.setter + def can_share_global(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "can_share_global", value) + + @property + @pulumi.getter(name="canShareUser") + def can_share_user(self) -> Optional[pulumi.Input[bool]]: + """ + Indicates if the active user can change sharing to user level. Defaults to true. + """ + return pulumi.get(self, "can_share_user") + + @can_share_user.setter + def can_share_user(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "can_share_user", value) + + @property + @pulumi.getter(name="canWrite") + def can_write(self) -> Optional[pulumi.Input[bool]]: + """ + Indicates if the active user can edit this object. Defaults to true. + """ + return pulumi.get(self, "can_write") + + @can_write.setter + def can_write(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "can_write", value) + + @property + @pulumi.getter + def owner(self) -> Optional[pulumi.Input[str]]: + """ + 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. + """ + return pulumi.get(self, "owner") + + @owner.setter + def owner(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "owner", value) + + @property + @pulumi.getter + def reads(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + """ + Properties that indicate resource read permissions. + """ + return pulumi.get(self, "reads") + + @reads.setter + def reads(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "reads", value) + + @property + @pulumi.getter + def removable(self) -> Optional[pulumi.Input[bool]]: + """ + Indicates whether an admin or user with sufficient permissions can delete the entity. + """ + return pulumi.get(self, "removable") + + @removable.setter + def removable(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "removable", value) + + @property + @pulumi.getter + def sharing(self) -> Optional[pulumi.Input[str]]: + """ + Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user + """ + return pulumi.get(self, "sharing") + + @sharing.setter + def sharing(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "sharing", value) + + @property + @pulumi.getter + def writes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + """ + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -2883,7 +3117,7 @@ class OutputsTcpDefaultAclArgsDict(TypedDict): """ writes: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]] """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ elif False: OutputsTcpDefaultAclArgsDict: TypeAlias = Mapping[str, Any] @@ -2913,7 +3147,7 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] reads: Properties that indicate resource read permissions. :param pulumi.Input[bool] removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param pulumi.Input[str] sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate write permissions of the resource. + :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -3062,7 +3296,7 @@ def sharing(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def writes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -3115,7 +3349,7 @@ class OutputsTcpGroupAclArgsDict(TypedDict): """ writes: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]] """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ elif False: OutputsTcpGroupAclArgsDict: TypeAlias = Mapping[str, Any] @@ -3145,7 +3379,7 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] reads: Properties that indicate resource read permissions. :param pulumi.Input[bool] removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param pulumi.Input[str] sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate write permissions of the resource. + :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -3294,7 +3528,7 @@ def sharing(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def writes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -3347,7 +3581,7 @@ class OutputsTcpServerAclArgsDict(TypedDict): """ writes: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]] """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ elif False: OutputsTcpServerAclArgsDict: TypeAlias = Mapping[str, Any] @@ -3377,7 +3611,7 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] reads: Properties that indicate resource read permissions. :param pulumi.Input[bool] removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param pulumi.Input[str] sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate write permissions of the resource. + :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -3526,7 +3760,7 @@ def sharing(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def writes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -3579,7 +3813,7 @@ class OutputsTcpSyslogAclArgsDict(TypedDict): """ writes: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]] """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ elif False: OutputsTcpSyslogAclArgsDict: TypeAlias = Mapping[str, Any] @@ -3609,7 +3843,7 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] reads: Properties that indicate resource read permissions. :param pulumi.Input[bool] removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param pulumi.Input[str] sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate write permissions of the resource. + :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -3758,7 +3992,7 @@ def sharing(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def writes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -3811,7 +4045,7 @@ class SavedSearchesAclArgsDict(TypedDict): """ writes: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]] """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ elif False: SavedSearchesAclArgsDict: TypeAlias = Mapping[str, Any] @@ -3841,7 +4075,7 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] reads: Properties that indicate resource read permissions. :param pulumi.Input[bool] removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param pulumi.Input[str] sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate write permissions of the resource. + :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -3990,7 +4224,7 @@ def sharing(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def writes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -4043,7 +4277,7 @@ class ShIndexesManagerAclArgsDict(TypedDict): """ writes: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]] """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ elif False: ShIndexesManagerAclArgsDict: TypeAlias = Mapping[str, Any] @@ -4073,7 +4307,7 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] reads: Properties that indicate resource read permissions. :param pulumi.Input[bool] removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param pulumi.Input[str] sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate write permissions of the resource. + :param pulumi.Input[Sequence[pulumi.Input[str]]] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -4222,7 +4456,7 @@ def sharing(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def writes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") diff --git a/sdk/python/pulumi_splunk/lookup_definition.py b/sdk/python/pulumi_splunk/lookup_definition.py new file mode 100644 index 00000000..42a23e9d --- /dev/null +++ b/sdk/python/pulumi_splunk/lookup_definition.py @@ -0,0 +1,300 @@ +# coding=utf-8 +# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +# *** Do not edit by hand unless you're certain you know what you are doing! *** + +import copy +import warnings +import sys +import pulumi +import pulumi.runtime +from typing import Any, Mapping, Optional, Sequence, Union, overload +if sys.version_info >= (3, 11): + from typing import NotRequired, TypedDict, TypeAlias +else: + from typing_extensions import NotRequired, TypedDict, TypeAlias +from . import _utilities +from . import outputs +from ._inputs import * + +__all__ = ['LookupDefinitionArgs', 'LookupDefinition'] + +@pulumi.input_type +class LookupDefinitionArgs: + def __init__(__self__, *, + filename: pulumi.Input[str], + name: pulumi.Input[str], + acl: Optional[pulumi.Input['LookupDefinitionAclArgs']] = None): + """ + The set of arguments for constructing a LookupDefinition resource. + :param pulumi.Input[str] filename: The filename for the lookup table, usually ending in `.csv`. + :param pulumi.Input[str] name: A unique name for the lookup definition within the app context. + :param pulumi.Input['LookupDefinitionAclArgs'] acl: Defines the access control list (ACL) for the lookup definition. See acl.md for more details. + """ + pulumi.set(__self__, "filename", filename) + pulumi.set(__self__, "name", name) + if acl is not None: + pulumi.set(__self__, "acl", acl) + + @property + @pulumi.getter + def filename(self) -> pulumi.Input[str]: + """ + The filename for the lookup table, usually ending in `.csv`. + """ + return pulumi.get(self, "filename") + + @filename.setter + def filename(self, value: pulumi.Input[str]): + pulumi.set(self, "filename", value) + + @property + @pulumi.getter + def name(self) -> pulumi.Input[str]: + """ + A unique name for the lookup definition within the app context. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) + + @property + @pulumi.getter + def acl(self) -> Optional[pulumi.Input['LookupDefinitionAclArgs']]: + """ + Defines the access control list (ACL) for the lookup definition. See acl.md for more details. + """ + return pulumi.get(self, "acl") + + @acl.setter + def acl(self, value: Optional[pulumi.Input['LookupDefinitionAclArgs']]): + pulumi.set(self, "acl", value) + + +@pulumi.input_type +class _LookupDefinitionState: + def __init__(__self__, *, + acl: Optional[pulumi.Input['LookupDefinitionAclArgs']] = None, + filename: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None): + """ + Input properties used for looking up and filtering LookupDefinition resources. + :param pulumi.Input['LookupDefinitionAclArgs'] acl: Defines the access control list (ACL) for the lookup definition. See acl.md for more details. + :param pulumi.Input[str] filename: The filename for the lookup table, usually ending in `.csv`. + :param pulumi.Input[str] name: A unique name for the lookup definition within the app context. + """ + if acl is not None: + pulumi.set(__self__, "acl", acl) + if filename is not None: + pulumi.set(__self__, "filename", filename) + if name is not None: + pulumi.set(__self__, "name", name) + + @property + @pulumi.getter + def acl(self) -> Optional[pulumi.Input['LookupDefinitionAclArgs']]: + """ + Defines the access control list (ACL) for the lookup definition. See acl.md for more details. + """ + return pulumi.get(self, "acl") + + @acl.setter + def acl(self, value: Optional[pulumi.Input['LookupDefinitionAclArgs']]): + pulumi.set(self, "acl", value) + + @property + @pulumi.getter + def filename(self) -> Optional[pulumi.Input[str]]: + """ + The filename for the lookup table, usually ending in `.csv`. + """ + return pulumi.get(self, "filename") + + @filename.setter + def filename(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "filename", value) + + @property + @pulumi.getter + def name(self) -> Optional[pulumi.Input[str]]: + """ + A unique name for the lookup definition within the app context. + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "name", value) + + +class LookupDefinition(pulumi.CustomResource): + @overload + def __init__(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + acl: Optional[pulumi.Input[Union['LookupDefinitionAclArgs', 'LookupDefinitionAclArgsDict']]] = None, + filename: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + __props__=None): + """ + ## + + # Resource: LookupDefinition + + Manage lookup definitions in Splunk. For more information on lookup definitions, refer to the official Splunk documentation: https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Aboutlookupsandfieldactions + + ## Example Usage + + ```python + import pulumi + import pulumi_splunk as splunk + + example = splunk.LookupDefinition("example", + name="example_lookup_definition", + filename="example_lookup_file.csv", + acl={ + "owner": "admin", + "app": "search", + "sharing": "app", + "reads": ["*"], + "writes": ["admin"], + }) + ``` + + ## Validation Rules + + When `acl.sharing` is set to `user`, the `acl.read` and `acl.write` fields must not be explicitly set. Setting them will trigger a validation error. + + :param str resource_name: The name of the resource. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[Union['LookupDefinitionAclArgs', 'LookupDefinitionAclArgsDict']] acl: Defines the access control list (ACL) for the lookup definition. See acl.md for more details. + :param pulumi.Input[str] filename: The filename for the lookup table, usually ending in `.csv`. + :param pulumi.Input[str] name: A unique name for the lookup definition within the app context. + """ + ... + @overload + def __init__(__self__, + resource_name: str, + args: LookupDefinitionArgs, + opts: Optional[pulumi.ResourceOptions] = None): + """ + ## + + # Resource: LookupDefinition + + Manage lookup definitions in Splunk. For more information on lookup definitions, refer to the official Splunk documentation: https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Aboutlookupsandfieldactions + + ## Example Usage + + ```python + import pulumi + import pulumi_splunk as splunk + + example = splunk.LookupDefinition("example", + name="example_lookup_definition", + filename="example_lookup_file.csv", + acl={ + "owner": "admin", + "app": "search", + "sharing": "app", + "reads": ["*"], + "writes": ["admin"], + }) + ``` + + ## Validation Rules + + When `acl.sharing` is set to `user`, the `acl.read` and `acl.write` fields must not be explicitly set. Setting them will trigger a validation error. + + :param str resource_name: The name of the resource. + :param LookupDefinitionArgs args: The arguments to use to populate this resource's properties. + :param pulumi.ResourceOptions opts: Options for the resource. + """ + ... + def __init__(__self__, resource_name: str, *args, **kwargs): + resource_args, opts = _utilities.get_resource_args_opts(LookupDefinitionArgs, pulumi.ResourceOptions, *args, **kwargs) + if resource_args is not None: + __self__._internal_init(resource_name, opts, **resource_args.__dict__) + else: + __self__._internal_init(resource_name, *args, **kwargs) + + def _internal_init(__self__, + resource_name: str, + opts: Optional[pulumi.ResourceOptions] = None, + acl: Optional[pulumi.Input[Union['LookupDefinitionAclArgs', 'LookupDefinitionAclArgsDict']]] = None, + filename: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None, + __props__=None): + opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) + if not isinstance(opts, pulumi.ResourceOptions): + raise TypeError('Expected resource options to be a ResourceOptions instance') + if opts.id is None: + if __props__ is not None: + raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') + __props__ = LookupDefinitionArgs.__new__(LookupDefinitionArgs) + + __props__.__dict__["acl"] = acl + if filename is None and not opts.urn: + raise TypeError("Missing required property 'filename'") + __props__.__dict__["filename"] = filename + if name is None and not opts.urn: + raise TypeError("Missing required property 'name'") + __props__.__dict__["name"] = name + super(LookupDefinition, __self__).__init__( + 'splunk:index/lookupDefinition:LookupDefinition', + resource_name, + __props__, + opts) + + @staticmethod + def get(resource_name: str, + id: pulumi.Input[str], + opts: Optional[pulumi.ResourceOptions] = None, + acl: Optional[pulumi.Input[Union['LookupDefinitionAclArgs', 'LookupDefinitionAclArgsDict']]] = None, + filename: Optional[pulumi.Input[str]] = None, + name: Optional[pulumi.Input[str]] = None) -> 'LookupDefinition': + """ + Get an existing LookupDefinition resource's state with the given name, id, and optional extra + properties used to qualify the lookup. + + :param str resource_name: The unique name of the resulting resource. + :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. + :param pulumi.ResourceOptions opts: Options for the resource. + :param pulumi.Input[Union['LookupDefinitionAclArgs', 'LookupDefinitionAclArgsDict']] acl: Defines the access control list (ACL) for the lookup definition. See acl.md for more details. + :param pulumi.Input[str] filename: The filename for the lookup table, usually ending in `.csv`. + :param pulumi.Input[str] name: A unique name for the lookup definition within the app context. + """ + opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + + __props__ = _LookupDefinitionState.__new__(_LookupDefinitionState) + + __props__.__dict__["acl"] = acl + __props__.__dict__["filename"] = filename + __props__.__dict__["name"] = name + return LookupDefinition(resource_name, opts=opts, __props__=__props__) + + @property + @pulumi.getter + def acl(self) -> pulumi.Output['outputs.LookupDefinitionAcl']: + """ + Defines the access control list (ACL) for the lookup definition. See acl.md for more details. + """ + return pulumi.get(self, "acl") + + @property + @pulumi.getter + def filename(self) -> pulumi.Output[str]: + """ + The filename for the lookup table, usually ending in `.csv`. + """ + return pulumi.get(self, "filename") + + @property + @pulumi.getter + def name(self) -> pulumi.Output[str]: + """ + A unique name for the lookup definition within the app context. + """ + return pulumi.get(self, "name") + diff --git a/sdk/python/pulumi_splunk/outputs.py b/sdk/python/pulumi_splunk/outputs.py index f511c19b..da9e30a6 100644 --- a/sdk/python/pulumi_splunk/outputs.py +++ b/sdk/python/pulumi_splunk/outputs.py @@ -27,6 +27,7 @@ 'InputsTcpRawAcl', 'InputsTcpSplunkTcpTokenAcl', 'InputsUdpAcl', + 'LookupDefinitionAcl', 'OutputsTcpDefaultAcl', 'OutputsTcpGroupAcl', 'OutputsTcpServerAcl', @@ -85,7 +86,7 @@ def __init__(__self__, *, :param Sequence[str] reads: Properties that indicate resource read permissions. :param bool removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param str sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param Sequence[str] writes: Properties that indicate write permissions of the resource. + :param Sequence[str] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -194,7 +195,7 @@ def sharing(self) -> Optional[str]: @pulumi.getter def writes(self) -> Optional[Sequence[str]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -249,7 +250,7 @@ def __init__(__self__, *, :param Sequence[str] reads: Properties that indicate resource read permissions. :param bool removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param str sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param Sequence[str] writes: Properties that indicate write permissions of the resource. + :param Sequence[str] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -358,7 +359,7 @@ def sharing(self) -> Optional[str]: @pulumi.getter def writes(self) -> Optional[Sequence[str]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -413,7 +414,7 @@ def __init__(__self__, *, :param Sequence[str] reads: Properties that indicate resource read permissions. :param bool removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param str sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param Sequence[str] writes: Properties that indicate write permissions of the resource. + :param Sequence[str] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -522,7 +523,7 @@ def sharing(self) -> Optional[str]: @pulumi.getter def writes(self) -> Optional[Sequence[str]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -577,7 +578,7 @@ def __init__(__self__, *, :param Sequence[str] reads: Properties that indicate resource read permissions. :param bool removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param str sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param Sequence[str] writes: Properties that indicate write permissions of the resource. + :param Sequence[str] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -686,7 +687,7 @@ def sharing(self) -> Optional[str]: @pulumi.getter def writes(self) -> Optional[Sequence[str]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -741,7 +742,7 @@ def __init__(__self__, *, :param Sequence[str] reads: Properties that indicate resource read permissions. :param bool removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param str sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param Sequence[str] writes: Properties that indicate write permissions of the resource. + :param Sequence[str] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -850,7 +851,7 @@ def sharing(self) -> Optional[str]: @pulumi.getter def writes(self) -> Optional[Sequence[str]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -905,7 +906,7 @@ def __init__(__self__, *, :param Sequence[str] reads: Properties that indicate resource read permissions. :param bool removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param str sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param Sequence[str] writes: Properties that indicate write permissions of the resource. + :param Sequence[str] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -1014,7 +1015,7 @@ def sharing(self) -> Optional[str]: @pulumi.getter def writes(self) -> Optional[Sequence[str]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -1069,7 +1070,7 @@ def __init__(__self__, *, :param Sequence[str] reads: Properties that indicate resource read permissions. :param bool removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param str sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param Sequence[str] writes: Properties that indicate write permissions of the resource. + :param Sequence[str] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -1178,7 +1179,7 @@ def sharing(self) -> Optional[str]: @pulumi.getter def writes(self) -> Optional[Sequence[str]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -1233,7 +1234,7 @@ def __init__(__self__, *, :param Sequence[str] reads: Properties that indicate resource read permissions. :param bool removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param str sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param Sequence[str] writes: Properties that indicate write permissions of the resource. + :param Sequence[str] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -1342,7 +1343,7 @@ def sharing(self) -> Optional[str]: @pulumi.getter def writes(self) -> Optional[Sequence[str]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -1397,7 +1398,7 @@ def __init__(__self__, *, :param Sequence[str] reads: Properties that indicate resource read permissions. :param bool removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param str sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param Sequence[str] writes: Properties that indicate write permissions of the resource. + :param Sequence[str] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -1506,7 +1507,7 @@ def sharing(self) -> Optional[str]: @pulumi.getter def writes(self) -> Optional[Sequence[str]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -1561,7 +1562,7 @@ def __init__(__self__, *, :param Sequence[str] reads: Properties that indicate resource read permissions. :param bool removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param str sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param Sequence[str] writes: Properties that indicate write permissions of the resource. + :param Sequence[str] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -1670,7 +1671,7 @@ def sharing(self) -> Optional[str]: @pulumi.getter def writes(self) -> Optional[Sequence[str]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -1725,7 +1726,7 @@ def __init__(__self__, *, :param Sequence[str] reads: Properties that indicate resource read permissions. :param bool removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param str sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param Sequence[str] writes: Properties that indicate write permissions of the resource. + :param Sequence[str] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -1834,7 +1835,7 @@ def sharing(self) -> Optional[str]: @pulumi.getter def writes(self) -> Optional[Sequence[str]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -1889,7 +1890,7 @@ def __init__(__self__, *, :param Sequence[str] reads: Properties that indicate resource read permissions. :param bool removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param str sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param Sequence[str] writes: Properties that indicate write permissions of the resource. + :param Sequence[str] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -1998,7 +1999,171 @@ def sharing(self) -> Optional[str]: @pulumi.getter def writes(self) -> Optional[Sequence[str]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. + """ + return pulumi.get(self, "writes") + + +@pulumi.output_type +class LookupDefinitionAcl(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "canChangePerms": + suggest = "can_change_perms" + elif key == "canShareApp": + suggest = "can_share_app" + elif key == "canShareGlobal": + suggest = "can_share_global" + elif key == "canShareUser": + suggest = "can_share_user" + elif key == "canWrite": + suggest = "can_write" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in LookupDefinitionAcl. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + LookupDefinitionAcl.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + LookupDefinitionAcl.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + app: Optional[str] = None, + can_change_perms: Optional[bool] = None, + can_share_app: Optional[bool] = None, + can_share_global: Optional[bool] = None, + can_share_user: Optional[bool] = None, + can_write: Optional[bool] = None, + owner: Optional[str] = None, + reads: Optional[Sequence[str]] = None, + removable: Optional[bool] = None, + sharing: Optional[str] = None, + writes: Optional[Sequence[str]] = None): + """ + :param str app: The app context for the resource. Required for updating saved search ACL properties. Allowed values are:The name of an app and system + :param bool can_change_perms: Indicates if the active user can change permissions for this object. Defaults to true. + :param bool can_share_app: Indicates if the active user can change sharing to app level. Defaults to true. + :param bool can_share_global: Indicates if the active user can change sharing to system level. Defaults to true. + :param bool can_share_user: Indicates if the active user can change sharing to user level. Defaults to true. + :param bool can_write: Indicates if the active user can edit this object. Defaults to true. + :param str owner: 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. + :param Sequence[str] reads: Properties that indicate resource read permissions. + :param bool removable: Indicates whether an admin or user with sufficient permissions can delete the entity. + :param str sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user + :param Sequence[str] writes: Properties that indicate resource write permissions. + """ + if app is not None: + pulumi.set(__self__, "app", app) + if can_change_perms is not None: + pulumi.set(__self__, "can_change_perms", can_change_perms) + if can_share_app is not None: + pulumi.set(__self__, "can_share_app", can_share_app) + if can_share_global is not None: + pulumi.set(__self__, "can_share_global", can_share_global) + if can_share_user is not None: + pulumi.set(__self__, "can_share_user", can_share_user) + if can_write is not None: + pulumi.set(__self__, "can_write", can_write) + if owner is not None: + pulumi.set(__self__, "owner", owner) + if reads is not None: + pulumi.set(__self__, "reads", reads) + if removable is not None: + pulumi.set(__self__, "removable", removable) + if sharing is not None: + pulumi.set(__self__, "sharing", sharing) + if writes is not None: + pulumi.set(__self__, "writes", writes) + + @property + @pulumi.getter + def app(self) -> Optional[str]: + """ + The app context for the resource. Required for updating saved search ACL properties. Allowed values are:The name of an app and system + """ + return pulumi.get(self, "app") + + @property + @pulumi.getter(name="canChangePerms") + def can_change_perms(self) -> Optional[bool]: + """ + Indicates if the active user can change permissions for this object. Defaults to true. + """ + return pulumi.get(self, "can_change_perms") + + @property + @pulumi.getter(name="canShareApp") + def can_share_app(self) -> Optional[bool]: + """ + Indicates if the active user can change sharing to app level. Defaults to true. + """ + return pulumi.get(self, "can_share_app") + + @property + @pulumi.getter(name="canShareGlobal") + def can_share_global(self) -> Optional[bool]: + """ + Indicates if the active user can change sharing to system level. Defaults to true. + """ + return pulumi.get(self, "can_share_global") + + @property + @pulumi.getter(name="canShareUser") + def can_share_user(self) -> Optional[bool]: + """ + Indicates if the active user can change sharing to user level. Defaults to true. + """ + return pulumi.get(self, "can_share_user") + + @property + @pulumi.getter(name="canWrite") + def can_write(self) -> Optional[bool]: + """ + Indicates if the active user can edit this object. Defaults to true. + """ + return pulumi.get(self, "can_write") + + @property + @pulumi.getter + def owner(self) -> Optional[str]: + """ + 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. + """ + return pulumi.get(self, "owner") + + @property + @pulumi.getter + def reads(self) -> Optional[Sequence[str]]: + """ + Properties that indicate resource read permissions. + """ + return pulumi.get(self, "reads") + + @property + @pulumi.getter + def removable(self) -> Optional[bool]: + """ + Indicates whether an admin or user with sufficient permissions can delete the entity. + """ + return pulumi.get(self, "removable") + + @property + @pulumi.getter + def sharing(self) -> Optional[str]: + """ + Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user + """ + return pulumi.get(self, "sharing") + + @property + @pulumi.getter + def writes(self) -> Optional[Sequence[str]]: + """ + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -2053,7 +2218,7 @@ def __init__(__self__, *, :param Sequence[str] reads: Properties that indicate resource read permissions. :param bool removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param str sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param Sequence[str] writes: Properties that indicate write permissions of the resource. + :param Sequence[str] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -2162,7 +2327,7 @@ def sharing(self) -> Optional[str]: @pulumi.getter def writes(self) -> Optional[Sequence[str]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -2217,7 +2382,7 @@ def __init__(__self__, *, :param Sequence[str] reads: Properties that indicate resource read permissions. :param bool removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param str sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param Sequence[str] writes: Properties that indicate write permissions of the resource. + :param Sequence[str] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -2326,7 +2491,7 @@ def sharing(self) -> Optional[str]: @pulumi.getter def writes(self) -> Optional[Sequence[str]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -2381,7 +2546,7 @@ def __init__(__self__, *, :param Sequence[str] reads: Properties that indicate resource read permissions. :param bool removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param str sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param Sequence[str] writes: Properties that indicate write permissions of the resource. + :param Sequence[str] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -2490,7 +2655,7 @@ def sharing(self) -> Optional[str]: @pulumi.getter def writes(self) -> Optional[Sequence[str]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -2545,7 +2710,7 @@ def __init__(__self__, *, :param Sequence[str] reads: Properties that indicate resource read permissions. :param bool removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param str sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param Sequence[str] writes: Properties that indicate write permissions of the resource. + :param Sequence[str] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -2654,7 +2819,7 @@ def sharing(self) -> Optional[str]: @pulumi.getter def writes(self) -> Optional[Sequence[str]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -2709,7 +2874,7 @@ def __init__(__self__, *, :param Sequence[str] reads: Properties that indicate resource read permissions. :param bool removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param str sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param Sequence[str] writes: Properties that indicate write permissions of the resource. + :param Sequence[str] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -2818,7 +2983,7 @@ def sharing(self) -> Optional[str]: @pulumi.getter def writes(self) -> Optional[Sequence[str]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes") @@ -2873,7 +3038,7 @@ def __init__(__self__, *, :param Sequence[str] reads: Properties that indicate resource read permissions. :param bool removable: Indicates whether an admin or user with sufficient permissions can delete the entity. :param str sharing: Indicates how the resource is shared. Required for updating any knowledge object ACL properties.app: Shared within a specific appglobal: (Default) Shared globally to all apps.user: Private to a user - :param Sequence[str] writes: Properties that indicate write permissions of the resource. + :param Sequence[str] writes: Properties that indicate resource write permissions. """ if app is not None: pulumi.set(__self__, "app", app) @@ -2982,7 +3147,7 @@ def sharing(self) -> Optional[str]: @pulumi.getter def writes(self) -> Optional[Sequence[str]]: """ - Properties that indicate write permissions of the resource. + Properties that indicate resource write permissions. """ return pulumi.get(self, "writes")