get Geofence Collection
suspend fun getGeofenceCollection(argument: GetGeofenceCollectionPlainArgs): GetGeofenceCollectionResult
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",
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.location.get_geofence_collection(collection_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.GetGeofenceCollection.Invoke(new()
{
CollectionName = "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.LookupGeofenceCollection(ctx, &location.LookupGeofenceCollectionArgs{
CollectionName: "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.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());
}
}
Content copied to clipboard
variables:
example:
fn::invoke:
function: aws:location:getGeofenceCollection
arguments:
collectionName: example
Content copied to clipboard
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
collection Name
Name of the geofence collection.
kms Key Id
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
suspend fun getGeofenceCollection(argument: suspend GetGeofenceCollectionPlainArgsBuilder.() -> Unit): GetGeofenceCollectionResult
Return
A collection of values returned by getGeofenceCollection.
Parameters
argument
Builder for com.pulumi.aws.location.kotlin.inputs.GetGeofenceCollectionPlainArgs.