1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. ec2
  5. getTrafficMirrorFilterRule

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.32.0 published on Wednesday, Aug 13, 2025 by Pulumi

aws-native.ec2.getTrafficMirrorFilterRule

Explore with Pulumi AI

aws-native logo

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.32.0 published on Wednesday, Aug 13, 2025 by Pulumi

    Resource Type definition for for AWS::EC2::TrafficMirrorFilterRule

    Using getTrafficMirrorFilterRule

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getTrafficMirrorFilterRule(args: GetTrafficMirrorFilterRuleArgs, opts?: InvokeOptions): Promise<GetTrafficMirrorFilterRuleResult>
    function getTrafficMirrorFilterRuleOutput(args: GetTrafficMirrorFilterRuleOutputArgs, opts?: InvokeOptions): Output<GetTrafficMirrorFilterRuleResult>
    def get_traffic_mirror_filter_rule(traffic_mirror_filter_rule_id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetTrafficMirrorFilterRuleResult
    def get_traffic_mirror_filter_rule_output(traffic_mirror_filter_rule_id: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetTrafficMirrorFilterRuleResult]
    func LookupTrafficMirrorFilterRule(ctx *Context, args *LookupTrafficMirrorFilterRuleArgs, opts ...InvokeOption) (*LookupTrafficMirrorFilterRuleResult, error)
    func LookupTrafficMirrorFilterRuleOutput(ctx *Context, args *LookupTrafficMirrorFilterRuleOutputArgs, opts ...InvokeOption) LookupTrafficMirrorFilterRuleResultOutput

    > Note: This function is named LookupTrafficMirrorFilterRule in the Go SDK.

    public static class GetTrafficMirrorFilterRule 
    {
        public static Task<GetTrafficMirrorFilterRuleResult> InvokeAsync(GetTrafficMirrorFilterRuleArgs args, InvokeOptions? opts = null)
        public static Output<GetTrafficMirrorFilterRuleResult> Invoke(GetTrafficMirrorFilterRuleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTrafficMirrorFilterRuleResult> getTrafficMirrorFilterRule(GetTrafficMirrorFilterRuleArgs args, InvokeOptions options)
    public static Output<GetTrafficMirrorFilterRuleResult> getTrafficMirrorFilterRule(GetTrafficMirrorFilterRuleArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws-native:ec2:getTrafficMirrorFilterRule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    TrafficMirrorFilterRuleId string
    The ID of the Traffic Mirror Filter rule.
    TrafficMirrorFilterRuleId string
    The ID of the Traffic Mirror Filter rule.
    trafficMirrorFilterRuleId String
    The ID of the Traffic Mirror Filter rule.
    trafficMirrorFilterRuleId string
    The ID of the Traffic Mirror Filter rule.
    traffic_mirror_filter_rule_id str
    The ID of the Traffic Mirror Filter rule.
    trafficMirrorFilterRuleId String
    The ID of the Traffic Mirror Filter rule.

    getTrafficMirrorFilterRule Result

    The following output properties are available:

    Description string
    The description of the Traffic Mirror Filter rule.
    DestinationCidrBlock string
    The destination CIDR block to assign to the Traffic Mirror rule.
    DestinationPortRange Pulumi.AwsNative.Ec2.Outputs.TrafficMirrorFilterRuleTrafficMirrorPortRange
    The destination port range.
    Protocol int
    The number of protocol, for example 17 (UDP), to assign to the Traffic Mirror rule.
    RuleAction string
    The action to take on the filtered traffic (accept/reject).
    RuleNumber int
    The number of the Traffic Mirror rule.
    SourceCidrBlock string
    The source CIDR block to assign to the Traffic Mirror Filter rule.
    SourcePortRange Pulumi.AwsNative.Ec2.Outputs.TrafficMirrorFilterRuleTrafficMirrorPortRange
    The source port range.
    Tags List<Pulumi.AwsNative.Outputs.Tag>
    Any tags assigned to the Traffic Mirror Filter rule.
    TrafficDirection string
    The direction of traffic (ingress/egress).
    TrafficMirrorFilterRuleId string
    The ID of the Traffic Mirror Filter rule.
    Description string
    The description of the Traffic Mirror Filter rule.
    DestinationCidrBlock string
    The destination CIDR block to assign to the Traffic Mirror rule.
    DestinationPortRange TrafficMirrorFilterRuleTrafficMirrorPortRange
    The destination port range.
    Protocol int
    The number of protocol, for example 17 (UDP), to assign to the Traffic Mirror rule.
    RuleAction string
    The action to take on the filtered traffic (accept/reject).
    RuleNumber int
    The number of the Traffic Mirror rule.
    SourceCidrBlock string
    The source CIDR block to assign to the Traffic Mirror Filter rule.
    SourcePortRange TrafficMirrorFilterRuleTrafficMirrorPortRange
    The source port range.
    Tags Tag
    Any tags assigned to the Traffic Mirror Filter rule.
    TrafficDirection string
    The direction of traffic (ingress/egress).
    TrafficMirrorFilterRuleId string
    The ID of the Traffic Mirror Filter rule.
    description String
    The description of the Traffic Mirror Filter rule.
    destinationCidrBlock String
    The destination CIDR block to assign to the Traffic Mirror rule.
    destinationPortRange TrafficMirrorFilterRuleTrafficMirrorPortRange
    The destination port range.
    protocol Integer
    The number of protocol, for example 17 (UDP), to assign to the Traffic Mirror rule.
    ruleAction String
    The action to take on the filtered traffic (accept/reject).
    ruleNumber Integer
    The number of the Traffic Mirror rule.
    sourceCidrBlock String
    The source CIDR block to assign to the Traffic Mirror Filter rule.
    sourcePortRange TrafficMirrorFilterRuleTrafficMirrorPortRange
    The source port range.
    tags List<Tag>
    Any tags assigned to the Traffic Mirror Filter rule.
    trafficDirection String
    The direction of traffic (ingress/egress).
    trafficMirrorFilterRuleId String
    The ID of the Traffic Mirror Filter rule.
    description string
    The description of the Traffic Mirror Filter rule.
    destinationCidrBlock string
    The destination CIDR block to assign to the Traffic Mirror rule.
    destinationPortRange TrafficMirrorFilterRuleTrafficMirrorPortRange
    The destination port range.
    protocol number
    The number of protocol, for example 17 (UDP), to assign to the Traffic Mirror rule.
    ruleAction string
    The action to take on the filtered traffic (accept/reject).
    ruleNumber number
    The number of the Traffic Mirror rule.
    sourceCidrBlock string
    The source CIDR block to assign to the Traffic Mirror Filter rule.
    sourcePortRange TrafficMirrorFilterRuleTrafficMirrorPortRange
    The source port range.
    tags Tag[]
    Any tags assigned to the Traffic Mirror Filter rule.
    trafficDirection string
    The direction of traffic (ingress/egress).
    trafficMirrorFilterRuleId string
    The ID of the Traffic Mirror Filter rule.
    description str
    The description of the Traffic Mirror Filter rule.
    destination_cidr_block str
    The destination CIDR block to assign to the Traffic Mirror rule.
    destination_port_range TrafficMirrorFilterRuleTrafficMirrorPortRange
    The destination port range.
    protocol int
    The number of protocol, for example 17 (UDP), to assign to the Traffic Mirror rule.
    rule_action str
    The action to take on the filtered traffic (accept/reject).
    rule_number int
    The number of the Traffic Mirror rule.
    source_cidr_block str
    The source CIDR block to assign to the Traffic Mirror Filter rule.
    source_port_range TrafficMirrorFilterRuleTrafficMirrorPortRange
    The source port range.
    tags Sequence[root_Tag]
    Any tags assigned to the Traffic Mirror Filter rule.
    traffic_direction str
    The direction of traffic (ingress/egress).
    traffic_mirror_filter_rule_id str
    The ID of the Traffic Mirror Filter rule.
    description String
    The description of the Traffic Mirror Filter rule.
    destinationCidrBlock String
    The destination CIDR block to assign to the Traffic Mirror rule.
    destinationPortRange Property Map
    The destination port range.
    protocol Number
    The number of protocol, for example 17 (UDP), to assign to the Traffic Mirror rule.
    ruleAction String
    The action to take on the filtered traffic (accept/reject).
    ruleNumber Number
    The number of the Traffic Mirror rule.
    sourceCidrBlock String
    The source CIDR block to assign to the Traffic Mirror Filter rule.
    sourcePortRange Property Map
    The source port range.
    tags List<Property Map>
    Any tags assigned to the Traffic Mirror Filter rule.
    trafficDirection String
    The direction of traffic (ingress/egress).
    trafficMirrorFilterRuleId String
    The ID of the Traffic Mirror Filter rule.

    Supporting Types

    Tag

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    TrafficMirrorFilterRuleTrafficMirrorPortRange

    FromPort int
    The first port in the Traffic Mirror port range.
    ToPort int
    The last port in the Traffic Mirror port range.
    FromPort int
    The first port in the Traffic Mirror port range.
    ToPort int
    The last port in the Traffic Mirror port range.
    fromPort Integer
    The first port in the Traffic Mirror port range.
    toPort Integer
    The last port in the Traffic Mirror port range.
    fromPort number
    The first port in the Traffic Mirror port range.
    toPort number
    The last port in the Traffic Mirror port range.
    from_port int
    The first port in the Traffic Mirror port range.
    to_port int
    The last port in the Traffic Mirror port range.
    fromPort Number
    The first port in the Traffic Mirror port range.
    toPort Number
    The last port in the Traffic Mirror port range.

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    We recommend new projects start with resources from the AWS provider.

    AWS Cloud Control v1.32.0 published on Wednesday, Aug 13, 2025 by Pulumi