public void DatabaseMigrationServiceDescribeConnections() { #region describe-connections-1481754477953 var client = new AmazonDatabaseMigrationServiceClient(); var response = client.DescribeConnections(new DescribeConnectionsRequest { Filters = new List <Filter> { new Filter { Name = "string", Values = new List <string> { "string", "string" } } }, Marker = "", MaxRecords = 123 }); List <Connection> connections = response.Connections; string marker = response.Marker; #endregion }
public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems) { AmazonDatabaseMigrationServiceConfig config = new AmazonDatabaseMigrationServiceConfig(); config.RegionEndpoint = region; ConfigureClient(config); AmazonDatabaseMigrationServiceClient client = new AmazonDatabaseMigrationServiceClient(creds, config); DescribeConnectionsResponse resp = new DescribeConnectionsResponse(); do { DescribeConnectionsRequest req = new DescribeConnectionsRequest { Marker = resp.Marker , MaxRecords = maxItems }; resp = client.DescribeConnections(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.Connections) { AddObject(obj); } }while (!string.IsNullOrEmpty(resp.Marker)); }