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

sumologic.CseAutomation

Explore with Pulumi AI

sumologic logo
Sumo Logic v0.23.7 published on Thursday, Oct 24, 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("insight_automation", {
        playbookId: "638079aedb99cafada1e80a0",
        cseResourceType: "INSIGHT",
        executionTypes: [
            "NEW_INSIGHT",
            "INSIGHT_CLOSED",
        ],
    });
    const entityAutomation = new sumologic.CseAutomation("entity_automation", {
        playbookId: "638079aedb99cafada1e80a0",
        cseResourceType: "ENTITY",
        cseResourceSubTypes: ["_ip"],
        executionTypes: ["ON_DEMAND"],
    });
    
    import pulumi
    import pulumi_sumologic as sumologic
    
    insight_automation = sumologic.CseAutomation("insight_automation",
        playbook_id="638079aedb99cafada1e80a0",
        cse_resource_type="INSIGHT",
        execution_types=[
            "NEW_INSIGHT",
            "INSIGHT_CLOSED",
        ])
    entity_automation = sumologic.CseAutomation("entity_automation",
        playbook_id="638079aedb99cafada1e80a0",
        cse_resource_type="ENTITY",
        cse_resource_sub_types=["_ip"],
        execution_types=["ON_DEMAND"])
    
    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, "insight_automation", &sumologic.CseAutomationArgs{
    			PlaybookId:      pulumi.String("638079aedb99cafada1e80a0"),
    			CseResourceType: pulumi.String("INSIGHT"),
    			ExecutionTypes: pulumi.StringArray{
    				pulumi.String("NEW_INSIGHT"),
    				pulumi.String("INSIGHT_CLOSED"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = sumologic.NewCseAutomation(ctx, "entity_automation", &sumologic.CseAutomationArgs{
    			PlaybookId:      pulumi.String("638079aedb99cafada1e80a0"),
    			CseResourceType: pulumi.String("ENTITY"),
    			CseResourceSubTypes: pulumi.StringArray{
    				pulumi.String("_ip"),
    			},
    			ExecutionTypes: pulumi.StringArray{
    				pulumi.String("ON_DEMAND"),
    			},
    		})
    		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("insight_automation", new()
        {
            PlaybookId = "638079aedb99cafada1e80a0",
            CseResourceType = "INSIGHT",
            ExecutionTypes = new[]
            {
                "NEW_INSIGHT",
                "INSIGHT_CLOSED",
            },
        });
    
        var entityAutomation = new SumoLogic.CseAutomation("entity_automation", new()
        {
            PlaybookId = "638079aedb99cafada1e80a0",
            CseResourceType = "ENTITY",
            CseResourceSubTypes = new[]
            {
                "_ip",
            },
            ExecutionTypes = new[]
            {
                "ON_DEMAND",
            },
        });
    
    });
    
    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()
                .playbookId("638079aedb99cafada1e80a0")
                .cseResourceType("INSIGHT")
                .executionTypes(            
                    "NEW_INSIGHT",
                    "INSIGHT_CLOSED")
                .build());
    
            var entityAutomation = new CseAutomation("entityAutomation", CseAutomationArgs.builder()
                .playbookId("638079aedb99cafada1e80a0")
                .cseResourceType("ENTITY")
                .cseResourceSubTypes("_ip")
                .executionTypes("ON_DEMAND")
                .build());
    
        }
    }
    
    resources:
      insightAutomation:
        type: sumologic:CseAutomation
        name: insight_automation
        properties:
          playbookId: 638079aedb99cafada1e80a0
          cseResourceType: INSIGHT
          executionTypes:
            - NEW_INSIGHT
            - INSIGHT_CLOSED
      entityAutomation:
        type: sumologic:CseAutomation
        name: entity_automation
        properties:
          playbookId: 638079aedb99cafada1e80a0
          cseResourceType: ENTITY
          cseResourceSubTypes:
            - _ip
          executionTypes:
            - ON_DEMAND
    

    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.

    Constructor 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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    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.23.7 published on Thursday, Oct 24, 2024 by Pulumi