-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws-stepfunctions-tasks: EcsRunTask is not actually a construct? #28665
Comments
EcsRunTask is actually a Construct which implements IConstruct. Can you elaborate on why it should not? |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
@pahud Reading the cdk design guidelines, the cdk constructs module and the cdk user guide, Some highlights: from design guidelines:
from the constructs module's overview:
from IConstruct's documentation:
|
A Construct does not necessary to be a cloudformation resource. EcsRunTask extends sfn.TaskStateBase, which extends State, which extends Construct so EcsRunTask is technically a Construct. |
As far as I can find, and as I've pointed out above, a Construct do always represent a CloudFormation resource. If the definition of "Construct" as it is used in the CDK library is different from how it is defined in CloudFormation, the CDK documentation for Construct should specify this. I know this is a minor detail... But I do think it's technically incorrect given by the current documentation. |
Describe the bug
EcsRunTask
implementsIConstruct
even though to my understanding it's not actually a construct (that's my understanding from reading design guidelines as well as the user guide) as it does not represent a CloudFormation resource definition.Expected Behavior
EcsRunTask
does not implementIConstruct
.Current Behavior
EcsRunTask
implementsIConstruct
.Reproduction Steps
Library API.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
N/A
Framework Version
2.118.0
Node.js Version
N/A
OS
N/A
Language
TypeScript
Language Version
N/A
Other information
No response
The text was updated successfully, but these errors were encountered: