Skip to content

Commit

Permalink
docs(ecs): use correct property name newTargetGroupId
Browse files Browse the repository at this point in the history
  • Loading branch information
reimaruyama authored and mergify[bot] committed Jan 20, 2020
1 parent 5ed5eb4 commit d51350b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions packages/@aws-cdk/aws-ecs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,11 +302,9 @@ const lb = new elbv2.ApplicationLoadBalancer(this, 'LB', { vpc, internetFacing:
const listener = lb.addListener('Listener', { port: 80 });
service.registerLoadBalancerTargets(
{
containerTarget: {
containerName: 'web',
containerPort: 80,
},
targetGroupId: 'ECS',
containerName: 'web',
containerPort: 80,
newTargetGroupId: 'ECS',
listener: ecs.ListenerConfig.applicationListener(listener, {
protocol: elbv2.ApplicationProtocol.HTTPS
}),
Expand Down
8 changes: 3 additions & 5 deletions packages/@aws-cdk/aws-ecs/lib/base/base-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,11 +423,9 @@ export abstract class BaseService extends Resource
*
* service.registerLoadBalancerTargets(
* {
* containerTarget: {
* containerName: 'web',
* containerPort: 80,
* },
* targetGroupId: 'ECS',
* containerName: 'web',
* containerPort: 80,
* newTargetGroupId: 'ECS',
* listener: ecs.ListenerConfig.applicationListener(listener, {
* protocol: elbv2.ApplicationProtocol.HTTPS
* }),
Expand Down

0 comments on commit d51350b

Please sign in to comment.