TrackerAssociationArgs

data class TrackerAssociationArgs(val consumerArn: Output<String>? = null, val trackerName: Output<String>? = null) : ConvertibleToJava<TrackerAssociationArgs>

Resource for managing an AWS Location Tracker Association.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.location.GeofenceCollection;
import com.pulumi.aws.location.GeofenceCollectionArgs;
import com.pulumi.aws.location.Tracker;
import com.pulumi.aws.location.TrackerArgs;
import com.pulumi.aws.location.TrackerAssociation;
import com.pulumi.aws.location.TrackerAssociationArgs;
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 exampleGeofenceCollection = new GeofenceCollection("exampleGeofenceCollection", GeofenceCollectionArgs.builder()
.collectionName("example")
.build());
var exampleTracker = new Tracker("exampleTracker", TrackerArgs.builder()
.trackerName("example")
.build());
var exampleTrackerAssociation = new TrackerAssociation("exampleTrackerAssociation", TrackerAssociationArgs.builder()
.consumerArn(exampleGeofenceCollection.collectionArn())
.trackerName(exampleTracker.trackerName())
.build());
}
}

Import

Location Tracker Association can be imported using the tracker_name|consumer_arn, e.g.,

$ pulumi import aws:location/trackerAssociation:TrackerAssociation example "tracker_name|consumer_arn"

Constructors

Link copied to clipboard
constructor(consumerArn: Output<String>? = null, trackerName: Output<String>? = null)

Properties

Link copied to clipboard
val consumerArn: Output<String>? = null

The Amazon Resource Name (ARN) for the geofence collection to be associated to tracker resource. Used when you need to specify a resource across all AWS.

Link copied to clipboard
val trackerName: Output<String>? = null

The name of the tracker resource to be associated with a geofence collection.

Functions

Link copied to clipboard
open override fun toJava(): TrackerAssociationArgs