aws-location-alpha: dataSource property should be required in PlaceIndex class #31288
Labels
@aws-cdk/aws-location-alpha
Related to the @aws-cdk/aws-location-alpha package
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p2
Describe the bug
Currently, dataSource property in PlaceIndex class is optional.
But in CFn document,
DataSource
property is required.I think it would be preferable to make this a required field in accordance with CloudFormation.
In #30682, the
dataSource
property was also implemented, and based on the review comment, it was changed from optional to required.https://github.com/aws/aws-cdk/pull/30682/files#r1734958764
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
The
dataSource
property is required.Current Behavior
The
dataSource
property is optional.Reproduction Steps
When use
PlaceIndex
class withoutdataSource
property.Possible Solution
Change
dataSource
property to required.Additional Information/Context
No response
CDK CLI Version
2.151.0
Framework Version
No response
Node.js Version
All
OS
MacOS
Language
TypeScript
Language Version
No response
Other information
I have created an issue to discuss whether the modification should be implemented.
Considering the consistency with the RouteCalculator class and the CFn documentation, I think it would be better to make the
dataSource
required.I recognize that this would be a breaking change, but
aws-location
is an alpha module.However, I think this change is not mandatory.
Please let me know your thoughts.
The text was updated successfully, but these errors were encountered: