@pulumi/sumologic
Version:
A Pulumi package for creating and managing sumologic cloud resources.
170 lines (169 loc) • 5.26 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a Sumologic CSE Context Action.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sumologic from "@pulumi/sumologic";
*
* const contextAction = new sumologic.CseContextAction("context_action", {
* name: "Context Action Name",
* type: "URL",
* template: "https://bar.com/?q={{value}}",
* iocTypes: ["IP_ADDRESS"],
* entityTypes: ["_hostname"],
* recordFields: ["request_url"],
* allRecordFields: false,
* enabled: true,
* });
* ```
*
* ## Import
*
* Context Action can be imported using the field id, e.g.:
*
* hcl
*
* ```sh
* $ pulumi import sumologic:index/cseContextAction:CseContextAction context_action id
* ```
*/
export declare class CseContextAction extends pulumi.CustomResource {
/**
* Get an existing CseContextAction 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?: CseContextActionState, opts?: pulumi.CustomResourceOptions): CseContextAction;
/**
* Returns true if the given object is an instance of CseContextAction. 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 CseContextAction;
/**
* Use all record fields.
*/
readonly allRecordFields: pulumi.Output<boolean | undefined>;
/**
* Whether the context action is enabled.
*
* The following attributes are exported:
*/
readonly enabled: pulumi.Output<boolean | undefined>;
/**
* Applicable to given entity types.
*/
readonly entityTypes: pulumi.Output<string[] | undefined>;
/**
* IOC Data types. Valid values: "ASN", "DOMAIN", "HASH", "IP_ADDRESS", "MAC_ADDRESS", "PORT", "RECORD_PROPERTY", "URL".
*/
readonly iocTypes: pulumi.Output<string[]>;
/**
* Context Action name.
*/
readonly name: pulumi.Output<string>;
/**
* Specific record fields.
*/
readonly recordFields: pulumi.Output<string[] | undefined>;
/**
* The URL/QUERY template.
*/
readonly template: pulumi.Output<string | undefined>;
/**
* Context Action type. Valid values: "URL", "QUERY".
*/
readonly type: pulumi.Output<string | undefined>;
/**
* Create a CseContextAction 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: CseContextActionArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering CseContextAction resources.
*/
export interface CseContextActionState {
/**
* Use all record fields.
*/
allRecordFields?: pulumi.Input<boolean>;
/**
* Whether the context action is enabled.
*
* The following attributes are exported:
*/
enabled?: pulumi.Input<boolean>;
/**
* Applicable to given entity types.
*/
entityTypes?: pulumi.Input<pulumi.Input<string>[]>;
/**
* IOC Data types. Valid values: "ASN", "DOMAIN", "HASH", "IP_ADDRESS", "MAC_ADDRESS", "PORT", "RECORD_PROPERTY", "URL".
*/
iocTypes?: pulumi.Input<pulumi.Input<string>[]>;
/**
* Context Action name.
*/
name?: pulumi.Input<string>;
/**
* Specific record fields.
*/
recordFields?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The URL/QUERY template.
*/
template?: pulumi.Input<string>;
/**
* Context Action type. Valid values: "URL", "QUERY".
*/
type?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a CseContextAction resource.
*/
export interface CseContextActionArgs {
/**
* Use all record fields.
*/
allRecordFields?: pulumi.Input<boolean>;
/**
* Whether the context action is enabled.
*
* The following attributes are exported:
*/
enabled?: pulumi.Input<boolean>;
/**
* Applicable to given entity types.
*/
entityTypes?: pulumi.Input<pulumi.Input<string>[]>;
/**
* IOC Data types. Valid values: "ASN", "DOMAIN", "HASH", "IP_ADDRESS", "MAC_ADDRESS", "PORT", "RECORD_PROPERTY", "URL".
*/
iocTypes: pulumi.Input<pulumi.Input<string>[]>;
/**
* Context Action name.
*/
name?: pulumi.Input<string>;
/**
* Specific record fields.
*/
recordFields?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The URL/QUERY template.
*/
template?: pulumi.Input<string>;
/**
* Context Action type. Valid values: "URL", "QUERY".
*/
type?: pulumi.Input<string>;
}