sumologic logo
Sumo Logic v0.13.0, Mar 27 23

sumologic.SloFolder

Provides the ability to create, read, delete, and update folders for SLO’s.

Example SLO Folder

NOTE: SLO folders are considered a different resource from Library content and monitor folders.

import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";

const tfSloFolder = new sumologic.SloFolder("tfSloFolder", {description: "A folder for SLO's managed by terraform."});
import pulumi
import pulumi_sumologic as sumologic

tf_slo_folder = sumologic.SloFolder("tfSloFolder", description="A folder for SLO's managed by terraform.")
using System.Collections.Generic;
using Pulumi;
using SumoLogic = Pulumi.SumoLogic;

return await Deployment.RunAsync(() => 
{
    var tfSloFolder = new SumoLogic.SloFolder("tfSloFolder", new()
    {
        Description = "A folder for SLO's managed by terraform.",
    });

});
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.NewSloFolder(ctx, "tfSloFolder", &sumologic.SloFolderArgs{
			Description: pulumi.String("A folder for SLO's managed by terraform."),
		})
		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.SloFolder;
import com.pulumi.sumologic.SloFolderArgs;
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 tfSloFolder = new SloFolder("tfSloFolder", SloFolderArgs.builder()        
            .description("A folder for SLO's managed by terraform.")
            .build());

    }
}
resources:
  tfSloFolder:
    type: sumologic:SloFolder
    properties:
      description: A folder for SLO's managed by terraform.

Example Nested SLO Folders

import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";

const tfPaymentsTeamRootFolder = new sumologic.SloFolder("tfPaymentsTeamRootFolder", {description: "SLO's payments services."});
const tfPaymentsTeamProdFolder = new sumologic.SloFolder("tfPaymentsTeamProdFolder", {
    description: "SLOs for the Payments service on Production Environment.",
    parentId: tfPaymentsTeamRootFolder.id,
});
const tfPaymentsTeamStagFolder = new sumologic.SloFolder("tfPaymentsTeamStagFolder", {
    description: "SLOs for the payments service on Staging Environment.",
    parentId: tfPaymentsTeamRootFolder.id,
});
import pulumi
import pulumi_sumologic as sumologic

tf_payments_team_root_folder = sumologic.SloFolder("tfPaymentsTeamRootFolder", description="SLO's payments services.")
tf_payments_team_prod_folder = sumologic.SloFolder("tfPaymentsTeamProdFolder",
    description="SLOs for the Payments service on Production Environment.",
    parent_id=tf_payments_team_root_folder.id)
tf_payments_team_stag_folder = sumologic.SloFolder("tfPaymentsTeamStagFolder",
    description="SLOs for the payments service on Staging Environment.",
    parent_id=tf_payments_team_root_folder.id)
using System.Collections.Generic;
using Pulumi;
using SumoLogic = Pulumi.SumoLogic;

return await Deployment.RunAsync(() => 
{
    var tfPaymentsTeamRootFolder = new SumoLogic.SloFolder("tfPaymentsTeamRootFolder", new()
    {
        Description = "SLO's payments services.",
    });

    var tfPaymentsTeamProdFolder = new SumoLogic.SloFolder("tfPaymentsTeamProdFolder", new()
    {
        Description = "SLOs for the Payments service on Production Environment.",
        ParentId = tfPaymentsTeamRootFolder.Id,
    });

    var tfPaymentsTeamStagFolder = new SumoLogic.SloFolder("tfPaymentsTeamStagFolder", new()
    {
        Description = "SLOs for the payments service on Staging Environment.",
        ParentId = tfPaymentsTeamRootFolder.Id,
    });

});
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 {
		tfPaymentsTeamRootFolder, err := sumologic.NewSloFolder(ctx, "tfPaymentsTeamRootFolder", &sumologic.SloFolderArgs{
			Description: pulumi.String("SLO's payments services."),
		})
		if err != nil {
			return err
		}
		_, err = sumologic.NewSloFolder(ctx, "tfPaymentsTeamProdFolder", &sumologic.SloFolderArgs{
			Description: pulumi.String("SLOs for the Payments service on Production Environment."),
			ParentId:    tfPaymentsTeamRootFolder.ID(),
		})
		if err != nil {
			return err
		}
		_, err = sumologic.NewSloFolder(ctx, "tfPaymentsTeamStagFolder", &sumologic.SloFolderArgs{
			Description: pulumi.String("SLOs for the payments service on Staging Environment."),
			ParentId:    tfPaymentsTeamRootFolder.ID(),
		})
		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.SloFolder;
import com.pulumi.sumologic.SloFolderArgs;
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 tfPaymentsTeamRootFolder = new SloFolder("tfPaymentsTeamRootFolder", SloFolderArgs.builder()        
            .description("SLO's payments services.")
            .build());

        var tfPaymentsTeamProdFolder = new SloFolder("tfPaymentsTeamProdFolder", SloFolderArgs.builder()        
            .description("SLOs for the Payments service on Production Environment.")
            .parentId(tfPaymentsTeamRootFolder.id())
            .build());

        var tfPaymentsTeamStagFolder = new SloFolder("tfPaymentsTeamStagFolder", SloFolderArgs.builder()        
            .description("SLOs for the payments service on Staging Environment.")
            .parentId(tfPaymentsTeamRootFolder.id())
            .build());

    }
}
resources:
  tfPaymentsTeamRootFolder:
    type: sumologic:SloFolder
    properties:
      description: SLO's payments services.
  tfPaymentsTeamProdFolder:
    type: sumologic:SloFolder
    properties:
      description: SLOs for the Payments service on Production Environment.
      parentId: ${tfPaymentsTeamRootFolder.id}
  tfPaymentsTeamStagFolder:
    type: sumologic:SloFolder
    properties:
      description: SLOs for the payments service on Staging Environment.
      parentId: ${tfPaymentsTeamRootFolder.id}

Create SloFolder Resource

new SloFolder(name: string, args: SloFolderArgs, opts?: CustomResourceOptions);
@overload
def SloFolder(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              content_type: Optional[str] = None,
              created_at: Optional[str] = None,
              created_by: Optional[str] = None,
              description: Optional[str] = None,
              is_locked: Optional[bool] = None,
              is_mutable: Optional[bool] = None,
              is_system: Optional[bool] = None,
              modified_at: Optional[str] = None,
              modified_by: Optional[str] = None,
              name: Optional[str] = None,
              parent_id: Optional[str] = None,
              post_request_map: Optional[Mapping[str, str]] = None,
              type: Optional[str] = None,
              version: Optional[int] = None)
@overload
def SloFolder(resource_name: str,
              args: SloFolderArgs,
              opts: Optional[ResourceOptions] = None)
func NewSloFolder(ctx *Context, name string, args SloFolderArgs, opts ...ResourceOption) (*SloFolder, error)
public SloFolder(string name, SloFolderArgs args, CustomResourceOptions? opts = null)
public SloFolder(String name, SloFolderArgs args)
public SloFolder(String name, SloFolderArgs args, CustomResourceOptions options)
type: sumologic:SloFolder
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args SloFolderArgs
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 SloFolderArgs
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 SloFolderArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args SloFolderArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args SloFolderArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

Description string

The description of the SLO folder.

ContentType string
CreatedAt string
CreatedBy string
IsLocked bool
IsMutable bool
IsSystem bool
ModifiedAt string
ModifiedBy string
Name string

The name of the SLO folder. The name must be alphanumeric.

ParentId string

The identifier of the SLO Folder that contains this SLO Folder. Defaults to the root folder.

PostRequestMap Dictionary<string, string>
Type string
Version int
Description string

The description of the SLO folder.

ContentType string
CreatedAt string
CreatedBy string
IsLocked bool
IsMutable bool
IsSystem bool
ModifiedAt string
ModifiedBy string
Name string

The name of the SLO folder. The name must be alphanumeric.

ParentId string

The identifier of the SLO Folder that contains this SLO Folder. Defaults to the root folder.

PostRequestMap map[string]string
Type string
Version int
description String

The description of the SLO folder.

contentType String
createdAt String
createdBy String
isLocked Boolean
isMutable Boolean
isSystem Boolean
modifiedAt String
modifiedBy String
name String

The name of the SLO folder. The name must be alphanumeric.

parentId String

The identifier of the SLO Folder that contains this SLO Folder. Defaults to the root folder.

postRequestMap Map<String,String>
type String
version Integer
description string

The description of the SLO folder.

contentType string
createdAt string
createdBy string
isLocked boolean
isMutable boolean
isSystem boolean
modifiedAt string
modifiedBy string
name string

The name of the SLO folder. The name must be alphanumeric.

parentId string

The identifier of the SLO Folder that contains this SLO Folder. Defaults to the root folder.

postRequestMap {[key: string]: string}
type string
version number
description str

The description of the SLO folder.

content_type str
created_at str
created_by str
is_locked bool
is_mutable bool
is_system bool
modified_at str
modified_by str
name str

The name of the SLO folder. The name must be alphanumeric.

parent_id str

The identifier of the SLO Folder that contains this SLO Folder. Defaults to the root folder.

post_request_map Mapping[str, str]
type str
version int
description String

The description of the SLO folder.

contentType String
createdAt String
createdBy String
isLocked Boolean
isMutable Boolean
isSystem Boolean
modifiedAt String
modifiedBy String
name String

The name of the SLO folder. The name must be alphanumeric.

parentId String

The identifier of the SLO Folder that contains this SLO Folder. Defaults to the root folder.

postRequestMap Map<String>
type String
version Number

Outputs

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

Get an existing SloFolder 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?: SloFolderState, opts?: CustomResourceOptions): SloFolder
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        content_type: Optional[str] = None,
        created_at: Optional[str] = None,
        created_by: Optional[str] = None,
        description: Optional[str] = None,
        is_locked: Optional[bool] = None,
        is_mutable: Optional[bool] = None,
        is_system: Optional[bool] = None,
        modified_at: Optional[str] = None,
        modified_by: Optional[str] = None,
        name: Optional[str] = None,
        parent_id: Optional[str] = None,
        post_request_map: Optional[Mapping[str, str]] = None,
        type: Optional[str] = None,
        version: Optional[int] = None) -> SloFolder
func GetSloFolder(ctx *Context, name string, id IDInput, state *SloFolderState, opts ...ResourceOption) (*SloFolder, error)
public static SloFolder Get(string name, Input<string> id, SloFolderState? state, CustomResourceOptions? opts = null)
public static SloFolder get(String name, Output<String> id, SloFolderState 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:
ContentType string
CreatedAt string
CreatedBy string
Description string

The description of the SLO folder.

IsLocked bool
IsMutable bool
IsSystem bool
ModifiedAt string
ModifiedBy string
Name string

The name of the SLO folder. The name must be alphanumeric.

ParentId string

The identifier of the SLO Folder that contains this SLO Folder. Defaults to the root folder.

PostRequestMap Dictionary<string, string>
Type string
Version int
ContentType string
CreatedAt string
CreatedBy string
Description string

The description of the SLO folder.

IsLocked bool
IsMutable bool
IsSystem bool
ModifiedAt string
ModifiedBy string
Name string

The name of the SLO folder. The name must be alphanumeric.

ParentId string

The identifier of the SLO Folder that contains this SLO Folder. Defaults to the root folder.

PostRequestMap map[string]string
Type string
Version int
contentType String
createdAt String
createdBy String
description String

The description of the SLO folder.

isLocked Boolean
isMutable Boolean
isSystem Boolean
modifiedAt String
modifiedBy String
name String

The name of the SLO folder. The name must be alphanumeric.

parentId String

The identifier of the SLO Folder that contains this SLO Folder. Defaults to the root folder.

postRequestMap Map<String,String>
type String
version Integer
contentType string
createdAt string
createdBy string
description string

The description of the SLO folder.

isLocked boolean
isMutable boolean
isSystem boolean
modifiedAt string
modifiedBy string
name string

The name of the SLO folder. The name must be alphanumeric.

parentId string

The identifier of the SLO Folder that contains this SLO Folder. Defaults to the root folder.

postRequestMap {[key: string]: string}
type string
version number
content_type str
created_at str
created_by str
description str

The description of the SLO folder.

is_locked bool
is_mutable bool
is_system bool
modified_at str
modified_by str
name str

The name of the SLO folder. The name must be alphanumeric.

parent_id str

The identifier of the SLO Folder that contains this SLO Folder. Defaults to the root folder.

post_request_map Mapping[str, str]
type str
version int
contentType String
createdAt String
createdBy String
description String

The description of the SLO folder.

isLocked Boolean
isMutable Boolean
isSystem Boolean
modifiedAt String
modifiedBy String
name String

The name of the SLO folder. The name must be alphanumeric.

parentId String

The identifier of the SLO Folder that contains this SLO Folder. Defaults to the root folder.

postRequestMap Map<String>
type String
version Number

Import

SLO folders can be imported using the SLO folder identifier, such as:

shell

 $ pulumi import sumologic:index/sloFolder:SloFolder tf_slo_folder_1 0000000000ABC123

Package Details

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

This Pulumi package is based on the sumologic Terraform Provider.