Skip to content
v2.278.0

CfnGeofenceCollectionProps Struct ​

Properties for defining a CfnGeofenceCollection.

Example ​

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
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
// 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();
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"
    } }
};
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 ​

collectionNamestringcollection_namestrcollectionNameStringCollectionNamestringCollectionName*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 .
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
An optional description for the geofence collection.
kmsKeyIdoptionalstringkms_key_idoptionalstrkmsKeyIdoptionalStringKmsKeyIdoptionalstringKmsKeyIdoptional*string #
A key identifier for an AWS KMS customer managed key . Enter a key ID, key ARN, alias name, or alias ARN.
pricingPlanoptionalstringpricing_planoptionalstrpricingPlanoptionalStringPricingPlanoptionalstringPricingPlanoptional*string deprecated #
this property has been deprecated
pricingPlanDataSourceoptionalstringpricing_plan_data_sourceoptionalstrpricingPlanDataSourceoptionalStringPricingPlanDataSourceoptionalstringPricingPlanDataSourceoptional*string deprecated #
this property has been deprecated

No longer allowed.

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
Applies one or more tags to the geofence collection.
notes

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: + - = . _ : /