updateAccessToken method

Future<UpdateAccessTokenOutput> updateAccessToken({
  1. required String accessTokenId,
  2. required String name,
})

Updates the configuration of an access token.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ServiceQuotaExceededException. May throw ThrottlingException. May throw ValidationException.

Parameter accessTokenId : The ID of the token.

Parameter name : The new name of the token.

Implementation

Future<UpdateAccessTokenOutput> updateAccessToken({
  required String accessTokenId,
  required String name,
}) async {
  final $payload = <String, dynamic>{
    'name': name,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PATCH',
    requestUri: '/tokens/${Uri.encodeComponent(accessTokenId)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateAccessTokenOutput.fromJson(response);
}