UNPKG

@pulumi/sumologic

Version:

A Pulumi package for creating and managing sumologic cloud resources.

151 lines (150 loc) 6.38 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a [Sumo Logic Cloud Syslog source](https://help.sumologic.com/Send_Data/Sources/02Sources_for_Hosted_Collectors/Cloud_Syslog_Source). * * __IMPORTANT:__ The token is stored in plain-text in the state. This is a potential security issue. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sumologic from "@pulumi/sumologic"; * * const collector = new sumologic.Collector("collector", { * name: "my-collector", * description: "Just testing this", * }); * const cloudsyslogSource = new sumologic.CloudSyslogSource("cloudsyslog_source", { * name: "CLOUDSYSLOG", * description: "My description", * category: "my/source/category", * collectorId: collector.id, * }); * ``` * * ## Attributes reference * * The following attributes are exported: * * - `id` - The internal ID of the source. * - `token` - The token to use for sending data to this source. * * ## Import * * Cloud Syslog sources can be imported using the collector and source IDs (`collector/source`), e.g.: * * hcl * * ```sh * $ pulumi import sumologic:index/cloudSyslogSource:CloudSyslogSource test 123/456 * ``` * * HTTP sources can be imported using the collector name and source name (`collectorName/sourceName`), e.g.: * * hcl * * ```sh * $ pulumi import sumologic:index/cloudSyslogSource:CloudSyslogSource test my-test-collector/my-test-source * ``` * * [1]: https://help.sumologic.com/Send_Data/Sources/02Sources_for_Hosted_Collectors/Cloud_Syslog_Source */ export declare class CloudSyslogSource extends pulumi.CustomResource { /** * Get an existing CloudSyslogSource 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?: CloudSyslogSourceState, opts?: pulumi.CustomResourceOptions): CloudSyslogSource; /** * Returns true if the given object is an instance of CloudSyslogSource. 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 CloudSyslogSource; readonly automaticDateParsing: pulumi.Output<boolean | undefined>; readonly category: pulumi.Output<string | undefined>; readonly collectorId: pulumi.Output<number>; readonly contentType: pulumi.Output<string | undefined>; readonly cutoffRelativeTime: pulumi.Output<string | undefined>; readonly cutoffTimestamp: pulumi.Output<number | undefined>; readonly defaultDateFormats: pulumi.Output<outputs.CloudSyslogSourceDefaultDateFormat[] | undefined>; readonly description: pulumi.Output<string | undefined>; readonly fields: pulumi.Output<{ [key: string]: string; } | undefined>; readonly filters: pulumi.Output<outputs.CloudSyslogSourceFilter[] | undefined>; readonly forceTimezone: pulumi.Output<boolean | undefined>; readonly hashAlgorithm: pulumi.Output<string | undefined>; readonly hostName: pulumi.Output<string | undefined>; readonly manualPrefixRegexp: pulumi.Output<string | undefined>; readonly multilineProcessingEnabled: pulumi.Output<boolean | undefined>; readonly name: pulumi.Output<string>; readonly timezone: pulumi.Output<string | undefined>; readonly token: pulumi.Output<string>; readonly useAutolineMatching: pulumi.Output<boolean | undefined>; /** * Create a CloudSyslogSource 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: CloudSyslogSourceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CloudSyslogSource resources. */ export interface CloudSyslogSourceState { automaticDateParsing?: pulumi.Input<boolean>; category?: pulumi.Input<string>; collectorId?: pulumi.Input<number>; contentType?: pulumi.Input<string>; cutoffRelativeTime?: pulumi.Input<string>; cutoffTimestamp?: pulumi.Input<number>; defaultDateFormats?: pulumi.Input<pulumi.Input<inputs.CloudSyslogSourceDefaultDateFormat>[]>; description?: pulumi.Input<string>; fields?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; filters?: pulumi.Input<pulumi.Input<inputs.CloudSyslogSourceFilter>[]>; forceTimezone?: pulumi.Input<boolean>; hashAlgorithm?: pulumi.Input<string>; hostName?: pulumi.Input<string>; manualPrefixRegexp?: pulumi.Input<string>; multilineProcessingEnabled?: pulumi.Input<boolean>; name?: pulumi.Input<string>; timezone?: pulumi.Input<string>; token?: pulumi.Input<string>; useAutolineMatching?: pulumi.Input<boolean>; } /** * The set of arguments for constructing a CloudSyslogSource resource. */ export interface CloudSyslogSourceArgs { automaticDateParsing?: pulumi.Input<boolean>; category?: pulumi.Input<string>; collectorId: pulumi.Input<number>; contentType?: pulumi.Input<string>; cutoffRelativeTime?: pulumi.Input<string>; cutoffTimestamp?: pulumi.Input<number>; defaultDateFormats?: pulumi.Input<pulumi.Input<inputs.CloudSyslogSourceDefaultDateFormat>[]>; description?: pulumi.Input<string>; fields?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; filters?: pulumi.Input<pulumi.Input<inputs.CloudSyslogSourceFilter>[]>; forceTimezone?: pulumi.Input<boolean>; hashAlgorithm?: pulumi.Input<string>; hostName?: pulumi.Input<string>; manualPrefixRegexp?: pulumi.Input<string>; multilineProcessingEnabled?: pulumi.Input<boolean>; name?: pulumi.Input<string>; timezone?: pulumi.Input<string>; useAutolineMatching?: pulumi.Input<boolean>; }