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
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:
- Traffic
Mirror stringFilter Rule Id - The ID of the Traffic Mirror Filter rule.
- Traffic
Mirror stringFilter Rule Id - The ID of the Traffic Mirror Filter rule.
- traffic
Mirror StringFilter Rule Id - The ID of the Traffic Mirror Filter rule.
- traffic
Mirror stringFilter Rule Id - The ID of the Traffic Mirror Filter rule.
- traffic_
mirror_ strfilter_ rule_ id - The ID of the Traffic Mirror Filter rule.
- traffic
Mirror StringFilter Rule Id - 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.
- Destination
Cidr stringBlock - The destination CIDR block to assign to the Traffic Mirror rule.
- Destination
Port Pulumi.Range Aws Native. Ec2. Outputs. Traffic Mirror Filter Rule Traffic Mirror Port Range - The destination port range.
- Protocol int
- The number of protocol, for example 17 (UDP), to assign to the Traffic Mirror rule.
- Rule
Action string - The action to take on the filtered traffic (accept/reject).
- Rule
Number int - The number of the Traffic Mirror rule.
- Source
Cidr stringBlock - The source CIDR block to assign to the Traffic Mirror Filter rule.
- Source
Port Pulumi.Range Aws Native. Ec2. Outputs. Traffic Mirror Filter Rule Traffic Mirror Port Range - The source port range.
- List<Pulumi.
Aws Native. Outputs. Tag> - Any tags assigned to the Traffic Mirror Filter rule.
- Traffic
Direction string - The direction of traffic (ingress/egress).
- Traffic
Mirror stringFilter Rule Id - The ID of the Traffic Mirror Filter rule.
- Description string
- The description of the Traffic Mirror Filter rule.
- Destination
Cidr stringBlock - The destination CIDR block to assign to the Traffic Mirror rule.
- Destination
Port TrafficRange Mirror Filter Rule Traffic Mirror Port Range - The destination port range.
- Protocol int
- The number of protocol, for example 17 (UDP), to assign to the Traffic Mirror rule.
- Rule
Action string - The action to take on the filtered traffic (accept/reject).
- Rule
Number int - The number of the Traffic Mirror rule.
- Source
Cidr stringBlock - The source CIDR block to assign to the Traffic Mirror Filter rule.
- Source
Port TrafficRange Mirror Filter Rule Traffic Mirror Port Range - The source port range.
- Tag
- Any tags assigned to the Traffic Mirror Filter rule.
- Traffic
Direction string - The direction of traffic (ingress/egress).
- Traffic
Mirror stringFilter Rule Id - The ID of the Traffic Mirror Filter rule.
- description String
- The description of the Traffic Mirror Filter rule.
- destination
Cidr StringBlock - The destination CIDR block to assign to the Traffic Mirror rule.
- destination
Port TrafficRange Mirror Filter Rule Traffic Mirror Port Range - The destination port range.
- protocol Integer
- The number of protocol, for example 17 (UDP), to assign to the Traffic Mirror rule.
- rule
Action String - The action to take on the filtered traffic (accept/reject).
- rule
Number Integer - The number of the Traffic Mirror rule.
- source
Cidr StringBlock - The source CIDR block to assign to the Traffic Mirror Filter rule.
- source
Port TrafficRange Mirror Filter Rule Traffic Mirror Port Range - The source port range.
- List<Tag>
- Any tags assigned to the Traffic Mirror Filter rule.
- traffic
Direction String - The direction of traffic (ingress/egress).
- traffic
Mirror StringFilter Rule Id - The ID of the Traffic Mirror Filter rule.
- description string
- The description of the Traffic Mirror Filter rule.
- destination
Cidr stringBlock - The destination CIDR block to assign to the Traffic Mirror rule.
- destination
Port TrafficRange Mirror Filter Rule Traffic Mirror Port Range - The destination port range.
- protocol number
- The number of protocol, for example 17 (UDP), to assign to the Traffic Mirror rule.
- rule
Action string - The action to take on the filtered traffic (accept/reject).
- rule
Number number - The number of the Traffic Mirror rule.
- source
Cidr stringBlock - The source CIDR block to assign to the Traffic Mirror Filter rule.
- source
Port TrafficRange Mirror Filter Rule Traffic Mirror Port Range - The source port range.
- Tag[]
- Any tags assigned to the Traffic Mirror Filter rule.
- traffic
Direction string - The direction of traffic (ingress/egress).
- traffic
Mirror stringFilter Rule Id - The ID of the Traffic Mirror Filter rule.
- description str
- The description of the Traffic Mirror Filter rule.
- destination_
cidr_ strblock - The destination CIDR block to assign to the Traffic Mirror rule.
- destination_
port_ Trafficrange Mirror Filter Rule Traffic Mirror Port Range - 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_ strblock - The source CIDR block to assign to the Traffic Mirror Filter rule.
- source_
port_ Trafficrange Mirror Filter Rule Traffic Mirror Port Range - The source port range.
- Sequence[root_Tag]
- Any tags assigned to the Traffic Mirror Filter rule.
- traffic_
direction str - The direction of traffic (ingress/egress).
- traffic_
mirror_ strfilter_ rule_ id - The ID of the Traffic Mirror Filter rule.
- description String
- The description of the Traffic Mirror Filter rule.
- destination
Cidr StringBlock - The destination CIDR block to assign to the Traffic Mirror rule.
- destination
Port Property MapRange - The destination port range.
- protocol Number
- The number of protocol, for example 17 (UDP), to assign to the Traffic Mirror rule.
- rule
Action String - The action to take on the filtered traffic (accept/reject).
- rule
Number Number - The number of the Traffic Mirror rule.
- source
Cidr StringBlock - The source CIDR block to assign to the Traffic Mirror Filter rule.
- source
Port Property MapRange - The source port range.
- List<Property Map>
- Any tags assigned to the Traffic Mirror Filter rule.
- traffic
Direction String - The direction of traffic (ingress/egress).
- traffic
Mirror StringFilter Rule Id - The ID of the Traffic Mirror Filter rule.
Supporting Types
Tag
TrafficMirrorFilterRuleTrafficMirrorPortRange
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
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