diff --git a/DEPRECATED_APIs.md b/DEPRECATED_APIs.md index fdf0a1877b5dc..de3f69163db65 100644 --- a/DEPRECATED_APIs.md +++ b/DEPRECATED_APIs.md @@ -751,7 +751,6 @@ | @aws-cdk/aws-ecs | BaseService.​configureAwsVpcNetworking() | use configureAwsVpcNetworkingWithSecurityGroups instead. | | @aws-cdk/aws-ecs | BaseServiceOptions.​propagateTaskTagsFrom | Use `propagateTags` instead. | | @aws-cdk/aws-ecs | Cluster.​addAutoScalingGroup() | Use {@link Cluster.addAsgCapacityProvider} instead. | -| @aws-cdk/aws-ecs | Cluster.​addCapacity() | Use {@link Cluster.addAsgCapacityProvider} instead. | | @aws-cdk/aws-ecs | Cluster.​addCapacityProvider() | Use {@link enableFargateCapacityProviders} instead. | | @aws-cdk/aws-ecs | ClusterProps.​capacityProviders | Use {@link ClusterProps.enableFargateCapacityProviders} instead. | | @aws-cdk/aws-ecs | Ec2ServiceProps.​securityGroup | use securityGroups instead. | diff --git a/deprecated_apis.txt b/deprecated_apis.txt index cfda6c5068605..433d6fe5438eb 100644 --- a/deprecated_apis.txt +++ b/deprecated_apis.txt @@ -747,7 +747,6 @@ constructs.Node#uniqueId @aws-cdk/aws-ecs.BaseService#configureAwsVpcNetworking @aws-cdk/aws-ecs.BaseServiceOptions#propagateTaskTagsFrom @aws-cdk/aws-ecs.Cluster#addAutoScalingGroup -@aws-cdk/aws-ecs.Cluster#addCapacity @aws-cdk/aws-ecs.Cluster#addCapacityProvider @aws-cdk/aws-ecs.ClusterProps#capacityProviders @aws-cdk/aws-ecs.Ec2ServiceProps#securityGroup diff --git a/packages/@aws-cdk/aws-ecs/lib/cluster.ts b/packages/@aws-cdk/aws-ecs/lib/cluster.ts index 1b42dc6af4088..1dc50ac97ae49 100644 --- a/packages/@aws-cdk/aws-ecs/lib/cluster.ts +++ b/packages/@aws-cdk/aws-ecs/lib/cluster.ts @@ -287,11 +287,11 @@ export class Cluster extends Resource implements ICluster { } /** + * It is highly recommended to use {@link Cluster.addAsgCapacityProvider} instead of this method. + * * This method adds compute capacity to a cluster by creating an AutoScalingGroup with the specified options. * * Returns the AutoScalingGroup so you can add autoscaling settings to it. - * - * @deprecated Use {@link Cluster.addAsgCapacityProvider} instead. */ public addCapacity(id: string, options: AddCapacityOptions): autoscaling.AutoScalingGroup { // Do 2-way defaulting here: if the machineImageType is BOTTLEROCKET, pick the right AMI.