internal Application(ZAwsEc2 server, string name, string url, string repo, string reponame, ApplicationType type) { Server = server; Name = name; URL = url; Repo = repo; RepoName = reponame; AppType = type; }
public ZAwsTaskAssociateNewIpToEc2(ZAwsEc2 ec2) : base(ec2.myController, "Application will be installed.") { Ec2 = ec2; StartMessage = "Associating new IP with EC2 " + ec2.Name; SuccessMessage = "Succefully associated new IP with EC2 " + ec2.Name; ExceptionMessage = "Error associating IP, reason: {0}"; DelayBeforeTaskStart = 1; }
public ZAwsTaskPointARecordToEc2(ZAwsEc2 ec2, string url) : base(ec2.myController, "Application will be installed.") { Ec2 = ec2; Url = url; StartMessage = "Creating new A record for " + Url; SuccessMessage = "Succefully created A record."; ExceptionMessage = "Error creating A record, reason: {0}"; DelayBeforeTaskStart = 1; }
internal void Associate(ZAwsEc2 ec2) { Amazon.EC2.Model.AssociateAddressResponse resp = myController.ec2.AssociateAddress(new AssociateAddressRequest() .WithPublicIp(this.Name) .WithInstanceId(ec2.InstanceId)); }