describeAgentVersions method
Future<DescribeAgentVersionsResult>
describeAgentVersions({
- StackConfigurationManager? configurationManager,
- String? stackId,
Describes the available AWS OpsWorks Stacks agent versions. You must
specify a stack ID or a configuration manager.
DescribeAgentVersions
returns a list of available agent
versions for the specified stack or configuration manager.
May throw ValidationException. May throw ResourceNotFoundException.
Parameter configurationManager
:
The configuration manager.
Parameter stackId
:
The stack ID.
Implementation
Future<DescribeAgentVersionsResult> describeAgentVersions({
StackConfigurationManager? configurationManager,
String? stackId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'OpsWorks_20130218.DescribeAgentVersions'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (configurationManager != null)
'ConfigurationManager': configurationManager,
if (stackId != null) 'StackId': stackId,
},
);
return DescribeAgentVersionsResult.fromJson(jsonResponse.body);
}