npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@datafire/amazonaws_savingsplans

v5.0.0

Published

DataFire integration for AWS Savings Plans

Downloads

18

Readme

@datafire/amazonaws_savingsplans

Client library for AWS Savings Plans

Installation and Usage

npm install --save @datafire/amazonaws_savingsplans
let amazonaws_savingsplans = require('@datafire/amazonaws_savingsplans').create({
  accessKeyId: "",
  secretAccessKey: "",
  region: ""
});

.then(data => {
  console.log(data);
});

Description

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.

Actions

CreateSavingsPlan

amazonaws_savingsplans.CreateSavingsPlan({
  "savingsPlanOfferingId": "",
  "commitment": ""
}, context)

Input

  • input object
    • tags object: One or more tags.
    • clientToken string: Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
    • commitment required string: The hourly commitment, in USD. This is a value between 0.001 and 1 million. You cannot specify more than three digits after the decimal point.
    • purchaseTime string: The time at which to purchase the Savings Plan, in UTC format (YYYY-MM-DDTHH:MM:SSZ).
    • savingsPlanOfferingId required string: The ID of the offering.
    • upfrontPaymentAmount string: The up-front payment amount. This is a whole number between 50 and 99 percent of the total value of the Savings Plan. This parameter is supported only if the payment option is Partial Upfront.

Output

DeleteQueuedSavingsPlan

amazonaws_savingsplans.DeleteQueuedSavingsPlan({
  "savingsPlanId": ""
}, context)

Input

  • input object
    • savingsPlanId required string: The ID of the Savings Plan.

Output

DescribeSavingsPlanRates

amazonaws_savingsplans.DescribeSavingsPlanRates({
  "savingsPlanId": ""
}, context)

Input

  • input object
    • filters array: The filters.
    • maxResults integer: The maximum number of results to return with a single call. To retrieve additional results, make another call with the returned token value.
    • nextToken string: The token for the next page of results.
    • savingsPlanId required string: The ID of the Savings Plan.

Output

DescribeSavingsPlans

amazonaws_savingsplans.DescribeSavingsPlans({}, context)

Input

  • input object
    • filters array: The filters.
    • maxResults integer: The maximum number of results to return with a single call. To retrieve additional results, make another call with the returned token value.
    • nextToken string: The token for the next page of results.
    • savingsPlanArns array: The Amazon Resource Names (ARN) of the Savings Plans.
    • savingsPlanIds array: The IDs of the Savings Plans.
    • states array: The states.

Output

DescribeSavingsPlansOfferingRates

amazonaws_savingsplans.DescribeSavingsPlansOfferingRates({}, context)

Input

Output

DescribeSavingsPlansOfferings

amazonaws_savingsplans.DescribeSavingsPlansOfferings({}, context)

Input

  • input object
    • currencies array: The currencies.
    • descriptions array: The descriptions.
    • durations array: The durations, in seconds.
    • filters array: The filters.
    • maxResults integer: The maximum number of results to return with a single call. To retrieve additional results, make another call with the returned token value.
    • nextToken string: The token for the next page of results.
    • offeringIds array: The IDs of the offerings.
    • operations array: The specific AWS operation for the line item in the billing report.
    • paymentOptions array: The payment options.
    • planTypes array: The plan type.
    • productType string (values: EC2, Fargate, Lambda): The product type.
    • serviceCodes array: The services.
    • usageTypes array: The usage details of the line item in the billing report.

Output

ListTagsForResource

amazonaws_savingsplans.ListTagsForResource({
  "resourceArn": ""
}, context)

Input

  • input object
    • resourceArn required string: The Amazon Resource Name (ARN) of the resource.

Output

TagResource

amazonaws_savingsplans.TagResource({
  "resourceArn": "",
  "tags": {}
}, context)

Input

  • input object
    • tags required object: One or more tags. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
    • resourceArn required string: The Amazon Resource Name (ARN) of the resource.

Output

UntagResource

amazonaws_savingsplans.UntagResource({
  "resourceArn": "",
  "tagKeys": []
}, context)

Input

  • input object
    • resourceArn required string: The Amazon Resource Name (ARN) of the resource.
    • tagKeys required array: The tag keys.

Output

Definitions

Amount

  • Amount string

ClientToken

  • ClientToken string

CreateSavingsPlanRequest

  • CreateSavingsPlanRequest object
    • tags
    • clientToken
    • commitment required
    • purchaseTime
    • savingsPlanOfferingId required
    • upfrontPaymentAmount

CreateSavingsPlanResponse

  • CreateSavingsPlanResponse object
    • savingsPlanId

CurrencyCode

  • CurrencyCode string (values: CNY, USD)

CurrencyList

DateTime

  • DateTime string

DeleteQueuedSavingsPlanRequest

  • DeleteQueuedSavingsPlanRequest object
    • savingsPlanId required

DeleteQueuedSavingsPlanResponse

  • DeleteQueuedSavingsPlanResponse object

DescribeSavingsPlanRatesRequest

  • DescribeSavingsPlanRatesRequest object

DescribeSavingsPlanRatesResponse

  • DescribeSavingsPlanRatesResponse object

DescribeSavingsPlansOfferingRatesRequest

DescribeSavingsPlansOfferingRatesResponse

DescribeSavingsPlansOfferingsRequest

DescribeSavingsPlansOfferingsResponse

DescribeSavingsPlansRequest

DescribeSavingsPlansResponse

  • DescribeSavingsPlansResponse object

DurationsList

EC2InstanceFamily

  • EC2InstanceFamily string

FilterValuesList

InternalServerException

JsonSafeFilterValueString

  • JsonSafeFilterValueString string

ListOfStrings

  • ListOfStrings array

ListTagsForResourceRequest

  • ListTagsForResourceRequest object
    • resourceArn required

ListTagsForResourceResponse

  • ListTagsForResourceResponse object
    • tags

MaxResults

  • MaxResults integer

PageSize

  • PageSize integer

PaginationToken

  • PaginationToken string

ParentSavingsPlanOffering

  • ParentSavingsPlanOffering object: Information about a Savings Plan offering.
    • currency
    • durationSeconds
    • offeringId
    • paymentOption
    • planDescription
    • planType

Region

  • Region string

ResourceNotFoundException

SavingsPlan

  • SavingsPlan object: Information about a Savings Plan.
    • tags
    • commitment
    • currency
    • description
    • ec2InstanceFamily
    • end
    • offeringId
    • paymentOption
    • productTypes
    • recurringPaymentAmount
    • region
    • savingsPlanArn
    • savingsPlanId
    • savingsPlanType
    • start
    • state
    • termDurationInSeconds
    • upfrontPaymentAmount

SavingsPlanArn

  • SavingsPlanArn string

SavingsPlanArnList

SavingsPlanDescription

  • SavingsPlanDescription string

SavingsPlanDescriptionsList

SavingsPlanFilter

  • SavingsPlanFilter object: Information about a filter.

SavingsPlanFilterList

SavingsPlanId

  • SavingsPlanId string

SavingsPlanIdList

SavingsPlanList

SavingsPlanOffering

  • SavingsPlanOffering object: Information about a Savings Plan offering.

SavingsPlanOfferingFilterAttribute

  • SavingsPlanOfferingFilterAttribute string (values: region, instanceFamily)

SavingsPlanOfferingFilterElement

SavingsPlanOfferingFiltersList

SavingsPlanOfferingId

  • SavingsPlanOfferingId string

SavingsPlanOfferingProperty

  • SavingsPlanOfferingProperty object: Information about a property.
    • name
    • value

SavingsPlanOfferingPropertyKey

  • SavingsPlanOfferingPropertyKey string (values: region, instanceFamily)

SavingsPlanOfferingPropertyList

SavingsPlanOfferingRate

  • SavingsPlanOfferingRate object: Information about a Savings Plan offering rate.
    • operation
    • productType
    • properties
    • rate
    • savingsPlanOffering
      • currency
      • durationSeconds
      • offeringId
      • paymentOption
      • planDescription
      • planType
    • serviceCode
    • unit
    • usageType

SavingsPlanOfferingRateFilterElement

SavingsPlanOfferingRateFiltersList

SavingsPlanOfferingRateProperty

  • SavingsPlanOfferingRateProperty object: Information about a property.
    • name
    • value

SavingsPlanOfferingRatePropertyList

SavingsPlanOfferingRatesList

SavingsPlanOfferingsList

SavingsPlanOperation

  • SavingsPlanOperation string

SavingsPlanOperationList

SavingsPlanPaymentOption

  • SavingsPlanPaymentOption string (values: All Upfront, Partial Upfront, No Upfront)

SavingsPlanPaymentOptionList

SavingsPlanProductType

  • SavingsPlanProductType string (values: EC2, Fargate, Lambda)

SavingsPlanProductTypeList

SavingsPlanRate

  • SavingsPlanRate object: Information about a Savings Plan rate.

SavingsPlanRateFilter

  • SavingsPlanRateFilter object: Information about a filter.

SavingsPlanRateFilterAttribute

  • SavingsPlanRateFilterAttribute string (values: region, instanceFamily, instanceType, productDescription, tenancy, productId)

SavingsPlanRateFilterList

SavingsPlanRateFilterName

  • SavingsPlanRateFilterName string (values: region, instanceType, productDescription, tenancy, productType, serviceCode, usageType, operation)

SavingsPlanRateList

SavingsPlanRateOperation

  • SavingsPlanRateOperation string

SavingsPlanRateOperationList

SavingsPlanRatePricePerUnit

  • SavingsPlanRatePricePerUnit string

SavingsPlanRateProperty

  • SavingsPlanRateProperty object: Information about a property.
    • name
    • value

SavingsPlanRatePropertyKey

  • SavingsPlanRatePropertyKey string (values: region, instanceType, instanceFamily, productDescription, tenancy)

SavingsPlanRatePropertyList

SavingsPlanRateServiceCode

  • SavingsPlanRateServiceCode string (values: AmazonEC2, AmazonECS, AWSLambda)

SavingsPlanRateServiceCodeList

SavingsPlanRateUnit

  • SavingsPlanRateUnit string (values: Hrs, Lambda-GB-Second, Request)

SavingsPlanRateUsageType

  • SavingsPlanRateUsageType string

SavingsPlanRateUsageTypeList

SavingsPlanServiceCode

  • SavingsPlanServiceCode string

SavingsPlanServiceCodeList

SavingsPlanState

  • SavingsPlanState string (values: payment-pending, payment-failed, active, retired, queued, queued-deleted)

SavingsPlanStateList

SavingsPlanType

  • SavingsPlanType string (values: Compute, EC2Instance)

SavingsPlanTypeList

SavingsPlanUsageType

  • SavingsPlanUsageType string

SavingsPlanUsageTypeList

SavingsPlansDuration

  • SavingsPlansDuration integer

SavingsPlansFilterName

  • SavingsPlansFilterName string (values: region, ec2-instance-family, commitment, upfront, term, savings-plan-type, payment-option, start, end)

ServiceQuotaExceededException

String

  • String string

TagKey

  • TagKey string

TagKeyList

TagMap

  • TagMap object

TagResourceRequest

  • TagResourceRequest object
    • tags required
    • resourceArn required

TagResourceResponse

  • TagResourceResponse object

TagValue

  • TagValue string

TermDurationInSeconds

  • TermDurationInSeconds integer

UUID

  • UUID string

UUIDs

  • UUIDs array

UntagResourceRequest

  • UntagResourceRequest object
    • resourceArn required
    • tagKeys required

UntagResourceResponse

  • UntagResourceResponse object

ValidationException