Esempio n. 1
0
        public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems)
        {
            AmazonElasticFileSystemConfig config = new AmazonElasticFileSystemConfig();

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

            DescribeFileSystemsResponse resp = new DescribeFileSystemsResponse();

            do
            {
                DescribeFileSystemsRequest req = new DescribeFileSystemsRequest
                {
                    Marker = resp.NextMarker
                    ,
                    MaxItems = maxItems
                };

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

                foreach (var obj in resp.FileSystems)
                {
                    AddObject(obj);
                }
            }while (!string.IsNullOrEmpty(resp.NextMarker));
        }
Esempio n. 2
0
        public void ElasticFileSystemDescribeFileSystems()
        {
            #region to-describe-an-efs-file-system-1481848448460

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

            List <FileSystemDescription> fileSystems = response.FileSystems;

            #endregion
        }