updateSubscription
abstract suspend fun updateSubscription(input: UpdateSubscriptionRequest): UpdateSubscriptionResponse
Changes the plan tier of an existing subscription.
Upgrades take effect immediately. Downgrades are scheduled and the current tier remains unchanged until the end of the billing cycle (calendar month). You cannot update a subscription while a scheduled change is pending. To make a new change, first cancel the pending change using CancelSubscriptionChange.
This operation replaces the plan tier value. If you omit the optional usageLevel field, it is reset to the default.
Samples
// Update a subscription plan tier
val resp = pricingPlanManagerClient.updateSubscription {
arn = "arn:aws:pricingplanmanager::123456789012:subscription/sub-1234567890"
planTier = "BUSINESS"
ifMatch = "1"
}Content copied to clipboard