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

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

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

    The description of the Traffic Mirror target.

    Using getTrafficMirrorTarget

    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 getTrafficMirrorTarget(args: GetTrafficMirrorTargetArgs, opts?: InvokeOptions): Promise<GetTrafficMirrorTargetResult>
    function getTrafficMirrorTargetOutput(args: GetTrafficMirrorTargetOutputArgs, opts?: InvokeOptions): Output<GetTrafficMirrorTargetResult>
    def get_traffic_mirror_target(id: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetTrafficMirrorTargetResult
    def get_traffic_mirror_target_output(id: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetTrafficMirrorTargetResult]
    func LookupTrafficMirrorTarget(ctx *Context, args *LookupTrafficMirrorTargetArgs, opts ...InvokeOption) (*LookupTrafficMirrorTargetResult, error)
    func LookupTrafficMirrorTargetOutput(ctx *Context, args *LookupTrafficMirrorTargetOutputArgs, opts ...InvokeOption) LookupTrafficMirrorTargetResultOutput

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

    public static class GetTrafficMirrorTarget 
    {
        public static Task<GetTrafficMirrorTargetResult> InvokeAsync(GetTrafficMirrorTargetArgs args, InvokeOptions? opts = null)
        public static Output<GetTrafficMirrorTargetResult> Invoke(GetTrafficMirrorTargetInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTrafficMirrorTargetResult> getTrafficMirrorTarget(GetTrafficMirrorTargetArgs args, InvokeOptions options)
    public static Output<GetTrafficMirrorTargetResult> getTrafficMirrorTarget(GetTrafficMirrorTargetArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws-native:ec2:getTrafficMirrorTarget
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Id string
    id String
    id string
    id str
    id String

    getTrafficMirrorTarget Result

    The following output properties are available:

    Id string
    Tags List<Pulumi.AwsNative.Outputs.Tag>
    The tags to assign to the Traffic Mirror target.
    Id string
    Tags Tag
    The tags to assign to the Traffic Mirror target.
    id String
    tags List<Tag>
    The tags to assign to the Traffic Mirror target.
    id string
    tags Tag[]
    The tags to assign to the Traffic Mirror target.
    id str
    tags Sequence[root_Tag]
    The tags to assign to the Traffic Mirror target.
    id String
    tags List<Property Map>
    The tags to assign to the Traffic Mirror target.

    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