public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems) { AmazonNeptuneConfig config = new AmazonNeptuneConfig(); config.RegionEndpoint = region; ConfigureClient(config); AmazonNeptuneClient client = new AmazonNeptuneClient(creds, config); DescribeDBSubnetGroupsResponse resp = new DescribeDBSubnetGroupsResponse(); do { DescribeDBSubnetGroupsRequest req = new DescribeDBSubnetGroupsRequest { Marker = resp.Marker , MaxRecords = maxItems }; resp = client.DescribeDBSubnetGroups(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.DBSubnetGroups) { AddObject(obj); } }while (!string.IsNullOrEmpty(resp.Marker)); }
protected IAmazonNeptune CreateClient(AWSCredentials credentials, RegionEndpoint region) { var config = new AmazonNeptuneConfig { RegionEndpoint = region }; Amazon.PowerShell.Utils.Common.PopulateConfig(this, config); this.CustomizeClientConfig(config); var client = new AmazonNeptuneClient(credentials, config); client.BeforeRequestEvent += RequestEventHandler; client.AfterResponseEvent += ResponseEventHandler; return(client); }
public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems) { AmazonNeptuneConfig config = new AmazonNeptuneConfig(); config.RegionEndpoint = region; ConfigureClient(config); AmazonNeptuneClient client = new AmazonNeptuneClient(creds, config); ListTagsForResourceResponse resp = new ListTagsForResourceResponse(); ListTagsForResourceRequest req = new ListTagsForResourceRequest { }; resp = client.ListTagsForResource(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.TagList) { AddObject(obj); } }