create_microvm_shell_auth_token
async
¶
create_microvm_shell_auth_token(
microvm_identifier: MicrovmIdentifier,
expiration_in_minutes: PositiveInteger,
*,
config_overrides: Optional[AsyncLambdaMicrovmsClientConfig] = None,
) -> CreateMicrovmShellAuthTokenResponse
Creates a shell authentication token for interactive shell access to a running MicroVM. The MicroVM must have been run with the SHELL_INGRESS network connector attached.
Parameters:
-
microvm_identifier(MicrovmIdentifier) –The ID of the MicroVM to create a shell authentication token for.
-
expiration_in_minutes(PositiveInteger) –The duration in minutes before the shell authentication token expires.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–An internal server error occurred. Retry the request later.
-
ThrottlingException–The request was denied due to request throttling. Retry the request later.
-
ValidationException–The input does not satisfy the constraints specified by the service.
-
ConflictException–The request could not be completed due to a conflict with the current state of the resource.
-
ResourceNotFoundException–The specified resource does not exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_lambda_microvms/_services/async_lambda_microvms.py
978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 | |