import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * The zia.TrafficCaptureRule resource manages traffic capture rules in the Zscaler Internet Access (ZIA) cloud. * Traffic capture rules define criteria for capturing network traffic for analysis, specifying which traffic * to capture based on source/destination IPs, locations, departments, users, applications, and other criteria. * * ## Example Usage * ### Basic Traffic Capture Rule * * ```typescript * import * as zia from "@bdzscaler/pulumi-zia"; * * const example = new zia.TrafficCaptureRule("example", { * name: "Example Capture Rule", * order: 1, * description: "Managed by Pulumi", * state: "ENABLED", * action: "CAPTURE", * srcIps: ["192.168.1.0/24"], * destAddresses: ["10.0.0.0/8"], * }); * ``` * * ## Import * * An existing traffic capture rule can be imported using its ID, e.g. * * ```sh * $ pulumi import zia:index:TrafficCaptureRule example 12345 * ``` */ export declare class TrafficCaptureRule extends pulumi.CustomResource { /** * Get an existing TrafficCaptureRule 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 opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): TrafficCaptureRule; /** * Returns true if the given object is an instance of TrafficCaptureRule. 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 TrafficCaptureRule; /** * The action taken when traffic matches the rule (e.g., 'CAPTURE'). Default: 'CAPTURE'. */ readonly action: pulumi.Output; /** * List of application service group IDs. */ readonly appServiceGroups: pulumi.Output; /** * Whether this is a default rule. */ readonly defaultRule: pulumi.Output; /** * List of department IDs. */ readonly departments: pulumi.Output; /** * Description of the traffic capture rule. */ readonly description: pulumi.Output; /** * List of destination addresses. */ readonly destAddresses: pulumi.Output; /** * List of destination country codes. */ readonly destCountries: pulumi.Output; /** * List of destination IP categories. */ readonly destIpCategories: pulumi.Output; /** * List of destination IP group IDs. */ readonly destIpGroups: pulumi.Output; /** * List of device group IDs. */ readonly deviceGroups: pulumi.Output; /** * List of device trust levels. */ readonly deviceTrustLevels: pulumi.Output; /** * List of device IDs. */ readonly devices: pulumi.Output; /** * List of group IDs. */ readonly groups: pulumi.Output; /** * List of label IDs. */ readonly labels: pulumi.Output; /** * List of location group IDs. */ readonly locationGroups: pulumi.Output; /** * List of location IDs. */ readonly locations: pulumi.Output; /** * Name of the traffic capture rule. */ readonly name: pulumi.Output; /** * List of network application group IDs. */ readonly nwApplicationGroups: pulumi.Output; /** * List of network applications. */ readonly nwApplications: pulumi.Output; /** * List of network service group IDs. */ readonly nwServiceGroups: pulumi.Output; /** * List of network service IDs. */ readonly nwServices: pulumi.Output; /** * The rule order of execution for the traffic capture rule. */ readonly order: pulumi.Output; /** * Whether this is a predefined rule. */ readonly predefined: pulumi.Output; /** * The admin rank of the rule. Default is 7. */ readonly rank: pulumi.Output; /** * The unique identifier for the traffic capture rule assigned by the ZIA cloud. */ readonly ruleId: pulumi.Output; /** * List of source country codes. */ readonly sourceCountries: pulumi.Output; /** * List of source IP group IDs. */ readonly srcIpGroups: pulumi.Output; /** * List of source IP addresses or CIDR ranges. */ readonly srcIps: pulumi.Output; /** * The rule state. Accepted values: 'ENABLED' or 'DISABLED'. Default: 'ENABLED'. */ readonly state: pulumi.Output; /** * List of time window IDs. */ readonly timeWindows: pulumi.Output; /** * Transaction sampling mode. Default: 'NONE'. */ readonly txnSampling: pulumi.Output; /** * Transaction size limit. Default: 'NONE'. */ readonly txnSizeLimit: pulumi.Output; /** * List of user IDs. */ readonly users: pulumi.Output; /** * List of workload groups. */ readonly workloadGroups: pulumi.Output; /** * Create a TrafficCaptureRule 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: TrafficCaptureRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a TrafficCaptureRule resource. */ export interface TrafficCaptureRuleArgs { /** * The action taken when traffic matches the rule (e.g., 'CAPTURE'). Default: 'CAPTURE'. */ action?: pulumi.Input; /** * List of application service group IDs. */ appServiceGroups?: pulumi.Input[] | undefined>; /** * Whether this is a default rule. */ defaultRule?: pulumi.Input; /** * List of department IDs. */ departments?: pulumi.Input[] | undefined>; /** * Description of the traffic capture rule. */ description?: pulumi.Input; /** * List of destination addresses. */ destAddresses?: pulumi.Input[] | undefined>; /** * List of destination country codes. */ destCountries?: pulumi.Input[] | undefined>; /** * List of destination IP categories. */ destIpCategories?: pulumi.Input[] | undefined>; /** * List of destination IP group IDs. */ destIpGroups?: pulumi.Input[] | undefined>; /** * List of device group IDs. */ deviceGroups?: pulumi.Input[] | undefined>; /** * List of device trust levels. */ deviceTrustLevels?: pulumi.Input[] | undefined>; /** * List of device IDs. */ devices?: pulumi.Input[] | undefined>; /** * List of group IDs. */ groups?: pulumi.Input[] | undefined>; /** * List of label IDs. */ labels?: pulumi.Input[] | undefined>; /** * List of location group IDs. */ locationGroups?: pulumi.Input[] | undefined>; /** * List of location IDs. */ locations?: pulumi.Input[] | undefined>; /** * Name of the traffic capture rule. */ name: pulumi.Input; /** * List of network application group IDs. */ nwApplicationGroups?: pulumi.Input[] | undefined>; /** * List of network applications. */ nwApplications?: pulumi.Input[] | undefined>; /** * List of network service group IDs. */ nwServiceGroups?: pulumi.Input[] | undefined>; /** * List of network service IDs. */ nwServices?: pulumi.Input[] | undefined>; /** * The rule order of execution for the traffic capture rule. */ order: pulumi.Input; /** * Whether this is a predefined rule. */ predefined?: pulumi.Input; /** * The admin rank of the rule. Default is 7. */ rank?: pulumi.Input; /** * List of source country codes. */ sourceCountries?: pulumi.Input[] | undefined>; /** * List of source IP group IDs. */ srcIpGroups?: pulumi.Input[] | undefined>; /** * List of source IP addresses or CIDR ranges. */ srcIps?: pulumi.Input[] | undefined>; /** * The rule state. Accepted values: 'ENABLED' or 'DISABLED'. Default: 'ENABLED'. */ state?: pulumi.Input; /** * List of time window IDs. */ timeWindows?: pulumi.Input[] | undefined>; /** * Transaction sampling mode. Default: 'NONE'. */ txnSampling?: pulumi.Input; /** * Transaction size limit. Default: 'NONE'. */ txnSizeLimit?: pulumi.Input; /** * List of user IDs. */ users?: pulumi.Input[] | undefined>; /** * List of workload groups. */ workloadGroups?: pulumi.Input[] | undefined>; } //# sourceMappingURL=trafficCaptureRule.d.ts.map