AWS Classic

v5.16.0 published on Saturday, Sep 24, 2022 by Pulumi

GeofenceCollection

Import

Location Geofence Collection can be imported using the collection_name, e.g.,

 $ pulumi import aws:location/geofenceCollection:GeofenceCollection example example

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.Location.GeofenceCollection("example", new()
    {
        CollectionName = "example",
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/location"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := location.NewGeofenceCollection(ctx, "example", &location.GeofenceCollectionArgs{
			CollectionName: pulumi.String("example"),
		})
		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.GeofenceCollection;
import com.pulumi.aws.location.GeofenceCollectionArgs;
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 example = new GeofenceCollection("example", GeofenceCollectionArgs.builder()        
            .collectionName("example")
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.location.GeofenceCollection("example", collection_name="example")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.location.GeofenceCollection("example", {
    collectionName: "example",
});
resources:
  example:
    type: aws:location:GeofenceCollection
    properties:
      collectionName: example

Create a GeofenceCollection Resource

new GeofenceCollection(name: string, args: GeofenceCollectionArgs, opts?: CustomResourceOptions);
@overload
def GeofenceCollection(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       collection_name: Optional[str] = None,
                       description: Optional[str] = None,
                       kms_key_id: Optional[str] = None,
                       tags: Optional[Mapping[str, str]] = None)
@overload
def GeofenceCollection(resource_name: str,
                       args: GeofenceCollectionArgs,
                       opts: Optional[ResourceOptions] = None)
func NewGeofenceCollection(ctx *Context, name string, args GeofenceCollectionArgs, opts ...ResourceOption) (*GeofenceCollection, error)
public GeofenceCollection(string name, GeofenceCollectionArgs args, CustomResourceOptions? opts = null)
public GeofenceCollection(String name, GeofenceCollectionArgs args)
public GeofenceCollection(String name, GeofenceCollectionArgs args, CustomResourceOptions options)
type: aws:location:GeofenceCollection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args GeofenceCollectionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args GeofenceCollectionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args GeofenceCollectionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args GeofenceCollectionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args GeofenceCollectionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

GeofenceCollection Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The GeofenceCollection resource accepts the following input properties:

CollectionName string

The name of the geofence collection.

Description string

The optional description for the geofence collection.

KmsKeyId string

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

Tags Dictionary<string, string>
CollectionName string

The name of the geofence collection.

Description string

The optional description for the geofence collection.

KmsKeyId string

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

Tags map[string]string
collectionName String

The name of the geofence collection.

description String

The optional description for the geofence collection.

kmsKeyId String

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

tags Map<String,String>
collectionName string

The name of the geofence collection.

description string

The optional description for the geofence collection.

kmsKeyId string

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

tags {[key: string]: string}
collection_name str

The name of the geofence collection.

description str

The optional description for the geofence collection.

kms_key_id str

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

tags Mapping[str, str]
collectionName String

The name of the geofence collection.

description String

The optional description for the geofence collection.

kmsKeyId String

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

tags Map<String>

Outputs

All input properties are implicitly available as output properties. Additionally, the GeofenceCollection resource produces the following output properties:

CollectionArn string

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

CreateTime string

The timestamp for when the geofence collection resource was created in ISO 8601 format.

Id string

The provider-assigned unique ID for this managed resource.

TagsAll Dictionary<string, string>
UpdateTime string

The timestamp for when the geofence collection resource was last updated in ISO 8601 format.

CollectionArn string

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

CreateTime string

The timestamp for when the geofence collection resource was created in ISO 8601 format.

Id string

The provider-assigned unique ID for this managed resource.

TagsAll map[string]string
UpdateTime string

The timestamp for when the geofence collection resource was last updated in ISO 8601 format.

collectionArn String

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

createTime String

The timestamp for when the geofence collection resource was created in ISO 8601 format.

id String

The provider-assigned unique ID for this managed resource.

tagsAll Map<String,String>
updateTime String

The timestamp for when the geofence collection resource was last updated in ISO 8601 format.

collectionArn string

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

createTime string

The timestamp for when the geofence collection resource was created in ISO 8601 format.

id string

The provider-assigned unique ID for this managed resource.

tagsAll {[key: string]: string}
updateTime string

The timestamp for when the geofence collection resource was last updated in ISO 8601 format.

collection_arn str

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

create_time str

The timestamp for when the geofence collection resource was created in ISO 8601 format.

id str

The provider-assigned unique ID for this managed resource.

tags_all Mapping[str, str]
update_time str

The timestamp for when the geofence collection resource was last updated in ISO 8601 format.

collectionArn String

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

createTime String

The timestamp for when the geofence collection resource was created in ISO 8601 format.

id String

The provider-assigned unique ID for this managed resource.

tagsAll Map<String>
updateTime String

The timestamp for when the geofence collection resource was last updated in ISO 8601 format.

Look up an Existing GeofenceCollection Resource

Get an existing GeofenceCollection resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: GeofenceCollectionState, opts?: CustomResourceOptions): GeofenceCollection
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        collection_arn: Optional[str] = None,
        collection_name: Optional[str] = None,
        create_time: Optional[str] = None,
        description: Optional[str] = None,
        kms_key_id: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        update_time: Optional[str] = None) -> GeofenceCollection
func GetGeofenceCollection(ctx *Context, name string, id IDInput, state *GeofenceCollectionState, opts ...ResourceOption) (*GeofenceCollection, error)
public static GeofenceCollection Get(string name, Input<string> id, GeofenceCollectionState? state, CustomResourceOptions? opts = null)
public static GeofenceCollection get(String name, Output<String> id, GeofenceCollectionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CollectionArn string

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

CollectionName string

The name of the geofence collection.

CreateTime string

The timestamp for when the geofence collection resource was created in ISO 8601 format.

Description string

The optional description for the geofence collection.

KmsKeyId string

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

Tags Dictionary<string, string>
TagsAll Dictionary<string, string>
UpdateTime string

The timestamp for when the geofence collection resource was last updated in ISO 8601 format.

CollectionArn string

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

CollectionName string

The name of the geofence collection.

CreateTime string

The timestamp for when the geofence collection resource was created in ISO 8601 format.

Description string

The optional description for the geofence collection.

KmsKeyId string

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

Tags map[string]string
TagsAll map[string]string
UpdateTime string

The timestamp for when the geofence collection resource was last updated in ISO 8601 format.

collectionArn String

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

collectionName String

The name of the geofence collection.

createTime String

The timestamp for when the geofence collection resource was created in ISO 8601 format.

description String

The optional description for the geofence collection.

kmsKeyId String

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

tags Map<String,String>
tagsAll Map<String,String>
updateTime String

The timestamp for when the geofence collection resource was last updated in ISO 8601 format.

collectionArn string

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

collectionName string

The name of the geofence collection.

createTime string

The timestamp for when the geofence collection resource was created in ISO 8601 format.

description string

The optional description for the geofence collection.

kmsKeyId string

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

tags {[key: string]: string}
tagsAll {[key: string]: string}
updateTime string

The timestamp for when the geofence collection resource was last updated in ISO 8601 format.

collection_arn str

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

collection_name str

The name of the geofence collection.

create_time str

The timestamp for when the geofence collection resource was created in ISO 8601 format.

description str

The optional description for the geofence collection.

kms_key_id str

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

tags Mapping[str, str]
tags_all Mapping[str, str]
update_time str

The timestamp for when the geofence collection resource was last updated in ISO 8601 format.

collectionArn String

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

collectionName String

The name of the geofence collection.

createTime String

The timestamp for when the geofence collection resource was created in ISO 8601 format.

description String

The optional description for the geofence collection.

kmsKeyId String

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

tags Map<String>
tagsAll Map<String>
updateTime String

The timestamp for when the geofence collection resource was last updated in ISO 8601 format.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.