public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems)
        {
            AmazonFSxConfig config = new AmazonFSxConfig();

            config.RegionEndpoint = region;
            ConfigureClient(config);
            AmazonFSxClient client = new AmazonFSxClient(creds, config);

            DescribeFileSystemsResponse resp = new DescribeFileSystemsResponse();

            do
            {
                DescribeFileSystemsRequest req = new DescribeFileSystemsRequest
                {
                    NextToken = resp.NextToken
                    ,
                    MaxResults = maxItems
                };

                resp = client.DescribeFileSystems(req);
                CheckError(resp.HttpStatusCode, "200");

                foreach (var obj in resp.FileSystems)
                {
                    AddObject(obj);
                }
            }while (!string.IsNullOrEmpty(resp.NextToken));
        }
Beispiel #2
0
        public void FSxDescribeFileSystems()
        {
            #region to-describe-a-file-systems-1481848448460

            var client   = new AmazonFSxClient();
            var response = client.DescribeFileSystems(new DescribeFileSystemsRequest
            {
            });

            List <FileSystem> fileSystems = response.FileSystems;

            #endregion
        }