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

aws.location.Tracker

Explore with Pulumi AI

Provides a Location Service Tracker.

Example Usage

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

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

example = aws.location.Tracker("example", 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.NewTracker(ctx, "example", &location.TrackerArgs{
			TrackerName: pulumi.String("example"),
		})
		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 = new Aws.Location.Tracker("example", 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.Tracker;
import com.pulumi.aws.location.TrackerArgs;
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) {
        var example = new Tracker("example", TrackerArgs.builder()
            .trackerName("example")
            .build());

    }
}
Copy
resources:
  example:
    type: aws:location:Tracker
    properties:
      trackerName: example
Copy

Create Tracker Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Tracker(name: string, args: TrackerArgs, opts?: CustomResourceOptions);
@overload
def Tracker(resource_name: str,
            args: TrackerArgs,
            opts: Optional[ResourceOptions] = None)

@overload
def Tracker(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            tracker_name: Optional[str] = None,
            description: Optional[str] = None,
            kms_key_id: Optional[str] = None,
            position_filtering: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None)
func NewTracker(ctx *Context, name string, args TrackerArgs, opts ...ResourceOption) (*Tracker, error)
public Tracker(string name, TrackerArgs args, CustomResourceOptions? opts = null)
public Tracker(String name, TrackerArgs args)
public Tracker(String name, TrackerArgs args, CustomResourceOptions options)
type: aws:location:Tracker
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. TrackerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. TrackerArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. TrackerArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. TrackerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. TrackerArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var trackerResource = new Aws.Location.Tracker("trackerResource", new()
{
    TrackerName = "string",
    Description = "string",
    KmsKeyId = "string",
    PositionFiltering = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := location.NewTracker(ctx, "trackerResource", &location.TrackerArgs{
	TrackerName:       pulumi.String("string"),
	Description:       pulumi.String("string"),
	KmsKeyId:          pulumi.String("string"),
	PositionFiltering: pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var trackerResource = new Tracker("trackerResource", TrackerArgs.builder()
    .trackerName("string")
    .description("string")
    .kmsKeyId("string")
    .positionFiltering("string")
    .tags(Map.of("string", "string"))
    .build());
Copy
tracker_resource = aws.location.Tracker("trackerResource",
    tracker_name="string",
    description="string",
    kms_key_id="string",
    position_filtering="string",
    tags={
        "string": "string",
    })
Copy
const trackerResource = new aws.location.Tracker("trackerResource", {
    trackerName: "string",
    description: "string",
    kmsKeyId: "string",
    positionFiltering: "string",
    tags: {
        string: "string",
    },
});
Copy
type: aws:location:Tracker
properties:
    description: string
    kmsKeyId: string
    positionFiltering: string
    tags:
        string: string
    trackerName: string
Copy

Tracker 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 Tracker resource accepts the following input properties:

TrackerName This property is required. string

The name of the tracker resource.

The following arguments are optional:

Description string
The optional description for the tracker resource.
KmsKeyId Changes to this property will trigger replacement. string
A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
PositionFiltering string
The position filtering method of the tracker resource. Valid values: TimeBased, DistanceBased, AccuracyBased. Default: TimeBased.
Tags Dictionary<string, string>
Key-value tags for the tracker. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
TrackerName This property is required. string

The name of the tracker resource.

The following arguments are optional:

Description string
The optional description for the tracker resource.
KmsKeyId Changes to this property will trigger replacement. string
A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
PositionFiltering string
The position filtering method of the tracker resource. Valid values: TimeBased, DistanceBased, AccuracyBased. Default: TimeBased.
Tags map[string]string
Key-value tags for the tracker. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
trackerName This property is required. String

The name of the tracker resource.

The following arguments are optional:

description String
The optional description for the tracker resource.
kmsKeyId Changes to this property will trigger replacement. String
A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
positionFiltering String
The position filtering method of the tracker resource. Valid values: TimeBased, DistanceBased, AccuracyBased. Default: TimeBased.
tags Map<String,String>
Key-value tags for the tracker. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
trackerName This property is required. string

The name of the tracker resource.

The following arguments are optional:

description string
The optional description for the tracker resource.
kmsKeyId Changes to this property will trigger replacement. string
A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
positionFiltering string
The position filtering method of the tracker resource. Valid values: TimeBased, DistanceBased, AccuracyBased. Default: TimeBased.
tags {[key: string]: string}
Key-value tags for the tracker. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tracker_name This property is required. str

The name of the tracker resource.

The following arguments are optional:

description str
The optional description for the tracker resource.
kms_key_id Changes to this property will trigger replacement. str
A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
position_filtering str
The position filtering method of the tracker resource. Valid values: TimeBased, DistanceBased, AccuracyBased. Default: TimeBased.
tags Mapping[str, str]
Key-value tags for the tracker. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
trackerName This property is required. String

The name of the tracker resource.

The following arguments are optional:

description String
The optional description for the tracker resource.
kmsKeyId Changes to this property will trigger replacement. String
A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
positionFiltering String
The position filtering method of the tracker resource. Valid values: TimeBased, DistanceBased, AccuracyBased. Default: TimeBased.
tags Map<String>
Key-value tags for the tracker. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Outputs

All input properties are implicitly available as output properties. Additionally, the Tracker resource produces the following output properties:

CreateTime string
The timestamp for when the tracker resource was created in ISO 8601 format.
Id string
The provider-assigned unique ID for this managed resource.
TagsAll Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

TrackerArn string
The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all AWS.
UpdateTime string
The timestamp for when the tracker resource was last updated in ISO 8601 format.
CreateTime string
The timestamp for when the tracker resource was created in ISO 8601 format.
Id string
The provider-assigned unique ID for this managed resource.
TagsAll map[string]string
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

TrackerArn string
The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all AWS.
UpdateTime string
The timestamp for when the tracker resource was last updated in ISO 8601 format.
createTime String
The timestamp for when the tracker resource was created in ISO 8601 format.
id String
The provider-assigned unique ID for this managed resource.
tagsAll Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

trackerArn String
The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all AWS.
updateTime String
The timestamp for when the tracker resource was last updated in ISO 8601 format.
createTime string
The timestamp for when the tracker resource was created in ISO 8601 format.
id string
The provider-assigned unique ID for this managed resource.
tagsAll {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

trackerArn string
The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all AWS.
updateTime string
The timestamp for when the tracker resource was last updated in ISO 8601 format.
create_time str
The timestamp for when the tracker resource was created in ISO 8601 format.
id str
The provider-assigned unique ID for this managed resource.
tags_all Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

tracker_arn str
The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all AWS.
update_time str
The timestamp for when the tracker resource was last updated in ISO 8601 format.
createTime String
The timestamp for when the tracker resource was created in ISO 8601 format.
id String
The provider-assigned unique ID for this managed resource.
tagsAll Map<String>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

trackerArn String
The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all AWS.
updateTime String
The timestamp for when the tracker resource was last updated in ISO 8601 format.

Look up Existing Tracker Resource

Get an existing Tracker resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: TrackerState, opts?: CustomResourceOptions): Tracker
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        create_time: Optional[str] = None,
        description: Optional[str] = None,
        kms_key_id: Optional[str] = None,
        position_filtering: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        tracker_arn: Optional[str] = None,
        tracker_name: Optional[str] = None,
        update_time: Optional[str] = None) -> Tracker
func GetTracker(ctx *Context, name string, id IDInput, state *TrackerState, opts ...ResourceOption) (*Tracker, error)
public static Tracker Get(string name, Input<string> id, TrackerState? state, CustomResourceOptions? opts = null)
public static Tracker get(String name, Output<String> id, TrackerState state, CustomResourceOptions options)
resources:  _:    type: aws:location:Tracker    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CreateTime string
The timestamp for when the tracker resource was created in ISO 8601 format.
Description string
The optional description for the tracker resource.
KmsKeyId Changes to this property will trigger replacement. string
A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
PositionFiltering string
The position filtering method of the tracker resource. Valid values: TimeBased, DistanceBased, AccuracyBased. Default: TimeBased.
Tags Dictionary<string, string>
Key-value tags for the tracker. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
TagsAll Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

TrackerArn string
The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all AWS.
TrackerName string

The name of the tracker resource.

The following arguments are optional:

UpdateTime string
The timestamp for when the tracker resource was last updated in ISO 8601 format.
CreateTime string
The timestamp for when the tracker resource was created in ISO 8601 format.
Description string
The optional description for the tracker resource.
KmsKeyId Changes to this property will trigger replacement. string
A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
PositionFiltering string
The position filtering method of the tracker resource. Valid values: TimeBased, DistanceBased, AccuracyBased. Default: TimeBased.
Tags map[string]string
Key-value tags for the tracker. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
TagsAll map[string]string
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

TrackerArn string
The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all AWS.
TrackerName string

The name of the tracker resource.

The following arguments are optional:

UpdateTime string
The timestamp for when the tracker resource was last updated in ISO 8601 format.
createTime String
The timestamp for when the tracker resource was created in ISO 8601 format.
description String
The optional description for the tracker resource.
kmsKeyId Changes to this property will trigger replacement. String
A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
positionFiltering String
The position filtering method of the tracker resource. Valid values: TimeBased, DistanceBased, AccuracyBased. Default: TimeBased.
tags Map<String,String>
Key-value tags for the tracker. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tagsAll Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

trackerArn String
The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all AWS.
trackerName String

The name of the tracker resource.

The following arguments are optional:

updateTime String
The timestamp for when the tracker resource was last updated in ISO 8601 format.
createTime string
The timestamp for when the tracker resource was created in ISO 8601 format.
description string
The optional description for the tracker resource.
kmsKeyId Changes to this property will trigger replacement. string
A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
positionFiltering string
The position filtering method of the tracker resource. Valid values: TimeBased, DistanceBased, AccuracyBased. Default: TimeBased.
tags {[key: string]: string}
Key-value tags for the tracker. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tagsAll {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

trackerArn string
The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all AWS.
trackerName string

The name of the tracker resource.

The following arguments are optional:

updateTime string
The timestamp for when the tracker resource was last updated in ISO 8601 format.
create_time str
The timestamp for when the tracker resource was created in ISO 8601 format.
description str
The optional description for the tracker resource.
kms_key_id Changes to this property will trigger replacement. str
A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
position_filtering str
The position filtering method of the tracker resource. Valid values: TimeBased, DistanceBased, AccuracyBased. Default: TimeBased.
tags Mapping[str, str]
Key-value tags for the tracker. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tags_all Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

tracker_arn str
The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all AWS.
tracker_name str

The name of the tracker resource.

The following arguments are optional:

update_time str
The timestamp for when the tracker resource was last updated in ISO 8601 format.
createTime String
The timestamp for when the tracker resource was created in ISO 8601 format.
description String
The optional description for the tracker resource.
kmsKeyId Changes to this property will trigger replacement. String
A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
positionFiltering String
The position filtering method of the tracker resource. Valid values: TimeBased, DistanceBased, AccuracyBased. Default: TimeBased.
tags Map<String>
Key-value tags for the tracker. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
tagsAll Map<String>
A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Deprecated: Please use tags instead.

trackerArn String
The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all AWS.
trackerName String

The name of the tracker resource.

The following arguments are optional:

updateTime String
The timestamp for when the tracker resource was last updated in ISO 8601 format.

Import

Using pulumi import, import aws_location_tracker resources using the tracker name. For example:

$ pulumi import aws:location/tracker:Tracker example example
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.