getGeofenceCollection

Retrieve information about a Location Service Geofence Collection.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.location.getGeofenceCollection({
collectionName: "example",
});
import pulumi
import pulumi_aws as aws
example = aws.location.get_geofence_collection(collection_name="example")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.Location.GetGeofenceCollection.Invoke(new()
{
CollectionName = "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.LookupGeofenceCollection(ctx, &location.LookupGeofenceCollectionArgs{
CollectionName: "example",
}, nil)
if err != nil {
return err
}
return nil
})
}
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.GetGeofenceCollectionArgs;
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.getGeofenceCollection(GetGeofenceCollectionArgs.builder()
.collectionName("example")
.build());
}
}
variables:
example:
fn::invoke:
function: aws:location:getGeofenceCollection
arguments:
collectionName: example

Return

A collection of values returned by getGeofenceCollection.

Parameters

argument

A collection of arguments for invoking getGeofenceCollection.


suspend fun getGeofenceCollection(collectionName: String, kmsKeyId: String? = null, tags: Map<String, String>? = null): GetGeofenceCollectionResult

Return

A collection of values returned by getGeofenceCollection.

Parameters

collectionName

Name of the geofence collection.

kmsKeyId

Key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.

tags

Key-value map of resource tags for the geofence collection.

See also


Return

A collection of values returned by getGeofenceCollection.

Parameters

argument

Builder for com.pulumi.aws.location.kotlin.inputs.GetGeofenceCollectionPlainArgs.

See also