get Tracker Association
suspend fun getTrackerAssociation(argument: GetTrackerAssociationPlainArgs): GetTrackerAssociationResult
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",
});
Content copied to clipboard
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")
Content copied to clipboard
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
variables:
example:
fn::invoke:
function: aws:location:getTrackerAssociation
arguments:
consumerArn: arn:aws:geo:region:account-id:geofence-collection/ExampleGeofenceCollectionConsumer
trackerName: example
Content copied to clipboard
Return
A collection of values returned by getTrackerAssociation.
Parameters
argument
A collection of arguments for invoking getTrackerAssociation.
suspend fun getTrackerAssociation(consumerArn: String, trackerName: String): GetTrackerAssociationResult
Return
A collection of values returned by getTrackerAssociation.
Parameters
consumer Arn
ARN of the geofence collection associated to tracker resource.
tracker Name
Name of the tracker resource associated with a geofence collection.
See also
suspend fun getTrackerAssociation(argument: suspend GetTrackerAssociationPlainArgsBuilder.() -> Unit): GetTrackerAssociationResult
Return
A collection of values returned by getTrackerAssociation.
Parameters
argument
Builder for com.pulumi.aws.location.kotlin.inputs.GetTrackerAssociationPlainArgs.