public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems) { AmazonAppConfigConfig config = new AmazonAppConfigConfig(); config.RegionEndpoint = region; ConfigureClient(config); AmazonAppConfigClient client = new AmazonAppConfigClient(creds, config); ListDeploymentStrategiesResponse resp = new ListDeploymentStrategiesResponse(); do { ListDeploymentStrategiesRequest req = new ListDeploymentStrategiesRequest { NextToken = resp.NextToken , MaxResults = maxItems }; resp = client.ListDeploymentStrategies(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.Items) { AddObject(obj); } }while (!string.IsNullOrEmpty(resp.NextToken)); }
public void AppConfigListDeploymentStrategies() { #region to-list-the-available-deployment-strategies-1632267364180 var client = new AmazonAppConfigClient(); var response = client.ListDeploymentStrategies(new ListDeploymentStrategiesRequest { }); List <DeploymentStrategy> items = response.Items; #endregion }