1. Packages
  2. AWS
  3. API Docs
  4. location
  5. getTrackerAssociation
AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

aws.location.getTrackerAssociation

Explore with Pulumi AI

Retrieve information about a Location Service Tracker Association.

Example Usage

Basic Usage

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

const example = aws.location.getTrackerAssociation({
    consumerArn: "arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollectionConsumer",
    trackerName: "example",
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.location.get_tracker_association(consumer_arn="arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollectionConsumer",
    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.LookupTrackerAssociation(ctx, &location.LookupTrackerAssociationArgs{
			ConsumerArn: "arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollectionConsumer",
			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.GetTrackerAssociation.Invoke(new()
    {
        ConsumerArn = "arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollectionConsumer",
        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.GetTrackerAssociationArgs;
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.getTrackerAssociation(GetTrackerAssociationArgs.builder()
            .consumerArn("arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollectionConsumer")
            .trackerName("example")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: aws:location:getTrackerAssociation
      arguments:
        consumerArn: arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollectionConsumer
        trackerName: example
Copy

Using getTrackerAssociation

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 getTrackerAssociation(args: GetTrackerAssociationArgs, opts?: InvokeOptions): Promise<GetTrackerAssociationResult>
function getTrackerAssociationOutput(args: GetTrackerAssociationOutputArgs, opts?: InvokeOptions): Output<GetTrackerAssociationResult>
Copy
def get_tracker_association(consumer_arn: Optional[str] = None,
                            tracker_name: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetTrackerAssociationResult
def get_tracker_association_output(consumer_arn: Optional[pulumi.Input[str]] = None,
                            tracker_name: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetTrackerAssociationResult]
Copy
func LookupTrackerAssociation(ctx *Context, args *LookupTrackerAssociationArgs, opts ...InvokeOption) (*LookupTrackerAssociationResult, error)
func LookupTrackerAssociationOutput(ctx *Context, args *LookupTrackerAssociationOutputArgs, opts ...InvokeOption) LookupTrackerAssociationResultOutput
Copy

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

public static class GetTrackerAssociation 
{
    public static Task<GetTrackerAssociationResult> InvokeAsync(GetTrackerAssociationArgs args, InvokeOptions? opts = null)
    public static Output<GetTrackerAssociationResult> Invoke(GetTrackerAssociationInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetTrackerAssociationResult> getTrackerAssociation(GetTrackerAssociationArgs args, InvokeOptions options)
public static Output<GetTrackerAssociationResult> getTrackerAssociation(GetTrackerAssociationArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:location/getTrackerAssociation:getTrackerAssociation
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ConsumerArn This property is required. string
ARN of the geofence collection associated to tracker resource.
TrackerName This property is required. string
Name of the tracker resource associated with a geofence collection.
ConsumerArn This property is required. string
ARN of the geofence collection associated to tracker resource.
TrackerName This property is required. string
Name of the tracker resource associated with a geofence collection.
consumerArn This property is required. String
ARN of the geofence collection associated to tracker resource.
trackerName This property is required. String
Name of the tracker resource associated with a geofence collection.
consumerArn This property is required. string
ARN of the geofence collection associated to tracker resource.
trackerName This property is required. string
Name of the tracker resource associated with a geofence collection.
consumer_arn This property is required. str
ARN of the geofence collection associated to tracker resource.
tracker_name This property is required. str
Name of the tracker resource associated with a geofence collection.
consumerArn This property is required. String
ARN of the geofence collection associated to tracker resource.
trackerName This property is required. String
Name of the tracker resource associated with a geofence collection.

getTrackerAssociation Result

The following output properties are available:

ConsumerArn string
Id string
The provider-assigned unique ID for this managed resource.
TrackerName string
ConsumerArn string
Id string
The provider-assigned unique ID for this managed resource.
TrackerName string
consumerArn String
id String
The provider-assigned unique ID for this managed resource.
trackerName String
consumerArn string
id string
The provider-assigned unique ID for this managed resource.
trackerName string
consumer_arn str
id str
The provider-assigned unique ID for this managed resource.
tracker_name str
consumerArn String
id String
The provider-assigned unique ID for this managed resource.
trackerName String

Package Details

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