PricingPlanManager class
Manages flat-rate pricing subscriptions for supported AWS services. Use this API to create, approve, update, and cancel subscriptions; associate and disassociate resources; and retrieve subscription details. With a flat-rate pricing subscription, you pay a fixed recurring fee for eligible resources instead of usage-based pricing.
Constructors
- PricingPlanManager({required String region, AwsClientCredentials? credentials, AwsClientCredentialsProvider? credentialsProvider, Client? client, String? endpointUrl, bool useFipsEndpoint = false, bool useDualStackEndpoint = false})
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
approvePaidSubscription(
{required String arn, required String ifMatch, String? clientToken}) → Future< ApprovePaidSubscriptionOutput> -
Approves a subscription that is in
PENDING_APPROVALstatus, activating it and starting billing. -
associateResourcesToSubscription(
{required String arn, required String ifMatch, required List< String> resourceArns, String? clientToken}) → Future<AssociateResourcesToSubscriptionOutput> - Adds one or more resources to an existing subscription. The subscription must be in an active state that is not pending other changes.
-
cancelSubscription(
{required String arn, required String ifMatch, String? clientToken}) → Future< CancelSubscriptionOutput> - Cancels a flat-rate pricing subscription.
-
cancelSubscriptionChange(
{required String arn, required String ifMatch, String? clientToken}) → Future< CancelSubscriptionChangeOutput> - Cancels a pending scheduled change on a subscription, such as a pending downgrade or cancellation. The subscription returns to its state before the change was scheduled.
-
close(
) → void - Closes the internal HTTP client if none was provided at creation. If a client was passed as a constructor argument, this becomes a noop.
-
createSubscription(
{required String planFamily, required String planTier, required List< String> resourceArns, ApprovalMode? approvalMode, String? clientToken, String? usageLevel}) → Future<CreateSubscriptionOutput> - Creates a flat-rate pricing subscription for the specified resources.
-
disassociateResourcesFromSubscription(
{required String arn, required String ifMatch, required List< String> resourceArns, String? clientToken}) → Future<DisassociateResourcesFromSubscriptionOutput> - Removes one or more resources from an existing subscription.
-
getSubscription(
{required String arn}) → Future< GetSubscriptionOutput> - Returns the details of a flat-rate pricing subscription, including its current status, associated resources, and any pending scheduled changes.
-
listSubscriptions(
{String? nextToken}) → Future< ListSubscriptionsOutput> - Returns a summary of all flat-rate pricing subscriptions in the calling account.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateSubscription(
{required String arn, required String ifMatch, required String planTier, String? clientToken, String? usageLevel}) → Future< UpdateSubscriptionOutput> - Changes the plan tier of an existing subscription.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited