describeEnvironments method

Future<DescribeEnvironmentsResult> describeEnvironments({
  1. required List<String> environmentIds,
})

Gets information about AWS Cloud9 development environments.

May throw BadRequestException. May throw ConflictException. May throw NotFoundException. May throw ForbiddenException. May throw TooManyRequestsException. May throw LimitExceededException. May throw InternalServerErrorException.

Parameter environmentIds : The IDs of individual environments to get information about.

Implementation

Future<DescribeEnvironmentsResult> describeEnvironments({
  required List<String> environmentIds,
}) async {
  ArgumentError.checkNotNull(environmentIds, 'environmentIds');
  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);
}