listGitHubAccountTokenNames method

Future<ListGitHubAccountTokenNamesOutput> listGitHubAccountTokenNames({
  1. String? nextToken,
})

Lists the names of stored connections to GitHub accounts.

May throw InvalidNextTokenException. May throw ResourceValidationException. May throw OperationNotSupportedException.

Parameter nextToken : An identifier returned from the previous ListGitHubAccountTokenNames call. It can be used to return the next set of names in the list.

Implementation

Future<ListGitHubAccountTokenNamesOutput> listGitHubAccountTokenNames({
  String? nextToken,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'CodeDeploy_20141006.ListGitHubAccountTokenNames'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (nextToken != null) 'nextToken': nextToken,
    },
  );

  return ListGitHubAccountTokenNamesOutput.fromJson(jsonResponse.body);
}