Package com.amazonaws.services.autoscaling.model

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


  public Void call() {
    AutoScalingGroup scalingGroup = new GetAutoScalingGroup(
        getAwsCredentials(), getRegion(), this.autoScalingGroup).call();
    int currentSize = scalingGroup.getDesiredCapacity();

    TerminateInstanceInAutoScalingGroupRequest request = new TerminateInstanceInAutoScalingGroupRequest()
        .withInstanceId(this.instanceId)
        .withShouldDecrementDesiredCapacity(true);
    TerminateInstanceInAutoScalingGroupResult result = getClient().getApi()
        .terminateInstanceInAutoScalingGroup(request);
View Full Code Here

TOP

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

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.