chore(ecs-patterns): ScheduledFargateTaskProps is exposing unused props from FargateServiceBaseProps#26737
Conversation
…ops from FargateServiceBaseProps
rix0rrr
left a comment
There was a problem hiding this comment.
Unfortunately, our dear friend backwards compatibility raises its ugly head again (let me reformat to make this more readable):
API elements with incompatible changes:
err - IFACE aws-cdk-lib.aws_ecs_patterns.ScheduledFargateTaskProps:
not assignable to all base types anymore:
aws-cdk-lib.aws_ecs_patterns.ScheduledFargateTaskProps does not extend aws-cdk-lib.aws_ecs_patterns.FargateServiceBaseProps
err - PROP aws-cdk-lib.aws_ecs_patterns.ScheduledFargateTaskProps.cpu:
has been removed
err - PROP aws-cdk-lib.aws_ecs_patterns.ScheduledFargateTaskProps.memoryLimitMiB:
has been removed
err - PROP aws-cdk-lib.aws_ecs_patterns.ScheduledFargateTaskProps.runtimePlatform:
has been removed
err - PROP aws-cdk-lib.aws_ecs_patterns.ScheduledFargateTaskProps.taskDefinition:
has been removed
Once an API has been locked in, the only way to deal with this is by using runtime validation.
And we can't really break any currently succeeding synths either, so we'd have to add a warning.
|
@rix0rrr |
Yep! |
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
ScheduledFargateTaskPropswas extending theFargateServiceBasePropsinterface.The only property used from that interface is
platformVersion.This change adds warning messages if the unused properties are specified:
taskDefinitioncpumemoryLimitMiBruntimePlatformCloses #26702.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license