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

sumologic.SloFolder

Explore with Pulumi AI

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

    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("tf_slo_folder", {
        name: "Terraform Managed SLO's",
        description: "A folder for SLO's managed by terraform.",
    });
    
    import pulumi
    import pulumi_sumologic as sumologic
    
    tf_slo_folder = sumologic.SloFolder("tf_slo_folder",
        name="Terraform Managed SLO's",
        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, "tf_slo_folder", &sumologic.SloFolderArgs{
    			Name:        pulumi.String("Terraform Managed SLO's"),
    			Description: pulumi.String("A folder for SLO's managed by terraform."),
    		})
    		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 tfSloFolder = new SumoLogic.SloFolder("tf_slo_folder", new()
        {
            Name = "Terraform Managed SLO's",
            Description = "A folder for SLO's managed by terraform.",
        });
    
    });
    
    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()
                .name("Terraform Managed SLO's")
                .description("A folder for SLO's managed by terraform.")
                .build());
    
        }
    }
    
    resources:
      tfSloFolder:
        type: sumologic:SloFolder
        name: tf_slo_folder
        properties:
          name: Terraform Managed SLO's
          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("tf_payments_team_root_folder", {
        name: "Security Team SLOs",
        description: "SLO's payments services.",
    });
    const tfPaymentsTeamProdFolder = new sumologic.SloFolder("tf_payments_team_prod_folder", {
        name: "Production SLOs",
        description: "SLOs for the Payments service on Production Environment.",
        parentId: tfPaymentsTeamRootFolder.id,
    });
    const tfPaymentsTeamStagFolder = new sumologic.SloFolder("tf_payments_team_stag_folder", {
        name: "Staging SLOs",
        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("tf_payments_team_root_folder",
        name="Security Team SLOs",
        description="SLO's payments services.")
    tf_payments_team_prod_folder = sumologic.SloFolder("tf_payments_team_prod_folder",
        name="Production SLOs",
        description="SLOs for the Payments service on Production Environment.",
        parent_id=tf_payments_team_root_folder.id)
    tf_payments_team_stag_folder = sumologic.SloFolder("tf_payments_team_stag_folder",
        name="Staging SLOs",
        description="SLOs for the payments service on Staging Environment.",
        parent_id=tf_payments_team_root_folder.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, "tf_payments_team_root_folder", &sumologic.SloFolderArgs{
    			Name:        pulumi.String("Security Team SLOs"),
    			Description: pulumi.String("SLO's payments services."),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = sumologic.NewSloFolder(ctx, "tf_payments_team_prod_folder", &sumologic.SloFolderArgs{
    			Name:        pulumi.String("Production SLOs"),
    			Description: pulumi.String("SLOs for the Payments service on Production Environment."),
    			ParentId:    tfPaymentsTeamRootFolder.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = sumologic.NewSloFolder(ctx, "tf_payments_team_stag_folder", &sumologic.SloFolderArgs{
    			Name:        pulumi.String("Staging SLOs"),
    			Description: pulumi.String("SLOs for the payments service on Staging Environment."),
    			ParentId:    tfPaymentsTeamRootFolder.ID(),
    		})
    		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 tfPaymentsTeamRootFolder = new SumoLogic.SloFolder("tf_payments_team_root_folder", new()
        {
            Name = "Security Team SLOs",
            Description = "SLO's payments services.",
        });
    
        var tfPaymentsTeamProdFolder = new SumoLogic.SloFolder("tf_payments_team_prod_folder", new()
        {
            Name = "Production SLOs",
            Description = "SLOs for the Payments service on Production Environment.",
            ParentId = tfPaymentsTeamRootFolder.Id,
        });
    
        var tfPaymentsTeamStagFolder = new SumoLogic.SloFolder("tf_payments_team_stag_folder", new()
        {
            Name = "Staging SLOs",
            Description = "SLOs for the payments service on Staging Environment.",
            ParentId = tfPaymentsTeamRootFolder.Id,
        });
    
    });
    
    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()
                .name("Security Team SLOs")
                .description("SLO's payments services.")
                .build());
    
            var tfPaymentsTeamProdFolder = new SloFolder("tfPaymentsTeamProdFolder", SloFolderArgs.builder()
                .name("Production SLOs")
                .description("SLOs for the Payments service on Production Environment.")
                .parentId(tfPaymentsTeamRootFolder.id())
                .build());
    
            var tfPaymentsTeamStagFolder = new SloFolder("tfPaymentsTeamStagFolder", SloFolderArgs.builder()
                .name("Staging SLOs")
                .description("SLOs for the payments service on Staging Environment.")
                .parentId(tfPaymentsTeamRootFolder.id())
                .build());
    
        }
    }
    
    resources:
      tfPaymentsTeamRootFolder:
        type: sumologic:SloFolder
        name: tf_payments_team_root_folder
        properties:
          name: Security Team SLOs
          description: SLO's payments services.
      tfPaymentsTeamProdFolder:
        type: sumologic:SloFolder
        name: tf_payments_team_prod_folder
        properties:
          name: Production SLOs
          description: SLOs for the Payments service on Production Environment.
          parentId: ${tfPaymentsTeamRootFolder.id}
      tfPaymentsTeamStagFolder:
        type: sumologic:SloFolder
        name: tf_payments_team_stag_folder
        properties:
          name: Staging SLOs
          description: SLOs for the payments service on Staging Environment.
          parentId: ${tfPaymentsTeamRootFolder.id}
    

    Create SloFolder Resource

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

    Constructor syntax

    new SloFolder(name: string, args: SloFolderArgs, opts?: CustomResourceOptions);
    @overload
    def SloFolder(resource_name: str,
                  args: SloFolderArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def SloFolder(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  description: Optional[str] = None,
                  is_system: Optional[bool] = None,
                  created_by: Optional[str] = None,
                  created_at: Optional[str] = None,
                  is_locked: Optional[bool] = None,
                  is_mutable: Optional[bool] = None,
                  content_type: Optional[str] = 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)
    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.
    
    

    Parameters

    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.

    Constructor example

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

    var sloFolderResource = new SumoLogic.SloFolder("sloFolderResource", new()
    {
        Description = "string",
        IsSystem = false,
        CreatedBy = "string",
        CreatedAt = "string",
        IsLocked = false,
        IsMutable = false,
        ContentType = "string",
        ModifiedAt = "string",
        ModifiedBy = "string",
        Name = "string",
        ParentId = "string",
        PostRequestMap = 
        {
            { "string", "string" },
        },
        Type = "string",
        Version = 0,
    });
    
    example, err := sumologic.NewSloFolder(ctx, "sloFolderResource", &sumologic.SloFolderArgs{
    	Description: pulumi.String("string"),
    	IsSystem:    pulumi.Bool(false),
    	CreatedBy:   pulumi.String("string"),
    	CreatedAt:   pulumi.String("string"),
    	IsLocked:    pulumi.Bool(false),
    	IsMutable:   pulumi.Bool(false),
    	ContentType: pulumi.String("string"),
    	ModifiedAt:  pulumi.String("string"),
    	ModifiedBy:  pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	ParentId:    pulumi.String("string"),
    	PostRequestMap: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Type:    pulumi.String("string"),
    	Version: pulumi.Int(0),
    })
    
    var sloFolderResource = new SloFolder("sloFolderResource", SloFolderArgs.builder()
        .description("string")
        .isSystem(false)
        .createdBy("string")
        .createdAt("string")
        .isLocked(false)
        .isMutable(false)
        .contentType("string")
        .modifiedAt("string")
        .modifiedBy("string")
        .name("string")
        .parentId("string")
        .postRequestMap(Map.of("string", "string"))
        .type("string")
        .version(0)
        .build());
    
    slo_folder_resource = sumologic.SloFolder("sloFolderResource",
        description="string",
        is_system=False,
        created_by="string",
        created_at="string",
        is_locked=False,
        is_mutable=False,
        content_type="string",
        modified_at="string",
        modified_by="string",
        name="string",
        parent_id="string",
        post_request_map={
            "string": "string",
        },
        type="string",
        version=0)
    
    const sloFolderResource = new sumologic.SloFolder("sloFolderResource", {
        description: "string",
        isSystem: false,
        createdBy: "string",
        createdAt: "string",
        isLocked: false,
        isMutable: false,
        contentType: "string",
        modifiedAt: "string",
        modifiedBy: "string",
        name: "string",
        parentId: "string",
        postRequestMap: {
            string: "string",
        },
        type: "string",
        version: 0,
    });
    
    type: sumologic:SloFolder
    properties:
        contentType: string
        createdAt: string
        createdBy: string
        description: string
        isLocked: false
        isMutable: false
        isSystem: false
        modifiedAt: string
        modifiedBy: string
        name: string
        parentId: string
        postRequestMap:
            string: string
        type: string
        version: 0
    

    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

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

    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.

    Additional data provided in state:

    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.

    Additional data provided in state:

    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.

    Additional data provided in state:

    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.

    Additional data provided in state:

    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.

    Additional data provided in state:

    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.

    Additional data provided in state:

    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.

    Additional data provided in state:

    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.

    Additional data provided in state:

    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.

    Additional data provided in state:

    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.

    Additional data provided in state:

    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.

    Additional data provided in state:

    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.

    Additional data provided in state:

    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
    

    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