putHubConfiguration method
Future<PutHubConfigurationResponse>
putHubConfiguration({
- required int hubTokenTimerExpirySettingInSeconds,
Update a hub configuration.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ServiceUnavailableException.
May throw ThrottlingException.
May throw ValidationException.
Parameter hubTokenTimerExpirySettingInSeconds :
A user-defined integer value that represents the hub token timer expiry
setting in seconds.
Implementation
Future<PutHubConfigurationResponse> putHubConfiguration({
required int hubTokenTimerExpirySettingInSeconds,
}) async {
_s.validateNumRange(
'hubTokenTimerExpirySettingInSeconds',
hubTokenTimerExpirySettingInSeconds,
1,
1152921504606846976,
isRequired: true,
);
final $payload = <String, dynamic>{
'HubTokenTimerExpirySettingInSeconds':
hubTokenTimerExpirySettingInSeconds,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/hub-configuration',
exceptionFnMap: _exceptionFns,
);
return PutHubConfigurationResponse.fromJson(response);
}