AWS v6.73.0 published on Wednesday, Mar 19, 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",
});
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")
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
	})
}
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",
    });
});
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());
    }
}
variables:
  example:
    fn::invoke:
      function: aws:location:getTrackerAssociation
      arguments:
        consumerArn: arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollectionConsumer
        trackerName: example
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>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]func LookupTrackerAssociation(ctx *Context, args *LookupTrackerAssociationArgs, opts ...InvokeOption) (*LookupTrackerAssociationResult, error)
func LookupTrackerAssociationOutput(ctx *Context, args *LookupTrackerAssociationOutputArgs, opts ...InvokeOption) LookupTrackerAssociationResultOutput> 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)
}public static CompletableFuture<GetTrackerAssociationResult> getTrackerAssociation(GetTrackerAssociationArgs args, InvokeOptions options)
public static Output<GetTrackerAssociationResult> getTrackerAssociation(GetTrackerAssociationArgs args, InvokeOptions options)
fn::invoke:
  function: aws:location/getTrackerAssociation:getTrackerAssociation
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ConsumerArn string
- ARN of the geofence collection associated to tracker resource.
- TrackerName string
- Name of the tracker resource associated with a geofence collection.
- ConsumerArn string
- ARN of the geofence collection associated to tracker resource.
- TrackerName string
- Name of the tracker resource associated with a geofence collection.
- consumerArn String
- ARN of the geofence collection associated to tracker resource.
- trackerName String
- Name of the tracker resource associated with a geofence collection.
- consumerArn string
- ARN of the geofence collection associated to tracker resource.
- trackerName string
- Name of the tracker resource associated with a geofence collection.
- consumer_arn str
- ARN of the geofence collection associated to tracker resource.
- tracker_name str
- Name of the tracker resource associated with a geofence collection.
- consumerArn String
- ARN of the geofence collection associated to tracker resource.
- trackerName 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 awsTerraform Provider.