Change DatadogProps from a type to an interface, so there will be a class DatadogProps in the generated Python package
Create an interface DatadogStrictProps (which has been renamed to DatadogLambdaStrictProps in #288), in case it's still being used by any external code
Create a const DefaultDatadogProps (which has been renamed to DatadogLambdaDefaultProps in #288), in case it's still being used by any external code
What does this PR do?
Solves a few backward compatibility issues:
DatadogProps
from a type to an interface, so there will be a classDatadogProps
in the generated Python packageDatadogStrictProps
(which has been renamed toDatadogLambdaStrictProps
in #288), in case it's still being used by any external codeDefaultDatadogProps
(which has been renamed toDatadogLambdaDefaultProps
in #288), in case it's still being used by any external codeMotivation
Users reported that the class
DatadogProps
is no longer available in the Python package v2-1.16.0. https://github.com/DataDog/datadog-cdk-constructs/issues/294Testing Guidelines
Steps
DatadogProps
https://github.com/DataDog/datadog-cdk-constructs/commit/480eed099a4836360e72365db6edcd1af1d43d36Result
Before:
cdk deploy
gives an error:After:
cdk deploy
runs successfullyAdditional Notes
Types of Changes
Check all that apply