ChaosMonkey.Infrastructure.Ec2Factory.Ec2Factory C# (CSharp) Method

Ec2Factory() public method

public Ec2Factory ( string AWSAccessKey, string AWSSecretKey, string serviceUrl, ChaosLogger logger ) : System
AWSAccessKey string
AWSSecretKey string
serviceUrl string
logger ChaosLogger
return System
        public Ec2Factory(string AWSAccessKey, string AWSSecretKey, string serviceUrl, ChaosLogger logger)
        {
            this.logger = logger;
            if (!serviceUrl.Contains("http://"))
            {
                serviceUrl = "http://" + serviceUrl;
            }

            amazonEc2 = AWSClientFactory.CreateAmazonEC2Client(
                AWSAccessKey,
                AWSSecretKey,
                new AmazonEC2Config().WithServiceURL(serviceUrl));
        }