import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Resource for creating a Splunk connector. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as harness from "@pulumi/harness"; * * // Example 1: Username/Password Authentication (New Block Format) * const usernamePassword = new harness.platform.SplunkConnector("username_password", { * identifier: "splunk_userpass", * name: "Splunk Username/Password", * description: "Splunk connector with username/password authentication", * tags: ["env:production"], * url: "https://splunk.company.com:8089", * delegateSelectors: ["harness-delegate"], * accountId: "splunk_account_id", * usernamePassword: { * username: "splunk_user", * passwordRef: "account.splunk_password", * }, * }); * // Example 2: Bearer Token Authentication * const bearerToken = new harness.platform.SplunkConnector("bearer_token", { * identifier: "splunk_bearer", * name: "Splunk Bearer Token", * description: "Splunk connector with bearer token authentication", * tags: ["env:production"], * url: "https://splunk.company.com:8089", * delegateSelectors: ["harness-delegate"], * accountId: "splunk_account_id", * bearerToken: { * bearerTokenRef: "account.splunk_bearer_token", * }, * }); * // Example 3: HEC Token Authentication * const hecToken = new harness.platform.SplunkConnector("hec_token", { * identifier: "splunk_hec", * name: "Splunk HEC Token", * description: "Splunk connector with HEC token authentication", * tags: ["env:production"], * url: "https://splunk.company.com:8088", * delegateSelectors: ["harness-delegate"], * accountId: "splunk_account_id", * hecToken: { * hecTokenRef: "account.splunk_hec_token", * }, * }); * // Example 4: No Authentication * const noAuth = new harness.platform.SplunkConnector("no_auth", { * identifier: "splunk_no_auth", * name: "Splunk No Auth", * description: "Splunk connector without authentication", * tags: ["env:development"], * url: "https://splunk-dev.company.com:8089", * delegateSelectors: ["harness-delegate"], * accountId: "splunk_account_id", * noAuthentication: {}, * }); * // Example 5: Legacy Format (Deprecated but still supported) * const legacy = new harness.platform.SplunkConnector("legacy", { * identifier: "splunk_legacy", * name: "Splunk Legacy", * description: "Splunk connector using deprecated flat schema", * tags: ["deprecated"], * url: "https://splunk.company.com:8089", * delegateSelectors: ["harness-delegate"], * accountId: "splunk_account_id", * username: "username", * passwordRef: "account.secret_id", * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * Import account level splunk connector * * ```sh * $ pulumi import harness:platform/splunkConnector:SplunkConnector example * ``` * * Import org level splunk connector * * ```sh * $ pulumi import harness:platform/splunkConnector:SplunkConnector example / * ``` * * Import project level splunk connector * * ```sh * $ pulumi import harness:platform/splunkConnector:SplunkConnector example // * ``` */ export declare class SplunkConnector extends pulumi.CustomResource { /** * Get an existing SplunkConnector 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, state?: SplunkConnectorState, opts?: pulumi.CustomResourceOptions): SplunkConnector; /** * Returns true if the given object is an instance of SplunkConnector. 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 SplunkConnector; /** * Splunk account id. */ readonly accountId: pulumi.Output; /** * Authenticate to Splunk using bearer token. */ readonly bearerToken: pulumi.Output; /** * Tags to filter delegates for connection. */ readonly delegateSelectors: pulumi.Output; /** * Description of the resource. */ readonly description: pulumi.Output; /** * Authenticate to Splunk using HEC (HTTP Event Collector) token. */ readonly hecToken: pulumi.Output; /** * Unique identifier of the resource. */ readonly identifier: pulumi.Output; /** * Name of the resource. */ readonly name: pulumi.Output; /** * No authentication required for Splunk. */ readonly noAuthentication: pulumi.Output; /** * Unique identifier of the organization. */ readonly orgId: pulumi.Output; /** * The reference to the Harness secret containing the Splunk password. Deprecated: Use 'username_password' block instead. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}. * * @deprecated Use 'username_password' authentication block instead */ readonly passwordRef: pulumi.Output; /** * Unique identifier of the project. */ readonly projectId: pulumi.Output; /** * Tags to associate with the resource. */ readonly tags: pulumi.Output; /** * URL of the Splunk server. */ readonly url: pulumi.Output; /** * The username used for connecting to Splunk. Deprecated: Use 'username_password' block instead. * * @deprecated Use 'username_password' authentication block instead */ readonly username: pulumi.Output; /** * Authenticate to Splunk using username and password. */ readonly usernamePassword: pulumi.Output; /** * Create a SplunkConnector 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: SplunkConnectorArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SplunkConnector resources. */ export interface SplunkConnectorState { /** * Splunk account id. */ accountId?: pulumi.Input; /** * Authenticate to Splunk using bearer token. */ bearerToken?: pulumi.Input; /** * Tags to filter delegates for connection. */ delegateSelectors?: pulumi.Input[] | undefined>; /** * Description of the resource. */ description?: pulumi.Input; /** * Authenticate to Splunk using HEC (HTTP Event Collector) token. */ hecToken?: pulumi.Input; /** * Unique identifier of the resource. */ identifier?: pulumi.Input; /** * Name of the resource. */ name?: pulumi.Input; /** * No authentication required for Splunk. */ noAuthentication?: pulumi.Input; /** * Unique identifier of the organization. */ orgId?: pulumi.Input; /** * The reference to the Harness secret containing the Splunk password. Deprecated: Use 'username_password' block instead. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}. * * @deprecated Use 'username_password' authentication block instead */ passwordRef?: pulumi.Input; /** * Unique identifier of the project. */ projectId?: pulumi.Input; /** * Tags to associate with the resource. */ tags?: pulumi.Input[] | undefined>; /** * URL of the Splunk server. */ url?: pulumi.Input; /** * The username used for connecting to Splunk. Deprecated: Use 'username_password' block instead. * * @deprecated Use 'username_password' authentication block instead */ username?: pulumi.Input; /** * Authenticate to Splunk using username and password. */ usernamePassword?: pulumi.Input; } /** * The set of arguments for constructing a SplunkConnector resource. */ export interface SplunkConnectorArgs { /** * Splunk account id. */ accountId: pulumi.Input; /** * Authenticate to Splunk using bearer token. */ bearerToken?: pulumi.Input; /** * Tags to filter delegates for connection. */ delegateSelectors?: pulumi.Input[] | undefined>; /** * Description of the resource. */ description?: pulumi.Input; /** * Authenticate to Splunk using HEC (HTTP Event Collector) token. */ hecToken?: pulumi.Input; /** * Unique identifier of the resource. */ identifier: pulumi.Input; /** * Name of the resource. */ name?: pulumi.Input; /** * No authentication required for Splunk. */ noAuthentication?: pulumi.Input; /** * Unique identifier of the organization. */ orgId?: pulumi.Input; /** * The reference to the Harness secret containing the Splunk password. Deprecated: Use 'username_password' block instead. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}. * * @deprecated Use 'username_password' authentication block instead */ passwordRef?: pulumi.Input; /** * Unique identifier of the project. */ projectId?: pulumi.Input; /** * Tags to associate with the resource. */ tags?: pulumi.Input[] | undefined>; /** * URL of the Splunk server. */ url: pulumi.Input; /** * The username used for connecting to Splunk. Deprecated: Use 'username_password' block instead. * * @deprecated Use 'username_password' authentication block instead */ username?: pulumi.Input; /** * Authenticate to Splunk using username and password. */ usernamePassword?: pulumi.Input; } //# sourceMappingURL=splunkConnector.d.ts.map