cancelSubscription method
Unsubscribes a user or a group from their pricing tier in an Amazon Q Business application. An unsubscribed user or group loses all Amazon Q Business feature access at the start of next month.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter applicationId :
The identifier of the Amazon Q Business application for which the
subscription is being cancelled.
Parameter subscriptionId :
The identifier of the Amazon Q Business subscription being cancelled.
Implementation
Future<CancelSubscriptionResponse> cancelSubscription({
required String applicationId,
required String subscriptionId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/applications/${Uri.encodeComponent(applicationId)}/subscriptions/${Uri.encodeComponent(subscriptionId)}',
exceptionFnMap: _exceptionFns,
);
return CancelSubscriptionResponse.fromJson(response);
}