QBusinessClient.cancel_subscription
rboto-qbusiness==0.4.0 · Service index · Types
Model summary (excerpt): 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.
Install and imports
Signature
async def cancel_subscription(
*,
application_id: str,
subscription_id: str,
) -> CancelSubscriptionOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
application_id |
Yes | The identifier of the Amazon Q Business application for which the subscription is being cancelled. |
subscription_id |
Yes | The identifier of the Amazon Q Business subscription being cancelled. |
Output
CancelSubscriptionOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
subscription_arn |
str | None |
Always present | — |
current_subscription |
SubscriptionDetailsOutput | None |
Always present | SubscriptionDetailsOutput |
next_subscription |
SubscriptionDetailsOutput | None |
Always present | SubscriptionDetailsOutput |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_qbusiness.exceptions:
AccessDeniedError, InternalServerError, ResourceNotFoundError, ThrottlingError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.