You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
List result = opsWorksClient.describeStacks(new DescribeStacksRequest()).getStacks();
Exception in thread "main" ValidationException: Status Code: 400, AWS Service: AWSOpsWorks, AWS Request ID: 45957802-c956-11e2-bd64-95797b8784fd, AWS Error Code: ValidationException, AWS Error Message: Please provide no arguments or, one or more stack IDs
at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:653)
at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:347)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:199)
at com.amazonaws.services.opsworks.AWSOpsWorksClient.invoke(AWSOpsWorksClient.java:2039)
at com.amazonaws.services.opsworks.AWSOpsWorksClient.describeStacks(AWSOpsWorksClient.java:1686)
And:
List result = opsWorksClient.describeStacks(new DescribeStacksRequest().withStackIds()).getStacks();
Exception in thread "main" ValidationException: Status Code: 400, AWS Service: AWSOpsWorks, AWS Request ID: 1e5777d7-c958-11e2-9f24-eb40b9de1b03, AWS Error Code: ValidationException, AWS Error Message: Please provide no arguments or, one or more stack IDs
at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:653)
at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:347)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:199)
at com.amazonaws.services.opsworks.AWSOpsWorksClient.invoke(AWSOpsWorksClient.java:2039)
at com.amazonaws.services.opsworks.AWSOpsWorksClient.describeStacks(AWSOpsWorksClient.java:1686)
The text was updated successfully, but these errors were encountered:
Thanks for reporting it. For some reason, we do not have the API describeStacks(). I have reported your issue to the AWS Opsworks team. I will let you when there is any update.
A DescribeStacksRequest describeStacks call with no ID's specified throws a validation error. Per the [API](http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/opsworks/model/DescribeStacksRequest.html#withStackIds(java.lang.String...), omitting the withStackIds() parameter should return a description of all stacks.
And:
The text was updated successfully, but these errors were encountered: