cancelSubscription
inline suspend fun PricingPlanManagerClient.cancelSubscription(crossinline block: CancelSubscriptionRequest.Builder.() -> Unit): CancelSubscriptionResponse
Cancels a flat-rate pricing subscription.
For active subscriptions, the cancellation is scheduled to take effect at the end of the current billing period. The subscription remains active until that date. To revert a pending cancellation, use CancelSubscriptionChange.
For subscriptions in PENDING_APPROVAL status, the subscription is deleted immediately without scheduling.
Samples
// Cancel a subscription
val resp = pricingPlanManagerClient.cancelSubscription {
arn = "arn:aws:pricingplanmanager::123456789012:subscription/sub-1234567890"
ifMatch = "2"
}Content copied to clipboard