1. Packages
  2. Sumologic Provider
  3. API Docs
  4. CseEntityCriticalityConfig
Sumo Logic v0.23.7 published on Thursday, Oct 24, 2024 by Pulumi

sumologic.CseEntityCriticalityConfig

Explore with Pulumi AI

sumologic logo
Sumo Logic v0.23.7 published on Thursday, Oct 24, 2024 by Pulumi

    Provides a Sumologic CSE Entity Criticality Configuration.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sumologic from "@pulumi/sumologic";
    
    const entityCriticalityConfig = new sumologic.CseEntityCriticalityConfig("entity_criticality_config", {
        name: "New Name",
        severityExpression: "severity + 2",
    });
    
    import pulumi
    import pulumi_sumologic as sumologic
    
    entity_criticality_config = sumologic.CseEntityCriticalityConfig("entity_criticality_config",
        name="New Name",
        severity_expression="severity + 2")
    
    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.NewCseEntityCriticalityConfig(ctx, "entity_criticality_config", &sumologic.CseEntityCriticalityConfigArgs{
    			Name:               pulumi.String("New Name"),
    			SeverityExpression: pulumi.String("severity + 2"),
    		})
    		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 entityCriticalityConfig = new SumoLogic.CseEntityCriticalityConfig("entity_criticality_config", new()
        {
            Name = "New Name",
            SeverityExpression = "severity + 2",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sumologic.CseEntityCriticalityConfig;
    import com.pulumi.sumologic.CseEntityCriticalityConfigArgs;
    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 entityCriticalityConfig = new CseEntityCriticalityConfig("entityCriticalityConfig", CseEntityCriticalityConfigArgs.builder()
                .name("New Name")
                .severityExpression("severity + 2")
                .build());
    
        }
    }
    
    resources:
      entityCriticalityConfig:
        type: sumologic:CseEntityCriticalityConfig
        name: entity_criticality_config
        properties:
          name: New Name
          severityExpression: severity + 2
    

    Create CseEntityCriticalityConfig Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CseEntityCriticalityConfig(name: string, args: CseEntityCriticalityConfigArgs, opts?: CustomResourceOptions);
    @overload
    def CseEntityCriticalityConfig(resource_name: str,
                                   args: CseEntityCriticalityConfigArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def CseEntityCriticalityConfig(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   severity_expression: Optional[str] = None,
                                   name: Optional[str] = None)
    func NewCseEntityCriticalityConfig(ctx *Context, name string, args CseEntityCriticalityConfigArgs, opts ...ResourceOption) (*CseEntityCriticalityConfig, error)
    public CseEntityCriticalityConfig(string name, CseEntityCriticalityConfigArgs args, CustomResourceOptions? opts = null)
    public CseEntityCriticalityConfig(String name, CseEntityCriticalityConfigArgs args)
    public CseEntityCriticalityConfig(String name, CseEntityCriticalityConfigArgs args, CustomResourceOptions options)
    
    type: sumologic:CseEntityCriticalityConfig
    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 CseEntityCriticalityConfigArgs
    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 CseEntityCriticalityConfigArgs
    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 CseEntityCriticalityConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CseEntityCriticalityConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CseEntityCriticalityConfigArgs
    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 cseEntityCriticalityConfigResource = new SumoLogic.CseEntityCriticalityConfig("cseEntityCriticalityConfigResource", new()
    {
        SeverityExpression = "string",
        Name = "string",
    });
    
    example, err := sumologic.NewCseEntityCriticalityConfig(ctx, "cseEntityCriticalityConfigResource", &sumologic.CseEntityCriticalityConfigArgs{
    	SeverityExpression: pulumi.String("string"),
    	Name:               pulumi.String("string"),
    })
    
    var cseEntityCriticalityConfigResource = new CseEntityCriticalityConfig("cseEntityCriticalityConfigResource", CseEntityCriticalityConfigArgs.builder()
        .severityExpression("string")
        .name("string")
        .build());
    
    cse_entity_criticality_config_resource = sumologic.CseEntityCriticalityConfig("cseEntityCriticalityConfigResource",
        severity_expression="string",
        name="string")
    
    const cseEntityCriticalityConfigResource = new sumologic.CseEntityCriticalityConfig("cseEntityCriticalityConfigResource", {
        severityExpression: "string",
        name: "string",
    });
    
    type: sumologic:CseEntityCriticalityConfig
    properties:
        name: string
        severityExpression: string
    

    CseEntityCriticalityConfig 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 CseEntityCriticalityConfig resource accepts the following input properties:

    SeverityExpression string

    Algebraic expression representing this entity's criticality. Examples: "severity * 2", "severity - 5", "severity / 3".

    The following attributes are exported:

    Name string
    Human friendly and unique name. Examples: "Executive Laptop", "Bastion Host".
    SeverityExpression string

    Algebraic expression representing this entity's criticality. Examples: "severity * 2", "severity - 5", "severity / 3".

    The following attributes are exported:

    Name string
    Human friendly and unique name. Examples: "Executive Laptop", "Bastion Host".
    severityExpression String

    Algebraic expression representing this entity's criticality. Examples: "severity * 2", "severity - 5", "severity / 3".

    The following attributes are exported:

    name String
    Human friendly and unique name. Examples: "Executive Laptop", "Bastion Host".
    severityExpression string

    Algebraic expression representing this entity's criticality. Examples: "severity * 2", "severity - 5", "severity / 3".

    The following attributes are exported:

    name string
    Human friendly and unique name. Examples: "Executive Laptop", "Bastion Host".
    severity_expression str

    Algebraic expression representing this entity's criticality. Examples: "severity * 2", "severity - 5", "severity / 3".

    The following attributes are exported:

    name str
    Human friendly and unique name. Examples: "Executive Laptop", "Bastion Host".
    severityExpression String

    Algebraic expression representing this entity's criticality. Examples: "severity * 2", "severity - 5", "severity / 3".

    The following attributes are exported:

    name String
    Human friendly and unique name. Examples: "Executive Laptop", "Bastion Host".

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CseEntityCriticalityConfig 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 CseEntityCriticalityConfig Resource

    Get an existing CseEntityCriticalityConfig 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?: CseEntityCriticalityConfigState, opts?: CustomResourceOptions): CseEntityCriticalityConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            name: Optional[str] = None,
            severity_expression: Optional[str] = None) -> CseEntityCriticalityConfig
    func GetCseEntityCriticalityConfig(ctx *Context, name string, id IDInput, state *CseEntityCriticalityConfigState, opts ...ResourceOption) (*CseEntityCriticalityConfig, error)
    public static CseEntityCriticalityConfig Get(string name, Input<string> id, CseEntityCriticalityConfigState? state, CustomResourceOptions? opts = null)
    public static CseEntityCriticalityConfig get(String name, Output<String> id, CseEntityCriticalityConfigState 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.
    The following state arguments are supported:
    Name string
    Human friendly and unique name. Examples: "Executive Laptop", "Bastion Host".
    SeverityExpression string

    Algebraic expression representing this entity's criticality. Examples: "severity * 2", "severity - 5", "severity / 3".

    The following attributes are exported:

    Name string
    Human friendly and unique name. Examples: "Executive Laptop", "Bastion Host".
    SeverityExpression string

    Algebraic expression representing this entity's criticality. Examples: "severity * 2", "severity - 5", "severity / 3".

    The following attributes are exported:

    name String
    Human friendly and unique name. Examples: "Executive Laptop", "Bastion Host".
    severityExpression String

    Algebraic expression representing this entity's criticality. Examples: "severity * 2", "severity - 5", "severity / 3".

    The following attributes are exported:

    name string
    Human friendly and unique name. Examples: "Executive Laptop", "Bastion Host".
    severityExpression string

    Algebraic expression representing this entity's criticality. Examples: "severity * 2", "severity - 5", "severity / 3".

    The following attributes are exported:

    name str
    Human friendly and unique name. Examples: "Executive Laptop", "Bastion Host".
    severity_expression str

    Algebraic expression representing this entity's criticality. Examples: "severity * 2", "severity - 5", "severity / 3".

    The following attributes are exported:

    name String
    Human friendly and unique name. Examples: "Executive Laptop", "Bastion Host".
    severityExpression String

    Algebraic expression representing this entity's criticality. Examples: "severity * 2", "severity - 5", "severity / 3".

    The following attributes are exported:

    Import

    Entity criticality configuration can be imported using the field id, e.g.:

    hcl

    $ pulumi import sumologic:index/cseEntityCriticalityConfig:CseEntityCriticalityConfig entity_criticality_config 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.
    sumologic logo
    Sumo Logic v0.23.7 published on Thursday, Oct 24, 2024 by Pulumi