@pulumi/sumologic
Version:
A Pulumi package for creating and managing sumologic cloud resources.
122 lines (121 loc) • 3.98 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* Provides a Sumologic CSE Tag Schema.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sumologic from "@pulumi/sumologic";
*
* const tagSchema = new sumologic.CseTagSchema("tag_schema", {
* key: "location",
* label: "label",
* contentTypes: ["entity"],
* freeForm: true,
* valueOptions: [{
* value: "option value",
* label: "option label",
* link: "http://foo.bar.com",
* }],
* });
* ```
*
* ## Import
*
* Tag Schema can be imported using the field id, e.g.:
*
* hcl
*
* ```sh
* $ pulumi import sumologic:index/cseTagSchema:CseTagSchema tag_schema id
* ```
*/
export declare class CseTagSchema extends pulumi.CustomResource {
/**
* Get an existing CseTagSchema 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?: CseTagSchemaState, opts?: pulumi.CustomResourceOptions): CseTagSchema;
/**
* Returns true if the given object is an instance of CseTagSchema. 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 CseTagSchema;
/**
* Applicable content types. Valid values: "customInsight", "entity", "rule", "threatIntelligence".
*/
readonly contentTypes: pulumi.Output<string[] | undefined>;
/**
* Whether the tag schema accepts free form custom values.
*/
readonly freeForm: pulumi.Output<boolean>;
/**
* Tag Schema key.
*/
readonly key: pulumi.Output<string>;
/**
* Tag Schema label.
*/
readonly label: pulumi.Output<string>;
readonly valueOptions: pulumi.Output<outputs.CseTagSchemaValueOption[] | undefined>;
/**
* Create a CseTagSchema 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: CseTagSchemaArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering CseTagSchema resources.
*/
export interface CseTagSchemaState {
/**
* Applicable content types. Valid values: "customInsight", "entity", "rule", "threatIntelligence".
*/
contentTypes?: pulumi.Input<pulumi.Input<string>[]>;
/**
* Whether the tag schema accepts free form custom values.
*/
freeForm?: pulumi.Input<boolean>;
/**
* Tag Schema key.
*/
key?: pulumi.Input<string>;
/**
* Tag Schema label.
*/
label?: pulumi.Input<string>;
valueOptions?: pulumi.Input<pulumi.Input<inputs.CseTagSchemaValueOption>[]>;
}
/**
* The set of arguments for constructing a CseTagSchema resource.
*/
export interface CseTagSchemaArgs {
/**
* Applicable content types. Valid values: "customInsight", "entity", "rule", "threatIntelligence".
*/
contentTypes?: pulumi.Input<pulumi.Input<string>[]>;
/**
* Whether the tag schema accepts free form custom values.
*/
freeForm: pulumi.Input<boolean>;
/**
* Tag Schema key.
*/
key: pulumi.Input<string>;
/**
* Tag Schema label.
*/
label: pulumi.Input<string>;
valueOptions?: pulumi.Input<pulumi.Input<inputs.CseTagSchemaValueOption>[]>;
}