describeEnvironmentStatus method

Future<DescribeEnvironmentStatusResult> describeEnvironmentStatus({
  1. required String environmentId,
})

Gets status information for an AWS Cloud9 development environment.

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

Parameter environmentId : The ID of the environment to get status information about.

Implementation

Future<DescribeEnvironmentStatusResult> describeEnvironmentStatus({
  required String environmentId,
}) async {
  ArgumentError.checkNotNull(environmentId, 'environmentId');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target':
        'AWSCloud9WorkspaceManagementService.DescribeEnvironmentStatus'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'environmentId': environmentId,
    },
  );

  return DescribeEnvironmentStatusResult.fromJson(jsonResponse.body);
}