> **Experimental**
>
> `@aws-cdk/aws-location-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# GeofenceCollectionProps

Properties for a geofence collection.

Used as props by: [GeofenceCollection](/cdk/api/v2/docs/@aws-cdk_aws-location-alpha.GeofenceCollection.html)

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/geofence-collection.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/@aws-cdk/aws-location-alpha/lib/geofence-collection.ts#L34)

## Example

TypeScript:

```ts
declare const key: kms.Key;

new location.GeofenceCollection(this, 'GeofenceCollection', {
  geofenceCollectionName: 'MyGeofenceCollection', // optional, defaults to a generated name
  kmsKey: key, // optional, defaults to use an AWS managed key
});
```

Python:

```python
# key: kms.Key

location.GeofenceCollection(self, "GeofenceCollection",
    geofence_collection_name="MyGeofenceCollection",  # optional, defaults to a generated name
    kms_key=key
)
```

Java:

```java
Key key;

GeofenceCollection.Builder.create(this, "GeofenceCollection")
        .geofenceCollectionName("MyGeofenceCollection") // optional, defaults to a generated name
        .kmsKey(key)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.Location.Alpha
Key key;

new GeofenceCollection(this, "GeofenceCollection", new GeofenceCollectionProps {
    GeofenceCollectionName = "MyGeofenceCollection",  // optional, defaults to a generated name
    KmsKey = key
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdklocationalpha/v2
var key Key

location.NewGeofenceCollection(this, jsii.String("GeofenceCollection"), &GeofenceCollectionProps{
	GeofenceCollectionName: jsii.String("MyGeofenceCollection"),
	 // optional, defaults to a generated name
	KmsKey: key,
})
```

## Properties

- `description`: string — A description for the geofence collection.

  **Default:** no description

- `geofenceCollectionName`: string — A name for the geofence collection.

  **Default:** A name is automatically generated

  Must be between 1 and 100 characters and contain only alphanumeric characters,
  hyphens, periods and underscores.

- `kmsKey`: [IKeyRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_kms.IKeyRef.html) — The customer managed to encrypt your data.

  **Default:** Use an AWS managed key
