public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems) { AmazonECSConfig config = new AmazonECSConfig(); config.RegionEndpoint = region; ConfigureClient(config); AmazonECSClient client = new AmazonECSClient(creds, config); ListServicesResponse resp = new ListServicesResponse(); do { ListServicesRequest req = new ListServicesRequest { NextToken = resp.NextToken , MaxResults = maxItems }; resp = client.ListServices(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.ServiceArns) { AddObject(obj); } }while (!string.IsNullOrEmpty(resp.NextToken)); }
public void ECSListServices() { #region 1d9a8037-4e0e-4234-a528-609656809a3a var client = new AmazonECSClient(); var response = client.ListServices(new ListServicesRequest { }); List <string> serviceArns = response.ServiceArns; #endregion }