sumologic.SloFolder
Explore with Pulumi AI
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.
- Content
Type string - Created
At string - Created
By string - Is
Locked bool - Is
Mutable bool - Is
System bool - Modified
At string - Modified
By string - Name string
- The name of the SLO folder. The name must be alphanumeric.
- Parent
Id string The identifier of the SLO Folder that contains this SLO Folder. Defaults to the root folder.
Additional data provided in state:
- Post
Request Dictionary<string, string>Map - Type string
- Version int
- Description string
- The description of the SLO folder.
- Content
Type string - Created
At string - Created
By string - Is
Locked bool - Is
Mutable bool - Is
System bool - Modified
At string - Modified
By string - Name string
- The name of the SLO folder. The name must be alphanumeric.
- Parent
Id string The identifier of the SLO Folder that contains this SLO Folder. Defaults to the root folder.
Additional data provided in state:
- Post
Request map[string]stringMap - Type string
- Version int
- description String
- The description of the SLO folder.
- content
Type String - created
At String - created
By String - is
Locked Boolean - is
Mutable Boolean - is
System Boolean - modified
At String - modified
By String - name String
- The name of the SLO folder. The name must be alphanumeric.
- parent
Id String The identifier of the SLO Folder that contains this SLO Folder. Defaults to the root folder.
Additional data provided in state:
- post
Request Map<String,String>Map - type String
- version Integer
- description string
- The description of the SLO folder.
- content
Type string - created
At string - created
By string - is
Locked boolean - is
Mutable boolean - is
System boolean - modified
At string - modified
By string - name string
- The name of the SLO folder. The name must be alphanumeric.
- parent
Id string The identifier of the SLO Folder that contains this SLO Folder. Defaults to the root folder.
Additional data provided in state:
- post
Request {[key: string]: string}Map - 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_ Mapping[str, str]map - type str
- version int
- description String
- The description of the SLO folder.
- content
Type String - created
At String - created
By String - is
Locked Boolean - is
Mutable Boolean - is
System Boolean - modified
At String - modified
By String - name String
- The name of the SLO folder. The name must be alphanumeric.
- parent
Id String The identifier of the SLO Folder that contains this SLO Folder. Defaults to the root folder.
Additional data provided in state:
- post
Request Map<String>Map - 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.
- Content
Type string - Created
At string - Created
By string - Description string
- The description of the SLO folder.
- Is
Locked bool - Is
Mutable bool - Is
System bool - Modified
At string - Modified
By string - Name string
- The name of the SLO folder. The name must be alphanumeric.
- Parent
Id string The identifier of the SLO Folder that contains this SLO Folder. Defaults to the root folder.
Additional data provided in state:
- Post
Request Dictionary<string, string>Map - Type string
- Version int
- Content
Type string - Created
At string - Created
By string - Description string
- The description of the SLO folder.
- Is
Locked bool - Is
Mutable bool - Is
System bool - Modified
At string - Modified
By string - Name string
- The name of the SLO folder. The name must be alphanumeric.
- Parent
Id string The identifier of the SLO Folder that contains this SLO Folder. Defaults to the root folder.
Additional data provided in state:
- Post
Request map[string]stringMap - Type string
- Version int
- content
Type String - created
At String - created
By String - description String
- The description of the SLO folder.
- is
Locked Boolean - is
Mutable Boolean - is
System Boolean - modified
At String - modified
By String - name String
- The name of the SLO folder. The name must be alphanumeric.
- parent
Id String The identifier of the SLO Folder that contains this SLO Folder. Defaults to the root folder.
Additional data provided in state:
- post
Request Map<String,String>Map - type String
- version Integer
- content
Type string - created
At string - created
By string - description string
- The description of the SLO folder.
- is
Locked boolean - is
Mutable boolean - is
System boolean - modified
At string - modified
By string - name string
- The name of the SLO folder. The name must be alphanumeric.
- parent
Id string The identifier of the SLO Folder that contains this SLO Folder. Defaults to the root folder.
Additional data provided in state:
- post
Request {[key: string]: string}Map - 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_ Mapping[str, str]map - type str
- version int
- content
Type String - created
At String - created
By String - description String
- The description of the SLO folder.
- is
Locked Boolean - is
Mutable Boolean - is
System Boolean - modified
At String - modified
By String - name String
- The name of the SLO folder. The name must be alphanumeric.
- parent
Id String The identifier of the SLO Folder that contains this SLO Folder. Defaults to the root folder.
Additional data provided in state:
- post
Request Map<String>Map - 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.