Lists the names of stored connections to GitHub accounts.
Parameters:
-
next_token
(Optional[NextToken], default:
None
)
–
An identifier returned from the previous ListGitHubAccountTokenNames call. It can be used to return the next set of names in the list.
Raises:
Source code in docs_src/capo_codedeploy/_services/async_code_deploy.py
| async def list_git_hub_account_token_names(
self,
*,
config_overrides: Optional[AsyncCodeDeployClientConfig] = None,
next_token: Optional["capo_codedeploy.types.next_token.NextToken"] = None,
) -> "capo_codedeploy.types.list_git_hub_account_token_names_output.ListGitHubAccountTokenNamesOutput":
"""<p>Lists the names of stored connections to GitHub accounts.</p>
Args:
next_token: <p>An identifier returned from the previous <code>ListGitHubAccountTokenNames</code> call. It can be used to return the next set of names in the list. </p>
Raises:
capo_codedeploy.errors.invalid_next_token_exception.InvalidNextTokenException: <p>The next token was specified in an invalid format.</p>
capo_codedeploy.errors.operation_not_supported_exception.OperationNotSupportedException: <p>The API used does not support the deployment.</p>
capo_codedeploy.errors.resource_validation_exception.ResourceValidationException: <p>The specified resource could not be validated.</p>
capo_codedeploy.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_codedeploy.types.list_git_hub_account_token_names_input.ListGitHubAccountTokenNamesInput]",
) -> AsyncOperationResponse[
"capo_codedeploy.types.list_git_hub_account_token_names_output.ListGitHubAccountTokenNamesOutput"
]:
import capo_codedeploy._operations.code_deploy_20141006.list_git_hub_account_token_names
(
output,
http_response,
) = await capo_codedeploy._operations.code_deploy_20141006.list_git_hub_account_token_names.async_list_git_hub_account_token_names(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListGitHubAccountTokenNames")
)
input_: capo_codedeploy.types.list_git_hub_account_token_names_input.ListGitHubAccountTokenNamesInput = {}
if next_token is not None:
input_["next_token"] = next_token
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|