describeStackSummary method
Describes the number of layers and apps in a specified stack, and the
number of instances in each state, such as running_setup
or
online
.
Required Permissions: To use this action, an IAM user must have a Show, Deploy, or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information about user permissions, see Managing User Permissions.
May throw ValidationException. May throw ResourceNotFoundException.
Parameter stackId
:
The stack ID.
Implementation
Future<DescribeStackSummaryResult> describeStackSummary({
required String stackId,
}) async {
ArgumentError.checkNotNull(stackId, 'stackId');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'OpsWorks_20130218.DescribeStackSummary'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'StackId': stackId,
},
);
return DescribeStackSummaryResult.fromJson(jsonResponse.body);
}