UNPKG

@pulumi/sumologic

Version:

A Pulumi package for creating and managing sumologic cloud resources.

163 lines (162 loc) 7.05 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a [Sumo Logic Google Cloud Platform Source](https://help.sumologic.com/03Send-Data/Sources/02Sources-for-Hosted-Collectors/Google-Cloud-Platform-Source). * * ***Note:*** Google no longer requires a pub/sub domain to be [verified](https://cloud.google.com/pubsub/docs/push). You no longer have to set up domain verification with your GCP Source endpoint. * * ## 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 gcpSource = new sumologic.GcpSource("gcp_source", { * name: "GCP Source", * description: "My description", * category: "gcp", * collectorId: collector.id, * }); * ``` * * ## Import * * Sumo Logic Google Cloud Platform sources can be imported using the collector and source IDs (`collector/source`), e.g.: * * hcl * * ```sh * $ pulumi import sumologic:index/gcpSource:GcpSource test 100000001/100000001 * ``` * * Sumo Logic Google Cloud Platform sources can be imported using the collector name and source name (`collectorName/sourceName`), e.g.: * * hcl * * ```sh * $ pulumi import sumologic:index/gcpSource:GcpSource test my-test-collector/my-test-source * ``` * * [1]: https://help.sumologic.com/Send_Data/Sources/03Use_JSON_to_Configure_Sources/JSON_Parameters_for_Hosted_Sources * * [2]: https://help.sumologic.com/03Send-Data/Sources/02Sources-for-Hosted-Collectors/Google-Cloud-Platform-Source * * [3]: https://cloud.google.com/pubsub/docs/push */ export declare class GcpSource extends pulumi.CustomResource { /** * Get an existing GcpSource 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?: GcpSourceState, opts?: pulumi.CustomResourceOptions): GcpSource; /** * Returns true if the given object is an instance of GcpSource. 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 GcpSource; readonly authentication: pulumi.Output<outputs.GcpSourceAuthentication | undefined>; 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.GcpSourceDefaultDateFormat[] | undefined>; readonly description: pulumi.Output<string | undefined>; readonly fields: pulumi.Output<{ [key: string]: string; } | undefined>; readonly filters: pulumi.Output<outputs.GcpSourceFilter[] | 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 messagePerRequest: pulumi.Output<boolean | undefined>; readonly multilineProcessingEnabled: pulumi.Output<boolean | undefined>; readonly name: pulumi.Output<string>; readonly path: pulumi.Output<outputs.GcpSourcePath | undefined>; readonly timezone: pulumi.Output<string | undefined>; /** * The HTTP endpoint to use for sending data to this source. */ readonly url: pulumi.Output<string>; readonly useAutolineMatching: pulumi.Output<boolean | undefined>; /** * Create a GcpSource 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: GcpSourceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering GcpSource resources. */ export interface GcpSourceState { authentication?: pulumi.Input<inputs.GcpSourceAuthentication>; 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.GcpSourceDefaultDateFormat>[]>; description?: pulumi.Input<string>; fields?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; filters?: pulumi.Input<pulumi.Input<inputs.GcpSourceFilter>[]>; forceTimezone?: pulumi.Input<boolean>; hashAlgorithm?: pulumi.Input<string>; hostName?: pulumi.Input<string>; manualPrefixRegexp?: pulumi.Input<string>; messagePerRequest?: pulumi.Input<boolean>; multilineProcessingEnabled?: pulumi.Input<boolean>; name?: pulumi.Input<string>; path?: pulumi.Input<inputs.GcpSourcePath>; timezone?: pulumi.Input<string>; /** * The HTTP endpoint to use for sending data to this source. */ url?: pulumi.Input<string>; useAutolineMatching?: pulumi.Input<boolean>; } /** * The set of arguments for constructing a GcpSource resource. */ export interface GcpSourceArgs { authentication?: pulumi.Input<inputs.GcpSourceAuthentication>; 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.GcpSourceDefaultDateFormat>[]>; description?: pulumi.Input<string>; fields?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; filters?: pulumi.Input<pulumi.Input<inputs.GcpSourceFilter>[]>; forceTimezone?: pulumi.Input<boolean>; hashAlgorithm?: pulumi.Input<string>; hostName?: pulumi.Input<string>; manualPrefixRegexp?: pulumi.Input<string>; messagePerRequest?: pulumi.Input<boolean>; multilineProcessingEnabled?: pulumi.Input<boolean>; name?: pulumi.Input<string>; path?: pulumi.Input<inputs.GcpSourcePath>; timezone?: pulumi.Input<string>; useAutolineMatching?: pulumi.Input<boolean>; }