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

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

            ListOutgoingCertificatesResponse resp = new ListOutgoingCertificatesResponse();

            do
            {
                ListOutgoingCertificatesRequest req = new ListOutgoingCertificatesRequest
                {
                    Marker = resp.NextMarker
                    ,
                    PageSize = maxItems
                };

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

                foreach (var obj in resp.OutgoingCertificates)
                {
                    AddObject(obj);
                }
            }while (!string.IsNullOrEmpty(resp.NextMarker));
        }