List of usage examples for com.amazonaws.services.autoscaling.model ExecutePolicyRequest ExecutePolicyRequest
ExecutePolicyRequest
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; }