From ec8f6e3007a5d8d53b84dc26576427ff6266b8fc Mon Sep 17 00:00:00 2001 From: pulumi-bot Date: Sat, 20 Jan 2024 03:08:11 +0000 Subject: [PATCH 1/2] make tfgen --- .../bridge-metadata.json | 8 ++++ .../cmd/pulumi-resource-sumologic/schema.json | 46 +++++++++++++++++-- upstream | 2 +- 3 files changed, 51 insertions(+), 5 deletions(-) diff --git a/provider/cmd/pulumi-resource-sumologic/bridge-metadata.json b/provider/cmd/pulumi-resource-sumologic/bridge-metadata.json index 4877dd76..12a085aa 100644 --- a/provider/cmd/pulumi-resource-sumologic/bridge-metadata.json +++ b/provider/cmd/pulumi-resource-sumologic/bridge-metadata.json @@ -387,6 +387,9 @@ "sumologic_cse_custom_insight": { "current": "sumologic:index/cseCustomInsight:CseCustomInsight", "fields": { + "dynamic_severity": { + "maxItemsOne": false + }, "rule_ids": { "maxItemsOne": false }, @@ -5276,6 +5279,10 @@ "sumologic:index/CseChainRuleEntitySelector:CseChainRuleEntitySelector": { "entityType": "entity_type" }, + "sumologic:index/CseCustomInsightDynamicSeverity:CseCustomInsightDynamicSeverity": { + "insightSeverity": "insight_severity", + "minimumSignalSeverity": "minimum_signal_severity" + }, "sumologic:index/CseEntityNormalizationConfigurationDomainMapping:CseEntityNormalizationConfigurationDomainMapping": { "normalizedDomain": "normalized_domain", "rawDomain": "raw_domain" @@ -7369,6 +7376,7 @@ "recordFields": "record_fields" }, "sumologic:index/cseCustomInsight:CseCustomInsight": { + "dynamicSeverities": "dynamic_severity", "ruleIds": "rule_ids", "signalNames": "signal_names" }, diff --git a/provider/cmd/pulumi-resource-sumologic/schema.json b/provider/cmd/pulumi-resource-sumologic/schema.json index f6e0a753..e3331afc 100644 --- a/provider/cmd/pulumi-resource-sumologic/schema.json +++ b/provider/cmd/pulumi-resource-sumologic/schema.json @@ -1311,6 +1311,23 @@ "limit" ] }, + "sumologic:index/CseCustomInsightDynamicSeverity:CseCustomInsightDynamicSeverity": { + "properties": { + "insightSeverity": { + "type": "string", + "description": "The severity of the generated Insight (CRITICAL, HIGH, MEDIUM, or LOW)\n" + }, + "minimumSignalSeverity": { + "type": "integer", + "description": "minimum Signal severity as the threshold for an Insight severity level\n" + } + }, + "type": "object", + "required": [ + "insightSeverity", + "minimumSignalSeverity" + ] + }, "sumologic:index/CseEntityNormalizationConfigurationDomainMapping:CseEntityNormalizationConfigurationDomainMapping": { "properties": { "normalizedDomain": { @@ -16296,12 +16313,19 @@ } }, "sumologic:index/cseCustomInsight:CseCustomInsight": { - "description": "Provides a Sumo Logic CSE Custom Insight.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as sumologic from \"@pulumi/sumologic\";\n\nconst customInsight = new sumologic.CseCustomInsight(\"customInsight\", {\n description: \"Insight description\",\n enabled: true,\n ordered: true,\n ruleIds: [\n \"MATCH-S00001\",\n \"THRESHOLD-U00005\",\n ],\n severity: \"HIGH\",\n signalNames: [\n \"Some Signal Name\",\n \"Wildcard Signal Name *\",\n ],\n tags: [\"_mitreAttackTactic:TA0009\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_sumologic as sumologic\n\ncustom_insight = sumologic.CseCustomInsight(\"customInsight\",\n description=\"Insight description\",\n enabled=True,\n ordered=True,\n rule_ids=[\n \"MATCH-S00001\",\n \"THRESHOLD-U00005\",\n ],\n severity=\"HIGH\",\n signal_names=[\n \"Some Signal Name\",\n \"Wildcard Signal Name *\",\n ],\n tags=[\"_mitreAttackTactic:TA0009\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing SumoLogic = Pulumi.SumoLogic;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var customInsight = new SumoLogic.CseCustomInsight(\"customInsight\", new()\n {\n Description = \"Insight description\",\n Enabled = true,\n Ordered = true,\n RuleIds = new[]\n {\n \"MATCH-S00001\",\n \"THRESHOLD-U00005\",\n },\n Severity = \"HIGH\",\n SignalNames = new[]\n {\n \"Some Signal Name\",\n \"Wildcard Signal Name *\",\n },\n Tags = new[]\n {\n \"_mitreAttackTactic:TA0009\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-sumologic/sdk/go/sumologic\"\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 := sumologic.NewCseCustomInsight(ctx, \"customInsight\", \u0026sumologic.CseCustomInsightArgs{\n\t\t\tDescription: pulumi.String(\"Insight description\"),\n\t\t\tEnabled: pulumi.Bool(true),\n\t\t\tOrdered: pulumi.Bool(true),\n\t\t\tRuleIds: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"MATCH-S00001\"),\n\t\t\t\tpulumi.String(\"THRESHOLD-U00005\"),\n\t\t\t},\n\t\t\tSeverity: pulumi.String(\"HIGH\"),\n\t\t\tSignalNames: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"Some Signal Name\"),\n\t\t\t\tpulumi.String(\"Wildcard Signal Name *\"),\n\t\t\t},\n\t\t\tTags: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"_mitreAttackTactic:TA0009\"),\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.sumologic.CseCustomInsight;\nimport com.pulumi.sumologic.CseCustomInsightArgs;\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 customInsight = new CseCustomInsight(\"customInsight\", CseCustomInsightArgs.builder() \n .description(\"Insight description\")\n .enabled(true)\n .ordered(true)\n .ruleIds( \n \"MATCH-S00001\",\n \"THRESHOLD-U00005\")\n .severity(\"HIGH\")\n .signalNames( \n \"Some Signal Name\",\n \"Wildcard Signal Name *\")\n .tags(\"_mitreAttackTactic:TA0009\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n customInsight:\n type: sumologic:CseCustomInsight\n properties:\n description: Insight description\n enabled: true\n ordered: true\n ruleIds:\n - MATCH-S00001\n - THRESHOLD-U00005\n severity: HIGH\n signalNames:\n - Some Signal Name\n - Wildcard Signal Name *\n tags:\n - _mitreAttackTactic:TA0009\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nCustom Insights can be imported using the field id, e.g.hcl\n\n```sh\n $ pulumi import sumologic:index/cseCustomInsight:CseCustomInsight custom_insight id\n```\n\n ", + "description": "Provides a Sumo Logic CSE Custom Insight.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as sumologic from \"@pulumi/sumologic\";\n\nconst customInsight = new sumologic.CseCustomInsight(\"customInsight\", {\n description: \"Insight description\",\n dynamicSeverities: [{\n insightSeverity: \"CRITICAL\",\n minimumSignalSeverity: 8,\n }],\n enabled: true,\n ordered: true,\n ruleIds: [\n \"MATCH-S00001\",\n \"THRESHOLD-U00005\",\n ],\n severity: \"HIGH\",\n signalNames: [\n \"Some Signal Name\",\n \"Wildcard Signal Name *\",\n ],\n tags: [\"_mitreAttackTactic:TA0009\"],\n});\n```\n```python\nimport pulumi\nimport pulumi_sumologic as sumologic\n\ncustom_insight = sumologic.CseCustomInsight(\"customInsight\",\n description=\"Insight description\",\n dynamic_severities=[sumologic.CseCustomInsightDynamicSeverityArgs(\n insight_severity=\"CRITICAL\",\n minimum_signal_severity=8,\n )],\n enabled=True,\n ordered=True,\n rule_ids=[\n \"MATCH-S00001\",\n \"THRESHOLD-U00005\",\n ],\n severity=\"HIGH\",\n signal_names=[\n \"Some Signal Name\",\n \"Wildcard Signal Name *\",\n ],\n tags=[\"_mitreAttackTactic:TA0009\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing SumoLogic = Pulumi.SumoLogic;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var customInsight = new SumoLogic.CseCustomInsight(\"customInsight\", new()\n {\n Description = \"Insight description\",\n DynamicSeverities = new[]\n {\n new SumoLogic.Inputs.CseCustomInsightDynamicSeverityArgs\n {\n InsightSeverity = \"CRITICAL\",\n MinimumSignalSeverity = 8,\n },\n },\n Enabled = true,\n Ordered = true,\n RuleIds = new[]\n {\n \"MATCH-S00001\",\n \"THRESHOLD-U00005\",\n },\n Severity = \"HIGH\",\n SignalNames = new[]\n {\n \"Some Signal Name\",\n \"Wildcard Signal Name *\",\n },\n Tags = new[]\n {\n \"_mitreAttackTactic:TA0009\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-sumologic/sdk/go/sumologic\"\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 := sumologic.NewCseCustomInsight(ctx, \"customInsight\", \u0026sumologic.CseCustomInsightArgs{\n\t\t\tDescription: pulumi.String(\"Insight description\"),\n\t\t\tDynamicSeverities: sumologic.CseCustomInsightDynamicSeverityArray{\n\t\t\t\t\u0026sumologic.CseCustomInsightDynamicSeverityArgs{\n\t\t\t\t\tInsightSeverity: pulumi.String(\"CRITICAL\"),\n\t\t\t\t\tMinimumSignalSeverity: pulumi.Int(8),\n\t\t\t\t},\n\t\t\t},\n\t\t\tEnabled: pulumi.Bool(true),\n\t\t\tOrdered: pulumi.Bool(true),\n\t\t\tRuleIds: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"MATCH-S00001\"),\n\t\t\t\tpulumi.String(\"THRESHOLD-U00005\"),\n\t\t\t},\n\t\t\tSeverity: pulumi.String(\"HIGH\"),\n\t\t\tSignalNames: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"Some Signal Name\"),\n\t\t\t\tpulumi.String(\"Wildcard Signal Name *\"),\n\t\t\t},\n\t\t\tTags: pulumi.StringArray{\n\t\t\t\tpulumi.String(\"_mitreAttackTactic:TA0009\"),\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.sumologic.CseCustomInsight;\nimport com.pulumi.sumologic.CseCustomInsightArgs;\nimport com.pulumi.sumologic.inputs.CseCustomInsightDynamicSeverityArgs;\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 customInsight = new CseCustomInsight(\"customInsight\", CseCustomInsightArgs.builder() \n .description(\"Insight description\")\n .dynamicSeverities(CseCustomInsightDynamicSeverityArgs.builder()\n .insightSeverity(\"CRITICAL\")\n .minimumSignalSeverity(8)\n .build())\n .enabled(true)\n .ordered(true)\n .ruleIds( \n \"MATCH-S00001\",\n \"THRESHOLD-U00005\")\n .severity(\"HIGH\")\n .signalNames( \n \"Some Signal Name\",\n \"Wildcard Signal Name *\")\n .tags(\"_mitreAttackTactic:TA0009\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n customInsight:\n type: sumologic:CseCustomInsight\n properties:\n description: Insight description\n dynamicSeverities:\n - insightSeverity: CRITICAL\n minimumSignalSeverity: 8\n enabled: true\n ordered: true\n ruleIds:\n - MATCH-S00001\n - THRESHOLD-U00005\n severity: HIGH\n signalNames:\n - Some Signal Name\n - Wildcard Signal Name *\n tags:\n - _mitreAttackTactic:TA0009\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\nCustom Insights can be imported using the field id, e.g.hcl\n\n```sh\n $ pulumi import sumologic:index/cseCustomInsight:CseCustomInsight custom_insight id\n```\n\n ", "properties": { "description": { "type": "string", "description": "The description of the generated Insights\n" }, + "dynamicSeverities": { + "type": "array", + "items": { + "$ref": "#/types/sumologic:index/CseCustomInsightDynamicSeverity:CseCustomInsightDynamicSeverity" + }, + "description": "The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight.\n" + }, "enabled": { "type": "boolean", "description": "Whether the Custom Insight should generate Insights\n" @@ -16323,7 +16347,7 @@ }, "severity": { "type": "string", - "description": "The severity of the generated Insights (HIGH, MEDIUM, or LOW)\n" + "description": "The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW)\n" }, "signalNames": { "type": "array", @@ -16353,6 +16377,13 @@ "type": "string", "description": "The description of the generated Insights\n" }, + "dynamicSeverities": { + "type": "array", + "items": { + "$ref": "#/types/sumologic:index/CseCustomInsightDynamicSeverity:CseCustomInsightDynamicSeverity" + }, + "description": "The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight.\n" + }, "enabled": { "type": "boolean", "description": "Whether the Custom Insight should generate Insights\n" @@ -16374,7 +16405,7 @@ }, "severity": { "type": "string", - "description": "The severity of the generated Insights (HIGH, MEDIUM, or LOW)\n" + "description": "The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW)\n" }, "signalNames": { "type": "array", @@ -16405,6 +16436,13 @@ "type": "string", "description": "The description of the generated Insights\n" }, + "dynamicSeverities": { + "type": "array", + "items": { + "$ref": "#/types/sumologic:index/CseCustomInsightDynamicSeverity:CseCustomInsightDynamicSeverity" + }, + "description": "The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight.\n" + }, "enabled": { "type": "boolean", "description": "Whether the Custom Insight should generate Insights\n" @@ -16426,7 +16464,7 @@ }, "severity": { "type": "string", - "description": "The severity of the generated Insights (HIGH, MEDIUM, or LOW)\n" + "description": "The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW)\n" }, "signalNames": { "type": "array", diff --git a/upstream b/upstream index 7a1a5bc4..d620fe6e 160000 --- a/upstream +++ b/upstream @@ -1 +1 @@ -Subproject commit 7a1a5bc4f43c99458e19ef24dded458a885b6538 +Subproject commit d620fe6e326a5bbf14a5b52c343d9bff1e3965e7 From f9c2096f63faf333e3e12f0036652a9c607040fa Mon Sep 17 00:00:00 2001 From: pulumi-bot Date: Sat, 20 Jan 2024 03:09:47 +0000 Subject: [PATCH 2/2] make build_sdks --- sdk/dotnet/CseCustomInsight.cs | 44 ++- .../CseCustomInsightDynamicSeverityArgs.cs | 32 ++ .../CseCustomInsightDynamicSeverityGetArgs.cs | 32 ++ .../CseCustomInsightDynamicSeverity.cs | 35 ++ sdk/go/sumologic/cseCustomInsight.go | 37 ++- sdk/go/sumologic/pulumiTypes.go | 303 +++++++----------- sdk/go/sumologic/pulumiTypes1.go | 193 +++++++++++ .../pulumi/sumologic/CseCustomInsight.java | 24 +- .../sumologic/CseCustomInsightArgs.java | 56 +++- .../CseCustomInsightDynamicSeverityArgs.java | 126 ++++++++ .../inputs/CseCustomInsightState.java | 56 +++- .../CseCustomInsightDynamicSeverity.java | 82 +++++ sdk/nodejs/cseCustomInsight.ts | 26 +- sdk/nodejs/types/input.ts | 11 + sdk/nodejs/types/output.ts | 11 + sdk/python/pulumi_sumologic/_inputs.py | 38 +++ .../pulumi_sumologic/cse_custom_insight.py | 71 +++- sdk/python/pulumi_sumologic/outputs.py | 49 +++ 18 files changed, 1002 insertions(+), 224 deletions(-) create mode 100644 sdk/dotnet/Inputs/CseCustomInsightDynamicSeverityArgs.cs create mode 100644 sdk/dotnet/Inputs/CseCustomInsightDynamicSeverityGetArgs.cs create mode 100644 sdk/dotnet/Outputs/CseCustomInsightDynamicSeverity.cs create mode 100644 sdk/java/src/main/java/com/pulumi/sumologic/inputs/CseCustomInsightDynamicSeverityArgs.java create mode 100644 sdk/java/src/main/java/com/pulumi/sumologic/outputs/CseCustomInsightDynamicSeverity.java diff --git a/sdk/dotnet/CseCustomInsight.cs b/sdk/dotnet/CseCustomInsight.cs index 7d60b24e..88c207b7 100644 --- a/sdk/dotnet/CseCustomInsight.cs +++ b/sdk/dotnet/CseCustomInsight.cs @@ -25,6 +25,14 @@ namespace Pulumi.SumoLogic /// var customInsight = new SumoLogic.CseCustomInsight("customInsight", new() /// { /// Description = "Insight description", + /// DynamicSeverities = new[] + /// { + /// new SumoLogic.Inputs.CseCustomInsightDynamicSeverityArgs + /// { + /// InsightSeverity = "CRITICAL", + /// MinimumSignalSeverity = 8, + /// }, + /// }, /// Enabled = true, /// Ordered = true, /// RuleIds = new[] @@ -64,6 +72,12 @@ public partial class CseCustomInsight : global::Pulumi.CustomResource [Output("description")] public Output Description { get; private set; } = null!; + /// + /// The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. + /// + [Output("dynamicSeverities")] + public Output> DynamicSeverities { get; private set; } = null!; + /// /// Whether the Custom Insight should generate Insights /// @@ -89,7 +103,7 @@ public partial class CseCustomInsight : global::Pulumi.CustomResource public Output> RuleIds { get; private set; } = null!; /// - /// The severity of the generated Insights (HIGH, MEDIUM, or LOW) + /// The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) /// [Output("severity")] public Output Severity { get; private set; } = null!; @@ -160,6 +174,18 @@ public sealed class CseCustomInsightArgs : global::Pulumi.ResourceArgs [Input("description", required: true)] public Input Description { get; set; } = null!; + [Input("dynamicSeverities")] + private InputList? _dynamicSeverities; + + /// + /// The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. + /// + public InputList DynamicSeverities + { + get => _dynamicSeverities ?? (_dynamicSeverities = new InputList()); + set => _dynamicSeverities = value; + } + /// /// Whether the Custom Insight should generate Insights /// @@ -191,7 +217,7 @@ public InputList RuleIds } /// - /// The severity of the generated Insights (HIGH, MEDIUM, or LOW) + /// The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) /// [Input("severity", required: true)] public Input Severity { get; set; } = null!; @@ -236,6 +262,18 @@ public sealed class CseCustomInsightState : global::Pulumi.ResourceArgs [Input("description")] public Input? Description { get; set; } + [Input("dynamicSeverities")] + private InputList? _dynamicSeverities; + + /// + /// The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. + /// + public InputList DynamicSeverities + { + get => _dynamicSeverities ?? (_dynamicSeverities = new InputList()); + set => _dynamicSeverities = value; + } + /// /// Whether the Custom Insight should generate Insights /// @@ -267,7 +305,7 @@ public InputList RuleIds } /// - /// The severity of the generated Insights (HIGH, MEDIUM, or LOW) + /// The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) /// [Input("severity")] public Input? Severity { get; set; } diff --git a/sdk/dotnet/Inputs/CseCustomInsightDynamicSeverityArgs.cs b/sdk/dotnet/Inputs/CseCustomInsightDynamicSeverityArgs.cs new file mode 100644 index 00000000..f63250c9 --- /dev/null +++ b/sdk/dotnet/Inputs/CseCustomInsightDynamicSeverityArgs.cs @@ -0,0 +1,32 @@ +// *** 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.SumoLogic.Inputs +{ + + public sealed class CseCustomInsightDynamicSeverityArgs : global::Pulumi.ResourceArgs + { + /// + /// The severity of the generated Insight (CRITICAL, HIGH, MEDIUM, or LOW) + /// + [Input("insightSeverity", required: true)] + public Input InsightSeverity { get; set; } = null!; + + /// + /// minimum Signal severity as the threshold for an Insight severity level + /// + [Input("minimumSignalSeverity", required: true)] + public Input MinimumSignalSeverity { get; set; } = null!; + + public CseCustomInsightDynamicSeverityArgs() + { + } + public static new CseCustomInsightDynamicSeverityArgs Empty => new CseCustomInsightDynamicSeverityArgs(); + } +} diff --git a/sdk/dotnet/Inputs/CseCustomInsightDynamicSeverityGetArgs.cs b/sdk/dotnet/Inputs/CseCustomInsightDynamicSeverityGetArgs.cs new file mode 100644 index 00000000..c00504f0 --- /dev/null +++ b/sdk/dotnet/Inputs/CseCustomInsightDynamicSeverityGetArgs.cs @@ -0,0 +1,32 @@ +// *** 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.SumoLogic.Inputs +{ + + public sealed class CseCustomInsightDynamicSeverityGetArgs : global::Pulumi.ResourceArgs + { + /// + /// The severity of the generated Insight (CRITICAL, HIGH, MEDIUM, or LOW) + /// + [Input("insightSeverity", required: true)] + public Input InsightSeverity { get; set; } = null!; + + /// + /// minimum Signal severity as the threshold for an Insight severity level + /// + [Input("minimumSignalSeverity", required: true)] + public Input MinimumSignalSeverity { get; set; } = null!; + + public CseCustomInsightDynamicSeverityGetArgs() + { + } + public static new CseCustomInsightDynamicSeverityGetArgs Empty => new CseCustomInsightDynamicSeverityGetArgs(); + } +} diff --git a/sdk/dotnet/Outputs/CseCustomInsightDynamicSeverity.cs b/sdk/dotnet/Outputs/CseCustomInsightDynamicSeverity.cs new file mode 100644 index 00000000..3e743769 --- /dev/null +++ b/sdk/dotnet/Outputs/CseCustomInsightDynamicSeverity.cs @@ -0,0 +1,35 @@ +// *** 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.SumoLogic.Outputs +{ + + [OutputType] + public sealed class CseCustomInsightDynamicSeverity + { + /// + /// The severity of the generated Insight (CRITICAL, HIGH, MEDIUM, or LOW) + /// + public readonly string InsightSeverity; + /// + /// minimum Signal severity as the threshold for an Insight severity level + /// + public readonly int MinimumSignalSeverity; + + [OutputConstructor] + private CseCustomInsightDynamicSeverity( + string insightSeverity, + + int minimumSignalSeverity) + { + InsightSeverity = insightSeverity; + MinimumSignalSeverity = minimumSignalSeverity; + } + } +} diff --git a/sdk/go/sumologic/cseCustomInsight.go b/sdk/go/sumologic/cseCustomInsight.go index 43e28945..f490da4e 100644 --- a/sdk/go/sumologic/cseCustomInsight.go +++ b/sdk/go/sumologic/cseCustomInsight.go @@ -30,8 +30,14 @@ import ( // pulumi.Run(func(ctx *pulumi.Context) error { // _, err := sumologic.NewCseCustomInsight(ctx, "customInsight", &sumologic.CseCustomInsightArgs{ // Description: pulumi.String("Insight description"), -// Enabled: pulumi.Bool(true), -// Ordered: pulumi.Bool(true), +// DynamicSeverities: sumologic.CseCustomInsightDynamicSeverityArray{ +// &sumologic.CseCustomInsightDynamicSeverityArgs{ +// InsightSeverity: pulumi.String("CRITICAL"), +// MinimumSignalSeverity: pulumi.Int(8), +// }, +// }, +// Enabled: pulumi.Bool(true), +// Ordered: pulumi.Bool(true), // RuleIds: pulumi.StringArray{ // pulumi.String("MATCH-S00001"), // pulumi.String("THRESHOLD-U00005"), @@ -68,6 +74,8 @@ type CseCustomInsight struct { // The description of the generated Insights Description pulumi.StringOutput `pulumi:"description"` + // The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. + DynamicSeverities CseCustomInsightDynamicSeverityArrayOutput `pulumi:"dynamicSeverities"` // Whether the Custom Insight should generate Insights Enabled pulumi.BoolOutput `pulumi:"enabled"` // The name of the Custom Insight and the generated Insights @@ -76,7 +84,7 @@ type CseCustomInsight struct { Ordered pulumi.BoolOutput `pulumi:"ordered"` // The Rule IDs to match to generate an Insight (exactly one of ruleIds or signalNames must be specified) RuleIds pulumi.StringArrayOutput `pulumi:"ruleIds"` - // The severity of the generated Insights (HIGH, MEDIUM, or LOW) + // The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) Severity pulumi.StringOutput `pulumi:"severity"` // The Signal names to match to generate an Insight (exactly one of ruleIds or signalNames must be specified) SignalNames pulumi.StringArrayOutput `pulumi:"signalNames"` @@ -133,6 +141,8 @@ func GetCseCustomInsight(ctx *pulumi.Context, type cseCustomInsightState struct { // The description of the generated Insights Description *string `pulumi:"description"` + // The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. + DynamicSeverities []CseCustomInsightDynamicSeverity `pulumi:"dynamicSeverities"` // Whether the Custom Insight should generate Insights Enabled *bool `pulumi:"enabled"` // The name of the Custom Insight and the generated Insights @@ -141,7 +151,7 @@ type cseCustomInsightState struct { Ordered *bool `pulumi:"ordered"` // The Rule IDs to match to generate an Insight (exactly one of ruleIds or signalNames must be specified) RuleIds []string `pulumi:"ruleIds"` - // The severity of the generated Insights (HIGH, MEDIUM, or LOW) + // The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) Severity *string `pulumi:"severity"` // The Signal names to match to generate an Insight (exactly one of ruleIds or signalNames must be specified) SignalNames []string `pulumi:"signalNames"` @@ -154,6 +164,8 @@ type cseCustomInsightState struct { type CseCustomInsightState struct { // The description of the generated Insights Description pulumi.StringPtrInput + // The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. + DynamicSeverities CseCustomInsightDynamicSeverityArrayInput // Whether the Custom Insight should generate Insights Enabled pulumi.BoolPtrInput // The name of the Custom Insight and the generated Insights @@ -162,7 +174,7 @@ type CseCustomInsightState struct { Ordered pulumi.BoolPtrInput // The Rule IDs to match to generate an Insight (exactly one of ruleIds or signalNames must be specified) RuleIds pulumi.StringArrayInput - // The severity of the generated Insights (HIGH, MEDIUM, or LOW) + // The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) Severity pulumi.StringPtrInput // The Signal names to match to generate an Insight (exactly one of ruleIds or signalNames must be specified) SignalNames pulumi.StringArrayInput @@ -179,6 +191,8 @@ func (CseCustomInsightState) ElementType() reflect.Type { type cseCustomInsightArgs struct { // The description of the generated Insights Description string `pulumi:"description"` + // The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. + DynamicSeverities []CseCustomInsightDynamicSeverity `pulumi:"dynamicSeverities"` // Whether the Custom Insight should generate Insights Enabled bool `pulumi:"enabled"` // The name of the Custom Insight and the generated Insights @@ -187,7 +201,7 @@ type cseCustomInsightArgs struct { Ordered bool `pulumi:"ordered"` // The Rule IDs to match to generate an Insight (exactly one of ruleIds or signalNames must be specified) RuleIds []string `pulumi:"ruleIds"` - // The severity of the generated Insights (HIGH, MEDIUM, or LOW) + // The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) Severity string `pulumi:"severity"` // The Signal names to match to generate an Insight (exactly one of ruleIds or signalNames must be specified) SignalNames []string `pulumi:"signalNames"` @@ -201,6 +215,8 @@ type cseCustomInsightArgs struct { type CseCustomInsightArgs struct { // The description of the generated Insights Description pulumi.StringInput + // The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. + DynamicSeverities CseCustomInsightDynamicSeverityArrayInput // Whether the Custom Insight should generate Insights Enabled pulumi.BoolInput // The name of the Custom Insight and the generated Insights @@ -209,7 +225,7 @@ type CseCustomInsightArgs struct { Ordered pulumi.BoolInput // The Rule IDs to match to generate an Insight (exactly one of ruleIds or signalNames must be specified) RuleIds pulumi.StringArrayInput - // The severity of the generated Insights (HIGH, MEDIUM, or LOW) + // The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) Severity pulumi.StringInput // The Signal names to match to generate an Insight (exactly one of ruleIds or signalNames must be specified) SignalNames pulumi.StringArrayInput @@ -311,6 +327,11 @@ func (o CseCustomInsightOutput) Description() pulumi.StringOutput { return o.ApplyT(func(v *CseCustomInsight) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput) } +// The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. +func (o CseCustomInsightOutput) DynamicSeverities() CseCustomInsightDynamicSeverityArrayOutput { + return o.ApplyT(func(v *CseCustomInsight) CseCustomInsightDynamicSeverityArrayOutput { return v.DynamicSeverities }).(CseCustomInsightDynamicSeverityArrayOutput) +} + // Whether the Custom Insight should generate Insights func (o CseCustomInsightOutput) Enabled() pulumi.BoolOutput { return o.ApplyT(func(v *CseCustomInsight) pulumi.BoolOutput { return v.Enabled }).(pulumi.BoolOutput) @@ -331,7 +352,7 @@ func (o CseCustomInsightOutput) RuleIds() pulumi.StringArrayOutput { return o.ApplyT(func(v *CseCustomInsight) pulumi.StringArrayOutput { return v.RuleIds }).(pulumi.StringArrayOutput) } -// The severity of the generated Insights (HIGH, MEDIUM, or LOW) +// The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) func (o CseCustomInsightOutput) Severity() pulumi.StringOutput { return o.ApplyT(func(v *CseCustomInsight) pulumi.StringOutput { return v.Severity }).(pulumi.StringOutput) } diff --git a/sdk/go/sumologic/pulumiTypes.go b/sdk/go/sumologic/pulumiTypes.go index ceeb66a9..6a232522 100644 --- a/sdk/go/sumologic/pulumiTypes.go +++ b/sdk/go/sumologic/pulumiTypes.go @@ -6898,6 +6898,112 @@ func (o CseChainRuleExpressionsAndLimitArrayOutput) Index(i pulumi.IntInput) Cse }).(CseChainRuleExpressionsAndLimitOutput) } +type CseCustomInsightDynamicSeverity struct { + // The severity of the generated Insight (CRITICAL, HIGH, MEDIUM, or LOW) + InsightSeverity string `pulumi:"insightSeverity"` + // minimum Signal severity as the threshold for an Insight severity level + MinimumSignalSeverity int `pulumi:"minimumSignalSeverity"` +} + +// CseCustomInsightDynamicSeverityInput is an input type that accepts CseCustomInsightDynamicSeverityArgs and CseCustomInsightDynamicSeverityOutput values. +// You can construct a concrete instance of `CseCustomInsightDynamicSeverityInput` via: +// +// CseCustomInsightDynamicSeverityArgs{...} +type CseCustomInsightDynamicSeverityInput interface { + pulumi.Input + + ToCseCustomInsightDynamicSeverityOutput() CseCustomInsightDynamicSeverityOutput + ToCseCustomInsightDynamicSeverityOutputWithContext(context.Context) CseCustomInsightDynamicSeverityOutput +} + +type CseCustomInsightDynamicSeverityArgs struct { + // The severity of the generated Insight (CRITICAL, HIGH, MEDIUM, or LOW) + InsightSeverity pulumi.StringInput `pulumi:"insightSeverity"` + // minimum Signal severity as the threshold for an Insight severity level + MinimumSignalSeverity pulumi.IntInput `pulumi:"minimumSignalSeverity"` +} + +func (CseCustomInsightDynamicSeverityArgs) ElementType() reflect.Type { + return reflect.TypeOf((*CseCustomInsightDynamicSeverity)(nil)).Elem() +} + +func (i CseCustomInsightDynamicSeverityArgs) ToCseCustomInsightDynamicSeverityOutput() CseCustomInsightDynamicSeverityOutput { + return i.ToCseCustomInsightDynamicSeverityOutputWithContext(context.Background()) +} + +func (i CseCustomInsightDynamicSeverityArgs) ToCseCustomInsightDynamicSeverityOutputWithContext(ctx context.Context) CseCustomInsightDynamicSeverityOutput { + return pulumi.ToOutputWithContext(ctx, i).(CseCustomInsightDynamicSeverityOutput) +} + +// CseCustomInsightDynamicSeverityArrayInput is an input type that accepts CseCustomInsightDynamicSeverityArray and CseCustomInsightDynamicSeverityArrayOutput values. +// You can construct a concrete instance of `CseCustomInsightDynamicSeverityArrayInput` via: +// +// CseCustomInsightDynamicSeverityArray{ CseCustomInsightDynamicSeverityArgs{...} } +type CseCustomInsightDynamicSeverityArrayInput interface { + pulumi.Input + + ToCseCustomInsightDynamicSeverityArrayOutput() CseCustomInsightDynamicSeverityArrayOutput + ToCseCustomInsightDynamicSeverityArrayOutputWithContext(context.Context) CseCustomInsightDynamicSeverityArrayOutput +} + +type CseCustomInsightDynamicSeverityArray []CseCustomInsightDynamicSeverityInput + +func (CseCustomInsightDynamicSeverityArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]CseCustomInsightDynamicSeverity)(nil)).Elem() +} + +func (i CseCustomInsightDynamicSeverityArray) ToCseCustomInsightDynamicSeverityArrayOutput() CseCustomInsightDynamicSeverityArrayOutput { + return i.ToCseCustomInsightDynamicSeverityArrayOutputWithContext(context.Background()) +} + +func (i CseCustomInsightDynamicSeverityArray) ToCseCustomInsightDynamicSeverityArrayOutputWithContext(ctx context.Context) CseCustomInsightDynamicSeverityArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(CseCustomInsightDynamicSeverityArrayOutput) +} + +type CseCustomInsightDynamicSeverityOutput struct{ *pulumi.OutputState } + +func (CseCustomInsightDynamicSeverityOutput) ElementType() reflect.Type { + return reflect.TypeOf((*CseCustomInsightDynamicSeverity)(nil)).Elem() +} + +func (o CseCustomInsightDynamicSeverityOutput) ToCseCustomInsightDynamicSeverityOutput() CseCustomInsightDynamicSeverityOutput { + return o +} + +func (o CseCustomInsightDynamicSeverityOutput) ToCseCustomInsightDynamicSeverityOutputWithContext(ctx context.Context) CseCustomInsightDynamicSeverityOutput { + return o +} + +// The severity of the generated Insight (CRITICAL, HIGH, MEDIUM, or LOW) +func (o CseCustomInsightDynamicSeverityOutput) InsightSeverity() pulumi.StringOutput { + return o.ApplyT(func(v CseCustomInsightDynamicSeverity) string { return v.InsightSeverity }).(pulumi.StringOutput) +} + +// minimum Signal severity as the threshold for an Insight severity level +func (o CseCustomInsightDynamicSeverityOutput) MinimumSignalSeverity() pulumi.IntOutput { + return o.ApplyT(func(v CseCustomInsightDynamicSeverity) int { return v.MinimumSignalSeverity }).(pulumi.IntOutput) +} + +type CseCustomInsightDynamicSeverityArrayOutput struct{ *pulumi.OutputState } + +func (CseCustomInsightDynamicSeverityArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]CseCustomInsightDynamicSeverity)(nil)).Elem() +} + +func (o CseCustomInsightDynamicSeverityArrayOutput) ToCseCustomInsightDynamicSeverityArrayOutput() CseCustomInsightDynamicSeverityArrayOutput { + return o +} + +func (o CseCustomInsightDynamicSeverityArrayOutput) ToCseCustomInsightDynamicSeverityArrayOutputWithContext(ctx context.Context) CseCustomInsightDynamicSeverityArrayOutput { + return o +} + +func (o CseCustomInsightDynamicSeverityArrayOutput) Index(i pulumi.IntInput) CseCustomInsightDynamicSeverityOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) CseCustomInsightDynamicSeverity { + return vs[0].([]CseCustomInsightDynamicSeverity)[vs[1].(int)] + }).(CseCustomInsightDynamicSeverityOutput) +} + type CseEntityNormalizationConfigurationDomainMapping struct { // The normalized domain. NormalizedDomain string `pulumi:"normalizedDomain"` @@ -62722,195 +62828,6 @@ func (o HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNe }).(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionArrayOutput) } -type HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel struct { - // Indicates the name and type for all entities at this hierarchy level, e.g. service or pod in case of kubernetes entities. - EntityType string `pulumi:"entityType"` - // Next level without a condition. - // - // The following attributes are exported: - NextLevel *HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevel `pulumi:"nextLevel"` - // Zero or more next levels with conditions. - NextLevelsWithConditions []HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelsWithCondition `pulumi:"nextLevelsWithConditions"` -} - -// HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelInput is an input type that accepts HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelArgs and HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput values. -// You can construct a concrete instance of `HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelInput` via: -// -// HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelArgs{...} -type HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelInput interface { - pulumi.Input - - ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput() HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput - ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutputWithContext(context.Context) HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput -} - -type HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelArgs struct { - // Indicates the name and type for all entities at this hierarchy level, e.g. service or pod in case of kubernetes entities. - EntityType pulumi.StringInput `pulumi:"entityType"` - // Next level without a condition. - // - // The following attributes are exported: - NextLevel HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelPtrInput `pulumi:"nextLevel"` - // Zero or more next levels with conditions. - NextLevelsWithConditions HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelsWithConditionArrayInput `pulumi:"nextLevelsWithConditions"` -} - -func (HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelArgs) ElementType() reflect.Type { - return reflect.TypeOf((*HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel)(nil)).Elem() -} - -func (i HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelArgs) ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput() HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput { - return i.ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutputWithContext(context.Background()) -} - -func (i HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelArgs) ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutputWithContext(ctx context.Context) HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput { - return pulumi.ToOutputWithContext(ctx, i).(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput) -} - -func (i HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelArgs) ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput() HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput { - return i.ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutputWithContext(context.Background()) -} - -func (i HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelArgs) ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutputWithContext(ctx context.Context) HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput).ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutputWithContext(ctx) -} - -// HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrInput is an input type that accepts HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelArgs, HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtr and HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput values. -// You can construct a concrete instance of `HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrInput` via: -// -// HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelArgs{...} -// -// or: -// -// nil -type HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrInput interface { - pulumi.Input - - ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput() HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput - ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutputWithContext(context.Context) HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput -} - -type hierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrType HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelArgs - -func HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtr(v *HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelArgs) HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrInput { - return (*hierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrType)(v) -} - -func (*hierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel)(nil)).Elem() -} - -func (i *hierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrType) ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput() HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput { - return i.ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutputWithContext(context.Background()) -} - -func (i *hierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrType) ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutputWithContext(ctx context.Context) HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput) -} - -type HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput struct{ *pulumi.OutputState } - -func (HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput) ElementType() reflect.Type { - return reflect.TypeOf((*HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel)(nil)).Elem() -} - -func (o HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput) ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput() HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput { - return o -} - -func (o HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput) ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutputWithContext(ctx context.Context) HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput { - return o -} - -func (o HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput) ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput() HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput { - return o.ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutputWithContext(context.Background()) -} - -func (o HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput) ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutputWithContext(ctx context.Context) HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel) *HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel { - return &v - }).(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput) -} - -// Indicates the name and type for all entities at this hierarchy level, e.g. service or pod in case of kubernetes entities. -func (o HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput) EntityType() pulumi.StringOutput { - return o.ApplyT(func(v HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel) string { - return v.EntityType - }).(pulumi.StringOutput) -} - -// Next level without a condition. -// -// The following attributes are exported: -func (o HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput) NextLevel() HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelPtrOutput { - return o.ApplyT(func(v HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel) *HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevel { - return v.NextLevel - }).(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelPtrOutput) -} - -// Zero or more next levels with conditions. -func (o HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput) NextLevelsWithConditions() HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelsWithConditionArrayOutput { - return o.ApplyT(func(v HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel) []HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelsWithCondition { - return v.NextLevelsWithConditions - }).(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelsWithConditionArrayOutput) -} - -type HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput struct{ *pulumi.OutputState } - -func (HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel)(nil)).Elem() -} - -func (o HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput) ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput() HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput { - return o -} - -func (o HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput) ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutputWithContext(ctx context.Context) HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput { - return o -} - -func (o HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput) Elem() HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput { - return o.ApplyT(func(v *HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel) HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel { - if v != nil { - return *v - } - var ret HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel - return ret - }).(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput) -} - -// Indicates the name and type for all entities at this hierarchy level, e.g. service or pod in case of kubernetes entities. -func (o HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput) EntityType() pulumi.StringPtrOutput { - return o.ApplyT(func(v *HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel) *string { - if v == nil { - return nil - } - return &v.EntityType - }).(pulumi.StringPtrOutput) -} - -// Next level without a condition. -// -// The following attributes are exported: -func (o HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput) NextLevel() HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelPtrOutput { - return o.ApplyT(func(v *HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel) *HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevel { - if v == nil { - return nil - } - return v.NextLevel - }).(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelPtrOutput) -} - -// Zero or more next levels with conditions. -func (o HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput) NextLevelsWithConditions() HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelsWithConditionArrayOutput { - return o.ApplyT(func(v *HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel) []HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelsWithCondition { - if v == nil { - return nil - } - return v.NextLevelsWithConditions - }).(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelsWithConditionArrayOutput) -} - func init() { pulumi.RegisterInputType(reflect.TypeOf((*AwsInventorySourceAuthenticationInput)(nil)).Elem(), AwsInventorySourceAuthenticationArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*AwsInventorySourceAuthenticationPtrInput)(nil)).Elem(), AwsInventorySourceAuthenticationArgs{}) @@ -63000,6 +62917,8 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*CseChainRuleEntitySelectorArrayInput)(nil)).Elem(), CseChainRuleEntitySelectorArray{}) pulumi.RegisterInputType(reflect.TypeOf((*CseChainRuleExpressionsAndLimitInput)(nil)).Elem(), CseChainRuleExpressionsAndLimitArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*CseChainRuleExpressionsAndLimitArrayInput)(nil)).Elem(), CseChainRuleExpressionsAndLimitArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*CseCustomInsightDynamicSeverityInput)(nil)).Elem(), CseCustomInsightDynamicSeverityArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*CseCustomInsightDynamicSeverityArrayInput)(nil)).Elem(), CseCustomInsightDynamicSeverityArray{}) pulumi.RegisterInputType(reflect.TypeOf((*CseEntityNormalizationConfigurationDomainMappingInput)(nil)).Elem(), CseEntityNormalizationConfigurationDomainMappingArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*CseEntityNormalizationConfigurationDomainMappingArrayInput)(nil)).Elem(), CseEntityNormalizationConfigurationDomainMappingArray{}) pulumi.RegisterInputType(reflect.TypeOf((*CseFirstSeenRuleEntitySelectorInput)(nil)).Elem(), CseFirstSeenRuleEntitySelectorArgs{}) @@ -63785,8 +63704,6 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionInput)(nil)).Elem(), HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionArrayInput)(nil)).Elem(), HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionArray{}) pulumi.RegisterInputType(reflect.TypeOf((*HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelInput)(nil)).Elem(), HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelInput)(nil)).Elem(), HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrInput)(nil)).Elem(), HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelArgs{}) pulumi.RegisterOutputType(AwsInventorySourceAuthenticationOutput{}) pulumi.RegisterOutputType(AwsInventorySourceAuthenticationPtrOutput{}) pulumi.RegisterOutputType(AwsInventorySourceDefaultDateFormatOutput{}) @@ -63875,6 +63792,8 @@ func init() { pulumi.RegisterOutputType(CseChainRuleEntitySelectorArrayOutput{}) pulumi.RegisterOutputType(CseChainRuleExpressionsAndLimitOutput{}) pulumi.RegisterOutputType(CseChainRuleExpressionsAndLimitArrayOutput{}) + pulumi.RegisterOutputType(CseCustomInsightDynamicSeverityOutput{}) + pulumi.RegisterOutputType(CseCustomInsightDynamicSeverityArrayOutput{}) pulumi.RegisterOutputType(CseEntityNormalizationConfigurationDomainMappingOutput{}) pulumi.RegisterOutputType(CseEntityNormalizationConfigurationDomainMappingArrayOutput{}) pulumi.RegisterOutputType(CseFirstSeenRuleEntitySelectorOutput{}) @@ -64660,6 +64579,4 @@ func init() { pulumi.RegisterOutputType(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionOutput{}) pulumi.RegisterOutputType(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionArrayOutput{}) pulumi.RegisterOutputType(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelOutput{}) - pulumi.RegisterOutputType(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput{}) - pulumi.RegisterOutputType(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput{}) } diff --git a/sdk/go/sumologic/pulumiTypes1.go b/sdk/go/sumologic/pulumiTypes1.go index f9b3eefd..ab743b51 100644 --- a/sdk/go/sumologic/pulumiTypes1.go +++ b/sdk/go/sumologic/pulumiTypes1.go @@ -13,6 +13,195 @@ import ( var _ = internal.GetEnvOrDefault +type HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel struct { + // Indicates the name and type for all entities at this hierarchy level, e.g. service or pod in case of kubernetes entities. + EntityType string `pulumi:"entityType"` + // Next level without a condition. + // + // The following attributes are exported: + NextLevel *HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevel `pulumi:"nextLevel"` + // Zero or more next levels with conditions. + NextLevelsWithConditions []HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelsWithCondition `pulumi:"nextLevelsWithConditions"` +} + +// HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelInput is an input type that accepts HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelArgs and HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput values. +// You can construct a concrete instance of `HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelInput` via: +// +// HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelArgs{...} +type HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelInput interface { + pulumi.Input + + ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput() HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput + ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutputWithContext(context.Context) HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput +} + +type HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelArgs struct { + // Indicates the name and type for all entities at this hierarchy level, e.g. service or pod in case of kubernetes entities. + EntityType pulumi.StringInput `pulumi:"entityType"` + // Next level without a condition. + // + // The following attributes are exported: + NextLevel HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelPtrInput `pulumi:"nextLevel"` + // Zero or more next levels with conditions. + NextLevelsWithConditions HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelsWithConditionArrayInput `pulumi:"nextLevelsWithConditions"` +} + +func (HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelArgs) ElementType() reflect.Type { + return reflect.TypeOf((*HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel)(nil)).Elem() +} + +func (i HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelArgs) ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput() HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput { + return i.ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutputWithContext(context.Background()) +} + +func (i HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelArgs) ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutputWithContext(ctx context.Context) HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput { + return pulumi.ToOutputWithContext(ctx, i).(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput) +} + +func (i HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelArgs) ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput() HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput { + return i.ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutputWithContext(context.Background()) +} + +func (i HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelArgs) ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutputWithContext(ctx context.Context) HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput).ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutputWithContext(ctx) +} + +// HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrInput is an input type that accepts HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelArgs, HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtr and HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput values. +// You can construct a concrete instance of `HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrInput` via: +// +// HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelArgs{...} +// +// or: +// +// nil +type HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrInput interface { + pulumi.Input + + ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput() HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput + ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutputWithContext(context.Context) HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput +} + +type hierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrType HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelArgs + +func HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtr(v *HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelArgs) HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrInput { + return (*hierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrType)(v) +} + +func (*hierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel)(nil)).Elem() +} + +func (i *hierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrType) ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput() HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput { + return i.ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutputWithContext(context.Background()) +} + +func (i *hierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrType) ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutputWithContext(ctx context.Context) HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput) +} + +type HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput struct{ *pulumi.OutputState } + +func (HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput) ElementType() reflect.Type { + return reflect.TypeOf((*HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel)(nil)).Elem() +} + +func (o HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput) ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput() HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput { + return o +} + +func (o HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput) ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutputWithContext(ctx context.Context) HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput { + return o +} + +func (o HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput) ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput() HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput { + return o.ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutputWithContext(context.Background()) +} + +func (o HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput) ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutputWithContext(ctx context.Context) HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel) *HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel { + return &v + }).(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput) +} + +// Indicates the name and type for all entities at this hierarchy level, e.g. service or pod in case of kubernetes entities. +func (o HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput) EntityType() pulumi.StringOutput { + return o.ApplyT(func(v HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel) string { + return v.EntityType + }).(pulumi.StringOutput) +} + +// Next level without a condition. +// +// The following attributes are exported: +func (o HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput) NextLevel() HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelPtrOutput { + return o.ApplyT(func(v HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel) *HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevel { + return v.NextLevel + }).(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelPtrOutput) +} + +// Zero or more next levels with conditions. +func (o HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput) NextLevelsWithConditions() HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelsWithConditionArrayOutput { + return o.ApplyT(func(v HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel) []HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelsWithCondition { + return v.NextLevelsWithConditions + }).(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelsWithConditionArrayOutput) +} + +type HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput struct{ *pulumi.OutputState } + +func (HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel)(nil)).Elem() +} + +func (o HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput) ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput() HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput { + return o +} + +func (o HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput) ToHierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutputWithContext(ctx context.Context) HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput { + return o +} + +func (o HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput) Elem() HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput { + return o.ApplyT(func(v *HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel) HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel { + if v != nil { + return *v + } + var ret HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel + return ret + }).(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput) +} + +// Indicates the name and type for all entities at this hierarchy level, e.g. service or pod in case of kubernetes entities. +func (o HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput) EntityType() pulumi.StringPtrOutput { + return o.ApplyT(func(v *HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel) *string { + if v == nil { + return nil + } + return &v.EntityType + }).(pulumi.StringPtrOutput) +} + +// Next level without a condition. +// +// The following attributes are exported: +func (o HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput) NextLevel() HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelPtrOutput { + return o.ApplyT(func(v *HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel) *HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevel { + if v == nil { + return nil + } + return v.NextLevel + }).(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelPtrOutput) +} + +// Zero or more next levels with conditions. +func (o HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput) NextLevelsWithConditions() HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelsWithConditionArrayOutput { + return o.ApplyT(func(v *HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevel) []HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelsWithCondition { + if v == nil { + return nil + } + return v.NextLevelsWithConditions + }).(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelsWithConditionArrayOutput) +} + type HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevel struct { // Indicates the name and type for all entities at this hierarchy level, e.g. service or pod in case of kubernetes entities. EntityType string `pulumi:"entityType"` @@ -24476,6 +24665,8 @@ func (o SloIndicatorWindowBasedEvaluationQueryQueryGroupArrayOutput) Index(i pul } func init() { + pulumi.RegisterInputType(reflect.TypeOf((*HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelInput)(nil)).Elem(), HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrInput)(nil)).Elem(), HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelInput)(nil)).Elem(), HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelPtrInput)(nil)).Elem(), HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelsWithConditionInput)(nil)).Elem(), HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelsWithConditionArgs{}) @@ -24790,6 +24981,8 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*SloIndicatorWindowBasedEvaluationQueryArrayInput)(nil)).Elem(), SloIndicatorWindowBasedEvaluationQueryArray{}) pulumi.RegisterInputType(reflect.TypeOf((*SloIndicatorWindowBasedEvaluationQueryQueryGroupInput)(nil)).Elem(), SloIndicatorWindowBasedEvaluationQueryQueryGroupArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*SloIndicatorWindowBasedEvaluationQueryQueryGroupArrayInput)(nil)).Elem(), SloIndicatorWindowBasedEvaluationQueryQueryGroupArray{}) + pulumi.RegisterOutputType(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelOutput{}) + pulumi.RegisterOutputType(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelPtrOutput{}) pulumi.RegisterOutputType(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelOutput{}) pulumi.RegisterOutputType(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelPtrOutput{}) pulumi.RegisterOutputType(HierarchyLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelsWithConditionLevelNextLevelNextLevelsWithConditionOutput{}) diff --git a/sdk/java/src/main/java/com/pulumi/sumologic/CseCustomInsight.java b/sdk/java/src/main/java/com/pulumi/sumologic/CseCustomInsight.java index 7b0fec3a..b8923068 100644 --- a/sdk/java/src/main/java/com/pulumi/sumologic/CseCustomInsight.java +++ b/sdk/java/src/main/java/com/pulumi/sumologic/CseCustomInsight.java @@ -10,6 +10,7 @@ import com.pulumi.sumologic.CseCustomInsightArgs; import com.pulumi.sumologic.Utilities; import com.pulumi.sumologic.inputs.CseCustomInsightState; +import com.pulumi.sumologic.outputs.CseCustomInsightDynamicSeverity; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -28,6 +29,7 @@ * import com.pulumi.core.Output; * import com.pulumi.sumologic.CseCustomInsight; * import com.pulumi.sumologic.CseCustomInsightArgs; + * import com.pulumi.sumologic.inputs.CseCustomInsightDynamicSeverityArgs; * import java.util.List; * import java.util.ArrayList; * import java.util.Map; @@ -43,6 +45,10 @@ * public static void stack(Context ctx) { * var customInsight = new CseCustomInsight("customInsight", CseCustomInsightArgs.builder() * .description("Insight description") + * .dynamicSeverities(CseCustomInsightDynamicSeverityArgs.builder() + * .insightSeverity("CRITICAL") + * .minimumSignalSeverity(8) + * .build()) * .enabled(true) * .ordered(true) * .ruleIds( @@ -84,6 +90,20 @@ public class CseCustomInsight extends com.pulumi.resources.CustomResource { public Output description() { return this.description; } + /** + * The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. + * + */ + @Export(name="dynamicSeverities", refs={List.class,CseCustomInsightDynamicSeverity.class}, tree="[0,1]") + private Output> dynamicSeverities; + + /** + * @return The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. + * + */ + public Output>> dynamicSeverities() { + return Codegen.optional(this.dynamicSeverities); + } /** * Whether the Custom Insight should generate Insights * @@ -141,14 +161,14 @@ public Output>> ruleIds() { return Codegen.optional(this.ruleIds); } /** - * The severity of the generated Insights (HIGH, MEDIUM, or LOW) + * The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) * */ @Export(name="severity", refs={String.class}, tree="[0]") private Output severity; /** - * @return The severity of the generated Insights (HIGH, MEDIUM, or LOW) + * @return The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) * */ public Output severity() { diff --git a/sdk/java/src/main/java/com/pulumi/sumologic/CseCustomInsightArgs.java b/sdk/java/src/main/java/com/pulumi/sumologic/CseCustomInsightArgs.java index c0f401ab..40f6ee89 100644 --- a/sdk/java/src/main/java/com/pulumi/sumologic/CseCustomInsightArgs.java +++ b/sdk/java/src/main/java/com/pulumi/sumologic/CseCustomInsightArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import com.pulumi.exceptions.MissingRequiredPropertyException; +import com.pulumi.sumologic.inputs.CseCustomInsightDynamicSeverityArgs; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -33,6 +34,21 @@ public Output description() { return this.description; } + /** + * The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. + * + */ + @Import(name="dynamicSeverities") + private @Nullable Output> dynamicSeverities; + + /** + * @return The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. + * + */ + public Optional>> dynamicSeverities() { + return Optional.ofNullable(this.dynamicSeverities); + } + /** * Whether the Custom Insight should generate Insights * @@ -94,14 +110,14 @@ public Optional>> ruleIds() { } /** - * The severity of the generated Insights (HIGH, MEDIUM, or LOW) + * The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) * */ @Import(name="severity", required=true) private Output severity; /** - * @return The severity of the generated Insights (HIGH, MEDIUM, or LOW) + * @return The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) * */ public Output severity() { @@ -146,6 +162,7 @@ private CseCustomInsightArgs() {} private CseCustomInsightArgs(CseCustomInsightArgs $) { this.description = $.description; + this.dynamicSeverities = $.dynamicSeverities; this.enabled = $.enabled; this.name = $.name; this.ordered = $.ordered; @@ -194,6 +211,37 @@ public Builder description(String description) { return description(Output.of(description)); } + /** + * @param dynamicSeverities The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. + * + * @return builder + * + */ + public Builder dynamicSeverities(@Nullable Output> dynamicSeverities) { + $.dynamicSeverities = dynamicSeverities; + return this; + } + + /** + * @param dynamicSeverities The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. + * + * @return builder + * + */ + public Builder dynamicSeverities(List dynamicSeverities) { + return dynamicSeverities(Output.of(dynamicSeverities)); + } + + /** + * @param dynamicSeverities The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. + * + * @return builder + * + */ + public Builder dynamicSeverities(CseCustomInsightDynamicSeverityArgs... dynamicSeverities) { + return dynamicSeverities(List.of(dynamicSeverities)); + } + /** * @param enabled Whether the Custom Insight should generate Insights * @@ -289,7 +337,7 @@ public Builder ruleIds(String... ruleIds) { } /** - * @param severity The severity of the generated Insights (HIGH, MEDIUM, or LOW) + * @param severity The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) * * @return builder * @@ -300,7 +348,7 @@ public Builder severity(Output severity) { } /** - * @param severity The severity of the generated Insights (HIGH, MEDIUM, or LOW) + * @param severity The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/sumologic/inputs/CseCustomInsightDynamicSeverityArgs.java b/sdk/java/src/main/java/com/pulumi/sumologic/inputs/CseCustomInsightDynamicSeverityArgs.java new file mode 100644 index 00000000..c56efd15 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/sumologic/inputs/CseCustomInsightDynamicSeverityArgs.java @@ -0,0 +1,126 @@ +// *** 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.sumologic.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + + +public final class CseCustomInsightDynamicSeverityArgs extends com.pulumi.resources.ResourceArgs { + + public static final CseCustomInsightDynamicSeverityArgs Empty = new CseCustomInsightDynamicSeverityArgs(); + + /** + * The severity of the generated Insight (CRITICAL, HIGH, MEDIUM, or LOW) + * + */ + @Import(name="insightSeverity", required=true) + private Output insightSeverity; + + /** + * @return The severity of the generated Insight (CRITICAL, HIGH, MEDIUM, or LOW) + * + */ + public Output insightSeverity() { + return this.insightSeverity; + } + + /** + * minimum Signal severity as the threshold for an Insight severity level + * + */ + @Import(name="minimumSignalSeverity", required=true) + private Output minimumSignalSeverity; + + /** + * @return minimum Signal severity as the threshold for an Insight severity level + * + */ + public Output minimumSignalSeverity() { + return this.minimumSignalSeverity; + } + + private CseCustomInsightDynamicSeverityArgs() {} + + private CseCustomInsightDynamicSeverityArgs(CseCustomInsightDynamicSeverityArgs $) { + this.insightSeverity = $.insightSeverity; + this.minimumSignalSeverity = $.minimumSignalSeverity; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(CseCustomInsightDynamicSeverityArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private CseCustomInsightDynamicSeverityArgs $; + + public Builder() { + $ = new CseCustomInsightDynamicSeverityArgs(); + } + + public Builder(CseCustomInsightDynamicSeverityArgs defaults) { + $ = new CseCustomInsightDynamicSeverityArgs(Objects.requireNonNull(defaults)); + } + + /** + * @param insightSeverity The severity of the generated Insight (CRITICAL, HIGH, MEDIUM, or LOW) + * + * @return builder + * + */ + public Builder insightSeverity(Output insightSeverity) { + $.insightSeverity = insightSeverity; + return this; + } + + /** + * @param insightSeverity The severity of the generated Insight (CRITICAL, HIGH, MEDIUM, or LOW) + * + * @return builder + * + */ + public Builder insightSeverity(String insightSeverity) { + return insightSeverity(Output.of(insightSeverity)); + } + + /** + * @param minimumSignalSeverity minimum Signal severity as the threshold for an Insight severity level + * + * @return builder + * + */ + public Builder minimumSignalSeverity(Output minimumSignalSeverity) { + $.minimumSignalSeverity = minimumSignalSeverity; + return this; + } + + /** + * @param minimumSignalSeverity minimum Signal severity as the threshold for an Insight severity level + * + * @return builder + * + */ + public Builder minimumSignalSeverity(Integer minimumSignalSeverity) { + return minimumSignalSeverity(Output.of(minimumSignalSeverity)); + } + + public CseCustomInsightDynamicSeverityArgs build() { + if ($.insightSeverity == null) { + throw new MissingRequiredPropertyException("CseCustomInsightDynamicSeverityArgs", "insightSeverity"); + } + if ($.minimumSignalSeverity == null) { + throw new MissingRequiredPropertyException("CseCustomInsightDynamicSeverityArgs", "minimumSignalSeverity"); + } + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/sumologic/inputs/CseCustomInsightState.java b/sdk/java/src/main/java/com/pulumi/sumologic/inputs/CseCustomInsightState.java index c3f9f9de..30e6b8ba 100644 --- a/sdk/java/src/main/java/com/pulumi/sumologic/inputs/CseCustomInsightState.java +++ b/sdk/java/src/main/java/com/pulumi/sumologic/inputs/CseCustomInsightState.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.sumologic.inputs.CseCustomInsightDynamicSeverityArgs; import java.lang.Boolean; import java.lang.String; import java.util.List; @@ -32,6 +33,21 @@ public Optional> description() { return Optional.ofNullable(this.description); } + /** + * The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. + * + */ + @Import(name="dynamicSeverities") + private @Nullable Output> dynamicSeverities; + + /** + * @return The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. + * + */ + public Optional>> dynamicSeverities() { + return Optional.ofNullable(this.dynamicSeverities); + } + /** * Whether the Custom Insight should generate Insights * @@ -93,14 +109,14 @@ public Optional>> ruleIds() { } /** - * The severity of the generated Insights (HIGH, MEDIUM, or LOW) + * The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) * */ @Import(name="severity") private @Nullable Output severity; /** - * @return The severity of the generated Insights (HIGH, MEDIUM, or LOW) + * @return The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) * */ public Optional> severity() { @@ -145,6 +161,7 @@ private CseCustomInsightState() {} private CseCustomInsightState(CseCustomInsightState $) { this.description = $.description; + this.dynamicSeverities = $.dynamicSeverities; this.enabled = $.enabled; this.name = $.name; this.ordered = $.ordered; @@ -193,6 +210,37 @@ public Builder description(String description) { return description(Output.of(description)); } + /** + * @param dynamicSeverities The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. + * + * @return builder + * + */ + public Builder dynamicSeverities(@Nullable Output> dynamicSeverities) { + $.dynamicSeverities = dynamicSeverities; + return this; + } + + /** + * @param dynamicSeverities The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. + * + * @return builder + * + */ + public Builder dynamicSeverities(List dynamicSeverities) { + return dynamicSeverities(Output.of(dynamicSeverities)); + } + + /** + * @param dynamicSeverities The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. + * + * @return builder + * + */ + public Builder dynamicSeverities(CseCustomInsightDynamicSeverityArgs... dynamicSeverities) { + return dynamicSeverities(List.of(dynamicSeverities)); + } + /** * @param enabled Whether the Custom Insight should generate Insights * @@ -288,7 +336,7 @@ public Builder ruleIds(String... ruleIds) { } /** - * @param severity The severity of the generated Insights (HIGH, MEDIUM, or LOW) + * @param severity The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) * * @return builder * @@ -299,7 +347,7 @@ public Builder severity(@Nullable Output severity) { } /** - * @param severity The severity of the generated Insights (HIGH, MEDIUM, or LOW) + * @param severity The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/sumologic/outputs/CseCustomInsightDynamicSeverity.java b/sdk/java/src/main/java/com/pulumi/sumologic/outputs/CseCustomInsightDynamicSeverity.java new file mode 100644 index 00000000..202fc766 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/sumologic/outputs/CseCustomInsightDynamicSeverity.java @@ -0,0 +1,82 @@ +// *** 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.sumologic.outputs; + +import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; +import java.lang.Integer; +import java.lang.String; +import java.util.Objects; + +@CustomType +public final class CseCustomInsightDynamicSeverity { + /** + * @return The severity of the generated Insight (CRITICAL, HIGH, MEDIUM, or LOW) + * + */ + private String insightSeverity; + /** + * @return minimum Signal severity as the threshold for an Insight severity level + * + */ + private Integer minimumSignalSeverity; + + private CseCustomInsightDynamicSeverity() {} + /** + * @return The severity of the generated Insight (CRITICAL, HIGH, MEDIUM, or LOW) + * + */ + public String insightSeverity() { + return this.insightSeverity; + } + /** + * @return minimum Signal severity as the threshold for an Insight severity level + * + */ + public Integer minimumSignalSeverity() { + return this.minimumSignalSeverity; + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(CseCustomInsightDynamicSeverity defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private String insightSeverity; + private Integer minimumSignalSeverity; + public Builder() {} + public Builder(CseCustomInsightDynamicSeverity defaults) { + Objects.requireNonNull(defaults); + this.insightSeverity = defaults.insightSeverity; + this.minimumSignalSeverity = defaults.minimumSignalSeverity; + } + + @CustomType.Setter + public Builder insightSeverity(String insightSeverity) { + if (insightSeverity == null) { + throw new MissingRequiredPropertyException("CseCustomInsightDynamicSeverity", "insightSeverity"); + } + this.insightSeverity = insightSeverity; + return this; + } + @CustomType.Setter + public Builder minimumSignalSeverity(Integer minimumSignalSeverity) { + if (minimumSignalSeverity == null) { + throw new MissingRequiredPropertyException("CseCustomInsightDynamicSeverity", "minimumSignalSeverity"); + } + this.minimumSignalSeverity = minimumSignalSeverity; + return this; + } + public CseCustomInsightDynamicSeverity build() { + final var _resultValue = new CseCustomInsightDynamicSeverity(); + _resultValue.insightSeverity = insightSeverity; + _resultValue.minimumSignalSeverity = minimumSignalSeverity; + return _resultValue; + } + } +} diff --git a/sdk/nodejs/cseCustomInsight.ts b/sdk/nodejs/cseCustomInsight.ts index f14c835b..d9a04428 100644 --- a/sdk/nodejs/cseCustomInsight.ts +++ b/sdk/nodejs/cseCustomInsight.ts @@ -2,6 +2,8 @@ // *** 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"; /** @@ -15,6 +17,10 @@ import * as utilities from "./utilities"; * * const customInsight = new sumologic.CseCustomInsight("customInsight", { * description: "Insight description", + * dynamicSeverities: [{ + * insightSeverity: "CRITICAL", + * minimumSignalSeverity: 8, + * }], * enabled: true, * ordered: true, * ruleIds: [ @@ -70,6 +76,10 @@ export class CseCustomInsight extends pulumi.CustomResource { * The description of the generated Insights */ public readonly description!: pulumi.Output; + /** + * The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. + */ + public readonly dynamicSeverities!: pulumi.Output; /** * Whether the Custom Insight should generate Insights */ @@ -87,7 +97,7 @@ export class CseCustomInsight extends pulumi.CustomResource { */ public readonly ruleIds!: pulumi.Output; /** - * The severity of the generated Insights (HIGH, MEDIUM, or LOW) + * The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) */ public readonly severity!: pulumi.Output; /** @@ -115,6 +125,7 @@ export class CseCustomInsight extends pulumi.CustomResource { if (opts.id) { const state = argsOrState as CseCustomInsightState | undefined; resourceInputs["description"] = state ? state.description : undefined; + resourceInputs["dynamicSeverities"] = state ? state.dynamicSeverities : undefined; resourceInputs["enabled"] = state ? state.enabled : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["ordered"] = state ? state.ordered : undefined; @@ -140,6 +151,7 @@ export class CseCustomInsight extends pulumi.CustomResource { throw new Error("Missing required property 'tags'"); } resourceInputs["description"] = args ? args.description : undefined; + resourceInputs["dynamicSeverities"] = args ? args.dynamicSeverities : undefined; resourceInputs["enabled"] = args ? args.enabled : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["ordered"] = args ? args.ordered : undefined; @@ -161,6 +173,10 @@ export interface CseCustomInsightState { * The description of the generated Insights */ description?: pulumi.Input; + /** + * The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. + */ + dynamicSeverities?: pulumi.Input[]>; /** * Whether the Custom Insight should generate Insights */ @@ -178,7 +194,7 @@ export interface CseCustomInsightState { */ ruleIds?: pulumi.Input[]>; /** - * The severity of the generated Insights (HIGH, MEDIUM, or LOW) + * The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) */ severity?: pulumi.Input; /** @@ -201,6 +217,10 @@ export interface CseCustomInsightArgs { * The description of the generated Insights */ description: pulumi.Input; + /** + * The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. + */ + dynamicSeverities?: pulumi.Input[]>; /** * Whether the Custom Insight should generate Insights */ @@ -218,7 +238,7 @@ export interface CseCustomInsightArgs { */ ruleIds?: pulumi.Input[]>; /** - * The severity of the generated Insights (HIGH, MEDIUM, or LOW) + * The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) */ severity: pulumi.Input; /** diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index 62062f2a..5177fa45 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -551,6 +551,17 @@ export interface CseChainRuleExpressionsAndLimit { limit: pulumi.Input; } +export interface CseCustomInsightDynamicSeverity { + /** + * The severity of the generated Insight (CRITICAL, HIGH, MEDIUM, or LOW) + */ + insightSeverity: pulumi.Input; + /** + * minimum Signal severity as the threshold for an Insight severity level + */ + minimumSignalSeverity: pulumi.Input; +} + export interface CseEntityNormalizationConfigurationDomainMapping { /** * The normalized domain. diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index 443c3c2a..3016f740 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -551,6 +551,17 @@ export interface CseChainRuleExpressionsAndLimit { limit: number; } +export interface CseCustomInsightDynamicSeverity { + /** + * The severity of the generated Insight (CRITICAL, HIGH, MEDIUM, or LOW) + */ + insightSeverity: string; + /** + * minimum Signal severity as the threshold for an Insight severity level + */ + minimumSignalSeverity: number; +} + export interface CseEntityNormalizationConfigurationDomainMapping { /** * The normalized domain. diff --git a/sdk/python/pulumi_sumologic/_inputs.py b/sdk/python/pulumi_sumologic/_inputs.py index f04c0c3f..4fe78e05 100644 --- a/sdk/python/pulumi_sumologic/_inputs.py +++ b/sdk/python/pulumi_sumologic/_inputs.py @@ -54,6 +54,7 @@ 'CseAggregationRuleSeverityMappingMappingArgs', 'CseChainRuleEntitySelectorArgs', 'CseChainRuleExpressionsAndLimitArgs', + 'CseCustomInsightDynamicSeverityArgs', 'CseEntityNormalizationConfigurationDomainMappingArgs', 'CseFirstSeenRuleEntitySelectorArgs', 'CseLogMappingFieldArgs', @@ -3689,6 +3690,43 @@ def limit(self, value: pulumi.Input[int]): pulumi.set(self, "limit", value) +@pulumi.input_type +class CseCustomInsightDynamicSeverityArgs: + def __init__(__self__, *, + insight_severity: pulumi.Input[str], + minimum_signal_severity: pulumi.Input[int]): + """ + :param pulumi.Input[str] insight_severity: The severity of the generated Insight (CRITICAL, HIGH, MEDIUM, or LOW) + :param pulumi.Input[int] minimum_signal_severity: minimum Signal severity as the threshold for an Insight severity level + """ + pulumi.set(__self__, "insight_severity", insight_severity) + pulumi.set(__self__, "minimum_signal_severity", minimum_signal_severity) + + @property + @pulumi.getter(name="insightSeverity") + def insight_severity(self) -> pulumi.Input[str]: + """ + The severity of the generated Insight (CRITICAL, HIGH, MEDIUM, or LOW) + """ + return pulumi.get(self, "insight_severity") + + @insight_severity.setter + def insight_severity(self, value: pulumi.Input[str]): + pulumi.set(self, "insight_severity", value) + + @property + @pulumi.getter(name="minimumSignalSeverity") + def minimum_signal_severity(self) -> pulumi.Input[int]: + """ + minimum Signal severity as the threshold for an Insight severity level + """ + return pulumi.get(self, "minimum_signal_severity") + + @minimum_signal_severity.setter + def minimum_signal_severity(self, value: pulumi.Input[int]): + pulumi.set(self, "minimum_signal_severity", value) + + @pulumi.input_type class CseEntityNormalizationConfigurationDomainMappingArgs: def __init__(__self__, *, diff --git a/sdk/python/pulumi_sumologic/cse_custom_insight.py b/sdk/python/pulumi_sumologic/cse_custom_insight.py index 201c38a9..2bd9a973 100644 --- a/sdk/python/pulumi_sumologic/cse_custom_insight.py +++ b/sdk/python/pulumi_sumologic/cse_custom_insight.py @@ -8,6 +8,8 @@ import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities +from . import outputs +from ._inputs import * __all__ = ['CseCustomInsightArgs', 'CseCustomInsight'] @@ -19,6 +21,7 @@ def __init__(__self__, *, ordered: pulumi.Input[bool], severity: pulumi.Input[str], tags: pulumi.Input[Sequence[pulumi.Input[str]]], + dynamic_severities: Optional[pulumi.Input[Sequence[pulumi.Input['CseCustomInsightDynamicSeverityArgs']]]] = None, name: Optional[pulumi.Input[str]] = None, rule_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, signal_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): @@ -27,10 +30,11 @@ def __init__(__self__, *, :param pulumi.Input[str] description: The description of the generated Insights :param pulumi.Input[bool] enabled: Whether the Custom Insight should generate Insights :param pulumi.Input[bool] ordered: Whether the signals matching the rule IDs/signal names must be in the same chronological order as they are listed in the Custom Insight - :param pulumi.Input[str] severity: The severity of the generated Insights (HIGH, MEDIUM, or LOW) + :param pulumi.Input[str] severity: The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The tags of the generated Insights The following attributes are exported: + :param pulumi.Input[Sequence[pulumi.Input['CseCustomInsightDynamicSeverityArgs']]] dynamic_severities: The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. :param pulumi.Input[str] name: The name of the Custom Insight and the generated Insights :param pulumi.Input[Sequence[pulumi.Input[str]]] rule_ids: The Rule IDs to match to generate an Insight (exactly one of rule_ids or signal_names must be specified) :param pulumi.Input[Sequence[pulumi.Input[str]]] signal_names: The Signal names to match to generate an Insight (exactly one of rule_ids or signal_names must be specified) @@ -40,6 +44,8 @@ def __init__(__self__, *, pulumi.set(__self__, "ordered", ordered) pulumi.set(__self__, "severity", severity) pulumi.set(__self__, "tags", tags) + if dynamic_severities is not None: + pulumi.set(__self__, "dynamic_severities", dynamic_severities) if name is not None: pulumi.set(__self__, "name", name) if rule_ids is not None: @@ -87,7 +93,7 @@ def ordered(self, value: pulumi.Input[bool]): @pulumi.getter def severity(self) -> pulumi.Input[str]: """ - The severity of the generated Insights (HIGH, MEDIUM, or LOW) + The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) """ return pulumi.get(self, "severity") @@ -109,6 +115,18 @@ def tags(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]: def tags(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]): pulumi.set(self, "tags", value) + @property + @pulumi.getter(name="dynamicSeverities") + def dynamic_severities(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['CseCustomInsightDynamicSeverityArgs']]]]: + """ + The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. + """ + return pulumi.get(self, "dynamic_severities") + + @dynamic_severities.setter + def dynamic_severities(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['CseCustomInsightDynamicSeverityArgs']]]]): + pulumi.set(self, "dynamic_severities", value) + @property @pulumi.getter def name(self) -> Optional[pulumi.Input[str]]: @@ -150,6 +168,7 @@ def signal_names(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]] class _CseCustomInsightState: def __init__(__self__, *, description: Optional[pulumi.Input[str]] = None, + dynamic_severities: Optional[pulumi.Input[Sequence[pulumi.Input['CseCustomInsightDynamicSeverityArgs']]]] = None, enabled: Optional[pulumi.Input[bool]] = None, name: Optional[pulumi.Input[str]] = None, ordered: Optional[pulumi.Input[bool]] = None, @@ -160,11 +179,12 @@ def __init__(__self__, *, """ Input properties used for looking up and filtering CseCustomInsight resources. :param pulumi.Input[str] description: The description of the generated Insights + :param pulumi.Input[Sequence[pulumi.Input['CseCustomInsightDynamicSeverityArgs']]] dynamic_severities: The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. :param pulumi.Input[bool] enabled: Whether the Custom Insight should generate Insights :param pulumi.Input[str] name: The name of the Custom Insight and the generated Insights :param pulumi.Input[bool] ordered: Whether the signals matching the rule IDs/signal names must be in the same chronological order as they are listed in the Custom Insight :param pulumi.Input[Sequence[pulumi.Input[str]]] rule_ids: The Rule IDs to match to generate an Insight (exactly one of rule_ids or signal_names must be specified) - :param pulumi.Input[str] severity: The severity of the generated Insights (HIGH, MEDIUM, or LOW) + :param pulumi.Input[str] severity: The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) :param pulumi.Input[Sequence[pulumi.Input[str]]] signal_names: The Signal names to match to generate an Insight (exactly one of rule_ids or signal_names must be specified) :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The tags of the generated Insights @@ -172,6 +192,8 @@ def __init__(__self__, *, """ if description is not None: pulumi.set(__self__, "description", description) + if dynamic_severities is not None: + pulumi.set(__self__, "dynamic_severities", dynamic_severities) if enabled is not None: pulumi.set(__self__, "enabled", enabled) if name is not None: @@ -199,6 +221,18 @@ def description(self) -> Optional[pulumi.Input[str]]: def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) + @property + @pulumi.getter(name="dynamicSeverities") + def dynamic_severities(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['CseCustomInsightDynamicSeverityArgs']]]]: + """ + The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. + """ + return pulumi.get(self, "dynamic_severities") + + @dynamic_severities.setter + def dynamic_severities(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['CseCustomInsightDynamicSeverityArgs']]]]): + pulumi.set(self, "dynamic_severities", value) + @property @pulumi.getter def enabled(self) -> Optional[pulumi.Input[bool]]: @@ -251,7 +285,7 @@ def rule_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): @pulumi.getter def severity(self) -> Optional[pulumi.Input[str]]: """ - The severity of the generated Insights (HIGH, MEDIUM, or LOW) + The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) """ return pulumi.get(self, "severity") @@ -292,6 +326,7 @@ def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, description: Optional[pulumi.Input[str]] = None, + dynamic_severities: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CseCustomInsightDynamicSeverityArgs']]]]] = None, enabled: Optional[pulumi.Input[bool]] = None, name: Optional[pulumi.Input[str]] = None, ordered: Optional[pulumi.Input[bool]] = None, @@ -311,6 +346,10 @@ def __init__(__self__, custom_insight = sumologic.CseCustomInsight("customInsight", description="Insight description", + dynamic_severities=[sumologic.CseCustomInsightDynamicSeverityArgs( + insight_severity="CRITICAL", + minimum_signal_severity=8, + )], enabled=True, ordered=True, rule_ids=[ @@ -336,11 +375,12 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] description: The description of the generated Insights + :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CseCustomInsightDynamicSeverityArgs']]]] dynamic_severities: The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. :param pulumi.Input[bool] enabled: Whether the Custom Insight should generate Insights :param pulumi.Input[str] name: The name of the Custom Insight and the generated Insights :param pulumi.Input[bool] ordered: Whether the signals matching the rule IDs/signal names must be in the same chronological order as they are listed in the Custom Insight :param pulumi.Input[Sequence[pulumi.Input[str]]] rule_ids: The Rule IDs to match to generate an Insight (exactly one of rule_ids or signal_names must be specified) - :param pulumi.Input[str] severity: The severity of the generated Insights (HIGH, MEDIUM, or LOW) + :param pulumi.Input[str] severity: The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) :param pulumi.Input[Sequence[pulumi.Input[str]]] signal_names: The Signal names to match to generate an Insight (exactly one of rule_ids or signal_names must be specified) :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The tags of the generated Insights @@ -363,6 +403,10 @@ def __init__(__self__, custom_insight = sumologic.CseCustomInsight("customInsight", description="Insight description", + dynamic_severities=[sumologic.CseCustomInsightDynamicSeverityArgs( + insight_severity="CRITICAL", + minimum_signal_severity=8, + )], enabled=True, ordered=True, rule_ids=[ @@ -401,6 +445,7 @@ def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, description: Optional[pulumi.Input[str]] = None, + dynamic_severities: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CseCustomInsightDynamicSeverityArgs']]]]] = None, enabled: Optional[pulumi.Input[bool]] = None, name: Optional[pulumi.Input[str]] = None, ordered: Optional[pulumi.Input[bool]] = None, @@ -420,6 +465,7 @@ def _internal_init(__self__, if description is None and not opts.urn: raise TypeError("Missing required property 'description'") __props__.__dict__["description"] = description + __props__.__dict__["dynamic_severities"] = dynamic_severities if enabled is None and not opts.urn: raise TypeError("Missing required property 'enabled'") __props__.__dict__["enabled"] = enabled @@ -446,6 +492,7 @@ def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, description: Optional[pulumi.Input[str]] = None, + dynamic_severities: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CseCustomInsightDynamicSeverityArgs']]]]] = None, enabled: Optional[pulumi.Input[bool]] = None, name: Optional[pulumi.Input[str]] = None, ordered: Optional[pulumi.Input[bool]] = None, @@ -461,11 +508,12 @@ def get(resource_name: str, :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[str] description: The description of the generated Insights + :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['CseCustomInsightDynamicSeverityArgs']]]] dynamic_severities: The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. :param pulumi.Input[bool] enabled: Whether the Custom Insight should generate Insights :param pulumi.Input[str] name: The name of the Custom Insight and the generated Insights :param pulumi.Input[bool] ordered: Whether the signals matching the rule IDs/signal names must be in the same chronological order as they are listed in the Custom Insight :param pulumi.Input[Sequence[pulumi.Input[str]]] rule_ids: The Rule IDs to match to generate an Insight (exactly one of rule_ids or signal_names must be specified) - :param pulumi.Input[str] severity: The severity of the generated Insights (HIGH, MEDIUM, or LOW) + :param pulumi.Input[str] severity: The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) :param pulumi.Input[Sequence[pulumi.Input[str]]] signal_names: The Signal names to match to generate an Insight (exactly one of rule_ids or signal_names must be specified) :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: The tags of the generated Insights @@ -476,6 +524,7 @@ def get(resource_name: str, __props__ = _CseCustomInsightState.__new__(_CseCustomInsightState) __props__.__dict__["description"] = description + __props__.__dict__["dynamic_severities"] = dynamic_severities __props__.__dict__["enabled"] = enabled __props__.__dict__["name"] = name __props__.__dict__["ordered"] = ordered @@ -493,6 +542,14 @@ def description(self) -> pulumi.Output[str]: """ return pulumi.get(self, "description") + @property + @pulumi.getter(name="dynamicSeverities") + def dynamic_severities(self) -> pulumi.Output[Optional[Sequence['outputs.CseCustomInsightDynamicSeverity']]]: + """ + The severity of the generated Insight that is based on the severity of the Signals that trigger the Insight. + """ + return pulumi.get(self, "dynamic_severities") + @property @pulumi.getter def enabled(self) -> pulumi.Output[bool]: @@ -529,7 +586,7 @@ def rule_ids(self) -> pulumi.Output[Optional[Sequence[str]]]: @pulumi.getter def severity(self) -> pulumi.Output[str]: """ - The severity of the generated Insights (HIGH, MEDIUM, or LOW) + The severity of the generated Insights (CRITICAL, HIGH, MEDIUM, or LOW) """ return pulumi.get(self, "severity") diff --git a/sdk/python/pulumi_sumologic/outputs.py b/sdk/python/pulumi_sumologic/outputs.py index e09e5a1e..47480e19 100644 --- a/sdk/python/pulumi_sumologic/outputs.py +++ b/sdk/python/pulumi_sumologic/outputs.py @@ -55,6 +55,7 @@ 'CseAggregationRuleSeverityMappingMapping', 'CseChainRuleEntitySelector', 'CseChainRuleExpressionsAndLimit', + 'CseCustomInsightDynamicSeverity', 'CseEntityNormalizationConfigurationDomainMapping', 'CseFirstSeenRuleEntitySelector', 'CseLogMappingField', @@ -3554,6 +3555,54 @@ def limit(self) -> int: return pulumi.get(self, "limit") +@pulumi.output_type +class CseCustomInsightDynamicSeverity(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "insightSeverity": + suggest = "insight_severity" + elif key == "minimumSignalSeverity": + suggest = "minimum_signal_severity" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in CseCustomInsightDynamicSeverity. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + CseCustomInsightDynamicSeverity.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + CseCustomInsightDynamicSeverity.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + insight_severity: str, + minimum_signal_severity: int): + """ + :param str insight_severity: The severity of the generated Insight (CRITICAL, HIGH, MEDIUM, or LOW) + :param int minimum_signal_severity: minimum Signal severity as the threshold for an Insight severity level + """ + pulumi.set(__self__, "insight_severity", insight_severity) + pulumi.set(__self__, "minimum_signal_severity", minimum_signal_severity) + + @property + @pulumi.getter(name="insightSeverity") + def insight_severity(self) -> str: + """ + The severity of the generated Insight (CRITICAL, HIGH, MEDIUM, or LOW) + """ + return pulumi.get(self, "insight_severity") + + @property + @pulumi.getter(name="minimumSignalSeverity") + def minimum_signal_severity(self) -> int: + """ + minimum Signal severity as the threshold for an Insight severity level + """ + return pulumi.get(self, "minimum_signal_severity") + + @pulumi.output_type class CseEntityNormalizationConfigurationDomainMapping(dict): @staticmethod