Ejemplo n.º 1
0
        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);

            DescribeBackupsResponse resp = new DescribeBackupsResponse();

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

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

                foreach (var obj in resp.Backups)
                {
                    AddObject(obj);
                }
            }while (!string.IsNullOrEmpty(resp.NextToken));
        }
Ejemplo n.º 2
0
        public void FSxDescribeBackups()
        {
            #region to-describe-backups-1481848448499

            var client   = new AmazonFSxClient();
            var response = client.DescribeBackups(new DescribeBackupsRequest
            {
            });

            List <Backup> backups = response.Backups;

            #endregion
        }