Example usage for com.amazonaws.services.autoscaling.model ExecutePolicyRequest ExecutePolicyRequest

List of usage examples for com.amazonaws.services.autoscaling.model ExecutePolicyRequest ExecutePolicyRequest

Introduction

In this page you can find the example usage for com.amazonaws.services.autoscaling.model ExecutePolicyRequest ExecutePolicyRequest.

Prototype

ExecutePolicyRequest

Source Link

Usage

From source file:org.xmlsh.aws.asExecutePolicy.java

License:BSD License

private int execute(String group, String policy)
        throws IOException, XMLStreamException, SaxonApiException, CoreException {

    OutputPort stdout = getStdout();/* w w  w  .  j  ava2s  . c om*/
    mWriter = new SafeXMLStreamWriter(stdout.asXMLStreamWriter(getSerializeOpts()));

    startDocument();
    startElement(getName());

    ExecutePolicyRequest request = new ExecutePolicyRequest().withAutoScalingGroupName(group)
            .withPolicyName(policy);

    traceCall("executePolicy");

    getAWSClient().executePolicy(request);

    endElement();
    endDocument();
    return 0;

}