startSandboxConnection method

Future<StartSandboxConnectionOutput> startSandboxConnection({
  1. required String sandboxId,
})

Starts a sandbox connection.

May throw InvalidInputException. May throw ResourceNotFoundException.

Parameter sandboxId : A sandboxId or sandboxArn.

Implementation

Future<StartSandboxConnectionOutput> startSandboxConnection({
  required String sandboxId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'CodeBuild_20161006.StartSandboxConnection'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'sandboxId': sandboxId,
    },
  );

  return StartSandboxConnectionOutput.fromJson(jsonResponse.body);
}