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

@awboost/cfn-resource-schemas

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@awboost/cfn-resource-schemas

Fetch and validate the latest CloudFormation Resource Schemas from AWS

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@awboost/cfn-resource-schemas

Fetch and validate the latest CloudFormation Resource Schemas from AWS.

import { fetchResourceSchemas } from "@awboost/cfn-resource-schemas";

// fetchResourceSchemas returns an async generator
for await (const schema of downloadAwsResourceSchemas()) {
  // do something with the schema
}

Function downloadAwsResourceSchemas

Get the latest schemas.

import { downloadAwsResourceSchemas } from "@awboost/cfn-resource-schemas";
export async function* downloadAwsResourceSchemas({
  skipValidate = false,
  url = "https://schema.cloudformation.us-east-1.amazonaws.com/CloudformationSchema.zip",
}: DownloadAwsResourceSchemasOptions): AsyncGenerator<
  ResourceTypeSchema & { $id: string }
>;

Type ResourceTypeSchema

Description of a CloudFormation resource.

import { ResourceTypeSchema } from "@awboost/cfn-resource-schemas/types";

Parsed representation

This package also provides a set of node classes to represent schemas, similar to an AST. There are available from the "@awboost/cfn-resource-schemas/nodes" module path.

import { SchemaFileNode } from "@awboost/cfn-resource-schemas/nodes";
import { readFile } from "node:fs/promises";

const path = "path-to-schema.json";
const schema = JSON.parse(await readFile(path, "utf-8"));
const schemaFile = new SchemaFileNode(schema, path);

FAQs

Package last updated on 27 Jan 2024

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