@pulumi/sumologic
Version:
A Pulumi package for creating and managing sumologic cloud resources.
136 lines (135 loc) • 4.7 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a Sumologic CSE Automation.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sumologic from "@pulumi/sumologic";
*
* const insightAutomation = new sumologic.CseAutomation("insight_automation", {
* playbookId: "638079aedb99cafada1e80a0",
* cseResourceType: "INSIGHT",
* executionTypes: [
* "NEW_INSIGHT",
* "INSIGHT_CLOSED",
* ],
* });
* const entityAutomation = new sumologic.CseAutomation("entity_automation", {
* playbookId: "638079aedb99cafada1e80a0",
* cseResourceType: "ENTITY",
* cseResourceSubTypes: ["_ip"],
* executionTypes: ["ON_DEMAND"],
* });
* ```
*
* ## Import
*
* Automation can be imported using the field id, e.g.:
*
* hcl
*
* ```sh
* $ pulumi import sumologic:index/cseAutomation:CseAutomation automation id
* ```
*/
export declare class CseAutomation extends pulumi.CustomResource {
/**
* Get an existing CseAutomation 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?: CseAutomationState, opts?: pulumi.CustomResourceOptions): CseAutomation;
/**
* Returns true if the given object is an instance of CseAutomation. 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 CseAutomation;
/**
* CSE Resource sub-type when cseResourceType is specified as "ENTITY". Examples: "_ip", "_mac".
*
* The following attributes are exported:
*/
readonly cseResourceSubTypes: pulumi.Output<string[] | undefined>;
/**
* CSE Resource type for automation. Valid values: "INSIGHT", "ENTITY".
*/
readonly cseResourceType: pulumi.Output<string>;
/**
* Automation description.
*/
readonly description: pulumi.Output<string>;
readonly enabled: pulumi.Output<boolean>;
/**
* Automation execution type. Valid values: "NEW_INSIGHT", "INSIGHT_CLOSED", "ON_DEMAND".
*/
readonly executionTypes: pulumi.Output<string[]>;
/**
* Automation name.
*/
readonly name: pulumi.Output<string>;
readonly playbookId: pulumi.Output<string>;
/**
* Create a CseAutomation 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: CseAutomationArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering CseAutomation resources.
*/
export interface CseAutomationState {
/**
* CSE Resource sub-type when cseResourceType is specified as "ENTITY". Examples: "_ip", "_mac".
*
* The following attributes are exported:
*/
cseResourceSubTypes?: pulumi.Input<pulumi.Input<string>[]>;
/**
* CSE Resource type for automation. Valid values: "INSIGHT", "ENTITY".
*/
cseResourceType?: pulumi.Input<string>;
/**
* Automation description.
*/
description?: pulumi.Input<string>;
enabled?: pulumi.Input<boolean>;
/**
* Automation execution type. Valid values: "NEW_INSIGHT", "INSIGHT_CLOSED", "ON_DEMAND".
*/
executionTypes?: pulumi.Input<pulumi.Input<string>[]>;
/**
* Automation name.
*/
name?: pulumi.Input<string>;
playbookId?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a CseAutomation resource.
*/
export interface CseAutomationArgs {
/**
* CSE Resource sub-type when cseResourceType is specified as "ENTITY". Examples: "_ip", "_mac".
*
* The following attributes are exported:
*/
cseResourceSubTypes?: pulumi.Input<pulumi.Input<string>[]>;
/**
* CSE Resource type for automation. Valid values: "INSIGHT", "ENTITY".
*/
cseResourceType: pulumi.Input<string>;
enabled: pulumi.Input<boolean>;
/**
* Automation execution type. Valid values: "NEW_INSIGHT", "INSIGHT_CLOSED", "ON_DEMAND".
*/
executionTypes: pulumi.Input<pulumi.Input<string>[]>;
playbookId: pulumi.Input<string>;
}