This PR adds a class CdkPythonStackBase, and makes:
class CdkPythonStackBase(Stack):
and
class CdkPythonStack(CdkPythonStackBase):
CdkPythonStackBase contains the setup of AWS resources, not related to Datadog.
CdkPythonStack contains Datadog instrumentation code.
Motivation
I'm going to rename the interfaces like I did in https://github.com/DataDog/datadog-cdk-constructs/pull/288. To make sure both the new API and old API work, I will need to to write two stacks for testing the two APIs. The two stacks will share the non-Datadog setup code, so I'm putting this part in the base class.
What does this PR do?
Right now we have
This PR adds a class
CdkPythonStackBase
, and makes:and
CdkPythonStackBase
contains the setup of AWS resources, not related to Datadog.CdkPythonStack
contains Datadog instrumentation code.Motivation
I'm going to rename the interfaces like I did in https://github.com/DataDog/datadog-cdk-constructs/pull/288. To make sure both the new API and old API work, I will need to to write two stacks for testing the two APIs. The two stacks will share the non-Datadog setup code, so I'm putting this part in the base class.
Testing Guidelines
cdk deploy
successfully deploys the Python stack.Additional Notes
Types of Changes
Check all that apply