We recommend new projects start with resources from the AWS provider.
aws-native.ec2.TrafficMirrorSession
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource schema for AWS::EC2::TrafficMirrorSession
Create TrafficMirrorSession Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TrafficMirrorSession(name: string, args: TrafficMirrorSessionArgs, opts?: CustomResourceOptions);
@overload
def TrafficMirrorSession(resource_name: str,
args: TrafficMirrorSessionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TrafficMirrorSession(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_interface_id: Optional[str] = None,
session_number: Optional[int] = None,
traffic_mirror_filter_id: Optional[str] = None,
traffic_mirror_target_id: Optional[str] = None,
description: Optional[str] = None,
owner_id: Optional[str] = None,
packet_length: Optional[int] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None,
virtual_network_id: Optional[int] = None)
func NewTrafficMirrorSession(ctx *Context, name string, args TrafficMirrorSessionArgs, opts ...ResourceOption) (*TrafficMirrorSession, error)
public TrafficMirrorSession(string name, TrafficMirrorSessionArgs args, CustomResourceOptions? opts = null)
public TrafficMirrorSession(String name, TrafficMirrorSessionArgs args)
public TrafficMirrorSession(String name, TrafficMirrorSessionArgs args, CustomResourceOptions options)
type: aws-native:ec2:TrafficMirrorSession
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 TrafficMirrorSessionArgs
- 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 TrafficMirrorSessionArgs
- 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 TrafficMirrorSessionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TrafficMirrorSessionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TrafficMirrorSessionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TrafficMirrorSession 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 TrafficMirrorSession resource accepts the following input properties:
- Network
Interface stringId - The ID of the source network interface.
- Session
Number int - The session number determines the order in which sessions are evaluated when an interface is used by multiple sessions. The first session with a matching filter is the one that mirrors the packets.
- Traffic
Mirror stringFilter Id - The ID of a Traffic Mirror filter.
- Traffic
Mirror stringTarget Id - The ID of a Traffic Mirror target.
- Description string
- The description of the Traffic Mirror session.
- Owner
Id string - The ID of the account that owns the Traffic Mirror session.
- Packet
Length int - The number of bytes in each packet to mirror.
- List<Pulumi.
Aws Native. Inputs. Tag> - The tags assigned to the Traffic Mirror session.
- Virtual
Network intId - The VXLAN ID for the Traffic Mirror session.
- Network
Interface stringId - The ID of the source network interface.
- Session
Number int - The session number determines the order in which sessions are evaluated when an interface is used by multiple sessions. The first session with a matching filter is the one that mirrors the packets.
- Traffic
Mirror stringFilter Id - The ID of a Traffic Mirror filter.
- Traffic
Mirror stringTarget Id - The ID of a Traffic Mirror target.
- Description string
- The description of the Traffic Mirror session.
- Owner
Id string - The ID of the account that owns the Traffic Mirror session.
- Packet
Length int - The number of bytes in each packet to mirror.
- Tag
Args - The tags assigned to the Traffic Mirror session.
- Virtual
Network intId - The VXLAN ID for the Traffic Mirror session.
- network
Interface StringId - The ID of the source network interface.
- session
Number Integer - The session number determines the order in which sessions are evaluated when an interface is used by multiple sessions. The first session with a matching filter is the one that mirrors the packets.
- traffic
Mirror StringFilter Id - The ID of a Traffic Mirror filter.
- traffic
Mirror StringTarget Id - The ID of a Traffic Mirror target.
- description String
- The description of the Traffic Mirror session.
- owner
Id String - The ID of the account that owns the Traffic Mirror session.
- packet
Length Integer - The number of bytes in each packet to mirror.
- List<Tag>
- The tags assigned to the Traffic Mirror session.
- virtual
Network IntegerId - The VXLAN ID for the Traffic Mirror session.
- network
Interface stringId - The ID of the source network interface.
- session
Number number - The session number determines the order in which sessions are evaluated when an interface is used by multiple sessions. The first session with a matching filter is the one that mirrors the packets.
- traffic
Mirror stringFilter Id - The ID of a Traffic Mirror filter.
- traffic
Mirror stringTarget Id - The ID of a Traffic Mirror target.
- description string
- The description of the Traffic Mirror session.
- owner
Id string - The ID of the account that owns the Traffic Mirror session.
- packet
Length number - The number of bytes in each packet to mirror.
- Tag[]
- The tags assigned to the Traffic Mirror session.
- virtual
Network numberId - The VXLAN ID for the Traffic Mirror session.
- network_
interface_ strid - The ID of the source network interface.
- session_
number int - The session number determines the order in which sessions are evaluated when an interface is used by multiple sessions. The first session with a matching filter is the one that mirrors the packets.
- traffic_
mirror_ strfilter_ id - The ID of a Traffic Mirror filter.
- traffic_
mirror_ strtarget_ id - The ID of a Traffic Mirror target.
- description str
- The description of the Traffic Mirror session.
- owner_
id str - The ID of the account that owns the Traffic Mirror session.
- packet_
length int - The number of bytes in each packet to mirror.
- Sequence[Tag
Args] - The tags assigned to the Traffic Mirror session.
- virtual_
network_ intid - The VXLAN ID for the Traffic Mirror session.
- network
Interface StringId - The ID of the source network interface.
- session
Number Number - The session number determines the order in which sessions are evaluated when an interface is used by multiple sessions. The first session with a matching filter is the one that mirrors the packets.
- traffic
Mirror StringFilter Id - The ID of a Traffic Mirror filter.
- traffic
Mirror StringTarget Id - The ID of a Traffic Mirror target.
- description String
- The description of the Traffic Mirror session.
- owner
Id String - The ID of the account that owns the Traffic Mirror session.
- packet
Length Number - The number of bytes in each packet to mirror.
- List<Property Map>
- The tags assigned to the Traffic Mirror session.
- virtual
Network NumberId - The VXLAN ID for the Traffic Mirror session.
Outputs
All input properties are implicitly available as output properties. Additionally, the TrafficMirrorSession resource produces the following output properties:
Supporting Types
Tag, TagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.