AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi
aws.location.getGeofenceCollection
Explore with Pulumi AI
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")
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
})
}
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 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
Using getGeofenceCollection
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 getGeofenceCollection(args: GetGeofenceCollectionArgs, opts?: InvokeOptions): Promise<GetGeofenceCollectionResult>
function getGeofenceCollectionOutput(args: GetGeofenceCollectionOutputArgs, opts?: InvokeOptions): Output<GetGeofenceCollectionResult>
def get_geofence_collection(collection_name: Optional[str] = None,
kms_key_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetGeofenceCollectionResult
def get_geofence_collection_output(collection_name: Optional[pulumi.Input[str]] = None,
kms_key_id: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGeofenceCollectionResult]
func LookupGeofenceCollection(ctx *Context, args *LookupGeofenceCollectionArgs, opts ...InvokeOption) (*LookupGeofenceCollectionResult, error)
func LookupGeofenceCollectionOutput(ctx *Context, args *LookupGeofenceCollectionOutputArgs, opts ...InvokeOption) LookupGeofenceCollectionResultOutput
> Note: This function is named LookupGeofenceCollection
in the Go SDK.
public static class GetGeofenceCollection
{
public static Task<GetGeofenceCollectionResult> InvokeAsync(GetGeofenceCollectionArgs args, InvokeOptions? opts = null)
public static Output<GetGeofenceCollectionResult> Invoke(GetGeofenceCollectionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetGeofenceCollectionResult> getGeofenceCollection(GetGeofenceCollectionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:location/getGeofenceCollection:getGeofenceCollection
arguments:
# arguments dictionary
The following arguments are supported:
- Collection
Name string - Name of the geofence collection.
- Kms
Key stringId - Key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
- Dictionary<string, string>
- Key-value map of resource tags for the geofence collection.
- Collection
Name string - Name of the geofence collection.
- Kms
Key stringId - Key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
- map[string]string
- Key-value map of resource tags for the geofence collection.
- collection
Name String - Name of the geofence collection.
- kms
Key StringId - Key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
- Map<String,String>
- Key-value map of resource tags for the geofence collection.
- collection
Name string - Name of the geofence collection.
- kms
Key stringId - Key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
- {[key: string]: string}
- Key-value map of resource tags for the geofence collection.
- collection_
name str - Name of the geofence collection.
- kms_
key_ strid - Key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
- Mapping[str, str]
- Key-value map of resource tags for the geofence collection.
- collection
Name String - Name of the geofence collection.
- kms
Key StringId - Key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
- Map<String>
- Key-value map of resource tags for the geofence collection.
getGeofenceCollection Result
The following output properties are available:
- Collection
Arn string - ARN for the geofence collection resource. Used when you need to specify a resource across all AWS.
- Collection
Name string - Create
Time string - Timestamp for when the geofence collection resource was created in ISO 8601 format.
- Description string
- Optional description of the geofence collection resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key stringId - Key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
- Dictionary<string, string>
- Key-value map of resource tags for the geofence collection.
- Update
Time string - Timestamp for when the geofence collection resource was last updated in ISO 8601 format.
- Collection
Arn string - ARN for the geofence collection resource. Used when you need to specify a resource across all AWS.
- Collection
Name string - Create
Time string - Timestamp for when the geofence collection resource was created in ISO 8601 format.
- Description string
- Optional description of the geofence collection resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key stringId - Key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
- map[string]string
- Key-value map of resource tags for the geofence collection.
- Update
Time string - Timestamp for when the geofence collection resource was last updated in ISO 8601 format.
- collection
Arn String - ARN for the geofence collection resource. Used when you need to specify a resource across all AWS.
- collection
Name String - create
Time String - Timestamp for when the geofence collection resource was created in ISO 8601 format.
- description String
- Optional description of the geofence collection resource.
- id String
- The provider-assigned unique ID for this managed resource.
- kms
Key StringId - Key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
- Map<String,String>
- Key-value map of resource tags for the geofence collection.
- update
Time String - Timestamp for when the geofence collection resource was last updated in ISO 8601 format.
- collection
Arn string - ARN for the geofence collection resource. Used when you need to specify a resource across all AWS.
- collection
Name string - create
Time string - Timestamp for when the geofence collection resource was created in ISO 8601 format.
- description string
- Optional description of the geofence collection resource.
- id string
- The provider-assigned unique ID for this managed resource.
- kms
Key stringId - Key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
- {[key: string]: string}
- Key-value map of resource tags for the geofence collection.
- update
Time string - Timestamp for when the geofence collection resource was last updated in ISO 8601 format.
- collection_
arn str - ARN for the geofence collection resource. Used when you need to specify a resource across all AWS.
- collection_
name str - create_
time str - Timestamp for when the geofence collection resource was created in ISO 8601 format.
- description str
- Optional description of the geofence collection resource.
- id str
- The provider-assigned unique ID for this managed resource.
- kms_
key_ strid - Key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
- Mapping[str, str]
- Key-value map of resource tags for the geofence collection.
- update_
time str - Timestamp for when the geofence collection resource was last updated in ISO 8601 format.
- collection
Arn String - ARN for the geofence collection resource. Used when you need to specify a resource across all AWS.
- collection
Name String - create
Time String - Timestamp for when the geofence collection resource was created in ISO 8601 format.
- description String
- Optional description of the geofence collection resource.
- id String
- The provider-assigned unique ID for this managed resource.
- kms
Key StringId - Key identifier for an AWS KMS customer managed key assigned to the Amazon Location resource.
- Map<String>
- Key-value map of resource tags for the geofence collection.
- update
Time String - Timestamp for when the geofence collection resource was last updated in ISO 8601 format.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.