@pulumi/sumologic
Version:
A Pulumi package for creating and managing sumologic cloud resources.
167 lines (166 loc) • 5.96 kB
TypeScript
import * as pulumi from "@pulumi/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.
*
* ```typescript
* 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.",
* });
* ```
*
* ## Example Nested SLO Folders
*
* ```typescript
* 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
*
* SLO folders can be imported using the SLO folder identifier, such as:
*
* shell
*
* ```sh
* $ pulumi import sumologic:index/sloFolder:SloFolder tf_slo_folder_1 0000000000ABC123
* ```
*/
export declare class SloFolder extends pulumi.CustomResource {
/**
* Get an existing SloFolder resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SloFolderState, opts?: pulumi.CustomResourceOptions): SloFolder;
/**
* Returns true if the given object is an instance of SloFolder. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is SloFolder;
readonly contentType: pulumi.Output<string | undefined>;
readonly createdAt: pulumi.Output<string>;
readonly createdBy: pulumi.Output<string>;
/**
* The description of the SLO folder.
*/
readonly description: pulumi.Output<string>;
readonly isLocked: pulumi.Output<boolean | undefined>;
readonly isMutable: pulumi.Output<boolean>;
readonly isSystem: pulumi.Output<boolean>;
readonly modifiedAt: pulumi.Output<string>;
readonly modifiedBy: pulumi.Output<string>;
/**
* The name of the SLO folder. The name must be alphanumeric.
*/
readonly name: pulumi.Output<string>;
/**
* The identifier of the SLO Folder that contains this SLO Folder. Defaults to the root folder.
*
* Additional data provided in state:
*/
readonly parentId: pulumi.Output<string>;
readonly postRequestMap: pulumi.Output<{
[key: string]: string;
} | undefined>;
readonly type: pulumi.Output<string | undefined>;
readonly version: pulumi.Output<number>;
/**
* Create a SloFolder resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: SloFolderArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering SloFolder resources.
*/
export interface SloFolderState {
contentType?: pulumi.Input<string>;
createdAt?: pulumi.Input<string>;
createdBy?: pulumi.Input<string>;
/**
* The description of the SLO folder.
*/
description?: pulumi.Input<string>;
isLocked?: pulumi.Input<boolean>;
isMutable?: pulumi.Input<boolean>;
isSystem?: pulumi.Input<boolean>;
modifiedAt?: pulumi.Input<string>;
modifiedBy?: pulumi.Input<string>;
/**
* The name of the SLO folder. The name must be alphanumeric.
*/
name?: pulumi.Input<string>;
/**
* The identifier of the SLO Folder that contains this SLO Folder. Defaults to the root folder.
*
* Additional data provided in state:
*/
parentId?: pulumi.Input<string>;
postRequestMap?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
type?: pulumi.Input<string>;
version?: pulumi.Input<number>;
}
/**
* The set of arguments for constructing a SloFolder resource.
*/
export interface SloFolderArgs {
contentType?: pulumi.Input<string>;
createdAt?: pulumi.Input<string>;
createdBy?: pulumi.Input<string>;
/**
* The description of the SLO folder.
*/
description: pulumi.Input<string>;
isLocked?: pulumi.Input<boolean>;
isMutable?: pulumi.Input<boolean>;
isSystem?: pulumi.Input<boolean>;
modifiedAt?: pulumi.Input<string>;
modifiedBy?: pulumi.Input<string>;
/**
* The name of the SLO folder. The name must be alphanumeric.
*/
name?: pulumi.Input<string>;
/**
* The identifier of the SLO Folder that contains this SLO Folder. Defaults to the root folder.
*
* Additional data provided in state:
*/
parentId?: pulumi.Input<string>;
postRequestMap?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
type?: pulumi.Input<string>;
version?: pulumi.Input<number>;
}