sumologic logo
Sumo Logic v0.14.0, May 25 23

sumologic.CseAutomation

Explore with Pulumi AI

Provides a Sumologic CSE Automation.

Example Usage

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 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
	})
}
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());

    }
}
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")
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",
});
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

new CseAutomation(name: string, args: CseAutomationArgs, opts?: CustomResourceOptions);
@overload
def CseAutomation(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  cse_resource_sub_types: Optional[Sequence[str]] = None,
                  cse_resource_type: Optional[str] = None,
                  enabled: Optional[bool] = None,
                  execution_types: Optional[Sequence[str]] = None,
                  playbook_id: Optional[str] = None)
@overload
def CseAutomation(resource_name: str,
                  args: CseAutomationArgs,
                  opts: Optional[ResourceOptions] = 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.

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.

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

Package Details

Repository
Sumo Logic pulumi/pulumi-sumologic
License
Apache-2.0
Notes

This Pulumi package is based on the sumologic Terraform Provider.