associateUserSettings method
Associates a user settings resource with a web portal.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter portalArn :
The ARN of the web portal.
Parameter userSettingsArn :
The ARN of the user settings.
Implementation
Future<AssociateUserSettingsResponse> associateUserSettings({
required String portalArn,
required String userSettingsArn,
}) async {
final $query = <String, List<String>>{
'userSettingsArn': [userSettingsArn],
};
final response = await _protocol.send(
payload: null,
method: 'PUT',
requestUri:
'/portals/${portalArn.split('/').map(Uri.encodeComponent).join('/')}/userSettings',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return AssociateUserSettingsResponse.fromJson(response);
}