Savingsplans class

Savings Plans are a pricing model that offer significant savings on Amazon Web Services usage (for example, on Amazon EC2 instances). You commit to a consistent amount of usage per hour, in the specified currency, for a term of one or three years, and receive a lower price for that usage. For more information, see the Amazon Web Services Savings Plans User Guide.

Constructors

Savingsplans({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

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.
createSavingsPlan({required String commitment, required String savingsPlanOfferingId, String? clientToken, DateTime? purchaseTime, Map<String, String>? tags, String? upfrontPaymentAmount}) → Future<CreateSavingsPlanResponse>
Creates a Savings Plan.
deleteQueuedSavingsPlan({required String savingsPlanId}) → Future<void>
Deletes the queued purchase for the specified Savings Plan.
describeSavingsPlanRates({required String savingsPlanId, List<SavingsPlanRateFilter>? filters, int? maxResults, String? nextToken}) → Future<DescribeSavingsPlanRatesResponse>
Describes the rates for a specific, existing Savings Plan.
describeSavingsPlans({List<SavingsPlanFilter>? filters, int? maxResults, String? nextToken, List<String>? savingsPlanArns, List<String>? savingsPlanIds, List<SavingsPlanState>? states}) → Future<DescribeSavingsPlansResponse>
Describes the specified Savings Plans.
describeSavingsPlansOfferingRates({List<SavingsPlanOfferingRateFilterElement>? filters, int? maxResults, String? nextToken, List<String>? operations, List<SavingsPlanProductType>? products, List<String>? savingsPlanOfferingIds, List<SavingsPlanPaymentOption>? savingsPlanPaymentOptions, List<SavingsPlanType>? savingsPlanTypes, List<SavingsPlanRateServiceCode>? serviceCodes, List<String>? usageTypes}) → Future<DescribeSavingsPlansOfferingRatesResponse>
Describes the offering rates for Savings Plans you might want to purchase.
describeSavingsPlansOfferings({List<CurrencyCode>? currencies, List<String>? descriptions, List<int>? durations, List<SavingsPlanOfferingFilterElement>? filters, int? maxResults, String? nextToken, List<String>? offeringIds, List<String>? operations, List<SavingsPlanPaymentOption>? paymentOptions, List<SavingsPlanType>? planTypes, SavingsPlanProductType? productType, List<String>? serviceCodes, List<String>? usageTypes}) → Future<DescribeSavingsPlansOfferingsResponse>
Describes the offerings for the specified Savings Plans.
listTagsForResource({required String resourceArn}) → Future<ListTagsForResourceResponse>
Lists the tags for the specified resource.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
returnSavingsPlan({required String savingsPlanId, String? clientToken}) → Future<ReturnSavingsPlanResponse>
Returns the specified Savings Plan.
tagResource({required String resourceArn, required Map<String, String> tags}) → Future<void>
Adds the specified tags to the specified resource.
toString() → String
A string representation of this object.
inherited
untagResource({required String resourceArn, required List<String> tagKeys}) → Future<void>
Removes the specified tags from the specified resource.

Operators

operator ==(Object other) → bool
The equality operator.
inherited