1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. CaptureFilter
Oracle Cloud Infrastructure v1.40.0 published on Wednesday, Jun 12, 2024 by Pulumi

oci.Core.CaptureFilter

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.40.0 published on Wednesday, Jun 12, 2024 by Pulumi

    This resource provides the Capture Filter resource in Oracle Cloud Infrastructure Core service.

    Creates a virtual test access point (VTAP) capture filter in the specified compartment.

    For the purposes of access control, you must provide the OCID of the compartment that contains the VTAP. For more information about compartments and access control, see Overview of the IAM Service. For information about OCIDs, see Resource Identifiers.

    You may optionally specify a display name for the VTAP, otherwise a default is provided. It does not have to be unique, and you can change it.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testCaptureFilter = new oci.core.CaptureFilter("test_capture_filter", {
        compartmentId: compartmentId,
        filterType: captureFilterFilterType,
        definedTags: {
            "Operations.CostCenter": "42",
        },
        displayName: captureFilterDisplayName,
        flowLogCaptureFilterRules: [{
            destinationCidr: captureFilterFlowLogCaptureFilterRulesDestinationCidr,
            flowLogType: captureFilterFlowLogCaptureFilterRulesFlowLogType,
            icmpOptions: {
                type: captureFilterFlowLogCaptureFilterRulesIcmpOptionsType,
                code: captureFilterFlowLogCaptureFilterRulesIcmpOptionsCode,
            },
            isEnabled: captureFilterFlowLogCaptureFilterRulesIsEnabled,
            priority: captureFilterFlowLogCaptureFilterRulesPriority,
            protocol: captureFilterFlowLogCaptureFilterRulesProtocol,
            ruleAction: captureFilterFlowLogCaptureFilterRulesRuleAction,
            samplingRate: captureFilterFlowLogCaptureFilterRulesSamplingRate,
            sourceCidr: captureFilterFlowLogCaptureFilterRulesSourceCidr,
            tcpOptions: {
                destinationPortRange: {
                    max: captureFilterFlowLogCaptureFilterRulesTcpOptionsDestinationPortRangeMax,
                    min: captureFilterFlowLogCaptureFilterRulesTcpOptionsDestinationPortRangeMin,
                },
                sourcePortRange: {
                    max: captureFilterFlowLogCaptureFilterRulesTcpOptionsSourcePortRangeMax,
                    min: captureFilterFlowLogCaptureFilterRulesTcpOptionsSourcePortRangeMin,
                },
            },
            udpOptions: {
                destinationPortRange: {
                    max: captureFilterFlowLogCaptureFilterRulesUdpOptionsDestinationPortRangeMax,
                    min: captureFilterFlowLogCaptureFilterRulesUdpOptionsDestinationPortRangeMin,
                },
                sourcePortRange: {
                    max: captureFilterFlowLogCaptureFilterRulesUdpOptionsSourcePortRangeMax,
                    min: captureFilterFlowLogCaptureFilterRulesUdpOptionsSourcePortRangeMin,
                },
            },
        }],
        freeformTags: {
            Department: "Finance",
        },
        vtapCaptureFilterRules: [{
            trafficDirection: captureFilterVtapCaptureFilterRulesTrafficDirection,
            destinationCidr: captureFilterVtapCaptureFilterRulesDestinationCidr,
            icmpOptions: {
                type: captureFilterVtapCaptureFilterRulesIcmpOptionsType,
                code: captureFilterVtapCaptureFilterRulesIcmpOptionsCode,
            },
            protocol: captureFilterVtapCaptureFilterRulesProtocol,
            ruleAction: captureFilterVtapCaptureFilterRulesRuleAction,
            sourceCidr: captureFilterVtapCaptureFilterRulesSourceCidr,
            tcpOptions: {
                destinationPortRange: {
                    max: captureFilterVtapCaptureFilterRulesTcpOptionsDestinationPortRangeMax,
                    min: captureFilterVtapCaptureFilterRulesTcpOptionsDestinationPortRangeMin,
                },
                sourcePortRange: {
                    max: captureFilterVtapCaptureFilterRulesTcpOptionsSourcePortRangeMax,
                    min: captureFilterVtapCaptureFilterRulesTcpOptionsSourcePortRangeMin,
                },
            },
            udpOptions: {
                destinationPortRange: {
                    max: captureFilterVtapCaptureFilterRulesUdpOptionsDestinationPortRangeMax,
                    min: captureFilterVtapCaptureFilterRulesUdpOptionsDestinationPortRangeMin,
                },
                sourcePortRange: {
                    max: captureFilterVtapCaptureFilterRulesUdpOptionsSourcePortRangeMax,
                    min: captureFilterVtapCaptureFilterRulesUdpOptionsSourcePortRangeMin,
                },
            },
        }],
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_capture_filter = oci.core.CaptureFilter("test_capture_filter",
        compartment_id=compartment_id,
        filter_type=capture_filter_filter_type,
        defined_tags={
            "Operations.CostCenter": "42",
        },
        display_name=capture_filter_display_name,
        flow_log_capture_filter_rules=[oci.core.CaptureFilterFlowLogCaptureFilterRuleArgs(
            destination_cidr=capture_filter_flow_log_capture_filter_rules_destination_cidr,
            flow_log_type=capture_filter_flow_log_capture_filter_rules_flow_log_type,
            icmp_options=oci.core.CaptureFilterFlowLogCaptureFilterRuleIcmpOptionsArgs(
                type=capture_filter_flow_log_capture_filter_rules_icmp_options_type,
                code=capture_filter_flow_log_capture_filter_rules_icmp_options_code,
            ),
            is_enabled=capture_filter_flow_log_capture_filter_rules_is_enabled,
            priority=capture_filter_flow_log_capture_filter_rules_priority,
            protocol=capture_filter_flow_log_capture_filter_rules_protocol,
            rule_action=capture_filter_flow_log_capture_filter_rules_rule_action,
            sampling_rate=capture_filter_flow_log_capture_filter_rules_sampling_rate,
            source_cidr=capture_filter_flow_log_capture_filter_rules_source_cidr,
            tcp_options=oci.core.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsArgs(
                destination_port_range=oci.core.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsDestinationPortRangeArgs(
                    max=capture_filter_flow_log_capture_filter_rules_tcp_options_destination_port_range_max,
                    min=capture_filter_flow_log_capture_filter_rules_tcp_options_destination_port_range_min,
                ),
                source_port_range=oci.core.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsSourcePortRangeArgs(
                    max=capture_filter_flow_log_capture_filter_rules_tcp_options_source_port_range_max,
                    min=capture_filter_flow_log_capture_filter_rules_tcp_options_source_port_range_min,
                ),
            ),
            udp_options=oci.core.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsArgs(
                destination_port_range=oci.core.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsDestinationPortRangeArgs(
                    max=capture_filter_flow_log_capture_filter_rules_udp_options_destination_port_range_max,
                    min=capture_filter_flow_log_capture_filter_rules_udp_options_destination_port_range_min,
                ),
                source_port_range=oci.core.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsSourcePortRangeArgs(
                    max=capture_filter_flow_log_capture_filter_rules_udp_options_source_port_range_max,
                    min=capture_filter_flow_log_capture_filter_rules_udp_options_source_port_range_min,
                ),
            ),
        )],
        freeform_tags={
            "Department": "Finance",
        },
        vtap_capture_filter_rules=[oci.core.CaptureFilterVtapCaptureFilterRuleArgs(
            traffic_direction=capture_filter_vtap_capture_filter_rules_traffic_direction,
            destination_cidr=capture_filter_vtap_capture_filter_rules_destination_cidr,
            icmp_options=oci.core.CaptureFilterVtapCaptureFilterRuleIcmpOptionsArgs(
                type=capture_filter_vtap_capture_filter_rules_icmp_options_type,
                code=capture_filter_vtap_capture_filter_rules_icmp_options_code,
            ),
            protocol=capture_filter_vtap_capture_filter_rules_protocol,
            rule_action=capture_filter_vtap_capture_filter_rules_rule_action,
            source_cidr=capture_filter_vtap_capture_filter_rules_source_cidr,
            tcp_options=oci.core.CaptureFilterVtapCaptureFilterRuleTcpOptionsArgs(
                destination_port_range=oci.core.CaptureFilterVtapCaptureFilterRuleTcpOptionsDestinationPortRangeArgs(
                    max=capture_filter_vtap_capture_filter_rules_tcp_options_destination_port_range_max,
                    min=capture_filter_vtap_capture_filter_rules_tcp_options_destination_port_range_min,
                ),
                source_port_range=oci.core.CaptureFilterVtapCaptureFilterRuleTcpOptionsSourcePortRangeArgs(
                    max=capture_filter_vtap_capture_filter_rules_tcp_options_source_port_range_max,
                    min=capture_filter_vtap_capture_filter_rules_tcp_options_source_port_range_min,
                ),
            ),
            udp_options=oci.core.CaptureFilterVtapCaptureFilterRuleUdpOptionsArgs(
                destination_port_range=oci.core.CaptureFilterVtapCaptureFilterRuleUdpOptionsDestinationPortRangeArgs(
                    max=capture_filter_vtap_capture_filter_rules_udp_options_destination_port_range_max,
                    min=capture_filter_vtap_capture_filter_rules_udp_options_destination_port_range_min,
                ),
                source_port_range=oci.core.CaptureFilterVtapCaptureFilterRuleUdpOptionsSourcePortRangeArgs(
                    max=capture_filter_vtap_capture_filter_rules_udp_options_source_port_range_max,
                    min=capture_filter_vtap_capture_filter_rules_udp_options_source_port_range_min,
                ),
            ),
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Core.NewCaptureFilter(ctx, "test_capture_filter", &Core.CaptureFilterArgs{
    			CompartmentId: pulumi.Any(compartmentId),
    			FilterType:    pulumi.Any(captureFilterFilterType),
    			DefinedTags: pulumi.Map{
    				"Operations.CostCenter": pulumi.Any("42"),
    			},
    			DisplayName: pulumi.Any(captureFilterDisplayName),
    			FlowLogCaptureFilterRules: core.CaptureFilterFlowLogCaptureFilterRuleArray{
    				&core.CaptureFilterFlowLogCaptureFilterRuleArgs{
    					DestinationCidr: pulumi.Any(captureFilterFlowLogCaptureFilterRulesDestinationCidr),
    					FlowLogType:     pulumi.Any(captureFilterFlowLogCaptureFilterRulesFlowLogType),
    					IcmpOptions: &core.CaptureFilterFlowLogCaptureFilterRuleIcmpOptionsArgs{
    						Type: pulumi.Any(captureFilterFlowLogCaptureFilterRulesIcmpOptionsType),
    						Code: pulumi.Any(captureFilterFlowLogCaptureFilterRulesIcmpOptionsCode),
    					},
    					IsEnabled:    pulumi.Any(captureFilterFlowLogCaptureFilterRulesIsEnabled),
    					Priority:     pulumi.Any(captureFilterFlowLogCaptureFilterRulesPriority),
    					Protocol:     pulumi.Any(captureFilterFlowLogCaptureFilterRulesProtocol),
    					RuleAction:   pulumi.Any(captureFilterFlowLogCaptureFilterRulesRuleAction),
    					SamplingRate: pulumi.Any(captureFilterFlowLogCaptureFilterRulesSamplingRate),
    					SourceCidr:   pulumi.Any(captureFilterFlowLogCaptureFilterRulesSourceCidr),
    					TcpOptions: &core.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsArgs{
    						DestinationPortRange: &core.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsDestinationPortRangeArgs{
    							Max: pulumi.Any(captureFilterFlowLogCaptureFilterRulesTcpOptionsDestinationPortRangeMax),
    							Min: pulumi.Any(captureFilterFlowLogCaptureFilterRulesTcpOptionsDestinationPortRangeMin),
    						},
    						SourcePortRange: &core.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsSourcePortRangeArgs{
    							Max: pulumi.Any(captureFilterFlowLogCaptureFilterRulesTcpOptionsSourcePortRangeMax),
    							Min: pulumi.Any(captureFilterFlowLogCaptureFilterRulesTcpOptionsSourcePortRangeMin),
    						},
    					},
    					UdpOptions: &core.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsArgs{
    						DestinationPortRange: &core.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsDestinationPortRangeArgs{
    							Max: pulumi.Any(captureFilterFlowLogCaptureFilterRulesUdpOptionsDestinationPortRangeMax),
    							Min: pulumi.Any(captureFilterFlowLogCaptureFilterRulesUdpOptionsDestinationPortRangeMin),
    						},
    						SourcePortRange: &core.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsSourcePortRangeArgs{
    							Max: pulumi.Any(captureFilterFlowLogCaptureFilterRulesUdpOptionsSourcePortRangeMax),
    							Min: pulumi.Any(captureFilterFlowLogCaptureFilterRulesUdpOptionsSourcePortRangeMin),
    						},
    					},
    				},
    			},
    			FreeformTags: pulumi.Map{
    				"Department": pulumi.Any("Finance"),
    			},
    			VtapCaptureFilterRules: core.CaptureFilterVtapCaptureFilterRuleArray{
    				&core.CaptureFilterVtapCaptureFilterRuleArgs{
    					TrafficDirection: pulumi.Any(captureFilterVtapCaptureFilterRulesTrafficDirection),
    					DestinationCidr:  pulumi.Any(captureFilterVtapCaptureFilterRulesDestinationCidr),
    					IcmpOptions: &core.CaptureFilterVtapCaptureFilterRuleIcmpOptionsArgs{
    						Type: pulumi.Any(captureFilterVtapCaptureFilterRulesIcmpOptionsType),
    						Code: pulumi.Any(captureFilterVtapCaptureFilterRulesIcmpOptionsCode),
    					},
    					Protocol:   pulumi.Any(captureFilterVtapCaptureFilterRulesProtocol),
    					RuleAction: pulumi.Any(captureFilterVtapCaptureFilterRulesRuleAction),
    					SourceCidr: pulumi.Any(captureFilterVtapCaptureFilterRulesSourceCidr),
    					TcpOptions: &core.CaptureFilterVtapCaptureFilterRuleTcpOptionsArgs{
    						DestinationPortRange: &core.CaptureFilterVtapCaptureFilterRuleTcpOptionsDestinationPortRangeArgs{
    							Max: pulumi.Any(captureFilterVtapCaptureFilterRulesTcpOptionsDestinationPortRangeMax),
    							Min: pulumi.Any(captureFilterVtapCaptureFilterRulesTcpOptionsDestinationPortRangeMin),
    						},
    						SourcePortRange: &core.CaptureFilterVtapCaptureFilterRuleTcpOptionsSourcePortRangeArgs{
    							Max: pulumi.Any(captureFilterVtapCaptureFilterRulesTcpOptionsSourcePortRangeMax),
    							Min: pulumi.Any(captureFilterVtapCaptureFilterRulesTcpOptionsSourcePortRangeMin),
    						},
    					},
    					UdpOptions: &core.CaptureFilterVtapCaptureFilterRuleUdpOptionsArgs{
    						DestinationPortRange: &core.CaptureFilterVtapCaptureFilterRuleUdpOptionsDestinationPortRangeArgs{
    							Max: pulumi.Any(captureFilterVtapCaptureFilterRulesUdpOptionsDestinationPortRangeMax),
    							Min: pulumi.Any(captureFilterVtapCaptureFilterRulesUdpOptionsDestinationPortRangeMin),
    						},
    						SourcePortRange: &core.CaptureFilterVtapCaptureFilterRuleUdpOptionsSourcePortRangeArgs{
    							Max: pulumi.Any(captureFilterVtapCaptureFilterRulesUdpOptionsSourcePortRangeMax),
    							Min: pulumi.Any(captureFilterVtapCaptureFilterRulesUdpOptionsSourcePortRangeMin),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testCaptureFilter = new Oci.Core.CaptureFilter("test_capture_filter", new()
        {
            CompartmentId = compartmentId,
            FilterType = captureFilterFilterType,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            DisplayName = captureFilterDisplayName,
            FlowLogCaptureFilterRules = new[]
            {
                new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleArgs
                {
                    DestinationCidr = captureFilterFlowLogCaptureFilterRulesDestinationCidr,
                    FlowLogType = captureFilterFlowLogCaptureFilterRulesFlowLogType,
                    IcmpOptions = new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleIcmpOptionsArgs
                    {
                        Type = captureFilterFlowLogCaptureFilterRulesIcmpOptionsType,
                        Code = captureFilterFlowLogCaptureFilterRulesIcmpOptionsCode,
                    },
                    IsEnabled = captureFilterFlowLogCaptureFilterRulesIsEnabled,
                    Priority = captureFilterFlowLogCaptureFilterRulesPriority,
                    Protocol = captureFilterFlowLogCaptureFilterRulesProtocol,
                    RuleAction = captureFilterFlowLogCaptureFilterRulesRuleAction,
                    SamplingRate = captureFilterFlowLogCaptureFilterRulesSamplingRate,
                    SourceCidr = captureFilterFlowLogCaptureFilterRulesSourceCidr,
                    TcpOptions = new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsArgs
                    {
                        DestinationPortRange = new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsDestinationPortRangeArgs
                        {
                            Max = captureFilterFlowLogCaptureFilterRulesTcpOptionsDestinationPortRangeMax,
                            Min = captureFilterFlowLogCaptureFilterRulesTcpOptionsDestinationPortRangeMin,
                        },
                        SourcePortRange = new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsSourcePortRangeArgs
                        {
                            Max = captureFilterFlowLogCaptureFilterRulesTcpOptionsSourcePortRangeMax,
                            Min = captureFilterFlowLogCaptureFilterRulesTcpOptionsSourcePortRangeMin,
                        },
                    },
                    UdpOptions = new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsArgs
                    {
                        DestinationPortRange = new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsDestinationPortRangeArgs
                        {
                            Max = captureFilterFlowLogCaptureFilterRulesUdpOptionsDestinationPortRangeMax,
                            Min = captureFilterFlowLogCaptureFilterRulesUdpOptionsDestinationPortRangeMin,
                        },
                        SourcePortRange = new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsSourcePortRangeArgs
                        {
                            Max = captureFilterFlowLogCaptureFilterRulesUdpOptionsSourcePortRangeMax,
                            Min = captureFilterFlowLogCaptureFilterRulesUdpOptionsSourcePortRangeMin,
                        },
                    },
                },
            },
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            VtapCaptureFilterRules = new[]
            {
                new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleArgs
                {
                    TrafficDirection = captureFilterVtapCaptureFilterRulesTrafficDirection,
                    DestinationCidr = captureFilterVtapCaptureFilterRulesDestinationCidr,
                    IcmpOptions = new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleIcmpOptionsArgs
                    {
                        Type = captureFilterVtapCaptureFilterRulesIcmpOptionsType,
                        Code = captureFilterVtapCaptureFilterRulesIcmpOptionsCode,
                    },
                    Protocol = captureFilterVtapCaptureFilterRulesProtocol,
                    RuleAction = captureFilterVtapCaptureFilterRulesRuleAction,
                    SourceCidr = captureFilterVtapCaptureFilterRulesSourceCidr,
                    TcpOptions = new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleTcpOptionsArgs
                    {
                        DestinationPortRange = new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleTcpOptionsDestinationPortRangeArgs
                        {
                            Max = captureFilterVtapCaptureFilterRulesTcpOptionsDestinationPortRangeMax,
                            Min = captureFilterVtapCaptureFilterRulesTcpOptionsDestinationPortRangeMin,
                        },
                        SourcePortRange = new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleTcpOptionsSourcePortRangeArgs
                        {
                            Max = captureFilterVtapCaptureFilterRulesTcpOptionsSourcePortRangeMax,
                            Min = captureFilterVtapCaptureFilterRulesTcpOptionsSourcePortRangeMin,
                        },
                    },
                    UdpOptions = new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleUdpOptionsArgs
                    {
                        DestinationPortRange = new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleUdpOptionsDestinationPortRangeArgs
                        {
                            Max = captureFilterVtapCaptureFilterRulesUdpOptionsDestinationPortRangeMax,
                            Min = captureFilterVtapCaptureFilterRulesUdpOptionsDestinationPortRangeMin,
                        },
                        SourcePortRange = new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleUdpOptionsSourcePortRangeArgs
                        {
                            Max = captureFilterVtapCaptureFilterRulesUdpOptionsSourcePortRangeMax,
                            Min = captureFilterVtapCaptureFilterRulesUdpOptionsSourcePortRangeMin,
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Core.CaptureFilter;
    import com.pulumi.oci.Core.CaptureFilterArgs;
    import com.pulumi.oci.Core.inputs.CaptureFilterFlowLogCaptureFilterRuleArgs;
    import com.pulumi.oci.Core.inputs.CaptureFilterFlowLogCaptureFilterRuleIcmpOptionsArgs;
    import com.pulumi.oci.Core.inputs.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsArgs;
    import com.pulumi.oci.Core.inputs.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsDestinationPortRangeArgs;
    import com.pulumi.oci.Core.inputs.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsSourcePortRangeArgs;
    import com.pulumi.oci.Core.inputs.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsArgs;
    import com.pulumi.oci.Core.inputs.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsDestinationPortRangeArgs;
    import com.pulumi.oci.Core.inputs.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsSourcePortRangeArgs;
    import com.pulumi.oci.Core.inputs.CaptureFilterVtapCaptureFilterRuleArgs;
    import com.pulumi.oci.Core.inputs.CaptureFilterVtapCaptureFilterRuleIcmpOptionsArgs;
    import com.pulumi.oci.Core.inputs.CaptureFilterVtapCaptureFilterRuleTcpOptionsArgs;
    import com.pulumi.oci.Core.inputs.CaptureFilterVtapCaptureFilterRuleTcpOptionsDestinationPortRangeArgs;
    import com.pulumi.oci.Core.inputs.CaptureFilterVtapCaptureFilterRuleTcpOptionsSourcePortRangeArgs;
    import com.pulumi.oci.Core.inputs.CaptureFilterVtapCaptureFilterRuleUdpOptionsArgs;
    import com.pulumi.oci.Core.inputs.CaptureFilterVtapCaptureFilterRuleUdpOptionsDestinationPortRangeArgs;
    import com.pulumi.oci.Core.inputs.CaptureFilterVtapCaptureFilterRuleUdpOptionsSourcePortRangeArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var testCaptureFilter = new CaptureFilter("testCaptureFilter", CaptureFilterArgs.builder()
                .compartmentId(compartmentId)
                .filterType(captureFilterFilterType)
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .displayName(captureFilterDisplayName)
                .flowLogCaptureFilterRules(CaptureFilterFlowLogCaptureFilterRuleArgs.builder()
                    .destinationCidr(captureFilterFlowLogCaptureFilterRulesDestinationCidr)
                    .flowLogType(captureFilterFlowLogCaptureFilterRulesFlowLogType)
                    .icmpOptions(CaptureFilterFlowLogCaptureFilterRuleIcmpOptionsArgs.builder()
                        .type(captureFilterFlowLogCaptureFilterRulesIcmpOptionsType)
                        .code(captureFilterFlowLogCaptureFilterRulesIcmpOptionsCode)
                        .build())
                    .isEnabled(captureFilterFlowLogCaptureFilterRulesIsEnabled)
                    .priority(captureFilterFlowLogCaptureFilterRulesPriority)
                    .protocol(captureFilterFlowLogCaptureFilterRulesProtocol)
                    .ruleAction(captureFilterFlowLogCaptureFilterRulesRuleAction)
                    .samplingRate(captureFilterFlowLogCaptureFilterRulesSamplingRate)
                    .sourceCidr(captureFilterFlowLogCaptureFilterRulesSourceCidr)
                    .tcpOptions(CaptureFilterFlowLogCaptureFilterRuleTcpOptionsArgs.builder()
                        .destinationPortRange(CaptureFilterFlowLogCaptureFilterRuleTcpOptionsDestinationPortRangeArgs.builder()
                            .max(captureFilterFlowLogCaptureFilterRulesTcpOptionsDestinationPortRangeMax)
                            .min(captureFilterFlowLogCaptureFilterRulesTcpOptionsDestinationPortRangeMin)
                            .build())
                        .sourcePortRange(CaptureFilterFlowLogCaptureFilterRuleTcpOptionsSourcePortRangeArgs.builder()
                            .max(captureFilterFlowLogCaptureFilterRulesTcpOptionsSourcePortRangeMax)
                            .min(captureFilterFlowLogCaptureFilterRulesTcpOptionsSourcePortRangeMin)
                            .build())
                        .build())
                    .udpOptions(CaptureFilterFlowLogCaptureFilterRuleUdpOptionsArgs.builder()
                        .destinationPortRange(CaptureFilterFlowLogCaptureFilterRuleUdpOptionsDestinationPortRangeArgs.builder()
                            .max(captureFilterFlowLogCaptureFilterRulesUdpOptionsDestinationPortRangeMax)
                            .min(captureFilterFlowLogCaptureFilterRulesUdpOptionsDestinationPortRangeMin)
                            .build())
                        .sourcePortRange(CaptureFilterFlowLogCaptureFilterRuleUdpOptionsSourcePortRangeArgs.builder()
                            .max(captureFilterFlowLogCaptureFilterRulesUdpOptionsSourcePortRangeMax)
                            .min(captureFilterFlowLogCaptureFilterRulesUdpOptionsSourcePortRangeMin)
                            .build())
                        .build())
                    .build())
                .freeformTags(Map.of("Department", "Finance"))
                .vtapCaptureFilterRules(CaptureFilterVtapCaptureFilterRuleArgs.builder()
                    .trafficDirection(captureFilterVtapCaptureFilterRulesTrafficDirection)
                    .destinationCidr(captureFilterVtapCaptureFilterRulesDestinationCidr)
                    .icmpOptions(CaptureFilterVtapCaptureFilterRuleIcmpOptionsArgs.builder()
                        .type(captureFilterVtapCaptureFilterRulesIcmpOptionsType)
                        .code(captureFilterVtapCaptureFilterRulesIcmpOptionsCode)
                        .build())
                    .protocol(captureFilterVtapCaptureFilterRulesProtocol)
                    .ruleAction(captureFilterVtapCaptureFilterRulesRuleAction)
                    .sourceCidr(captureFilterVtapCaptureFilterRulesSourceCidr)
                    .tcpOptions(CaptureFilterVtapCaptureFilterRuleTcpOptionsArgs.builder()
                        .destinationPortRange(CaptureFilterVtapCaptureFilterRuleTcpOptionsDestinationPortRangeArgs.builder()
                            .max(captureFilterVtapCaptureFilterRulesTcpOptionsDestinationPortRangeMax)
                            .min(captureFilterVtapCaptureFilterRulesTcpOptionsDestinationPortRangeMin)
                            .build())
                        .sourcePortRange(CaptureFilterVtapCaptureFilterRuleTcpOptionsSourcePortRangeArgs.builder()
                            .max(captureFilterVtapCaptureFilterRulesTcpOptionsSourcePortRangeMax)
                            .min(captureFilterVtapCaptureFilterRulesTcpOptionsSourcePortRangeMin)
                            .build())
                        .build())
                    .udpOptions(CaptureFilterVtapCaptureFilterRuleUdpOptionsArgs.builder()
                        .destinationPortRange(CaptureFilterVtapCaptureFilterRuleUdpOptionsDestinationPortRangeArgs.builder()
                            .max(captureFilterVtapCaptureFilterRulesUdpOptionsDestinationPortRangeMax)
                            .min(captureFilterVtapCaptureFilterRulesUdpOptionsDestinationPortRangeMin)
                            .build())
                        .sourcePortRange(CaptureFilterVtapCaptureFilterRuleUdpOptionsSourcePortRangeArgs.builder()
                            .max(captureFilterVtapCaptureFilterRulesUdpOptionsSourcePortRangeMax)
                            .min(captureFilterVtapCaptureFilterRulesUdpOptionsSourcePortRangeMin)
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      testCaptureFilter:
        type: oci:Core:CaptureFilter
        name: test_capture_filter
        properties:
          compartmentId: ${compartmentId}
          filterType: ${captureFilterFilterType}
          definedTags:
            Operations.CostCenter: '42'
          displayName: ${captureFilterDisplayName}
          flowLogCaptureFilterRules:
            - destinationCidr: ${captureFilterFlowLogCaptureFilterRulesDestinationCidr}
              flowLogType: ${captureFilterFlowLogCaptureFilterRulesFlowLogType}
              icmpOptions:
                type: ${captureFilterFlowLogCaptureFilterRulesIcmpOptionsType}
                code: ${captureFilterFlowLogCaptureFilterRulesIcmpOptionsCode}
              isEnabled: ${captureFilterFlowLogCaptureFilterRulesIsEnabled}
              priority: ${captureFilterFlowLogCaptureFilterRulesPriority}
              protocol: ${captureFilterFlowLogCaptureFilterRulesProtocol}
              ruleAction: ${captureFilterFlowLogCaptureFilterRulesRuleAction}
              samplingRate: ${captureFilterFlowLogCaptureFilterRulesSamplingRate}
              sourceCidr: ${captureFilterFlowLogCaptureFilterRulesSourceCidr}
              tcpOptions:
                destinationPortRange:
                  max: ${captureFilterFlowLogCaptureFilterRulesTcpOptionsDestinationPortRangeMax}
                  min: ${captureFilterFlowLogCaptureFilterRulesTcpOptionsDestinationPortRangeMin}
                sourcePortRange:
                  max: ${captureFilterFlowLogCaptureFilterRulesTcpOptionsSourcePortRangeMax}
                  min: ${captureFilterFlowLogCaptureFilterRulesTcpOptionsSourcePortRangeMin}
              udpOptions:
                destinationPortRange:
                  max: ${captureFilterFlowLogCaptureFilterRulesUdpOptionsDestinationPortRangeMax}
                  min: ${captureFilterFlowLogCaptureFilterRulesUdpOptionsDestinationPortRangeMin}
                sourcePortRange:
                  max: ${captureFilterFlowLogCaptureFilterRulesUdpOptionsSourcePortRangeMax}
                  min: ${captureFilterFlowLogCaptureFilterRulesUdpOptionsSourcePortRangeMin}
          freeformTags:
            Department: Finance
          vtapCaptureFilterRules:
            - trafficDirection: ${captureFilterVtapCaptureFilterRulesTrafficDirection}
              destinationCidr: ${captureFilterVtapCaptureFilterRulesDestinationCidr}
              icmpOptions:
                type: ${captureFilterVtapCaptureFilterRulesIcmpOptionsType}
                code: ${captureFilterVtapCaptureFilterRulesIcmpOptionsCode}
              protocol: ${captureFilterVtapCaptureFilterRulesProtocol}
              ruleAction: ${captureFilterVtapCaptureFilterRulesRuleAction}
              sourceCidr: ${captureFilterVtapCaptureFilterRulesSourceCidr}
              tcpOptions:
                destinationPortRange:
                  max: ${captureFilterVtapCaptureFilterRulesTcpOptionsDestinationPortRangeMax}
                  min: ${captureFilterVtapCaptureFilterRulesTcpOptionsDestinationPortRangeMin}
                sourcePortRange:
                  max: ${captureFilterVtapCaptureFilterRulesTcpOptionsSourcePortRangeMax}
                  min: ${captureFilterVtapCaptureFilterRulesTcpOptionsSourcePortRangeMin}
              udpOptions:
                destinationPortRange:
                  max: ${captureFilterVtapCaptureFilterRulesUdpOptionsDestinationPortRangeMax}
                  min: ${captureFilterVtapCaptureFilterRulesUdpOptionsDestinationPortRangeMin}
                sourcePortRange:
                  max: ${captureFilterVtapCaptureFilterRulesUdpOptionsSourcePortRangeMax}
                  min: ${captureFilterVtapCaptureFilterRulesUdpOptionsSourcePortRangeMin}
    

    Create CaptureFilter Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CaptureFilter(name: string, args: CaptureFilterArgs, opts?: CustomResourceOptions);
    @overload
    def CaptureFilter(resource_name: str,
                      args: CaptureFilterArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def CaptureFilter(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      compartment_id: Optional[str] = None,
                      filter_type: Optional[str] = None,
                      defined_tags: Optional[Mapping[str, Any]] = None,
                      display_name: Optional[str] = None,
                      flow_log_capture_filter_rules: Optional[Sequence[_core.CaptureFilterFlowLogCaptureFilterRuleArgs]] = None,
                      freeform_tags: Optional[Mapping[str, Any]] = None,
                      vtap_capture_filter_rules: Optional[Sequence[_core.CaptureFilterVtapCaptureFilterRuleArgs]] = None)
    func NewCaptureFilter(ctx *Context, name string, args CaptureFilterArgs, opts ...ResourceOption) (*CaptureFilter, error)
    public CaptureFilter(string name, CaptureFilterArgs args, CustomResourceOptions? opts = null)
    public CaptureFilter(String name, CaptureFilterArgs args)
    public CaptureFilter(String name, CaptureFilterArgs args, CustomResourceOptions options)
    
    type: oci:Core:CaptureFilter
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args CaptureFilterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args CaptureFilterArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args CaptureFilterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CaptureFilterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CaptureFilterArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var captureFilterResource = new Oci.Core.CaptureFilter("captureFilterResource", new()
    {
        CompartmentId = "string",
        FilterType = "string",
        DefinedTags = 
        {
            { "string", "any" },
        },
        DisplayName = "string",
        FlowLogCaptureFilterRules = new[]
        {
            new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleArgs
            {
                DestinationCidr = "string",
                FlowLogType = "string",
                IcmpOptions = new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleIcmpOptionsArgs
                {
                    Type = 0,
                    Code = 0,
                },
                IsEnabled = false,
                Priority = 0,
                Protocol = "string",
                RuleAction = "string",
                SamplingRate = 0,
                SourceCidr = "string",
                TcpOptions = new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsArgs
                {
                    DestinationPortRange = new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsDestinationPortRangeArgs
                    {
                        Max = 0,
                        Min = 0,
                    },
                    SourcePortRange = new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsSourcePortRangeArgs
                    {
                        Max = 0,
                        Min = 0,
                    },
                },
                UdpOptions = new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsArgs
                {
                    DestinationPortRange = new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsDestinationPortRangeArgs
                    {
                        Max = 0,
                        Min = 0,
                    },
                    SourcePortRange = new Oci.Core.Inputs.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsSourcePortRangeArgs
                    {
                        Max = 0,
                        Min = 0,
                    },
                },
            },
        },
        FreeformTags = 
        {
            { "string", "any" },
        },
        VtapCaptureFilterRules = new[]
        {
            new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleArgs
            {
                TrafficDirection = "string",
                DestinationCidr = "string",
                IcmpOptions = new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleIcmpOptionsArgs
                {
                    Type = 0,
                    Code = 0,
                },
                Protocol = "string",
                RuleAction = "string",
                SourceCidr = "string",
                TcpOptions = new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleTcpOptionsArgs
                {
                    DestinationPortRange = new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleTcpOptionsDestinationPortRangeArgs
                    {
                        Max = 0,
                        Min = 0,
                    },
                    SourcePortRange = new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleTcpOptionsSourcePortRangeArgs
                    {
                        Max = 0,
                        Min = 0,
                    },
                },
                UdpOptions = new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleUdpOptionsArgs
                {
                    DestinationPortRange = new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleUdpOptionsDestinationPortRangeArgs
                    {
                        Max = 0,
                        Min = 0,
                    },
                    SourcePortRange = new Oci.Core.Inputs.CaptureFilterVtapCaptureFilterRuleUdpOptionsSourcePortRangeArgs
                    {
                        Max = 0,
                        Min = 0,
                    },
                },
            },
        },
    });
    
    example, err := Core.NewCaptureFilter(ctx, "captureFilterResource", &Core.CaptureFilterArgs{
    	CompartmentId: pulumi.String("string"),
    	FilterType:    pulumi.String("string"),
    	DefinedTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	DisplayName: pulumi.String("string"),
    	FlowLogCaptureFilterRules: core.CaptureFilterFlowLogCaptureFilterRuleArray{
    		&core.CaptureFilterFlowLogCaptureFilterRuleArgs{
    			DestinationCidr: pulumi.String("string"),
    			FlowLogType:     pulumi.String("string"),
    			IcmpOptions: &core.CaptureFilterFlowLogCaptureFilterRuleIcmpOptionsArgs{
    				Type: pulumi.Int(0),
    				Code: pulumi.Int(0),
    			},
    			IsEnabled:    pulumi.Bool(false),
    			Priority:     pulumi.Int(0),
    			Protocol:     pulumi.String("string"),
    			RuleAction:   pulumi.String("string"),
    			SamplingRate: pulumi.Int(0),
    			SourceCidr:   pulumi.String("string"),
    			TcpOptions: &core.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsArgs{
    				DestinationPortRange: &core.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsDestinationPortRangeArgs{
    					Max: pulumi.Int(0),
    					Min: pulumi.Int(0),
    				},
    				SourcePortRange: &core.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsSourcePortRangeArgs{
    					Max: pulumi.Int(0),
    					Min: pulumi.Int(0),
    				},
    			},
    			UdpOptions: &core.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsArgs{
    				DestinationPortRange: &core.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsDestinationPortRangeArgs{
    					Max: pulumi.Int(0),
    					Min: pulumi.Int(0),
    				},
    				SourcePortRange: &core.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsSourcePortRangeArgs{
    					Max: pulumi.Int(0),
    					Min: pulumi.Int(0),
    				},
    			},
    		},
    	},
    	FreeformTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	VtapCaptureFilterRules: core.CaptureFilterVtapCaptureFilterRuleArray{
    		&core.CaptureFilterVtapCaptureFilterRuleArgs{
    			TrafficDirection: pulumi.String("string"),
    			DestinationCidr:  pulumi.String("string"),
    			IcmpOptions: &core.CaptureFilterVtapCaptureFilterRuleIcmpOptionsArgs{
    				Type: pulumi.Int(0),
    				Code: pulumi.Int(0),
    			},
    			Protocol:   pulumi.String("string"),
    			RuleAction: pulumi.String("string"),
    			SourceCidr: pulumi.String("string"),
    			TcpOptions: &core.CaptureFilterVtapCaptureFilterRuleTcpOptionsArgs{
    				DestinationPortRange: &core.CaptureFilterVtapCaptureFilterRuleTcpOptionsDestinationPortRangeArgs{
    					Max: pulumi.Int(0),
    					Min: pulumi.Int(0),
    				},
    				SourcePortRange: &core.CaptureFilterVtapCaptureFilterRuleTcpOptionsSourcePortRangeArgs{
    					Max: pulumi.Int(0),
    					Min: pulumi.Int(0),
    				},
    			},
    			UdpOptions: &core.CaptureFilterVtapCaptureFilterRuleUdpOptionsArgs{
    				DestinationPortRange: &core.CaptureFilterVtapCaptureFilterRuleUdpOptionsDestinationPortRangeArgs{
    					Max: pulumi.Int(0),
    					Min: pulumi.Int(0),
    				},
    				SourcePortRange: &core.CaptureFilterVtapCaptureFilterRuleUdpOptionsSourcePortRangeArgs{
    					Max: pulumi.Int(0),
    					Min: pulumi.Int(0),
    				},
    			},
    		},
    	},
    })
    
    var captureFilterResource = new CaptureFilter("captureFilterResource", CaptureFilterArgs.builder()
        .compartmentId("string")
        .filterType("string")
        .definedTags(Map.of("string", "any"))
        .displayName("string")
        .flowLogCaptureFilterRules(CaptureFilterFlowLogCaptureFilterRuleArgs.builder()
            .destinationCidr("string")
            .flowLogType("string")
            .icmpOptions(CaptureFilterFlowLogCaptureFilterRuleIcmpOptionsArgs.builder()
                .type(0)
                .code(0)
                .build())
            .isEnabled(false)
            .priority(0)
            .protocol("string")
            .ruleAction("string")
            .samplingRate(0)
            .sourceCidr("string")
            .tcpOptions(CaptureFilterFlowLogCaptureFilterRuleTcpOptionsArgs.builder()
                .destinationPortRange(CaptureFilterFlowLogCaptureFilterRuleTcpOptionsDestinationPortRangeArgs.builder()
                    .max(0)
                    .min(0)
                    .build())
                .sourcePortRange(CaptureFilterFlowLogCaptureFilterRuleTcpOptionsSourcePortRangeArgs.builder()
                    .max(0)
                    .min(0)
                    .build())
                .build())
            .udpOptions(CaptureFilterFlowLogCaptureFilterRuleUdpOptionsArgs.builder()
                .destinationPortRange(CaptureFilterFlowLogCaptureFilterRuleUdpOptionsDestinationPortRangeArgs.builder()
                    .max(0)
                    .min(0)
                    .build())
                .sourcePortRange(CaptureFilterFlowLogCaptureFilterRuleUdpOptionsSourcePortRangeArgs.builder()
                    .max(0)
                    .min(0)
                    .build())
                .build())
            .build())
        .freeformTags(Map.of("string", "any"))
        .vtapCaptureFilterRules(CaptureFilterVtapCaptureFilterRuleArgs.builder()
            .trafficDirection("string")
            .destinationCidr("string")
            .icmpOptions(CaptureFilterVtapCaptureFilterRuleIcmpOptionsArgs.builder()
                .type(0)
                .code(0)
                .build())
            .protocol("string")
            .ruleAction("string")
            .sourceCidr("string")
            .tcpOptions(CaptureFilterVtapCaptureFilterRuleTcpOptionsArgs.builder()
                .destinationPortRange(CaptureFilterVtapCaptureFilterRuleTcpOptionsDestinationPortRangeArgs.builder()
                    .max(0)
                    .min(0)
                    .build())
                .sourcePortRange(CaptureFilterVtapCaptureFilterRuleTcpOptionsSourcePortRangeArgs.builder()
                    .max(0)
                    .min(0)
                    .build())
                .build())
            .udpOptions(CaptureFilterVtapCaptureFilterRuleUdpOptionsArgs.builder()
                .destinationPortRange(CaptureFilterVtapCaptureFilterRuleUdpOptionsDestinationPortRangeArgs.builder()
                    .max(0)
                    .min(0)
                    .build())
                .sourcePortRange(CaptureFilterVtapCaptureFilterRuleUdpOptionsSourcePortRangeArgs.builder()
                    .max(0)
                    .min(0)
                    .build())
                .build())
            .build())
        .build());
    
    capture_filter_resource = oci.core.CaptureFilter("captureFilterResource",
        compartment_id="string",
        filter_type="string",
        defined_tags={
            "string": "any",
        },
        display_name="string",
        flow_log_capture_filter_rules=[oci.core.CaptureFilterFlowLogCaptureFilterRuleArgs(
            destination_cidr="string",
            flow_log_type="string",
            icmp_options=oci.core.CaptureFilterFlowLogCaptureFilterRuleIcmpOptionsArgs(
                type=0,
                code=0,
            ),
            is_enabled=False,
            priority=0,
            protocol="string",
            rule_action="string",
            sampling_rate=0,
            source_cidr="string",
            tcp_options=oci.core.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsArgs(
                destination_port_range=oci.core.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsDestinationPortRangeArgs(
                    max=0,
                    min=0,
                ),
                source_port_range=oci.core.CaptureFilterFlowLogCaptureFilterRuleTcpOptionsSourcePortRangeArgs(
                    max=0,
                    min=0,
                ),
            ),
            udp_options=oci.core.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsArgs(
                destination_port_range=oci.core.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsDestinationPortRangeArgs(
                    max=0,
                    min=0,
                ),
                source_port_range=oci.core.CaptureFilterFlowLogCaptureFilterRuleUdpOptionsSourcePortRangeArgs(
                    max=0,
                    min=0,
                ),
            ),
        )],
        freeform_tags={
            "string": "any",
        },
        vtap_capture_filter_rules=[oci.core.CaptureFilterVtapCaptureFilterRuleArgs(
            traffic_direction="string",
            destination_cidr="string",
            icmp_options=oci.core.CaptureFilterVtapCaptureFilterRuleIcmpOptionsArgs(
                type=0,
                code=0,
            ),
            protocol="string",
            rule_action="string",
            source_cidr="string",
            tcp_options=oci.core.CaptureFilterVtapCaptureFilterRuleTcpOptionsArgs(
                destination_port_range=oci.core.CaptureFilterVtapCaptureFilterRuleTcpOptionsDestinationPortRangeArgs(
                    max=0,
                    min=0,
                ),
                source_port_range=oci.core.CaptureFilterVtapCaptureFilterRuleTcpOptionsSourcePortRangeArgs(
                    max=0,
                    min=0,
                ),
            ),
            udp_options=oci.core.CaptureFilterVtapCaptureFilterRuleUdpOptionsArgs(
                destination_port_range=oci.core.CaptureFilterVtapCaptureFilterRuleUdpOptionsDestinationPortRangeArgs(
                    max=0,
                    min=0,
                ),
                source_port_range=oci.core.CaptureFilterVtapCaptureFilterRuleUdpOptionsSourcePortRangeArgs(
                    max=0,
                    min=0,
                ),
            ),
        )])
    
    const captureFilterResource = new oci.core.CaptureFilter("captureFilterResource", {
        compartmentId: "string",
        filterType: "string",
        definedTags: {
            string: "any",
        },
        displayName: "string",
        flowLogCaptureFilterRules: [{
            destinationCidr: "string",
            flowLogType: "string",
            icmpOptions: {
                type: 0,
                code: 0,
            },
            isEnabled: false,
            priority: 0,
            protocol: "string",
            ruleAction: "string",
            samplingRate: 0,
            sourceCidr: "string",
            tcpOptions: {
                destinationPortRange: {
                    max: 0,
                    min: 0,
                },
                sourcePortRange: {
                    max: 0,
                    min: 0,
                },
            },
            udpOptions: {
                destinationPortRange: {
                    max: 0,
                    min: 0,
                },
                sourcePortRange: {
                    max: 0,
                    min: 0,
                },
            },
        }],
        freeformTags: {
            string: "any",
        },
        vtapCaptureFilterRules: [{
            trafficDirection: "string",
            destinationCidr: "string",
            icmpOptions: {
                type: 0,
                code: 0,
            },
            protocol: "string",
            ruleAction: "string",
            sourceCidr: "string",
            tcpOptions: {
                destinationPortRange: {
                    max: 0,
                    min: 0,
                },
                sourcePortRange: {
                    max: 0,
                    min: 0,
                },
            },
            udpOptions: {
                destinationPortRange: {
                    max: 0,
                    min: 0,
                },
                sourcePortRange: {
                    max: 0,
                    min: 0,
                },
            },
        }],
    });
    
    type: oci:Core:CaptureFilter
    properties:
        compartmentId: string
        definedTags:
            string: any
        displayName: string
        filterType: string
        flowLogCaptureFilterRules:
            - destinationCidr: string
              flowLogType: string
              icmpOptions:
                code: 0
                type: 0
              isEnabled: false
              priority: 0
              protocol: string
              ruleAction: string
              samplingRate: 0
              sourceCidr: string
              tcpOptions:
                destinationPortRange:
                    max: 0
                    min: 0
                sourcePortRange:
                    max: 0
                    min: 0
              udpOptions:
                destinationPortRange:
                    max: 0
                    min: 0
                sourcePortRange:
                    max: 0
                    min: 0
        freeformTags:
            string: any
        vtapCaptureFilterRules:
            - destinationCidr: string
              icmpOptions:
                code: 0
                type: 0
              protocol: string
              ruleAction: string
              sourceCidr: string
              tcpOptions:
                destinationPortRange:
                    max: 0
                    min: 0
                sourcePortRange:
                    max: 0
                    min: 0
              trafficDirection: string
              udpOptions:
                destinationPortRange:
                    max: 0
                    min: 0
                sourcePortRange:
                    max: 0
                    min: 0
    

    CaptureFilter Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The CaptureFilter resource accepts the following input properties:

    CompartmentId string
    (Updatable) The OCID of the compartment containing the capture filter.
    FilterType string
    Indicates which service will use this capture filter
    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FlowLogCaptureFilterRules List<CaptureFilterFlowLogCaptureFilterRule>
    (Updatable) The set of rules governing what traffic the Flow Log collects when creating a flow log capture filter.
    FreeformTags Dictionary<string, object>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    VtapCaptureFilterRules List<CaptureFilterVtapCaptureFilterRule>
    (Updatable) The set of rules governing what traffic a VTAP mirrors.
    CompartmentId string
    (Updatable) The OCID of the compartment containing the capture filter.
    FilterType string
    Indicates which service will use this capture filter
    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FlowLogCaptureFilterRules []CaptureFilterFlowLogCaptureFilterRuleArgs
    (Updatable) The set of rules governing what traffic the Flow Log collects when creating a flow log capture filter.
    FreeformTags map[string]interface{}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    VtapCaptureFilterRules []CaptureFilterVtapCaptureFilterRuleArgs
    (Updatable) The set of rules governing what traffic a VTAP mirrors.
    compartmentId String
    (Updatable) The OCID of the compartment containing the capture filter.
    filterType String
    Indicates which service will use this capture filter
    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    flowLogCaptureFilterRules List<CaptureFilterFlowLogCaptureFilterRule>
    (Updatable) The set of rules governing what traffic the Flow Log collects when creating a flow log capture filter.
    freeformTags Map<String,Object>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    vtapCaptureFilterRules List<CaptureFilterVtapCaptureFilterRule>
    (Updatable) The set of rules governing what traffic a VTAP mirrors.
    compartmentId string
    (Updatable) The OCID of the compartment containing the capture filter.
    filterType string
    Indicates which service will use this capture filter
    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    flowLogCaptureFilterRules CaptureFilterFlowLogCaptureFilterRule[]
    (Updatable) The set of rules governing what traffic the Flow Log collects when creating a flow log capture filter.
    freeformTags {[key: string]: any}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    vtapCaptureFilterRules CaptureFilterVtapCaptureFilterRule[]
    (Updatable) The set of rules governing what traffic a VTAP mirrors.
    compartment_id str
    (Updatable) The OCID of the compartment containing the capture filter.
    filter_type str
    Indicates which service will use this capture filter
    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name str
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    flow_log_capture_filter_rules Sequence[core.CaptureFilterFlowLogCaptureFilterRuleArgs]
    (Updatable) The set of rules governing what traffic the Flow Log collects when creating a flow log capture filter.
    freeform_tags Mapping[str, Any]
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    vtap_capture_filter_rules Sequence[core.CaptureFilterVtapCaptureFilterRuleArgs]
    (Updatable) The set of rules governing what traffic a VTAP mirrors.
    compartmentId String
    (Updatable) The OCID of the compartment containing the capture filter.
    filterType String
    Indicates which service will use this capture filter
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    flowLogCaptureFilterRules List<Property Map>
    (Updatable) The set of rules governing what traffic the Flow Log collects when creating a flow log capture filter.
    freeformTags Map<Any>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    vtapCaptureFilterRules List<Property Map>
    (Updatable) The set of rules governing what traffic a VTAP mirrors.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CaptureFilter resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The capture filter's current administrative state.
    TimeCreated string
    The date and time the capture filter was created, in the format defined by RFC3339. Example: 2021-08-25T21:10:29.600Z
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The capture filter's current administrative state.
    TimeCreated string
    The date and time the capture filter was created, in the format defined by RFC3339. Example: 2021-08-25T21:10:29.600Z
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The capture filter's current administrative state.
    timeCreated String
    The date and time the capture filter was created, in the format defined by RFC3339. Example: 2021-08-25T21:10:29.600Z
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    The capture filter's current administrative state.
    timeCreated string
    The date and time the capture filter was created, in the format defined by RFC3339. Example: 2021-08-25T21:10:29.600Z
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    The capture filter's current administrative state.
    time_created str
    The date and time the capture filter was created, in the format defined by RFC3339. Example: 2021-08-25T21:10:29.600Z
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The capture filter's current administrative state.
    timeCreated String
    The date and time the capture filter was created, in the format defined by RFC3339. Example: 2021-08-25T21:10:29.600Z

    Look up Existing CaptureFilter Resource

    Get an existing CaptureFilter resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: CaptureFilterState, opts?: CustomResourceOptions): CaptureFilter
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            display_name: Optional[str] = None,
            filter_type: Optional[str] = None,
            flow_log_capture_filter_rules: Optional[Sequence[_core.CaptureFilterFlowLogCaptureFilterRuleArgs]] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            state: Optional[str] = None,
            time_created: Optional[str] = None,
            vtap_capture_filter_rules: Optional[Sequence[_core.CaptureFilterVtapCaptureFilterRuleArgs]] = None) -> CaptureFilter
    func GetCaptureFilter(ctx *Context, name string, id IDInput, state *CaptureFilterState, opts ...ResourceOption) (*CaptureFilter, error)
    public static CaptureFilter Get(string name, Input<string> id, CaptureFilterState? state, CustomResourceOptions? opts = null)
    public static CaptureFilter get(String name, Output<String> id, CaptureFilterState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CompartmentId string
    (Updatable) The OCID of the compartment containing the capture filter.
    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FilterType string
    Indicates which service will use this capture filter
    FlowLogCaptureFilterRules List<CaptureFilterFlowLogCaptureFilterRule>
    (Updatable) The set of rules governing what traffic the Flow Log collects when creating a flow log capture filter.
    FreeformTags Dictionary<string, object>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    State string
    The capture filter's current administrative state.
    TimeCreated string
    The date and time the capture filter was created, in the format defined by RFC3339. Example: 2021-08-25T21:10:29.600Z
    VtapCaptureFilterRules List<CaptureFilterVtapCaptureFilterRule>
    (Updatable) The set of rules governing what traffic a VTAP mirrors.
    CompartmentId string
    (Updatable) The OCID of the compartment containing the capture filter.
    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FilterType string
    Indicates which service will use this capture filter
    FlowLogCaptureFilterRules []CaptureFilterFlowLogCaptureFilterRuleArgs
    (Updatable) The set of rules governing what traffic the Flow Log collects when creating a flow log capture filter.
    FreeformTags map[string]interface{}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    State string
    The capture filter's current administrative state.
    TimeCreated string
    The date and time the capture filter was created, in the format defined by RFC3339. Example: 2021-08-25T21:10:29.600Z
    VtapCaptureFilterRules []CaptureFilterVtapCaptureFilterRuleArgs
    (Updatable) The set of rules governing what traffic a VTAP mirrors.
    compartmentId String
    (Updatable) The OCID of the compartment containing the capture filter.
    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    filterType String
    Indicates which service will use this capture filter
    flowLogCaptureFilterRules List<CaptureFilterFlowLogCaptureFilterRule>
    (Updatable) The set of rules governing what traffic the Flow Log collects when creating a flow log capture filter.
    freeformTags Map<String,Object>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    state String
    The capture filter's current administrative state.
    timeCreated String
    The date and time the capture filter was created, in the format defined by RFC3339. Example: 2021-08-25T21:10:29.600Z
    vtapCaptureFilterRules List<CaptureFilterVtapCaptureFilterRule>
    (Updatable) The set of rules governing what traffic a VTAP mirrors.
    compartmentId string
    (Updatable) The OCID of the compartment containing the capture filter.
    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    filterType string
    Indicates which service will use this capture filter
    flowLogCaptureFilterRules CaptureFilterFlowLogCaptureFilterRule[]
    (Updatable) The set of rules governing what traffic the Flow Log collects when creating a flow log capture filter.
    freeformTags {[key: string]: any}
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    state string
    The capture filter's current administrative state.
    timeCreated string
    The date and time the capture filter was created, in the format defined by RFC3339. Example: 2021-08-25T21:10:29.600Z
    vtapCaptureFilterRules CaptureFilterVtapCaptureFilterRule[]
    (Updatable) The set of rules governing what traffic a VTAP mirrors.
    compartment_id str
    (Updatable) The OCID of the compartment containing the capture filter.
    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name str
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    filter_type str
    Indicates which service will use this capture filter
    flow_log_capture_filter_rules Sequence[core.CaptureFilterFlowLogCaptureFilterRuleArgs]
    (Updatable) The set of rules governing what traffic the Flow Log collects when creating a flow log capture filter.
    freeform_tags Mapping[str, Any]
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    state str
    The capture filter's current administrative state.
    time_created str
    The date and time the capture filter was created, in the format defined by RFC3339. Example: 2021-08-25T21:10:29.600Z
    vtap_capture_filter_rules Sequence[core.CaptureFilterVtapCaptureFilterRuleArgs]
    (Updatable) The set of rules governing what traffic a VTAP mirrors.
    compartmentId String
    (Updatable) The OCID of the compartment containing the capture filter.
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    filterType String
    Indicates which service will use this capture filter
    flowLogCaptureFilterRules List<Property Map>
    (Updatable) The set of rules governing what traffic the Flow Log collects when creating a flow log capture filter.
    freeformTags Map<Any>
    (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    state String
    The capture filter's current administrative state.
    timeCreated String
    The date and time the capture filter was created, in the format defined by RFC3339. Example: 2021-08-25T21:10:29.600Z
    vtapCaptureFilterRules List<Property Map>
    (Updatable) The set of rules governing what traffic a VTAP mirrors.

    Supporting Types

    CaptureFilterFlowLogCaptureFilterRule, CaptureFilterFlowLogCaptureFilterRuleArgs

    DestinationCidr string
    (Updatable) Traffic to this CIDR will be captured in the flow log.
    FlowLogType string
    (Updatable) Type or types of flow logs to store. ALL includes records for both accepted traffic and rejected traffic.
    IcmpOptions CaptureFilterFlowLogCaptureFilterRuleIcmpOptions

    (Updatable) Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:

    If you specify ICMP or ICMPv6 as the protocol but omit this object, then all ICMP types and codes are allowed. If you do provide this object, the type is required and the code is optional. To enable MTU negotiation for ingress internet traffic via IPv4, make sure to allow type 3 ("Destination Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify multiple codes for a single type, create a separate security list rule for each.

    IsEnabled bool
    (Updatable) Indicates whether a flow log capture filter rule is enabled.
    Priority int
    (Updatable) A lower number indicates a higher priority, range 0-9. Each rule must have a distinct priority.
    Protocol string
    (Updatable) The transport protocol the filter uses.
    RuleAction string
    (Updatable) Include or exclude a ruleAction object.
    SamplingRate int
    (Updatable) Sampling interval as 1 of X, where X is an integer not greater than 100000.
    SourceCidr string
    (Updatable) Traffic from this CIDR will be captured in the flow log.
    TcpOptions CaptureFilterFlowLogCaptureFilterRuleTcpOptions
    (Updatable) Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. If you specify TCP as the protocol but omit this object, then all destination ports are allowed.
    UdpOptions CaptureFilterFlowLogCaptureFilterRuleUdpOptions
    (Updatable) Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. If you specify UDP as the protocol but omit this object, then all destination ports are allowed.
    DestinationCidr string
    (Updatable) Traffic to this CIDR will be captured in the flow log.
    FlowLogType string
    (Updatable) Type or types of flow logs to store. ALL includes records for both accepted traffic and rejected traffic.
    IcmpOptions CaptureFilterFlowLogCaptureFilterRuleIcmpOptions

    (Updatable) Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:

    If you specify ICMP or ICMPv6 as the protocol but omit this object, then all ICMP types and codes are allowed. If you do provide this object, the type is required and the code is optional. To enable MTU negotiation for ingress internet traffic via IPv4, make sure to allow type 3 ("Destination Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify multiple codes for a single type, create a separate security list rule for each.

    IsEnabled bool
    (Updatable) Indicates whether a flow log capture filter rule is enabled.
    Priority int
    (Updatable) A lower number indicates a higher priority, range 0-9. Each rule must have a distinct priority.
    Protocol string
    (Updatable) The transport protocol the filter uses.
    RuleAction string
    (Updatable) Include or exclude a ruleAction object.
    SamplingRate int
    (Updatable) Sampling interval as 1 of X, where X is an integer not greater than 100000.
    SourceCidr string
    (Updatable) Traffic from this CIDR will be captured in the flow log.
    TcpOptions CaptureFilterFlowLogCaptureFilterRuleTcpOptions
    (Updatable) Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. If you specify TCP as the protocol but omit this object, then all destination ports are allowed.
    UdpOptions CaptureFilterFlowLogCaptureFilterRuleUdpOptions
    (Updatable) Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. If you specify UDP as the protocol but omit this object, then all destination ports are allowed.
    destinationCidr String
    (Updatable) Traffic to this CIDR will be captured in the flow log.
    flowLogType String
    (Updatable) Type or types of flow logs to store. ALL includes records for both accepted traffic and rejected traffic.
    icmpOptions CaptureFilterFlowLogCaptureFilterRuleIcmpOptions

    (Updatable) Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:

    If you specify ICMP or ICMPv6 as the protocol but omit this object, then all ICMP types and codes are allowed. If you do provide this object, the type is required and the code is optional. To enable MTU negotiation for ingress internet traffic via IPv4, make sure to allow type 3 ("Destination Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify multiple codes for a single type, create a separate security list rule for each.

    isEnabled Boolean
    (Updatable) Indicates whether a flow log capture filter rule is enabled.
    priority Integer
    (Updatable) A lower number indicates a higher priority, range 0-9. Each rule must have a distinct priority.
    protocol String
    (Updatable) The transport protocol the filter uses.
    ruleAction String
    (Updatable) Include or exclude a ruleAction object.
    samplingRate Integer
    (Updatable) Sampling interval as 1 of X, where X is an integer not greater than 100000.
    sourceCidr String
    (Updatable) Traffic from this CIDR will be captured in the flow log.
    tcpOptions CaptureFilterFlowLogCaptureFilterRuleTcpOptions
    (Updatable) Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. If you specify TCP as the protocol but omit this object, then all destination ports are allowed.
    udpOptions CaptureFilterFlowLogCaptureFilterRuleUdpOptions
    (Updatable) Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. If you specify UDP as the protocol but omit this object, then all destination ports are allowed.
    destinationCidr string
    (Updatable) Traffic to this CIDR will be captured in the flow log.
    flowLogType string
    (Updatable) Type or types of flow logs to store. ALL includes records for both accepted traffic and rejected traffic.
    icmpOptions CaptureFilterFlowLogCaptureFilterRuleIcmpOptions

    (Updatable) Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:

    If you specify ICMP or ICMPv6 as the protocol but omit this object, then all ICMP types and codes are allowed. If you do provide this object, the type is required and the code is optional. To enable MTU negotiation for ingress internet traffic via IPv4, make sure to allow type 3 ("Destination Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify multiple codes for a single type, create a separate security list rule for each.

    isEnabled boolean
    (Updatable) Indicates whether a flow log capture filter rule is enabled.
    priority number
    (Updatable) A lower number indicates a higher priority, range 0-9. Each rule must have a distinct priority.
    protocol string
    (Updatable) The transport protocol the filter uses.
    ruleAction string
    (Updatable) Include or exclude a ruleAction object.
    samplingRate number
    (Updatable) Sampling interval as 1 of X, where X is an integer not greater than 100000.
    sourceCidr string
    (Updatable) Traffic from this CIDR will be captured in the flow log.
    tcpOptions CaptureFilterFlowLogCaptureFilterRuleTcpOptions
    (Updatable) Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. If you specify TCP as the protocol but omit this object, then all destination ports are allowed.
    udpOptions CaptureFilterFlowLogCaptureFilterRuleUdpOptions
    (Updatable) Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. If you specify UDP as the protocol but omit this object, then all destination ports are allowed.
    destination_cidr str
    (Updatable) Traffic to this CIDR will be captured in the flow log.
    flow_log_type str
    (Updatable) Type or types of flow logs to store. ALL includes records for both accepted traffic and rejected traffic.
    icmp_options core.CaptureFilterFlowLogCaptureFilterRuleIcmpOptions

    (Updatable) Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:

    If you specify ICMP or ICMPv6 as the protocol but omit this object, then all ICMP types and codes are allowed. If you do provide this object, the type is required and the code is optional. To enable MTU negotiation for ingress internet traffic via IPv4, make sure to allow type 3 ("Destination Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify multiple codes for a single type, create a separate security list rule for each.

    is_enabled bool
    (Updatable) Indicates whether a flow log capture filter rule is enabled.
    priority int
    (Updatable) A lower number indicates a higher priority, range 0-9. Each rule must have a distinct priority.
    protocol str
    (Updatable) The transport protocol the filter uses.
    rule_action str
    (Updatable) Include or exclude a ruleAction object.
    sampling_rate int
    (Updatable) Sampling interval as 1 of X, where X is an integer not greater than 100000.
    source_cidr str
    (Updatable) Traffic from this CIDR will be captured in the flow log.
    tcp_options core.CaptureFilterFlowLogCaptureFilterRuleTcpOptions
    (Updatable) Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. If you specify TCP as the protocol but omit this object, then all destination ports are allowed.
    udp_options core.CaptureFilterFlowLogCaptureFilterRuleUdpOptions
    (Updatable) Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. If you specify UDP as the protocol but omit this object, then all destination ports are allowed.
    destinationCidr String
    (Updatable) Traffic to this CIDR will be captured in the flow log.
    flowLogType String
    (Updatable) Type or types of flow logs to store. ALL includes records for both accepted traffic and rejected traffic.
    icmpOptions Property Map

    (Updatable) Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:

    If you specify ICMP or ICMPv6 as the protocol but omit this object, then all ICMP types and codes are allowed. If you do provide this object, the type is required and the code is optional. To enable MTU negotiation for ingress internet traffic via IPv4, make sure to allow type 3 ("Destination Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify multiple codes for a single type, create a separate security list rule for each.

    isEnabled Boolean
    (Updatable) Indicates whether a flow log capture filter rule is enabled.
    priority Number
    (Updatable) A lower number indicates a higher priority, range 0-9. Each rule must have a distinct priority.
    protocol String
    (Updatable) The transport protocol the filter uses.
    ruleAction String
    (Updatable) Include or exclude a ruleAction object.
    samplingRate Number
    (Updatable) Sampling interval as 1 of X, where X is an integer not greater than 100000.
    sourceCidr String
    (Updatable) Traffic from this CIDR will be captured in the flow log.
    tcpOptions Property Map
    (Updatable) Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. If you specify TCP as the protocol but omit this object, then all destination ports are allowed.
    udpOptions Property Map
    (Updatable) Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. If you specify UDP as the protocol but omit this object, then all destination ports are allowed.

    CaptureFilterFlowLogCaptureFilterRuleIcmpOptions, CaptureFilterFlowLogCaptureFilterRuleIcmpOptionsArgs

    Type int
    (Updatable) The ICMP type.
    Code int
    (Updatable) The ICMP code (optional).
    Type int
    (Updatable) The ICMP type.
    Code int
    (Updatable) The ICMP code (optional).
    type Integer
    (Updatable) The ICMP type.
    code Integer
    (Updatable) The ICMP code (optional).
    type number
    (Updatable) The ICMP type.
    code number
    (Updatable) The ICMP code (optional).
    type int
    (Updatable) The ICMP type.
    code int
    (Updatable) The ICMP code (optional).
    type Number
    (Updatable) The ICMP type.
    code Number
    (Updatable) The ICMP code (optional).

    CaptureFilterFlowLogCaptureFilterRuleTcpOptions, CaptureFilterFlowLogCaptureFilterRuleTcpOptionsArgs

    CaptureFilterFlowLogCaptureFilterRuleTcpOptionsDestinationPortRange, CaptureFilterFlowLogCaptureFilterRuleTcpOptionsDestinationPortRangeArgs

    Max int
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    Min int
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    Max int
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    Min int
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    max Integer
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min Integer
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    max number
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min number
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    max int
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min int
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    max Number
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min Number
    (Updatable) The minimum port number, which must not be greater than the maximum port number.

    CaptureFilterFlowLogCaptureFilterRuleTcpOptionsSourcePortRange, CaptureFilterFlowLogCaptureFilterRuleTcpOptionsSourcePortRangeArgs

    Max int
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    Min int
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    Max int
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    Min int
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    max Integer
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min Integer
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    max number
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min number
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    max int
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min int
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    max Number
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min Number
    (Updatable) The minimum port number, which must not be greater than the maximum port number.

    CaptureFilterFlowLogCaptureFilterRuleUdpOptions, CaptureFilterFlowLogCaptureFilterRuleUdpOptionsArgs

    CaptureFilterFlowLogCaptureFilterRuleUdpOptionsDestinationPortRange, CaptureFilterFlowLogCaptureFilterRuleUdpOptionsDestinationPortRangeArgs

    Max int
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    Min int
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    Max int
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    Min int
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    max Integer
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min Integer
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    max number
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min number
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    max int
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min int
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    max Number
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min Number
    (Updatable) The minimum port number, which must not be greater than the maximum port number.

    CaptureFilterFlowLogCaptureFilterRuleUdpOptionsSourcePortRange, CaptureFilterFlowLogCaptureFilterRuleUdpOptionsSourcePortRangeArgs

    Max int
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    Min int
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    Max int
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    Min int
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    max Integer
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min Integer
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    max number
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min number
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    max int
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min int
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    max Number
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min Number
    (Updatable) The minimum port number, which must not be greater than the maximum port number.

    CaptureFilterVtapCaptureFilterRule, CaptureFilterVtapCaptureFilterRuleArgs

    TrafficDirection string
    (Updatable) The traffic direction the VTAP is configured to mirror.
    DestinationCidr string
    (Updatable) Traffic sent to this CIDR block through the VTAP source will be mirrored to the VTAP target.
    IcmpOptions CaptureFilterVtapCaptureFilterRuleIcmpOptions

    (Updatable) Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:

    If you specify ICMP or ICMPv6 as the protocol but omit this object, then all ICMP types and codes are allowed. If you do provide this object, the type is required and the code is optional. To enable MTU negotiation for ingress internet traffic via IPv4, make sure to allow type 3 ("Destination Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify multiple codes for a single type, create a separate security list rule for each.

    Protocol string
    (Updatable) The transport protocol used in the filter. If do not choose a protocol, all protocols will be used in the filter. Supported options are:

    • 1 = ICMP
    • 6 = TCP
    • 17 = UDP
    RuleAction string
    (Updatable) Include or exclude packets meeting this definition from mirrored traffic.
    SourceCidr string
    (Updatable) Traffic from this CIDR block to the VTAP source will be mirrored to the VTAP target.
    TcpOptions CaptureFilterVtapCaptureFilterRuleTcpOptions
    (Updatable) Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. If you specify TCP as the protocol but omit this object, then all destination ports are allowed.
    UdpOptions CaptureFilterVtapCaptureFilterRuleUdpOptions
    (Updatable) Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. If you specify UDP as the protocol but omit this object, then all destination ports are allowed.
    TrafficDirection string
    (Updatable) The traffic direction the VTAP is configured to mirror.
    DestinationCidr string
    (Updatable) Traffic sent to this CIDR block through the VTAP source will be mirrored to the VTAP target.
    IcmpOptions CaptureFilterVtapCaptureFilterRuleIcmpOptions

    (Updatable) Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:

    If you specify ICMP or ICMPv6 as the protocol but omit this object, then all ICMP types and codes are allowed. If you do provide this object, the type is required and the code is optional. To enable MTU negotiation for ingress internet traffic via IPv4, make sure to allow type 3 ("Destination Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify multiple codes for a single type, create a separate security list rule for each.

    Protocol string
    (Updatable) The transport protocol used in the filter. If do not choose a protocol, all protocols will be used in the filter. Supported options are:

    • 1 = ICMP
    • 6 = TCP
    • 17 = UDP
    RuleAction string
    (Updatable) Include or exclude packets meeting this definition from mirrored traffic.
    SourceCidr string
    (Updatable) Traffic from this CIDR block to the VTAP source will be mirrored to the VTAP target.
    TcpOptions CaptureFilterVtapCaptureFilterRuleTcpOptions
    (Updatable) Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. If you specify TCP as the protocol but omit this object, then all destination ports are allowed.
    UdpOptions CaptureFilterVtapCaptureFilterRuleUdpOptions
    (Updatable) Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. If you specify UDP as the protocol but omit this object, then all destination ports are allowed.
    trafficDirection String
    (Updatable) The traffic direction the VTAP is configured to mirror.
    destinationCidr String
    (Updatable) Traffic sent to this CIDR block through the VTAP source will be mirrored to the VTAP target.
    icmpOptions CaptureFilterVtapCaptureFilterRuleIcmpOptions

    (Updatable) Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:

    If you specify ICMP or ICMPv6 as the protocol but omit this object, then all ICMP types and codes are allowed. If you do provide this object, the type is required and the code is optional. To enable MTU negotiation for ingress internet traffic via IPv4, make sure to allow type 3 ("Destination Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify multiple codes for a single type, create a separate security list rule for each.

    protocol String
    (Updatable) The transport protocol used in the filter. If do not choose a protocol, all protocols will be used in the filter. Supported options are:

    • 1 = ICMP
    • 6 = TCP
    • 17 = UDP
    ruleAction String
    (Updatable) Include or exclude packets meeting this definition from mirrored traffic.
    sourceCidr String
    (Updatable) Traffic from this CIDR block to the VTAP source will be mirrored to the VTAP target.
    tcpOptions CaptureFilterVtapCaptureFilterRuleTcpOptions
    (Updatable) Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. If you specify TCP as the protocol but omit this object, then all destination ports are allowed.
    udpOptions CaptureFilterVtapCaptureFilterRuleUdpOptions
    (Updatable) Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. If you specify UDP as the protocol but omit this object, then all destination ports are allowed.
    trafficDirection string
    (Updatable) The traffic direction the VTAP is configured to mirror.
    destinationCidr string
    (Updatable) Traffic sent to this CIDR block through the VTAP source will be mirrored to the VTAP target.
    icmpOptions CaptureFilterVtapCaptureFilterRuleIcmpOptions

    (Updatable) Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:

    If you specify ICMP or ICMPv6 as the protocol but omit this object, then all ICMP types and codes are allowed. If you do provide this object, the type is required and the code is optional. To enable MTU negotiation for ingress internet traffic via IPv4, make sure to allow type 3 ("Destination Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify multiple codes for a single type, create a separate security list rule for each.

    protocol string
    (Updatable) The transport protocol used in the filter. If do not choose a protocol, all protocols will be used in the filter. Supported options are:

    • 1 = ICMP
    • 6 = TCP
    • 17 = UDP
    ruleAction string
    (Updatable) Include or exclude packets meeting this definition from mirrored traffic.
    sourceCidr string
    (Updatable) Traffic from this CIDR block to the VTAP source will be mirrored to the VTAP target.
    tcpOptions CaptureFilterVtapCaptureFilterRuleTcpOptions
    (Updatable) Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. If you specify TCP as the protocol but omit this object, then all destination ports are allowed.
    udpOptions CaptureFilterVtapCaptureFilterRuleUdpOptions
    (Updatable) Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. If you specify UDP as the protocol but omit this object, then all destination ports are allowed.
    traffic_direction str
    (Updatable) The traffic direction the VTAP is configured to mirror.
    destination_cidr str
    (Updatable) Traffic sent to this CIDR block through the VTAP source will be mirrored to the VTAP target.
    icmp_options core.CaptureFilterVtapCaptureFilterRuleIcmpOptions

    (Updatable) Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:

    If you specify ICMP or ICMPv6 as the protocol but omit this object, then all ICMP types and codes are allowed. If you do provide this object, the type is required and the code is optional. To enable MTU negotiation for ingress internet traffic via IPv4, make sure to allow type 3 ("Destination Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify multiple codes for a single type, create a separate security list rule for each.

    protocol str
    (Updatable) The transport protocol used in the filter. If do not choose a protocol, all protocols will be used in the filter. Supported options are:

    • 1 = ICMP
    • 6 = TCP
    • 17 = UDP
    rule_action str
    (Updatable) Include or exclude packets meeting this definition from mirrored traffic.
    source_cidr str
    (Updatable) Traffic from this CIDR block to the VTAP source will be mirrored to the VTAP target.
    tcp_options core.CaptureFilterVtapCaptureFilterRuleTcpOptions
    (Updatable) Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. If you specify TCP as the protocol but omit this object, then all destination ports are allowed.
    udp_options core.CaptureFilterVtapCaptureFilterRuleUdpOptions
    (Updatable) Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. If you specify UDP as the protocol but omit this object, then all destination ports are allowed.
    trafficDirection String
    (Updatable) The traffic direction the VTAP is configured to mirror.
    destinationCidr String
    (Updatable) Traffic sent to this CIDR block through the VTAP source will be mirrored to the VTAP target.
    icmpOptions Property Map

    (Updatable) Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code as defined in:

    If you specify ICMP or ICMPv6 as the protocol but omit this object, then all ICMP types and codes are allowed. If you do provide this object, the type is required and the code is optional. To enable MTU negotiation for ingress internet traffic via IPv4, make sure to allow type 3 ("Destination Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify multiple codes for a single type, create a separate security list rule for each.

    protocol String
    (Updatable) The transport protocol used in the filter. If do not choose a protocol, all protocols will be used in the filter. Supported options are:

    • 1 = ICMP
    • 6 = TCP
    • 17 = UDP
    ruleAction String
    (Updatable) Include or exclude packets meeting this definition from mirrored traffic.
    sourceCidr String
    (Updatable) Traffic from this CIDR block to the VTAP source will be mirrored to the VTAP target.
    tcpOptions Property Map
    (Updatable) Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. If you specify TCP as the protocol but omit this object, then all destination ports are allowed.
    udpOptions Property Map
    (Updatable) Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. If you specify UDP as the protocol but omit this object, then all destination ports are allowed.

    CaptureFilterVtapCaptureFilterRuleIcmpOptions, CaptureFilterVtapCaptureFilterRuleIcmpOptionsArgs

    Type int
    (Updatable) The ICMP type.
    Code int
    (Updatable) The ICMP code (optional).
    Type int
    (Updatable) The ICMP type.
    Code int
    (Updatable) The ICMP code (optional).
    type Integer
    (Updatable) The ICMP type.
    code Integer
    (Updatable) The ICMP code (optional).
    type number
    (Updatable) The ICMP type.
    code number
    (Updatable) The ICMP code (optional).
    type int
    (Updatable) The ICMP type.
    code int
    (Updatable) The ICMP code (optional).
    type Number
    (Updatable) The ICMP type.
    code Number
    (Updatable) The ICMP code (optional).

    CaptureFilterVtapCaptureFilterRuleTcpOptions, CaptureFilterVtapCaptureFilterRuleTcpOptionsArgs

    CaptureFilterVtapCaptureFilterRuleTcpOptionsDestinationPortRange, CaptureFilterVtapCaptureFilterRuleTcpOptionsDestinationPortRangeArgs

    Max int
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    Min int
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    Max int
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    Min int
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    max Integer
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min Integer
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    max number
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min number
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    max int
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min int
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    max Number
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min Number
    (Updatable) The minimum port number, which must not be greater than the maximum port number.

    CaptureFilterVtapCaptureFilterRuleTcpOptionsSourcePortRange, CaptureFilterVtapCaptureFilterRuleTcpOptionsSourcePortRangeArgs

    Max int
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    Min int
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    Max int
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    Min int
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    max Integer
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min Integer
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    max number
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min number
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    max int
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min int
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    max Number
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min Number
    (Updatable) The minimum port number, which must not be greater than the maximum port number.

    CaptureFilterVtapCaptureFilterRuleUdpOptions, CaptureFilterVtapCaptureFilterRuleUdpOptionsArgs

    CaptureFilterVtapCaptureFilterRuleUdpOptionsDestinationPortRange, CaptureFilterVtapCaptureFilterRuleUdpOptionsDestinationPortRangeArgs

    Max int
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    Min int
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    Max int
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    Min int
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    max Integer
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min Integer
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    max number
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min number
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    max int
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min int
    (Updatable) The minimum port number, which must not be greater than the maximum port number.
    max Number
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min Number
    (Updatable) The minimum port number, which must not be greater than the maximum port number.

    CaptureFilterVtapCaptureFilterRuleUdpOptionsSourcePortRange, CaptureFilterVtapCaptureFilterRuleUdpOptionsSourcePortRangeArgs

    Max int
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    Min int

    (Updatable) The minimum port number, which must not be greater than the maximum port number.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Max int
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    Min int

    (Updatable) The minimum port number, which must not be greater than the maximum port number.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    max Integer
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min Integer

    (Updatable) The minimum port number, which must not be greater than the maximum port number.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    max number
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min number

    (Updatable) The minimum port number, which must not be greater than the maximum port number.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    max int
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min int

    (Updatable) The minimum port number, which must not be greater than the maximum port number.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    max Number
    (Updatable) The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
    min Number

    (Updatable) The minimum port number, which must not be greater than the maximum port number.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Import

    CaptureFilters can be imported using the id, e.g.

    $ pulumi import oci:Core/captureFilter:CaptureFilter test_capture_filter "id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.40.0 published on Wednesday, Jun 12, 2024 by Pulumi