1. Packages
  2. Sumo Logic
  3. API Docs
  4. CseAutomation
Sumo Logic v0.21.0 published on Thursday, Apr 11, 2024 by Pulumi

sumologic.CseAutomation

Explore with Pulumi AI

sumologic logo
Sumo Logic v0.21.0 published on Thursday, Apr 11, 2024 by Pulumi

    Provides a Sumologic CSE Automation.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sumologic from "@pulumi/sumologic";
    
    const insightAutomation = new sumologic.CseAutomation("insightAutomation", {
        cseResourceType: "INSIGHT",
        executionTypes: [
            "NEW_INSIGHT",
            "INSIGHT_CLOSED",
        ],
        playbookId: "638079aedb99cafada1e80a0",
    });
    const entityAutomation = new sumologic.CseAutomation("entityAutomation", {
        cseResourceSubTypes: ["_ip"],
        cseResourceType: "ENTITY",
        executionTypes: ["ON_DEMAND"],
        playbookId: "638079aedb99cafada1e80a0",
    });
    
    import pulumi
    import pulumi_sumologic as sumologic
    
    insight_automation = sumologic.CseAutomation("insightAutomation",
        cse_resource_type="INSIGHT",
        execution_types=[
            "NEW_INSIGHT",
            "INSIGHT_CLOSED",
        ],
        playbook_id="638079aedb99cafada1e80a0")
    entity_automation = sumologic.CseAutomation("entityAutomation",
        cse_resource_sub_types=["_ip"],
        cse_resource_type="ENTITY",
        execution_types=["ON_DEMAND"],
        playbook_id="638079aedb99cafada1e80a0")
    
    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.NewCseAutomation(ctx, "insightAutomation", &sumologic.CseAutomationArgs{
    			CseResourceType: pulumi.String("INSIGHT"),
    			ExecutionTypes: pulumi.StringArray{
    				pulumi.String("NEW_INSIGHT"),
    				pulumi.String("INSIGHT_CLOSED"),
    			},
    			PlaybookId: pulumi.String("638079aedb99cafada1e80a0"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = sumologic.NewCseAutomation(ctx, "entityAutomation", &sumologic.CseAutomationArgs{
    			CseResourceSubTypes: pulumi.StringArray{
    				pulumi.String("_ip"),
    			},
    			CseResourceType: pulumi.String("ENTITY"),
    			ExecutionTypes: pulumi.StringArray{
    				pulumi.String("ON_DEMAND"),
    			},
    			PlaybookId: pulumi.String("638079aedb99cafada1e80a0"),
    		})
    		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 insightAutomation = new SumoLogic.CseAutomation("insightAutomation", new()
        {
            CseResourceType = "INSIGHT",
            ExecutionTypes = new[]
            {
                "NEW_INSIGHT",
                "INSIGHT_CLOSED",
            },
            PlaybookId = "638079aedb99cafada1e80a0",
        });
    
        var entityAutomation = new SumoLogic.CseAutomation("entityAutomation", new()
        {
            CseResourceSubTypes = new[]
            {
                "_ip",
            },
            CseResourceType = "ENTITY",
            ExecutionTypes = new[]
            {
                "ON_DEMAND",
            },
            PlaybookId = "638079aedb99cafada1e80a0",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sumologic.CseAutomation;
    import com.pulumi.sumologic.CseAutomationArgs;
    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 insightAutomation = new CseAutomation("insightAutomation", CseAutomationArgs.builder()        
                .cseResourceType("INSIGHT")
                .executionTypes(            
                    "NEW_INSIGHT",
                    "INSIGHT_CLOSED")
                .playbookId("638079aedb99cafada1e80a0")
                .build());
    
            var entityAutomation = new CseAutomation("entityAutomation", CseAutomationArgs.builder()        
                .cseResourceSubTypes("_ip")
                .cseResourceType("ENTITY")
                .executionTypes("ON_DEMAND")
                .playbookId("638079aedb99cafada1e80a0")
                .build());
    
        }
    }
    
    resources:
      insightAutomation:
        type: sumologic:CseAutomation
        properties:
          cseResourceType: INSIGHT
          executionTypes:
            - NEW_INSIGHT
            - INSIGHT_CLOSED
          playbookId: 638079aedb99cafada1e80a0
      entityAutomation:
        type: sumologic:CseAutomation
        properties:
          cseResourceSubTypes:
            - _ip
          cseResourceType: ENTITY
          executionTypes:
            - ON_DEMAND
          playbookId: 638079aedb99cafada1e80a0
    

    Create CseAutomation Resource

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

    Constructor syntax

    new CseAutomation(name: string, args: CseAutomationArgs, opts?: CustomResourceOptions);
    @overload
    def CseAutomation(resource_name: str,
                      args: CseAutomationArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def CseAutomation(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      cse_resource_type: Optional[str] = None,
                      enabled: Optional[bool] = None,
                      execution_types: Optional[Sequence[str]] = None,
                      playbook_id: Optional[str] = None,
                      cse_resource_sub_types: Optional[Sequence[str]] = None)
    func NewCseAutomation(ctx *Context, name string, args CseAutomationArgs, opts ...ResourceOption) (*CseAutomation, error)
    public CseAutomation(string name, CseAutomationArgs args, CustomResourceOptions? opts = null)
    public CseAutomation(String name, CseAutomationArgs args)
    public CseAutomation(String name, CseAutomationArgs args, CustomResourceOptions options)
    
    type: sumologic:CseAutomation
    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 CseAutomationArgs
    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 CseAutomationArgs
    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 CseAutomationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CseAutomationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CseAutomationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var cseAutomationResource = new SumoLogic.CseAutomation("cseAutomationResource", new()
    {
        CseResourceType = "string",
        Enabled = false,
        ExecutionTypes = new[]
        {
            "string",
        },
        PlaybookId = "string",
        CseResourceSubTypes = new[]
        {
            "string",
        },
    });
    
    example, err := sumologic.NewCseAutomation(ctx, "cseAutomationResource", &sumologic.CseAutomationArgs{
    	CseResourceType: pulumi.String("string"),
    	Enabled:         pulumi.Bool(false),
    	ExecutionTypes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	PlaybookId: pulumi.String("string"),
    	CseResourceSubTypes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var cseAutomationResource = new CseAutomation("cseAutomationResource", CseAutomationArgs.builder()        
        .cseResourceType("string")
        .enabled(false)
        .executionTypes("string")
        .playbookId("string")
        .cseResourceSubTypes("string")
        .build());
    
    cse_automation_resource = sumologic.CseAutomation("cseAutomationResource",
        cse_resource_type="string",
        enabled=False,
        execution_types=["string"],
        playbook_id="string",
        cse_resource_sub_types=["string"])
    
    const cseAutomationResource = new sumologic.CseAutomation("cseAutomationResource", {
        cseResourceType: "string",
        enabled: false,
        executionTypes: ["string"],
        playbookId: "string",
        cseResourceSubTypes: ["string"],
    });
    
    type: sumologic:CseAutomation
    properties:
        cseResourceSubTypes:
            - string
        cseResourceType: string
        enabled: false
        executionTypes:
            - string
        playbookId: string
    

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

    CseResourceType string
    CSE Resource type for automation. Valid values: "INSIGHT", "ENTITY".
    Enabled bool
    ExecutionTypes List<string>
    Automation execution type. Valid values: "NEW_INSIGHT", "INSIGHT_CLOSED", "ON_DEMAND".
    PlaybookId string
    CseResourceSubTypes List<string>

    CSE Resource sub-type when cse_resource_type is specified as "ENTITY". Examples: "_ip", "_mac".

    The following attributes are exported:

    CseResourceType string
    CSE Resource type for automation. Valid values: "INSIGHT", "ENTITY".
    Enabled bool
    ExecutionTypes []string
    Automation execution type. Valid values: "NEW_INSIGHT", "INSIGHT_CLOSED", "ON_DEMAND".
    PlaybookId string
    CseResourceSubTypes []string

    CSE Resource sub-type when cse_resource_type is specified as "ENTITY". Examples: "_ip", "_mac".

    The following attributes are exported:

    cseResourceType String
    CSE Resource type for automation. Valid values: "INSIGHT", "ENTITY".
    enabled Boolean
    executionTypes List<String>
    Automation execution type. Valid values: "NEW_INSIGHT", "INSIGHT_CLOSED", "ON_DEMAND".
    playbookId String
    cseResourceSubTypes List<String>

    CSE Resource sub-type when cse_resource_type is specified as "ENTITY". Examples: "_ip", "_mac".

    The following attributes are exported:

    cseResourceType string
    CSE Resource type for automation. Valid values: "INSIGHT", "ENTITY".
    enabled boolean
    executionTypes string[]
    Automation execution type. Valid values: "NEW_INSIGHT", "INSIGHT_CLOSED", "ON_DEMAND".
    playbookId string
    cseResourceSubTypes string[]

    CSE Resource sub-type when cse_resource_type is specified as "ENTITY". Examples: "_ip", "_mac".

    The following attributes are exported:

    cse_resource_type str
    CSE Resource type for automation. Valid values: "INSIGHT", "ENTITY".
    enabled bool
    execution_types Sequence[str]
    Automation execution type. Valid values: "NEW_INSIGHT", "INSIGHT_CLOSED", "ON_DEMAND".
    playbook_id str
    cse_resource_sub_types Sequence[str]

    CSE Resource sub-type when cse_resource_type is specified as "ENTITY". Examples: "_ip", "_mac".

    The following attributes are exported:

    cseResourceType String
    CSE Resource type for automation. Valid values: "INSIGHT", "ENTITY".
    enabled Boolean
    executionTypes List<String>
    Automation execution type. Valid values: "NEW_INSIGHT", "INSIGHT_CLOSED", "ON_DEMAND".
    playbookId String
    cseResourceSubTypes List<String>

    CSE Resource sub-type when cse_resource_type is specified as "ENTITY". Examples: "_ip", "_mac".

    The following attributes are exported:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CseAutomation resource produces the following output properties:

    Description string
    Automation description.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Automation name.
    Description string
    Automation description.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Automation name.
    description String
    Automation description.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Automation name.
    description string
    Automation description.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Automation name.
    description str
    Automation description.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Automation name.
    description String
    Automation description.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Automation name.

    Look up Existing CseAutomation Resource

    Get an existing CseAutomation 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?: CseAutomationState, opts?: CustomResourceOptions): CseAutomation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cse_resource_sub_types: Optional[Sequence[str]] = None,
            cse_resource_type: Optional[str] = None,
            description: Optional[str] = None,
            enabled: Optional[bool] = None,
            execution_types: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            playbook_id: Optional[str] = None) -> CseAutomation
    func GetCseAutomation(ctx *Context, name string, id IDInput, state *CseAutomationState, opts ...ResourceOption) (*CseAutomation, error)
    public static CseAutomation Get(string name, Input<string> id, CseAutomationState? state, CustomResourceOptions? opts = null)
    public static CseAutomation get(String name, Output<String> id, CseAutomationState 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:
    CseResourceSubTypes List<string>

    CSE Resource sub-type when cse_resource_type is specified as "ENTITY". Examples: "_ip", "_mac".

    The following attributes are exported:

    CseResourceType string
    CSE Resource type for automation. Valid values: "INSIGHT", "ENTITY".
    Description string
    Automation description.
    Enabled bool
    ExecutionTypes List<string>
    Automation execution type. Valid values: "NEW_INSIGHT", "INSIGHT_CLOSED", "ON_DEMAND".
    Name string
    Automation name.
    PlaybookId string
    CseResourceSubTypes []string

    CSE Resource sub-type when cse_resource_type is specified as "ENTITY". Examples: "_ip", "_mac".

    The following attributes are exported:

    CseResourceType string
    CSE Resource type for automation. Valid values: "INSIGHT", "ENTITY".
    Description string
    Automation description.
    Enabled bool
    ExecutionTypes []string
    Automation execution type. Valid values: "NEW_INSIGHT", "INSIGHT_CLOSED", "ON_DEMAND".
    Name string
    Automation name.
    PlaybookId string
    cseResourceSubTypes List<String>

    CSE Resource sub-type when cse_resource_type is specified as "ENTITY". Examples: "_ip", "_mac".

    The following attributes are exported:

    cseResourceType String
    CSE Resource type for automation. Valid values: "INSIGHT", "ENTITY".
    description String
    Automation description.
    enabled Boolean
    executionTypes List<String>
    Automation execution type. Valid values: "NEW_INSIGHT", "INSIGHT_CLOSED", "ON_DEMAND".
    name String
    Automation name.
    playbookId String
    cseResourceSubTypes string[]

    CSE Resource sub-type when cse_resource_type is specified as "ENTITY". Examples: "_ip", "_mac".

    The following attributes are exported:

    cseResourceType string
    CSE Resource type for automation. Valid values: "INSIGHT", "ENTITY".
    description string
    Automation description.
    enabled boolean
    executionTypes string[]
    Automation execution type. Valid values: "NEW_INSIGHT", "INSIGHT_CLOSED", "ON_DEMAND".
    name string
    Automation name.
    playbookId string
    cse_resource_sub_types Sequence[str]

    CSE Resource sub-type when cse_resource_type is specified as "ENTITY". Examples: "_ip", "_mac".

    The following attributes are exported:

    cse_resource_type str
    CSE Resource type for automation. Valid values: "INSIGHT", "ENTITY".
    description str
    Automation description.
    enabled bool
    execution_types Sequence[str]
    Automation execution type. Valid values: "NEW_INSIGHT", "INSIGHT_CLOSED", "ON_DEMAND".
    name str
    Automation name.
    playbook_id str
    cseResourceSubTypes List<String>

    CSE Resource sub-type when cse_resource_type is specified as "ENTITY". Examples: "_ip", "_mac".

    The following attributes are exported:

    cseResourceType String
    CSE Resource type for automation. Valid values: "INSIGHT", "ENTITY".
    description String
    Automation description.
    enabled Boolean
    executionTypes List<String>
    Automation execution type. Valid values: "NEW_INSIGHT", "INSIGHT_CLOSED", "ON_DEMAND".
    name String
    Automation name.
    playbookId String

    Import

    Automation can be imported using the field id, e.g.:

    hcl

    $ pulumi import sumologic:index/cseAutomation:CseAutomation automation 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.21.0 published on Thursday, Apr 11, 2024 by Pulumi