signOutUser method

Future<void> signOutUser({
  1. required String fleetArn,
  2. required String username,
})

Signs the user out from all of their devices. The user can sign in again if they have valid credentials.

May throw UnauthorizedException. May throw InternalServerErrorException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw TooManyRequestsException.

Parameter fleetArn : The ARN of the fleet.

Parameter username : The name of the user.

Implementation

Future<void> signOutUser({
  required String fleetArn,
  required String username,
}) async {
  ArgumentError.checkNotNull(fleetArn, 'fleetArn');
  _s.validateStringLength(
    'fleetArn',
    fleetArn,
    20,
    2048,
    isRequired: true,
  );
  ArgumentError.checkNotNull(username, 'username');
  _s.validateStringLength(
    'username',
    username,
    1,
    256,
    isRequired: true,
  );
  final $payload = <String, dynamic>{
    'FleetArn': fleetArn,
    'Username': username,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/signOutUser',
    exceptionFnMap: _exceptionFns,
  );
}