@pulumi/sumologic
Version:
A Pulumi package for creating and managing sumologic cloud resources.
117 lines (116 loc) • 4.04 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* Provides a [Sumologic Hierarchy](https://help.sumologic.com/Visualizations-and-Alerts/Explore).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sumologic from "@pulumi/sumologic";
*
* const exampleHierarchy = new sumologic.Hierarchy("example_hierarchy", {
* name: "testK8sHierarchy",
* filter: {
* key: "_origin",
* value: "kubernetes",
* },
* levels: [{
* entityType: "cluster",
* nextLevelsWithConditions: [{
* condition: "testCondition",
* level: {
* entityType: "namespace",
* },
* }],
* nextLevel: {
* entityType: "node",
* },
* }],
* });
* ```
*
* ## Import
*
* Hierarchies can be imported using the id, e.g.:
*
* hcl
*
* ```sh
* $ pulumi import sumologic:index/hierarchy:Hierarchy test id
* ```
*
* [1]: https://help.sumologic.com/Visualizations-and-Alerts/Explore
*/
export declare class Hierarchy extends pulumi.CustomResource {
/**
* Get an existing Hierarchy 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?: HierarchyState, opts?: pulumi.CustomResourceOptions): Hierarchy;
/**
* Returns true if the given object is an instance of Hierarchy. 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 Hierarchy;
/**
* An optional clause that a hierarchy requires to be matched.
*/
readonly filter: pulumi.Output<outputs.HierarchyFilter | undefined>;
/**
* A hierarchy of entities. The order is up-down, left to right levels with condition, then level without condition. Maximum supported total depth is 6.
*/
readonly levels: pulumi.Output<outputs.HierarchyLevel[]>;
/**
* Name of the hierarchy.
*/
readonly name: pulumi.Output<string>;
/**
* Create a Hierarchy 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: HierarchyArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Hierarchy resources.
*/
export interface HierarchyState {
/**
* An optional clause that a hierarchy requires to be matched.
*/
filter?: pulumi.Input<inputs.HierarchyFilter>;
/**
* A hierarchy of entities. The order is up-down, left to right levels with condition, then level without condition. Maximum supported total depth is 6.
*/
levels?: pulumi.Input<pulumi.Input<inputs.HierarchyLevel>[]>;
/**
* Name of the hierarchy.
*/
name?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Hierarchy resource.
*/
export interface HierarchyArgs {
/**
* An optional clause that a hierarchy requires to be matched.
*/
filter?: pulumi.Input<inputs.HierarchyFilter>;
/**
* A hierarchy of entities. The order is up-down, left to right levels with condition, then level without condition. Maximum supported total depth is 6.
*/
levels: pulumi.Input<pulumi.Input<inputs.HierarchyLevel>[]>;
/**
* Name of the hierarchy.
*/
name?: pulumi.Input<string>;
}