Sumo Logic v0.14.0, May 25 23
Sumo Logic v0.14.0, May 25 23
sumologic.CseRuleTuningExpression
Explore with Pulumi AI
Provides a CSE Rule Tuning Expression.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using SumoLogic = Pulumi.SumoLogic;
return await Deployment.RunAsync(() =>
{
var ruleTuningExpression = new SumoLogic.CseRuleTuningExpression("ruleTuningExpression", new()
{
Description = "New Rule Tuning Description",
Enabled = true,
Exclude = true,
Expression = "accountId = 1234",
IsGlobal = false,
RuleIds = new[]
{
"LEGACY-S00084",
},
});
});
package main
import (
"github.com/pulumi/pulumi-sumologic/sdk/go/sumologic"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sumologic.NewCseRuleTuningExpression(ctx, "ruleTuningExpression", &sumologic.CseRuleTuningExpressionArgs{
Description: pulumi.String("New Rule Tuning Description"),
Enabled: pulumi.Bool(true),
Exclude: pulumi.Bool(true),
Expression: pulumi.String("accountId = 1234"),
IsGlobal: pulumi.Bool(false),
RuleIds: pulumi.StringArray{
pulumi.String("LEGACY-S00084"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sumologic.CseRuleTuningExpression;
import com.pulumi.sumologic.CseRuleTuningExpressionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var ruleTuningExpression = new CseRuleTuningExpression("ruleTuningExpression", CseRuleTuningExpressionArgs.builder()
.description("New Rule Tuning Description")
.enabled("true")
.exclude("true")
.expression("accountId = 1234")
.isGlobal("false")
.ruleIds("LEGACY-S00084")
.build());
}
}
import pulumi
import pulumi_sumologic as sumologic
rule_tuning_expression = sumologic.CseRuleTuningExpression("ruleTuningExpression",
description="New Rule Tuning Description",
enabled=True,
exclude=True,
expression="accountId = 1234",
is_global=False,
rule_ids=["LEGACY-S00084"])
import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";
const ruleTuningExpression = new sumologic.CseRuleTuningExpression("ruleTuningExpression", {
description: "New Rule Tuning Description",
enabled: true,
exclude: true,
expression: "accountId = 1234",
isGlobal: false,
ruleIds: ["LEGACY-S00084"],
});
resources:
ruleTuningExpression:
type: sumologic:CseRuleTuningExpression
properties:
description: New Rule Tuning Description
enabled: 'true'
exclude: 'true'
expression: accountId = 1234
isGlobal: 'false'
ruleIds:
- LEGACY-S00084
Create CseRuleTuningExpression Resource
new CseRuleTuningExpression(name: string, args: CseRuleTuningExpressionArgs, opts?: CustomResourceOptions);
@overload
def CseRuleTuningExpression(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
exclude: Optional[bool] = None,
expression: Optional[str] = None,
is_global: Optional[bool] = None,
name: Optional[str] = None,
rule_ids: Optional[Sequence[str]] = None)
@overload
def CseRuleTuningExpression(resource_name: str,
args: CseRuleTuningExpressionArgs,
opts: Optional[ResourceOptions] = None)
func NewCseRuleTuningExpression(ctx *Context, name string, args CseRuleTuningExpressionArgs, opts ...ResourceOption) (*CseRuleTuningExpression, error)
public CseRuleTuningExpression(string name, CseRuleTuningExpressionArgs args, CustomResourceOptions? opts = null)
public CseRuleTuningExpression(String name, CseRuleTuningExpressionArgs args)
public CseRuleTuningExpression(String name, CseRuleTuningExpressionArgs args, CustomResourceOptions options)
type: sumologic:CseRuleTuningExpression
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CseRuleTuningExpressionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CseRuleTuningExpressionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CseRuleTuningExpressionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CseRuleTuningExpressionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CseRuleTuningExpressionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CseRuleTuningExpression Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The CseRuleTuningExpression resource accepts the following input properties:
- Description string
The description of the rule tuning expression.
- Enabled bool
Enabled flag.
- Exclude bool
Set to true to exclude records that match the expression. If set to false, only records that do match the expression will be included.
- Expression string
Expression to match.
- Is
Global bool Set to true if this tuning expression should be applied to all rules.
- Rule
Ids List<string> List of rule IDs, for the tuning expression to be applied. ( Empty if is_global set to true)
The following attributes are exported:
- Name string
The name of the rule tuning expression.
- Description string
The description of the rule tuning expression.
- Enabled bool
Enabled flag.
- Exclude bool
Set to true to exclude records that match the expression. If set to false, only records that do match the expression will be included.
- Expression string
Expression to match.
- Is
Global bool Set to true if this tuning expression should be applied to all rules.
- Rule
Ids []string List of rule IDs, for the tuning expression to be applied. ( Empty if is_global set to true)
The following attributes are exported:
- Name string
The name of the rule tuning expression.
- description String
The description of the rule tuning expression.
- enabled Boolean
Enabled flag.
- exclude Boolean
Set to true to exclude records that match the expression. If set to false, only records that do match the expression will be included.
- expression String
Expression to match.
- is
Global Boolean Set to true if this tuning expression should be applied to all rules.
- rule
Ids List<String> List of rule IDs, for the tuning expression to be applied. ( Empty if is_global set to true)
The following attributes are exported:
- name String
The name of the rule tuning expression.
- description string
The description of the rule tuning expression.
- enabled boolean
Enabled flag.
- exclude boolean
Set to true to exclude records that match the expression. If set to false, only records that do match the expression will be included.
- expression string
Expression to match.
- is
Global boolean Set to true if this tuning expression should be applied to all rules.
- rule
Ids string[] List of rule IDs, for the tuning expression to be applied. ( Empty if is_global set to true)
The following attributes are exported:
- name string
The name of the rule tuning expression.
- description str
The description of the rule tuning expression.
- enabled bool
Enabled flag.
- exclude bool
Set to true to exclude records that match the expression. If set to false, only records that do match the expression will be included.
- expression str
Expression to match.
- is_
global bool Set to true if this tuning expression should be applied to all rules.
- rule_
ids Sequence[str] List of rule IDs, for the tuning expression to be applied. ( Empty if is_global set to true)
The following attributes are exported:
- name str
The name of the rule tuning expression.
- description String
The description of the rule tuning expression.
- enabled Boolean
Enabled flag.
- exclude Boolean
Set to true to exclude records that match the expression. If set to false, only records that do match the expression will be included.
- expression String
Expression to match.
- is
Global Boolean Set to true if this tuning expression should be applied to all rules.
- rule
Ids List<String> List of rule IDs, for the tuning expression to be applied. ( Empty if is_global set to true)
The following attributes are exported:
- name String
The name of the rule tuning expression.
Outputs
All input properties are implicitly available as output properties. Additionally, the CseRuleTuningExpression resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing CseRuleTuningExpression Resource
Get an existing CseRuleTuningExpression resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CseRuleTuningExpressionState, opts?: CustomResourceOptions): CseRuleTuningExpression
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
exclude: Optional[bool] = None,
expression: Optional[str] = None,
is_global: Optional[bool] = None,
name: Optional[str] = None,
rule_ids: Optional[Sequence[str]] = None) -> CseRuleTuningExpression
func GetCseRuleTuningExpression(ctx *Context, name string, id IDInput, state *CseRuleTuningExpressionState, opts ...ResourceOption) (*CseRuleTuningExpression, error)
public static CseRuleTuningExpression Get(string name, Input<string> id, CseRuleTuningExpressionState? state, CustomResourceOptions? opts = null)
public static CseRuleTuningExpression get(String name, Output<String> id, CseRuleTuningExpressionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Description string
The description of the rule tuning expression.
- Enabled bool
Enabled flag.
- Exclude bool
Set to true to exclude records that match the expression. If set to false, only records that do match the expression will be included.
- Expression string
Expression to match.
- Is
Global bool Set to true if this tuning expression should be applied to all rules.
- Name string
The name of the rule tuning expression.
- Rule
Ids List<string> List of rule IDs, for the tuning expression to be applied. ( Empty if is_global set to true)
The following attributes are exported:
- Description string
The description of the rule tuning expression.
- Enabled bool
Enabled flag.
- Exclude bool
Set to true to exclude records that match the expression. If set to false, only records that do match the expression will be included.
- Expression string
Expression to match.
- Is
Global bool Set to true if this tuning expression should be applied to all rules.
- Name string
The name of the rule tuning expression.
- Rule
Ids []string List of rule IDs, for the tuning expression to be applied. ( Empty if is_global set to true)
The following attributes are exported:
- description String
The description of the rule tuning expression.
- enabled Boolean
Enabled flag.
- exclude Boolean
Set to true to exclude records that match the expression. If set to false, only records that do match the expression will be included.
- expression String
Expression to match.
- is
Global Boolean Set to true if this tuning expression should be applied to all rules.
- name String
The name of the rule tuning expression.
- rule
Ids List<String> List of rule IDs, for the tuning expression to be applied. ( Empty if is_global set to true)
The following attributes are exported:
- description string
The description of the rule tuning expression.
- enabled boolean
Enabled flag.
- exclude boolean
Set to true to exclude records that match the expression. If set to false, only records that do match the expression will be included.
- expression string
Expression to match.
- is
Global boolean Set to true if this tuning expression should be applied to all rules.
- name string
The name of the rule tuning expression.
- rule
Ids string[] List of rule IDs, for the tuning expression to be applied. ( Empty if is_global set to true)
The following attributes are exported:
- description str
The description of the rule tuning expression.
- enabled bool
Enabled flag.
- exclude bool
Set to true to exclude records that match the expression. If set to false, only records that do match the expression will be included.
- expression str
Expression to match.
- is_
global bool Set to true if this tuning expression should be applied to all rules.
- name str
The name of the rule tuning expression.
- rule_
ids Sequence[str] List of rule IDs, for the tuning expression to be applied. ( Empty if is_global set to true)
The following attributes are exported:
- description String
The description of the rule tuning expression.
- enabled Boolean
Enabled flag.
- exclude Boolean
Set to true to exclude records that match the expression. If set to false, only records that do match the expression will be included.
- expression String
Expression to match.
- is
Global Boolean Set to true if this tuning expression should be applied to all rules.
- name String
The name of the rule tuning expression.
- rule
Ids List<String> List of rule IDs, for the tuning expression to be applied. ( Empty if is_global set to true)
The following attributes are exported:
Import
Rule tuning expression can be imported using the field id, e.g.hcl
$ pulumi import sumologic:index/cseRuleTuningExpression:CseRuleTuningExpression rule_tuning_expression id
Package Details
- Repository
- Sumo Logic pulumi/pulumi-sumologic
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
sumologic
Terraform Provider.