SumoLogic

Pulumi Official
Package maintained by Pulumi
v0.6.0 published on Thursday, Apr 7, 2022 by Pulumi

Folder

Provides the ability to create, read, delete, update, and manage of folders.

Example Usage

using Pulumi;
using SumoLogic = Pulumi.SumoLogic;

class MyStack : Stack
{
    public MyStack()
    {
        var folder = new SumoLogic.Folder("folder", new SumoLogic.FolderArgs
        {
            Description = "A test folder",
            ParentId = "<personal 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 {
		_, err := sumologic.NewFolder(ctx, "folder", &sumologic.FolderArgs{
			Description: pulumi.String("A test folder"),
			ParentId:    pulumi.String("<personal folder id>"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_sumologic as sumologic

folder = sumologic.Folder("folder",
    description="A test folder",
    parent_id="<personal folder id>")
import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";

const folder = new sumologic.Folder("folder", {
    description: "A test folder",
    parentId: "<personal folder id>",
});

Coming soon!

Create a Folder Resource

new Folder(name: string, args: FolderArgs, opts?: CustomResourceOptions);
@overload
def Folder(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           description: Optional[str] = None,
           name: Optional[str] = None,
           parent_id: Optional[str] = None)
@overload
def Folder(resource_name: str,
           args: FolderArgs,
           opts: Optional[ResourceOptions] = None)
func NewFolder(ctx *Context, name string, args FolderArgs, opts ...ResourceOption) (*Folder, error)
public Folder(string name, FolderArgs args, CustomResourceOptions? opts = null)
public Folder(String name, FolderArgs args)
public Folder(String name, FolderArgs args, CustomResourceOptions options)
type: sumologic:Folder
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

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

Description string

The description of the folder.

ParentId string

The ID of the folder in which you want to create the new folder.

Name string

The name of the folder. This is required, and has to be unique.

Description string

The description of the folder.

ParentId string

The ID of the folder in which you want to create the new folder.

Name string

The name of the folder. This is required, and has to be unique.

description String

The description of the folder.

parentId String

The ID of the folder in which you want to create the new folder.

name String

The name of the folder. This is required, and has to be unique.

description string

The description of the folder.

parentId string

The ID of the folder in which you want to create the new folder.

name string

The name of the folder. This is required, and has to be unique.

description str

The description of the folder.

parent_id str

The ID of the folder in which you want to create the new folder.

name str

The name of the folder. This is required, and has to be unique.

description String

The description of the folder.

parentId String

The ID of the folder in which you want to create the new folder.

name String

The name of the folder. This is required, and has to be unique.

Outputs

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

Get an existing Folder 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?: FolderState, opts?: CustomResourceOptions): Folder
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        name: Optional[str] = None,
        parent_id: Optional[str] = None) -> Folder
func GetFolder(ctx *Context, name string, id IDInput, state *FolderState, opts ...ResourceOption) (*Folder, error)
public static Folder Get(string name, Input<string> id, FolderState? state, CustomResourceOptions? opts = null)
public static Folder get(String name, Output<String> id, FolderState 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:
Description string

The description of the folder.

Name string

The name of the folder. This is required, and has to be unique.

ParentId string

The ID of the folder in which you want to create the new folder.

Description string

The description of the folder.

Name string

The name of the folder. This is required, and has to be unique.

ParentId string

The ID of the folder in which you want to create the new folder.

description String

The description of the folder.

name String

The name of the folder. This is required, and has to be unique.

parentId String

The ID of the folder in which you want to create the new folder.

description string

The description of the folder.

name string

The name of the folder. This is required, and has to be unique.

parentId string

The ID of the folder in which you want to create the new folder.

description str

The description of the folder.

name str

The name of the folder. This is required, and has to be unique.

parent_id str

The ID of the folder in which you want to create the new folder.

description String

The description of the folder.

name String

The name of the folder. This is required, and has to be unique.

parentId String

The ID of the folder in which you want to create the new folder.

Import

Timeouts sumologic_folder provides the following Timeouts configuration options- delete - (Default 1 minute) Used for waiting for the deletion job to be successful Additional data provided in state - created_at - (Computed) When the folder was created. - created_by - (Computed) Who created the folder. - modified_at - (Computed) When was the folder last modified. - modified_by - (Computed) The ID of the user who modified the folder last. - item_type - (Computed) What the type of the content item is (will obviously be “Folder”). - permissions - (Computed) List of permissions the user has on the content item. - children - (Computed) A list of all the content items in the created folder (can be folders or other content items).

Package Details

Repository
https://github.com/pulumi/pulumi-sumologic
License
Apache-2.0
Notes

This Pulumi package is based on the sumologic Terraform Provider.