Exemplo n.º 1
0
 //Unfinished
 public void SetEventTrigger()
 {
     var lstLambdaFuncs = client.ListFunctions();
     var request        = new GetEventSourceMappingRequest()
     {
     };
     var policy = client.GetEventSourceMapping(request);
 }
        public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems)
        {
            AmazonLambdaConfig config = new AmazonLambdaConfig();

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

            ListFunctionsResponse resp = new ListFunctionsResponse();

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

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

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