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

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.getTrafficMirrorSession

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 schema for AWS::EC2::TrafficMirrorSession

    Using getTrafficMirrorSession

    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 getTrafficMirrorSession(args: GetTrafficMirrorSessionArgs, opts?: InvokeOptions): Promise<GetTrafficMirrorSessionResult>
    function getTrafficMirrorSessionOutput(args: GetTrafficMirrorSessionOutputArgs, opts?: InvokeOptions): Output<GetTrafficMirrorSessionResult>
    def get_traffic_mirror_session(id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetTrafficMirrorSessionResult
    def get_traffic_mirror_session_output(id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetTrafficMirrorSessionResult]
    func LookupTrafficMirrorSession(ctx *Context, args *LookupTrafficMirrorSessionArgs, opts ...InvokeOption) (*LookupTrafficMirrorSessionResult, error)
    func LookupTrafficMirrorSessionOutput(ctx *Context, args *LookupTrafficMirrorSessionOutputArgs, opts ...InvokeOption) LookupTrafficMirrorSessionResultOutput

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

    public static class GetTrafficMirrorSession 
    {
        public static Task<GetTrafficMirrorSessionResult> InvokeAsync(GetTrafficMirrorSessionArgs args, InvokeOptions? opts = null)
        public static Output<GetTrafficMirrorSessionResult> Invoke(GetTrafficMirrorSessionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTrafficMirrorSessionResult> getTrafficMirrorSession(GetTrafficMirrorSessionArgs args, InvokeOptions options)
    public static Output<GetTrafficMirrorSessionResult> getTrafficMirrorSession(GetTrafficMirrorSessionArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws-native:ec2:getTrafficMirrorSession
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ID of a Traffic Mirror session.
    Id string
    The ID of a Traffic Mirror session.
    id String
    The ID of a Traffic Mirror session.
    id string
    The ID of a Traffic Mirror session.
    id str
    The ID of a Traffic Mirror session.
    id String
    The ID of a Traffic Mirror session.

    getTrafficMirrorSession Result

    The following output properties are available:

    Description string
    The description of the Traffic Mirror session.
    Id string
    The ID of a Traffic Mirror session.
    NetworkInterfaceId string
    The ID of the source network interface.
    OwnerId string
    The ID of the account that owns the Traffic Mirror session.
    PacketLength int
    The number of bytes in each packet to mirror.
    SessionNumber 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.
    Tags List<Pulumi.AwsNative.Outputs.Tag>
    The tags assigned to the Traffic Mirror session.
    TrafficMirrorFilterId string
    The ID of a Traffic Mirror filter.
    TrafficMirrorTargetId string
    The ID of a Traffic Mirror target.
    VirtualNetworkId int
    The VXLAN ID for the Traffic Mirror session.
    Description string
    The description of the Traffic Mirror session.
    Id string
    The ID of a Traffic Mirror session.
    NetworkInterfaceId string
    The ID of the source network interface.
    OwnerId string
    The ID of the account that owns the Traffic Mirror session.
    PacketLength int
    The number of bytes in each packet to mirror.
    SessionNumber 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.
    Tags Tag
    The tags assigned to the Traffic Mirror session.
    TrafficMirrorFilterId string
    The ID of a Traffic Mirror filter.
    TrafficMirrorTargetId string
    The ID of a Traffic Mirror target.
    VirtualNetworkId int
    The VXLAN ID for the Traffic Mirror session.
    description String
    The description of the Traffic Mirror session.
    id String
    The ID of a Traffic Mirror session.
    networkInterfaceId String
    The ID of the source network interface.
    ownerId String
    The ID of the account that owns the Traffic Mirror session.
    packetLength Integer
    The number of bytes in each packet to mirror.
    sessionNumber 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.
    tags List<Tag>
    The tags assigned to the Traffic Mirror session.
    trafficMirrorFilterId String
    The ID of a Traffic Mirror filter.
    trafficMirrorTargetId String
    The ID of a Traffic Mirror target.
    virtualNetworkId Integer
    The VXLAN ID for the Traffic Mirror session.
    description string
    The description of the Traffic Mirror session.
    id string
    The ID of a Traffic Mirror session.
    networkInterfaceId string
    The ID of the source network interface.
    ownerId string
    The ID of the account that owns the Traffic Mirror session.
    packetLength number
    The number of bytes in each packet to mirror.
    sessionNumber 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.
    tags Tag[]
    The tags assigned to the Traffic Mirror session.
    trafficMirrorFilterId string
    The ID of a Traffic Mirror filter.
    trafficMirrorTargetId string
    The ID of a Traffic Mirror target.
    virtualNetworkId number
    The VXLAN ID for the Traffic Mirror session.
    description str
    The description of the Traffic Mirror session.
    id str
    The ID of a Traffic Mirror session.
    network_interface_id str
    The ID of the source network interface.
    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.
    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.
    tags Sequence[root_Tag]
    The tags assigned to the Traffic Mirror session.
    traffic_mirror_filter_id str
    The ID of a Traffic Mirror filter.
    traffic_mirror_target_id str
    The ID of a Traffic Mirror target.
    virtual_network_id int
    The VXLAN ID for the Traffic Mirror session.
    description String
    The description of the Traffic Mirror session.
    id String
    The ID of a Traffic Mirror session.
    networkInterfaceId String
    The ID of the source network interface.
    ownerId String
    The ID of the account that owns the Traffic Mirror session.
    packetLength Number
    The number of bytes in each packet to mirror.
    sessionNumber 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.
    tags List<Property Map>
    The tags assigned to the Traffic Mirror session.
    trafficMirrorFilterId String
    The ID of a Traffic Mirror filter.
    trafficMirrorTargetId String
    The ID of a Traffic Mirror target.
    virtualNetworkId Number
    The VXLAN ID for the Traffic Mirror session.

    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

    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