@pulumi/sumologic
Version:
A Pulumi package for creating and managing sumologic cloud resources.
160 lines (159 loc) • 5.29 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a CSE Rule Tuning Expression.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sumologic from "@pulumi/sumologic";
*
* const ruleTuningExpression = new sumologic.CseRuleTuningExpression("rule_tuning_expression", {
* name: "New Rule Tuning Name",
* description: "New Rule Tuning Description",
* expression: "accountId = 1234",
* enabled: true,
* exclude: true,
* isGlobal: false,
* ruleIds: ["LEGACY-S00084"],
* });
* ```
*
* ## Import
*
* Rule tuning expression can be imported using the field id, e.g.:
*
* hcl
*
* ```sh
* $ pulumi import sumologic:index/cseRuleTuningExpression:CseRuleTuningExpression rule_tuning_expression id
* ```
*/
export declare class CseRuleTuningExpression extends pulumi.CustomResource {
/**
* Get an existing CseRuleTuningExpression 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?: CseRuleTuningExpressionState, opts?: pulumi.CustomResourceOptions): CseRuleTuningExpression;
/**
* Returns true if the given object is an instance of CseRuleTuningExpression. 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 CseRuleTuningExpression;
/**
* The description of the rule tuning expression.
*/
readonly description: pulumi.Output<string>;
/**
* Enabled flag.
*/
readonly enabled: pulumi.Output<boolean>;
/**
* Set to true to exclude records that match the expression. If set to false, only records that do match the expression will be included.
*/
readonly exclude: pulumi.Output<boolean>;
/**
* Expression to match.
*/
readonly expression: pulumi.Output<string>;
/**
* Set to true if this tuning expression should be applied to all rules.
*/
readonly isGlobal: pulumi.Output<boolean>;
/**
* The name of the rule tuning expression.
*/
readonly name: pulumi.Output<string>;
/**
* List of rule IDs, for the tuning expression to be applied. ( Empty if isGlobal set to true)
*
*
* The following attributes are exported:
*/
readonly ruleIds: pulumi.Output<string[]>;
/**
* Create a CseRuleTuningExpression 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: CseRuleTuningExpressionArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering CseRuleTuningExpression resources.
*/
export interface CseRuleTuningExpressionState {
/**
* The description of the rule tuning expression.
*/
description?: pulumi.Input<string>;
/**
* Enabled flag.
*/
enabled?: pulumi.Input<boolean>;
/**
* Set to true to exclude records that match the expression. If set to false, only records that do match the expression will be included.
*/
exclude?: pulumi.Input<boolean>;
/**
* Expression to match.
*/
expression?: pulumi.Input<string>;
/**
* Set to true if this tuning expression should be applied to all rules.
*/
isGlobal?: pulumi.Input<boolean>;
/**
* The name of the rule tuning expression.
*/
name?: pulumi.Input<string>;
/**
* List of rule IDs, for the tuning expression to be applied. ( Empty if isGlobal set to true)
*
*
* The following attributes are exported:
*/
ruleIds?: pulumi.Input<pulumi.Input<string>[]>;
}
/**
* The set of arguments for constructing a CseRuleTuningExpression resource.
*/
export interface CseRuleTuningExpressionArgs {
/**
* The description of the rule tuning expression.
*/
description: pulumi.Input<string>;
/**
* Enabled flag.
*/
enabled: pulumi.Input<boolean>;
/**
* Set to true to exclude records that match the expression. If set to false, only records that do match the expression will be included.
*/
exclude: pulumi.Input<boolean>;
/**
* Expression to match.
*/
expression: pulumi.Input<string>;
/**
* Set to true if this tuning expression should be applied to all rules.
*/
isGlobal: pulumi.Input<boolean>;
/**
* The name of the rule tuning expression.
*/
name?: pulumi.Input<string>;
/**
* List of rule IDs, for the tuning expression to be applied. ( Empty if isGlobal set to true)
*
*
* The following attributes are exported:
*/
ruleIds: pulumi.Input<pulumi.Input<string>[]>;
}