1919import software .amazon .awssdk .services .cloudformation .CloudFormationClient ;
2020import software .amazon .awssdk .services .cloudwatchevents .CloudWatchEventsClient ;
2121import software .amazon .awssdk .services .ecr .EcrClient ;
22- import software .amazon .awssdk .services .ecs .EcsClient ;
2322import software .amazon .awssdk .services .emr .EmrClient ;
2423import software .amazon .awssdk .services .emrserverless .EmrServerlessClient ;
2524import software .amazon .awssdk .services .s3 .S3Client ;
@@ -31,7 +30,6 @@ public class TearDownClients {
3130
3231 private final S3Client s3 ;
3332 private final CloudWatchEventsClient cloudWatch ;
34- private final EcsClient ecs ;
3533 private final EcrClient ecr ;
3634 private final EmrClient emr ;
3735 private final EmrServerlessClient emrServerless ;
@@ -40,7 +38,6 @@ public class TearDownClients {
4038 private TearDownClients (Builder builder ) {
4139 s3 = Objects .requireNonNull (builder .s3 , "s3v2 must not be null" );
4240 cloudWatch = Objects .requireNonNull (builder .cloudWatch , "cloudWatch must not be null" );
43- ecs = Objects .requireNonNull (builder .ecs , "ecs must not be null" );
4441 ecr = Objects .requireNonNull (builder .ecr , "ecr must not be null" );
4542 emr = Objects .requireNonNull (builder .emr , "emr must not be null" );
4643 emrServerless = Objects .requireNonNull (builder .emrServerless , "emrServerless must not be null" );
@@ -51,14 +48,12 @@ public static void withDefaults(TearDownOperation operation) throws IOException,
5148 try (S3Client s3Client = S3Client .create ();
5249 CloudWatchEventsClient cloudWatchClient = CloudWatchEventsClient .create ();
5350 EcrClient ecrClient = EcrClient .create ();
54- EcsClient ecsClient = EcsClient .create ();
5551 EmrClient emrClient = EmrClient .create ();
5652 EmrServerlessClient emrServerless = EmrServerlessClient .create ();
5753 CloudFormationClient cloudFormationClient = CloudFormationClient .create ()) {
5854 TearDownClients clients = builder ()
5955 .s3 (s3Client )
6056 .cloudWatch (cloudWatchClient )
61- .ecs (ecsClient )
6257 .ecr (ecrClient )
6358 .emr (emrClient )
6459 .emrServerless (emrServerless )
@@ -80,10 +75,6 @@ public CloudWatchEventsClient getCloudWatch() {
8075 return cloudWatch ;
8176 }
8277
83- public EcsClient getEcs () {
84- return ecs ;
85- }
86-
8778 public EcrClient getEcr () {
8879 return ecr ;
8980 }
@@ -103,7 +94,6 @@ public CloudFormationClient getCloudFormation() {
10394 public static final class Builder {
10495 private S3Client s3 ;
10596 private CloudWatchEventsClient cloudWatch ;
106- private EcsClient ecs ;
10797 private EcrClient ecr ;
10898 private EmrClient emr ;
10999 private EmrServerlessClient emrServerless ;
@@ -122,11 +112,6 @@ public Builder cloudWatch(CloudWatchEventsClient cloudWatch) {
122112 return this ;
123113 }
124114
125- public Builder ecs (EcsClient ecs ) {
126- this .ecs = ecs ;
127- return this ;
128- }
129-
130115 public Builder ecr (EcrClient ecr ) {
131116 this .ecr = ecr ;
132117 return this ;
0 commit comments