# CfnGeofenceCollectionProps

Properties for defining a `CfnGeofenceCollection`.

Used as props by: [CfnGeofenceCollection](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_location.CfnGeofenceCollection.html)

- Source: Generated at build time
- Type last changed: v2.119.0 · 11 Jan 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_location as location } from 'aws-cdk-lib';
const cfnGeofenceCollectionProps: location.CfnGeofenceCollectionProps = {
  collectionName: 'collectionName',

  // the properties below are optional
  description: 'description',
  kmsKeyId: 'kmsKeyId',
  pricingPlan: 'pricingPlan',
  pricingPlanDataSource: 'pricingPlanDataSource',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

```python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_location as location

cfn_geofence_collection_props = location.CfnGeofenceCollectionProps(
    collection_name="collectionName",

    # the properties below are optional
    description="description",
    kms_key_id="kmsKeyId",
    pricing_plan="pricingPlan",
    pricing_plan_data_source="pricingPlanDataSource",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.location.*;

CfnGeofenceCollectionProps cfnGeofenceCollectionProps = CfnGeofenceCollectionProps.builder()
        .collectionName("collectionName")

        // the properties below are optional
        .description("description")
        .kmsKeyId("kmsKeyId")
        .pricingPlan("pricingPlan")
        .pricingPlanDataSource("pricingPlanDataSource")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Location;

var cfnGeofenceCollectionProps = new CfnGeofenceCollectionProps {
    CollectionName = "collectionName",

    // the properties below are optional
    Description = "description",
    KmsKeyId = "kmsKeyId",
    PricingPlan = "pricingPlan",
    PricingPlanDataSource = "pricingPlanDataSource",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnGeofenceCollectionProps := &CfnGeofenceCollectionProps{
	CollectionName: jsii.String("collectionName"),

	// the properties below are optional
	Description: jsii.String("description"),
	KmsKeyId: jsii.String("kmsKeyId"),
	PricingPlan: jsii.String("pricingPlan"),
	PricingPlanDataSource: jsii.String("pricingPlanDataSource"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `collectionName`: string (required) — A custom name for the geofence collection.

  Requirements:

  - Contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens (-), periods (.), and underscores (_).
  - Must be a unique geofence collection name.
  - No spaces allowed. For example, `ExampleGeofenceCollection` .

- `description`: string — An optional description for the geofence collection.

- `kmsKeyId`: string — A key identifier for an [AWS KMS customer managed key](https://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html) . Enter a key ID, key ARN, alias name, or alias ARN.

- `pricingPlan`: string — this property has been deprecated

- `pricingPlanDataSource`: string — this property has been deprecated

  No longer allowed.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — Applies one or more tags to the geofence collection.

  A tag is a key-value pair helps manage, identify, search, and filter your resources by labelling them.

  Format: `"key" : "value"`

  Restrictions:

  - Maximum 50 tags per resource
  - Each resource tag must be unique with a maximum of one value.
  - Maximum key length: 128 Unicode characters in UTF-8
  - Maximum value length: 256 Unicode characters in UTF-8
  - Can use alphanumeric characters (A–Z, a–z, 0–9), and the following characters: + - = . _ : /
