import * as pulumi from "@pulumi/pulumi"; /** * Calculates the network direction given a source IP address, destination IP address, and a list of internal networks. * * The network direction processor reads IP addresses from Elastic Common Schema (ECS) fields by default. If you use the ECS, only the `internalNetworks` option must be specified. * * One of either `internalNetworks` or `internalNetworksField` must be specified. If `internalNetworksField` is specified, it follows the behavior specified by `ignoreMissing`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as elasticstack from "@pulumi/elasticstack"; * * const networkDirection = elasticstack.ElasticsearchIngestProcessorNetworkDirection({ * internalNetworks: ["private"], * }); * const myIngestPipeline = new elasticstack.ElasticsearchIngestPipeline("myIngestPipeline", {processors: [networkDirection.then(networkDirection => networkDirection.json)]}); * ``` */ export declare function elasticsearchIngestProcessorNetworkDirection(args?: ElasticsearchIngestProcessorNetworkDirectionArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking ElasticsearchIngestProcessorNetworkDirection. */ export interface ElasticsearchIngestProcessorNetworkDirectionArgs { /** * Description of the processor. */ description?: string; /** * Field containing the destination IP address. */ destinationIp?: string; /** * Conditionally execute the processor */ if?: string; /** * Ignore failures for the processor. */ ignoreFailure?: boolean; /** * If `true` and `field` does not exist or is `null`, the processor quietly exits without modifying the document. */ ignoreMissing?: boolean; /** * List of internal networks. */ internalNetworks?: string[]; /** * A field on the given document to read the internalNetworks configuration from. */ internalNetworksField?: string; /** * Handle failures for the processor. */ onFailures?: string[]; /** * Field containing the source IP address. */ sourceIp?: string; /** * Identifier for the processor. */ tag?: string; /** * Output field for the network direction. */ targetField?: string; } /** * A collection of values returned by ElasticsearchIngestProcessorNetworkDirection. */ export interface ElasticsearchIngestProcessorNetworkDirectionResult { /** * Description of the processor. */ readonly description?: string; /** * Field containing the destination IP address. */ readonly destinationIp?: string; /** * Internal identifier of the resource. */ readonly id: string; /** * Conditionally execute the processor */ readonly if?: string; /** * Ignore failures for the processor. */ readonly ignoreFailure?: boolean; /** * If `true` and `field` does not exist or is `null`, the processor quietly exits without modifying the document. */ readonly ignoreMissing?: boolean; /** * List of internal networks. */ readonly internalNetworks?: string[]; /** * A field on the given document to read the internalNetworks configuration from. */ readonly internalNetworksField?: string; /** * JSON representation of this data source. */ readonly json: string; /** * Handle failures for the processor. */ readonly onFailures?: string[]; /** * Field containing the source IP address. */ readonly sourceIp?: string; /** * Identifier for the processor. */ readonly tag?: string; /** * Output field for the network direction. */ readonly targetField?: string; } export declare function elasticsearchIngestProcessorNetworkDirectionOutput(args?: ElasticsearchIngestProcessorNetworkDirectionOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output; /** * A collection of arguments for invoking ElasticsearchIngestProcessorNetworkDirection. */ export interface ElasticsearchIngestProcessorNetworkDirectionOutputArgs { /** * Description of the processor. */ description?: pulumi.Input; /** * Field containing the destination IP address. */ destinationIp?: pulumi.Input; /** * Conditionally execute the processor */ if?: pulumi.Input; /** * Ignore failures for the processor. */ ignoreFailure?: pulumi.Input; /** * If `true` and `field` does not exist or is `null`, the processor quietly exits without modifying the document. */ ignoreMissing?: pulumi.Input; /** * List of internal networks. */ internalNetworks?: pulumi.Input[]>; /** * A field on the given document to read the internalNetworks configuration from. */ internalNetworksField?: pulumi.Input; /** * Handle failures for the processor. */ onFailures?: pulumi.Input[]>; /** * Field containing the source IP address. */ sourceIp?: pulumi.Input; /** * Identifier for the processor. */ tag?: pulumi.Input; /** * Output field for the network direction. */ targetField?: pulumi.Input; }