use of software.amazon.awssdk.services.ecs.EcsClient in project aws-doc-sdk-examples by awsdocs.
the class ListClusters method main.
public static void main(String[] args) {
Region region = Region.US_EAST_1;
EcsClient ecsClient = EcsClient.builder().region(region).build();
listAllClusters(ecsClient);
ecsClient.close();
}
use of software.amazon.awssdk.services.ecs.EcsClient in project aws-doc-sdk-examples by awsdocs.
the class DescribeClusters method main.
public static void main(String[] args) {
final String usage = "\n" + "Usage:\n" + " <clusterArn> \n\n" + "Where:\n" + " clusterArn - the ARN of the ECS cluster to describe.\n";
if (args.length != 1) {
System.out.println(usage);
System.exit(1);
}
String clusterArn = args[0];
Region region = Region.US_EAST_1;
EcsClient ecsClient = EcsClient.builder().region(region).build();
descCluster(ecsClient, clusterArn);
}