We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.38.0 published on Wednesday, Nov 5, 2025 by Pulumi
aws-native.ec2.getTrafficMirrorSession
Start a Neo task
Explain and create an aws-native.ec2.getTrafficMirrorSession resource
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.38.0 published on Wednesday, Nov 5, 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 dictionaryThe 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.
- Network
Interface stringId - The ID of the source network interface.
- 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.
- 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.
-
List<Pulumi.
Aws Native. Outputs. Tag> - The tags assigned to the Traffic Mirror session.
- Traffic
Mirror stringFilter Id - The ID of a Traffic Mirror filter.
- Traffic
Mirror stringTarget Id - The ID of a Traffic Mirror target.
- Virtual
Network intId - 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.
- Network
Interface stringId - The ID of the source network interface.
- 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.
- 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.
- Tag
- The tags assigned to the Traffic Mirror session.
- Traffic
Mirror stringFilter Id - The ID of a Traffic Mirror filter.
- Traffic
Mirror stringTarget Id - The ID of a Traffic Mirror target.
- Virtual
Network intId - 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.
- network
Interface StringId - The ID of the source network interface.
- 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.
- 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.
- List<Tag>
- The tags assigned to the Traffic Mirror session.
- traffic
Mirror StringFilter Id - The ID of a Traffic Mirror filter.
- traffic
Mirror StringTarget Id - The ID of a Traffic Mirror target.
- virtual
Network IntegerId - 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.
- network
Interface stringId - The ID of the source network interface.
- 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.
- 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.
- Tag[]
- The tags assigned to the Traffic Mirror session.
- traffic
Mirror stringFilter Id - The ID of a Traffic Mirror filter.
- traffic
Mirror stringTarget Id - The ID of a Traffic Mirror target.
- virtual
Network numberId - 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_ strid - 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.
- Sequence[root_Tag]
- The tags assigned to the Traffic Mirror session.
- traffic_
mirror_ strfilter_ id - The ID of a Traffic Mirror filter.
- traffic_
mirror_ strtarget_ id - The ID of a Traffic Mirror target.
- virtual_
network_ intid - 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.
- network
Interface StringId - The ID of the source network interface.
- 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.
- 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.
- List<Property Map>
- The tags assigned to the Traffic Mirror session.
- traffic
Mirror StringFilter Id - The ID of a Traffic Mirror filter.
- traffic
Mirror StringTarget Id - The ID of a Traffic Mirror target.
- virtual
Network NumberId - The VXLAN ID for the Traffic Mirror session.
Supporting Types
Tag
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.38.0 published on Wednesday, Nov 5, 2025 by Pulumi
