describeEnvironments method
Gets information about Cloud9 development environments.
May throw BadRequestException.
May throw ConflictException.
May throw ForbiddenException.
May throw InternalServerErrorException.
May throw LimitExceededException.
May throw NotFoundException.
May throw TooManyRequestsException.
Parameter environmentIds :
The IDs of individual environments to get information about.
Implementation
Future<DescribeEnvironmentsResult> describeEnvironments({
required List<String> environmentIds,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSCloud9WorkspaceManagementService.DescribeEnvironments'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'environmentIds': environmentIds,
},
);
return DescribeEnvironmentsResult.fromJson(jsonResponse.body);
}