aws / aws/aws-cdk

location: eventBridgeEnabled not working with CfnTracker

Open
#29,276 2 comments 0 reactions 0 assignees View on GitHub
@aws-cdk/aws-location-alpha bug p3
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

### 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_

Contributor guide

Open the contributing guide

Research direction

The issue identifies CfnTrackerProps and the synthesized CloudFormation template as the touchpoints; start by locating the TypeScript CfnTracker L1 definition and its property-to-template mapping. Confirm completion by checking that eventBridgeEnabled is accepted and EventBridgeEnabled appears in the synthesized Location Tracker resource, using the reproduction as the verification.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.