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"});
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:
- Tracker
Name string The name of the tracker resource.
The following arguments are optional:
- Description string
- The optional description for the tracker resource.
- Kms
Key stringId - A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
- Position
Filtering string - The position filtering method of the tracker resource. Valid values:
TimeBased
,DistanceBased
,AccuracyBased
. Default:TimeBased
. - 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.
- Tracker
Name string The name of the tracker resource.
The following arguments are optional:
- Description string
- The optional description for the tracker resource.
- Kms
Key stringId - A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
- Position
Filtering string - The position filtering method of the tracker resource. Valid values:
TimeBased
,DistanceBased
,AccuracyBased
. Default:TimeBased
. - 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.
- tracker
Name String The name of the tracker resource.
The following arguments are optional:
- description String
- The optional description for the tracker resource.
- kms
Key StringId - A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
- position
Filtering String - The position filtering method of the tracker resource. Valid values:
TimeBased
,DistanceBased
,AccuracyBased
. Default:TimeBased
. - 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.
- tracker
Name string The name of the tracker resource.
The following arguments are optional:
- description string
- The optional description for the tracker resource.
- kms
Key stringId - A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
- position
Filtering string - The position filtering method of the tracker resource. Valid values:
TimeBased
,DistanceBased
,AccuracyBased
. Default:TimeBased
. - {[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_ strid - 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
. - 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.
- tracker
Name String The name of the tracker resource.
The following arguments are optional:
- description String
- The optional description for the tracker resource.
- kms
Key StringId - A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
- position
Filtering String - The position filtering method of the tracker resource. Valid values:
TimeBased
,DistanceBased
,AccuracyBased
. Default:TimeBased
. - 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:
- Create
Time 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.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Tracker
Arn string - The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all AWS.
- Update
Time string - The timestamp for when the tracker resource was last updated in ISO 8601 format.
- Create
Time 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.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Tracker
Arn string - The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all AWS.
- Update
Time string - The timestamp for when the tracker resource was last updated in ISO 8601 format.
- create
Time 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.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - tracker
Arn String - The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all AWS.
- update
Time String - The timestamp for when the tracker resource was last updated in ISO 8601 format.
- create
Time 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.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - tracker
Arn string - The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all AWS.
- update
Time 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.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - 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.
- create
Time 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.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - tracker
Arn String - The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all AWS.
- update
Time 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.
- Create
Time string - The timestamp for when the tracker resource was created in ISO 8601 format.
- Description string
- The optional description for the tracker resource.
- Kms
Key stringId - A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
- Position
Filtering string - The position filtering method of the tracker resource. Valid values:
TimeBased
,DistanceBased
,AccuracyBased
. Default:TimeBased
. - 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. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Tracker
Arn string - The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all AWS.
- Tracker
Name string The name of the tracker resource.
The following arguments are optional:
- Update
Time string - The timestamp for when the tracker resource was last updated in ISO 8601 format.
- Create
Time string - The timestamp for when the tracker resource was created in ISO 8601 format.
- Description string
- The optional description for the tracker resource.
- Kms
Key stringId - A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
- Position
Filtering string - The position filtering method of the tracker resource. Valid values:
TimeBased
,DistanceBased
,AccuracyBased
. Default:TimeBased
. - 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. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Tracker
Arn string - The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all AWS.
- Tracker
Name string The name of the tracker resource.
The following arguments are optional:
- Update
Time string - The timestamp for when the tracker resource was last updated in ISO 8601 format.
- create
Time String - The timestamp for when the tracker resource was created in ISO 8601 format.
- description String
- The optional description for the tracker resource.
- kms
Key StringId - A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
- position
Filtering String - The position filtering method of the tracker resource. Valid values:
TimeBased
,DistanceBased
,AccuracyBased
. Default:TimeBased
. - 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. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - tracker
Arn String - The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all AWS.
- tracker
Name String The name of the tracker resource.
The following arguments are optional:
- update
Time String - The timestamp for when the tracker resource was last updated in ISO 8601 format.
- create
Time string - The timestamp for when the tracker resource was created in ISO 8601 format.
- description string
- The optional description for the tracker resource.
- kms
Key stringId - A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
- position
Filtering string - The position filtering method of the tracker resource. Valid values:
TimeBased
,DistanceBased
,AccuracyBased
. Default:TimeBased
. - {[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. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - tracker
Arn string - The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all AWS.
- tracker
Name string The name of the tracker resource.
The following arguments are optional:
- update
Time 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_ strid - 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
. - 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. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - 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.
- create
Time String - The timestamp for when the tracker resource was created in ISO 8601 format.
- description String
- The optional description for the tracker resource.
- kms
Key StringId - A key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
- position
Filtering String - The position filtering method of the tracker resource. Valid values:
TimeBased
,DistanceBased
,AccuracyBased
. Default:TimeBased
. - 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. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - tracker
Arn String - The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all AWS.
- tracker
Name String The name of the tracker resource.
The following arguments are optional:
- update
Time 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.