sumologic.CseRuleTuningExpression
Explore with Pulumi AI
Provides a CSE Rule Tuning Expression.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";
const ruleTuningExpression = new sumologic.CseRuleTuningExpression("rule_tuning_expression", {
name: "New Rule Tuning Name",
description: "New Rule Tuning Description",
expression: "accountId = 1234",
enabled: true,
exclude: true,
isGlobal: false,
ruleIds: ["LEGACY-S00084"],
});
import pulumi
import pulumi_sumologic as sumologic
rule_tuning_expression = sumologic.CseRuleTuningExpression("rule_tuning_expression",
name="New Rule Tuning Name",
description="New Rule Tuning Description",
expression="accountId = 1234",
enabled=True,
exclude=True,
is_global=False,
rule_ids=["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, "rule_tuning_expression", &sumologic.CseRuleTuningExpressionArgs{
Name: pulumi.String("New Rule Tuning Name"),
Description: pulumi.String("New Rule Tuning Description"),
Expression: pulumi.String("accountId = 1234"),
Enabled: pulumi.Bool(true),
Exclude: pulumi.Bool(true),
IsGlobal: pulumi.Bool(false),
RuleIds: pulumi.StringArray{
pulumi.String("LEGACY-S00084"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using SumoLogic = Pulumi.SumoLogic;
return await Deployment.RunAsync(() =>
{
var ruleTuningExpression = new SumoLogic.CseRuleTuningExpression("rule_tuning_expression", new()
{
Name = "New Rule Tuning Name",
Description = "New Rule Tuning Description",
Expression = "accountId = 1234",
Enabled = true,
Exclude = true,
IsGlobal = false,
RuleIds = new[]
{
"LEGACY-S00084",
},
});
});
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()
.name("New Rule Tuning Name")
.description("New Rule Tuning Description")
.expression("accountId = 1234")
.enabled("true")
.exclude("true")
.isGlobal("false")
.ruleIds("LEGACY-S00084")
.build());
}
}
resources:
ruleTuningExpression:
type: sumologic:CseRuleTuningExpression
name: rule_tuning_expression
properties:
name: New Rule Tuning Name
description: New Rule Tuning Description
expression: accountId = 1234
enabled: 'true'
exclude: 'true'
isGlobal: 'false'
ruleIds:
- LEGACY-S00084
Create CseRuleTuningExpression Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CseRuleTuningExpression(name: string, args: CseRuleTuningExpressionArgs, opts?: CustomResourceOptions);
@overload
def CseRuleTuningExpression(resource_name: str,
args: CseRuleTuningExpressionArgs,
opts: Optional[ResourceOptions] = None)
@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,
rule_ids: Optional[Sequence[str]] = None,
name: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var cseRuleTuningExpressionResource = new SumoLogic.CseRuleTuningExpression("cseRuleTuningExpressionResource", new()
{
Description = "string",
Enabled = false,
Exclude = false,
Expression = "string",
IsGlobal = false,
RuleIds = new[]
{
"string",
},
Name = "string",
});
example, err := sumologic.NewCseRuleTuningExpression(ctx, "cseRuleTuningExpressionResource", &sumologic.CseRuleTuningExpressionArgs{
Description: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Exclude: pulumi.Bool(false),
Expression: pulumi.String("string"),
IsGlobal: pulumi.Bool(false),
RuleIds: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
})
var cseRuleTuningExpressionResource = new CseRuleTuningExpression("cseRuleTuningExpressionResource", CseRuleTuningExpressionArgs.builder()
.description("string")
.enabled(false)
.exclude(false)
.expression("string")
.isGlobal(false)
.ruleIds("string")
.name("string")
.build());
cse_rule_tuning_expression_resource = sumologic.CseRuleTuningExpression("cseRuleTuningExpressionResource",
description="string",
enabled=False,
exclude=False,
expression="string",
is_global=False,
rule_ids=["string"],
name="string")
const cseRuleTuningExpressionResource = new sumologic.CseRuleTuningExpression("cseRuleTuningExpressionResource", {
description: "string",
enabled: false,
exclude: false,
expression: "string",
isGlobal: false,
ruleIds: ["string"],
name: "string",
});
type: sumologic:CseRuleTuningExpression
properties:
description: string
enabled: false
exclude: false
expression: string
isGlobal: false
name: string
ruleIds:
- string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Sumo Logic pulumi/pulumi-sumologic
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
sumologic
Terraform Provider.