Exemplo n.º 1
0
 public bool TryUpdateAlert(int instancesOutOfService)
 {
     var s3 = new S3();
     return s3.TryPut(
         "instance-alerts",
         "sometaro-elb.txt",
         instancesOutOfService.ToString()
     );
 }
        public InsightInstanceUrlUploadTask(string loadBalancerName, string bucketName, string taskName = null)
            : base(taskName ?? "Insight Status Page Task")
        {
            loadBalancerName.Required("loadBalancerName");
            bucketName.Required("bucketName");

            this.loadBalancerName = loadBalancerName;
            this.bucketName = bucketName;

            this.elb = new ELB();
            this.ec2 = new EC2();
            this.s3 = new S3();
        }