UNPKG

@pulumi/sumologic

Version:

A Pulumi package for creating and managing sumologic cloud resources.

176 lines (175 loc) 7.44 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a [Sumologic Azure Event Hub Log Source](https://help.sumologic.com/docs/send-data/collect-from-other-data-sources/azure-monitoring/ms-azure-event-hubs-source/). * * __IMPORTANT:__ The Azure Event Hub credentials are 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 terraformAzureEventHubLogSource = new sumologic.AzureEventHubLogSource("terraform_azure_event_hub_log_source", { * name: "Azure Event Hub Log Source", * description: "My description", * category: "azure/eventhub", * contentType: "AzureEventHubLog", * collectorId: collector.id, * authentication: { * type: "AzureEventHubAuthentication", * sharedAccessPolicyName: "%s", * sharedAccessPolicyKey: "%s", * }, * path: { * type: "AzureEventHubPath", * namespace: "%s", * eventHubName: "%s", * consumerGroup: "%s", * region: "%s", * }, * }); * ``` */ export declare class AzureEventHubLogSource extends pulumi.CustomResource { /** * Get an existing AzureEventHubLogSource 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?: AzureEventHubLogSourceState, opts?: pulumi.CustomResourceOptions): AzureEventHubLogSource; /** * Returns true if the given object is an instance of AzureEventHubLogSource. 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 AzureEventHubLogSource; /** * Authentication details for connecting to Azure Event Hub. */ readonly authentication: pulumi.Output<outputs.AzureEventHubLogSourceAuthentication>; readonly automaticDateParsing: pulumi.Output<boolean | undefined>; readonly category: pulumi.Output<string | undefined>; readonly collectorId: pulumi.Output<number>; /** * Must be `AzureEventHubLog`. */ readonly contentType: pulumi.Output<string>; readonly cutoffRelativeTime: pulumi.Output<string | undefined>; readonly cutoffTimestamp: pulumi.Output<number | undefined>; readonly defaultDateFormats: pulumi.Output<outputs.AzureEventHubLogSourceDefaultDateFormat[] | undefined>; readonly description: pulumi.Output<string | undefined>; readonly fields: pulumi.Output<{ [key: string]: string; } | undefined>; readonly filters: pulumi.Output<outputs.AzureEventHubLogSourceFilter[] | 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>; /** * The location to scan for new data. */ readonly path: pulumi.Output<outputs.AzureEventHubLogSourcePath>; readonly paused: pulumi.Output<boolean | undefined>; readonly scanInterval: pulumi.Output<number | undefined>; readonly timezone: pulumi.Output<string | undefined>; readonly url: pulumi.Output<string>; readonly useAutolineMatching: pulumi.Output<boolean | undefined>; /** * Create a AzureEventHubLogSource 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: AzureEventHubLogSourceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AzureEventHubLogSource resources. */ export interface AzureEventHubLogSourceState { /** * Authentication details for connecting to Azure Event Hub. */ authentication?: pulumi.Input<inputs.AzureEventHubLogSourceAuthentication>; automaticDateParsing?: pulumi.Input<boolean>; category?: pulumi.Input<string>; collectorId?: pulumi.Input<number>; /** * Must be `AzureEventHubLog`. */ contentType?: pulumi.Input<string>; cutoffRelativeTime?: pulumi.Input<string>; cutoffTimestamp?: pulumi.Input<number>; defaultDateFormats?: pulumi.Input<pulumi.Input<inputs.AzureEventHubLogSourceDefaultDateFormat>[]>; description?: pulumi.Input<string>; fields?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; filters?: pulumi.Input<pulumi.Input<inputs.AzureEventHubLogSourceFilter>[]>; forceTimezone?: pulumi.Input<boolean>; hashAlgorithm?: pulumi.Input<string>; hostName?: pulumi.Input<string>; manualPrefixRegexp?: pulumi.Input<string>; multilineProcessingEnabled?: pulumi.Input<boolean>; name?: pulumi.Input<string>; /** * The location to scan for new data. */ path?: pulumi.Input<inputs.AzureEventHubLogSourcePath>; paused?: pulumi.Input<boolean>; scanInterval?: pulumi.Input<number>; timezone?: pulumi.Input<string>; url?: pulumi.Input<string>; useAutolineMatching?: pulumi.Input<boolean>; } /** * The set of arguments for constructing a AzureEventHubLogSource resource. */ export interface AzureEventHubLogSourceArgs { /** * Authentication details for connecting to Azure Event Hub. */ authentication: pulumi.Input<inputs.AzureEventHubLogSourceAuthentication>; automaticDateParsing?: pulumi.Input<boolean>; category?: pulumi.Input<string>; collectorId: pulumi.Input<number>; /** * Must be `AzureEventHubLog`. */ contentType: pulumi.Input<string>; cutoffRelativeTime?: pulumi.Input<string>; cutoffTimestamp?: pulumi.Input<number>; defaultDateFormats?: pulumi.Input<pulumi.Input<inputs.AzureEventHubLogSourceDefaultDateFormat>[]>; description?: pulumi.Input<string>; fields?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; filters?: pulumi.Input<pulumi.Input<inputs.AzureEventHubLogSourceFilter>[]>; forceTimezone?: pulumi.Input<boolean>; hashAlgorithm?: pulumi.Input<string>; hostName?: pulumi.Input<string>; manualPrefixRegexp?: pulumi.Input<string>; multilineProcessingEnabled?: pulumi.Input<boolean>; name?: pulumi.Input<string>; /** * The location to scan for new data. */ path: pulumi.Input<inputs.AzureEventHubLogSourcePath>; paused?: pulumi.Input<boolean>; scanInterval?: pulumi.Input<number>; timezone?: pulumi.Input<string>; useAutolineMatching?: pulumi.Input<boolean>; }