We recommend new projects start with resources from the AWS provider.
aws-native.ec2.TrafficMirrorFilterRule
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for for AWS::EC2::TrafficMirrorFilterRule
Create TrafficMirrorFilterRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TrafficMirrorFilterRule(name: string, args: TrafficMirrorFilterRuleArgs, opts?: CustomResourceOptions);
@overload
def TrafficMirrorFilterRule(resource_name: str,
args: TrafficMirrorFilterRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TrafficMirrorFilterRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
destination_cidr_block: Optional[str] = None,
rule_action: Optional[str] = None,
rule_number: Optional[int] = None,
source_cidr_block: Optional[str] = None,
traffic_direction: Optional[str] = None,
traffic_mirror_filter_id: Optional[str] = None,
description: Optional[str] = None,
destination_port_range: Optional[TrafficMirrorFilterRuleTrafficMirrorPortRangeArgs] = None,
protocol: Optional[int] = None,
source_port_range: Optional[TrafficMirrorFilterRuleTrafficMirrorPortRangeArgs] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
func NewTrafficMirrorFilterRule(ctx *Context, name string, args TrafficMirrorFilterRuleArgs, opts ...ResourceOption) (*TrafficMirrorFilterRule, error)
public TrafficMirrorFilterRule(string name, TrafficMirrorFilterRuleArgs args, CustomResourceOptions? opts = null)
public TrafficMirrorFilterRule(String name, TrafficMirrorFilterRuleArgs args)
public TrafficMirrorFilterRule(String name, TrafficMirrorFilterRuleArgs args, CustomResourceOptions options)
type: aws-native:ec2:TrafficMirrorFilterRule
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 TrafficMirrorFilterRuleArgs
- 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 TrafficMirrorFilterRuleArgs
- 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 TrafficMirrorFilterRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TrafficMirrorFilterRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TrafficMirrorFilterRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TrafficMirrorFilterRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The TrafficMirrorFilterRule resource accepts the following input properties:
- Destination
Cidr stringBlock - The destination CIDR block 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.
- Traffic
Direction string - The direction of traffic (ingress/egress).
- Traffic
Mirror stringFilter Id - The ID of the filter that this rule is associated with.
- Description string
- The description of the Traffic Mirror Filter rule.
- Destination
Port Pulumi.Range Aws Native. Ec2. Inputs. 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.
- Source
Port Pulumi.Range Aws Native. Ec2. Inputs. Traffic Mirror Filter Rule Traffic Mirror Port Range - The source port range.
- List<Pulumi.
Aws Native. Inputs. Tag> - Any tags assigned to the Traffic Mirror Filter rule.
- Destination
Cidr stringBlock - The destination CIDR block 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.
- Traffic
Direction string - The direction of traffic (ingress/egress).
- Traffic
Mirror stringFilter Id - The ID of the filter that this rule is associated with.
- Description string
- The description of the Traffic Mirror Filter rule.
- Destination
Port TrafficRange Mirror Filter Rule Traffic Mirror Port Range Args - The destination port range.
- Protocol int
- The number of protocol, for example 17 (UDP), to assign to the Traffic Mirror rule.
- Source
Port TrafficRange Mirror Filter Rule Traffic Mirror Port Range Args - The source port range.
- Tag
Args - Any tags assigned to the Traffic Mirror Filter rule.
- destination
Cidr StringBlock - The destination CIDR block 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.
- traffic
Direction String - The direction of traffic (ingress/egress).
- traffic
Mirror StringFilter Id - The ID of the filter that this rule is associated with.
- description String
- The description of the Traffic Mirror Filter 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.
- 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.
- destination
Cidr stringBlock - The destination CIDR block 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.
- traffic
Direction string - The direction of traffic (ingress/egress).
- traffic
Mirror stringFilter Id - The ID of the filter that this rule is associated with.
- description string
- The description of the Traffic Mirror Filter 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.
- source
Port TrafficRange Mirror Filter Rule Traffic Mirror Port Range - The source port range.
- Tag[]
- Any tags assigned to the Traffic Mirror Filter rule.
- destination_
cidr_ strblock - The destination CIDR block 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.
- traffic_
direction str - The direction of traffic (ingress/egress).
- traffic_
mirror_ strfilter_ id - The ID of the filter that this rule is associated with.
- description str
- The description of the Traffic Mirror Filter rule.
- destination_
port_ Trafficrange Mirror Filter Rule Traffic Mirror Port Range Args - The destination port range.
- protocol int
- The number of protocol, for example 17 (UDP), to assign to the Traffic Mirror rule.
- source_
port_ Trafficrange Mirror Filter Rule Traffic Mirror Port Range Args - The source port range.
- Sequence[Tag
Args] - Any tags assigned to the Traffic Mirror Filter rule.
- destination
Cidr StringBlock - The destination CIDR block 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.
- traffic
Direction String - The direction of traffic (ingress/egress).
- traffic
Mirror StringFilter Id - The ID of the filter that this rule is associated with.
- description String
- The description of the Traffic Mirror Filter 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.
- source
Port Property MapRange - The source port range.
- List<Property Map>
- Any tags assigned to the Traffic Mirror Filter rule.
Outputs
All input properties are implicitly available as output properties. Additionally, the TrafficMirrorFilterRule resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Traffic
Mirror stringFilter Rule Id - The ID of the Traffic Mirror Filter rule.
- Id string
- The provider-assigned unique ID for this managed resource.
- Traffic
Mirror stringFilter Rule Id - The ID of the Traffic Mirror Filter rule.
- id String
- The provider-assigned unique ID for this managed resource.
- traffic
Mirror StringFilter Rule Id - The ID of the Traffic Mirror Filter rule.
- id string
- The provider-assigned unique ID for this managed resource.
- traffic
Mirror stringFilter Rule Id - The ID of the Traffic Mirror Filter rule.
- id str
- The provider-assigned unique ID for this managed resource.
- traffic_
mirror_ strfilter_ rule_ id - The ID of the Traffic Mirror Filter rule.
- id String
- The provider-assigned unique ID for this managed resource.
- traffic
Mirror StringFilter Rule Id - The ID of the Traffic Mirror Filter rule.
Supporting Types
Tag, TagArgs
TrafficMirrorFilterRuleTrafficMirrorPortRange, TrafficMirrorFilterRuleTrafficMirrorPortRangeArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.