1. Packages
  2. AWS
  3. API Docs
  4. location
  5. getTracker
AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi

aws.location.getTracker

Explore with Pulumi AI

AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi

Retrieve information about a Location Service Tracker.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = aws.location.getTracker({
    trackerName: "example",
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.location.get_tracker(tracker_name="example")
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/location"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := location.LookupTracker(ctx, &location.LookupTrackerArgs{
			TrackerName: "example",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = Aws.Location.GetTracker.Invoke(new()
    {
        TrackerName = "example",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.location.LocationFunctions;
import com.pulumi.aws.location.inputs.GetTrackerArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = LocationFunctions.getTracker(GetTrackerArgs.builder()
            .trackerName("example")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: aws:location:getTracker
      arguments:
        trackerName: example
Copy

Using getTracker

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 getTracker(args: GetTrackerArgs, opts?: InvokeOptions): Promise<GetTrackerResult>
function getTrackerOutput(args: GetTrackerOutputArgs, opts?: InvokeOptions): Output<GetTrackerResult>
Copy
def get_tracker(tags: Optional[Mapping[str, str]] = None,
                tracker_name: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetTrackerResult
def get_tracker_output(tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                tracker_name: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetTrackerResult]
Copy
func LookupTracker(ctx *Context, args *LookupTrackerArgs, opts ...InvokeOption) (*LookupTrackerResult, error)
func LookupTrackerOutput(ctx *Context, args *LookupTrackerOutputArgs, opts ...InvokeOption) LookupTrackerResultOutput
Copy

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

public static class GetTracker 
{
    public static Task<GetTrackerResult> InvokeAsync(GetTrackerArgs args, InvokeOptions? opts = null)
    public static Output<GetTrackerResult> Invoke(GetTrackerInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetTrackerResult> getTracker(GetTrackerArgs args, InvokeOptions options)
public static Output<GetTrackerResult> getTracker(GetTrackerArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:location/getTracker:getTracker
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

TrackerName This property is required. string
Name of the tracker resource.
Tags Dictionary<string, string>
Key-value map of resource tags for the tracker.
TrackerName This property is required. string
Name of the tracker resource.
Tags map[string]string
Key-value map of resource tags for the tracker.
trackerName This property is required. String
Name of the tracker resource.
tags Map<String,String>
Key-value map of resource tags for the tracker.
trackerName This property is required. string
Name of the tracker resource.
tags {[key: string]: string}
Key-value map of resource tags for the tracker.
tracker_name This property is required. str
Name of the tracker resource.
tags Mapping[str, str]
Key-value map of resource tags for the tracker.
trackerName This property is required. String
Name of the tracker resource.
tags Map<String>
Key-value map of resource tags for the tracker.

getTracker Result

The following output properties are available:

CreateTime string
Timestamp for when the tracker resource was created in ISO 8601 format.
Description string
Optional description for the tracker resource.
Id string
The provider-assigned unique ID for this managed resource.
KmsKeyId string
Key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
PositionFiltering string
Position filtering method of the tracker resource.
Tags Dictionary<string, string>
Key-value map of resource tags for the tracker.
TrackerArn string
ARN for the tracker resource. Used when you need to specify a resource across all AWS.
TrackerName string
UpdateTime string
Timestamp for when the tracker resource was last updated in ISO 8601 format.
CreateTime string
Timestamp for when the tracker resource was created in ISO 8601 format.
Description string
Optional description for the tracker resource.
Id string
The provider-assigned unique ID for this managed resource.
KmsKeyId string
Key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
PositionFiltering string
Position filtering method of the tracker resource.
Tags map[string]string
Key-value map of resource tags for the tracker.
TrackerArn string
ARN for the tracker resource. Used when you need to specify a resource across all AWS.
TrackerName string
UpdateTime string
Timestamp for when the tracker resource was last updated in ISO 8601 format.
createTime String
Timestamp for when the tracker resource was created in ISO 8601 format.
description String
Optional description for the tracker resource.
id String
The provider-assigned unique ID for this managed resource.
kmsKeyId String
Key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
positionFiltering String
Position filtering method of the tracker resource.
tags Map<String,String>
Key-value map of resource tags for the tracker.
trackerArn String
ARN for the tracker resource. Used when you need to specify a resource across all AWS.
trackerName String
updateTime String
Timestamp for when the tracker resource was last updated in ISO 8601 format.
createTime string
Timestamp for when the tracker resource was created in ISO 8601 format.
description string
Optional description for the tracker resource.
id string
The provider-assigned unique ID for this managed resource.
kmsKeyId string
Key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
positionFiltering string
Position filtering method of the tracker resource.
tags {[key: string]: string}
Key-value map of resource tags for the tracker.
trackerArn string
ARN for the tracker resource. Used when you need to specify a resource across all AWS.
trackerName string
updateTime string
Timestamp for when the tracker resource was last updated in ISO 8601 format.
create_time str
Timestamp for when the tracker resource was created in ISO 8601 format.
description str
Optional description for the tracker resource.
id str
The provider-assigned unique ID for this managed resource.
kms_key_id str
Key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
position_filtering str
Position filtering method of the tracker resource.
tags Mapping[str, str]
Key-value map of resource tags for the tracker.
tracker_arn str
ARN for the tracker resource. Used when you need to specify a resource across all AWS.
tracker_name str
update_time str
Timestamp for when the tracker resource was last updated in ISO 8601 format.
createTime String
Timestamp for when the tracker resource was created in ISO 8601 format.
description String
Optional description for the tracker resource.
id String
The provider-assigned unique ID for this managed resource.
kmsKeyId String
Key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
positionFiltering String
Position filtering method of the tracker resource.
tags Map<String>
Key-value map of resource tags for the tracker.
trackerArn String
ARN for the tracker resource. Used when you need to specify a resource across all AWS.
trackerName String
updateTime String
Timestamp for when the tracker resource was last updated in ISO 8601 format.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.
AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi