ecsPatterns.ApplicationLoadBalancedFargateService: targetGroup cannot be declared. #30151
Labels
@aws-cdk/aws-ecs-patterns
Related to ecs-patterns library
closed-for-staleness
This issue was automatically closed because it hadn't received any attention in a while.
documentation
This is a problem with documentation.
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the issue
This is my first submission, so try not to rake me over the coals too harshly if this is a bug and not a documentation issue.
In the documentation,
targetGroup
shows up in the Properties table, along withloadBalancer
,certificate
, and other properties that CAN be assigned. I have verified I'm using CDK v2.141.0 on my local, and am reading the docs for 2.141.0, but when I try to rundiff
,synth
, ordeploy
I get this:error TS2345: Argument of type '{ loadBalancer: cdk.aws_elasticloadbalancingv2.IApplicationLoadBalancer; targetGroup: cdk.aws_elasticloadbalancingv2.IApplicationTargetGroup; publicLoadBalancer: false; ... 14 more ...; openListener: false; }' is not assignable to parameter of type 'ApplicationLoadBalancedFargateServiceProps'.
Object literal may only specify known properties, and 'targetGroup' does not exist in type 'ApplicationLoadBalancedFargateServiceProps'.
179 targetGroup: jenkinsTargetGroup,
Links
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs_patterns.ApplicationLoadBalancedFargateService.html
The text was updated successfully, but these errors were encountered: