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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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
Package Details
- Repository
- Sumo Logic pulumi/pulumi-sumologic
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
sumologic
Terraform Provider.