aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

location: eventBridgeEnabled not working with CfnTracker

Open solegaonkar opened this issue 11 months ago • 2 comments

Describe the bug

The EventBridgeEnabled property in the Location Tracker is not present in the CfnTrackerProps. Even if I add it forcefully with an @ts-ignore, it does not reflect in the generated CloudFormation stack.

After struggling hard, I had to set it manually. Can you please fix this?

Expected Behavior

CfnTrackerProps should have a property eventBridgeEnabled, and it should map to the EventBridgeEnabled in the Location Tracker resource of the CloudFormation template

Current Behavior

The field is missing in the data type, and not mapped to the CloudFormation stack

Reproduction Steps

const cfnTracker = new location.CfnTracker(this, "MyCfnTracker", { trackerName: "AssetTracker", description: "description", positionFiltering: "AccuracyBased", eventBridgeEnabled: true, });

Possible Solution

The CfnTrackerProps Type should be updated to include this field, and it should be appropriately mapped to the generated CloudFormation template

Additional Information/Context

No response

CDK CLI Version

2.130.0

Framework Version

No response

Node.js Version

18.16.0

OS

Windows

Language

TypeScript

Language Version

No response

Other information

No response

solegaonkar avatar Feb 27 '24 05:02 solegaonkar