AWS v6.54.0 published on Friday, Sep 27, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:location/getTrackerAssociation:getTrackerAssociation
arguments:
# arguments dictionary
The following arguments are supported:
- Consumer
Arn string - ARN of the geofence collection associated to tracker resource.
- Tracker
Name string - Name of the tracker resource associated with a geofence collection.
- Consumer
Arn string - ARN of the geofence collection associated to tracker resource.
- Tracker
Name string - Name of the tracker resource associated with a geofence collection.
- consumer
Arn String - ARN of the geofence collection associated to tracker resource.
- tracker
Name String - Name of the tracker resource associated with a geofence collection.
- consumer
Arn string - ARN of the geofence collection associated to tracker resource.
- tracker
Name 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.
- consumer
Arn String - ARN of the geofence collection associated to tracker resource.
- tracker
Name String - Name of the tracker resource associated with a geofence collection.
getTrackerAssociation Result
The following output properties are available:
- Consumer
Arn string - Id string
- The provider-assigned unique ID for this managed resource.
- Tracker
Name string
- Consumer
Arn string - Id string
- The provider-assigned unique ID for this managed resource.
- Tracker
Name string
- consumer
Arn String - id String
- The provider-assigned unique ID for this managed resource.
- tracker
Name String
- consumer
Arn string - id string
- The provider-assigned unique ID for this managed resource.
- tracker
Name string
- consumer_
arn str - id str
- The provider-assigned unique ID for this managed resource.
- tracker_
name str
- consumer
Arn String - id String
- The provider-assigned unique ID for this managed resource.
- tracker
Name String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.