SavingsPlans class
Savings Plans are a pricing model that offer significant savings on AWS usage (for example, on Amazon EC2 instances). You commit to a consistent amount of usage, in USD per hour, for a term of 1 or 3 years, and receive a lower price for that usage. For more information, see the AWS Savings Plans User Guide.
Constructors
- SavingsPlans({required String region, AwsClientCredentials? credentials, AwsClientCredentialsProvider? credentialsProvider, Client? client, String? endpointUrl})
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 specified Savings Plans rates.
-
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 specified Savings Plans offering rates.
-
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 specified Savings Plans offerings.
-
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
-
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