Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

awstypes

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

awstypes

Get AWS EC2 instance types and AWS regions.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

awstypes

Get AWS EC2 instance types and AWS regions.

Sources:

  • http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html
  • http://aws.amazon.com/ec2/instance-types/

API:

  • regions - An object containing AWS zones (as keys) and friendly names (as values).
  • getRegions() - A function which returns the AWS regions as an array of zone codes, or an object containing zone and friendly names.
  • types - An array containing EC2 instance types.
  • getTypes() - A function which returns EC2 instance types (optionally filtered by instance type prefix.

Usage:

getRegions()

  • getRegions() - Return all the region codes and names.
  • getRegions(true) - Return only the region codes.
  • getRegions(false) - Return all the region codes and names.

getTypes()

  • getTypes() - Returns all EC2 instance types.
  • getTypes([]) - Returns all EC2 instance types.
  • getTypes('c3.') - Return only c3.* instance types.
  • getTypes('m3.', 'c4.') - Return m3.* and c4.* instance types.
  • getTypes(['m3.', 'c4.']) - Return m3.* and c4.* instance types.

Keywords

FAQs

Package last updated on 06 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc