1. Packages
  2. AWS
  3. API Docs
  4. location
  5. Tracker
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

aws.location.Tracker

Explore with Pulumi AI

aws logo
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

    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"});
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.location.Tracker("example", tracker_name="example")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    resources:
      example:
        type: aws:location:Tracker
        properties:
          trackerName: example
    

    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 string
    The unique name of the resource.
    args TrackerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args 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 string
    The unique name of the resource.
    args TrackerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TrackerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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" },
        },
    });
    
    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"),
    	},
    })
    
    var trackerResource = new Tracker("trackerResource", TrackerArgs.builder()
        .trackerName("string")
        .description("string")
        .kmsKeyId("string")
        .positionFiltering("string")
        .tags(Map.of("string", "string"))
        .build());
    
    tracker_resource = aws.location.Tracker("trackerResource",
        tracker_name="string",
        description="string",
        kms_key_id="string",
        position_filtering="string",
        tags={
            "string": "string",
        })
    
    const trackerResource = new aws.location.Tracker("trackerResource", {
        trackerName: "string",
        description: "string",
        kmsKeyId: "string",
        positionFiltering: "string",
        tags: {
            string: "string",
        },
    });
    
    type: aws:location:Tracker
    properties:
        description: string
        kmsKeyId: string
        positionFiltering: string
        tags:
            string: string
        trackerName: string
    

    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

    The Tracker resource accepts the following input properties:

    TrackerName string

    The name of the tracker resource.

    The following arguments are optional:

    Description string
    The optional description for the tracker resource.
    KmsKeyId 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 string

    The name of the tracker resource.

    The following arguments are optional:

    Description string
    The optional description for the tracker resource.
    KmsKeyId 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 String

    The name of the tracker resource.

    The following arguments are optional:

    description String
    The optional description for the tracker resource.
    kmsKeyId 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 string

    The name of the tracker resource.

    The following arguments are optional:

    description string
    The optional description for the tracker resource.
    kmsKeyId 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 str

    The name of the tracker resource.

    The following arguments are optional:

    description str
    The optional description for the tracker resource.
    kms_key_id 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 String

    The name of the tracker resource.

    The following arguments are optional:

    description String
    The optional description for the tracker resource.
    kmsKeyId 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)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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 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 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 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 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 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 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
    

    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.
    aws logo
    AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi