示例#1
0
        public Ec2Bootstrapper(AwsBootstrapOptionsValues options, ConDepSettings conDepSettings)
        {
            _options        = options;
            _conDepSettings = conDepSettings;
            _client         = new AmazonEC2Client(_options.Credentials, _options.RegionEndpoint);

            _instanceHandler = new Ec2InstanceHandler(_client);
            _passwordHandler = new Ec2InstancePasswordHandler(_client);
        }
示例#2
0
        public Ec2Stopper(AwsStopOptionsValues options)
        {
            _options = options;
            var config = new AmazonEC2Config {
                RegionEndpoint = _options.RegionEndpoint
            };

            _client          = new AmazonEC2Client(_options.Credentials, config);
            _instanceHandler = new Ec2InstanceHandler(_client);
        }
示例#3
0
        public Ec2Starter(AwsStartOptionsValues options, ConDepSettings settings)
        {
            _options  = options;
            _settings = settings;
            var config = new AmazonEC2Config {
                RegionEndpoint = _options.RegionEndpoint
            };

            _client          = new AmazonEC2Client(_options.Credentials, config);
            _instanceHandler = new Ec2InstanceHandler(_client);
            _passwordHandler = new Ec2InstancePasswordHandler(_client);
        }
 public Ec2ImageHandler(IAmazonEC2 client)
 {
     _client          = client;
     _instanceHandler = new Ec2InstanceHandler(_client);
 }