Package com.amazonaws.services.autoscaling.model

Examples of com.amazonaws.services.autoscaling.model.AutoScalingInstanceDetails


    }

    private void verifyInstanceList(List<Resource> resources, List<AutoScalingInstanceDetails> instanceList) {
        Assert.assertEquals(resources.size(), instanceList.size());
        for (int i = 0; i < resources.size(); i++) {
            AutoScalingInstanceDetails instance = instanceList.get(i);
            verifyInstance(resources.get(i), instance.getInstanceId(), instance.getAutoScalingGroupName());
        }
    }
View Full Code Here


        instanceList.add(mkInstanceDetails("i-123456781", "asg2"));
        return instanceList;
    }

    private AutoScalingInstanceDetails mkInstanceDetails(String instanceId, String asgName) {
        return new AutoScalingInstanceDetails().withInstanceId(instanceId).withAutoScalingGroupName(asgName);
    }
View Full Code Here

        String asgName = instanceResource.getTag("aws:autoscaling:groupName");
        if (asgName == null) {
            // At most times the aws:autoscaling:groupName tag has the ASG name, but there are cases
            // that the instance is not correctly tagged and we can find the ASG name from AutoScaling
            // service.
            AutoScalingInstanceDetails instanceDetails = idToASGInstance.get(instanceResource.getId());
            if (instanceDetails != null) {
                asgName = instanceDetails.getAutoScalingGroupName();
            }
        }
        return asgName;
    }
View Full Code Here

TOP

Related Classes of com.amazonaws.services.autoscaling.model.AutoScalingInstanceDetails

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.