
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@awboost/cfnspec
Advanced tools
This package retrieves and validates the AWS CloudFormation Resource Specification, and provides TypeScript types for the specification.
This package retrieves and validates the AWS CloudFormation Resource Specification, and provides TypeScript types for the specification.
From the official docs:
The AWS CloudFormation resource specification is a JSON-formatted text file that defines the resources and properties that AWS CloudFormation supports. The document is a machine-readable, strongly typed specification that you can use to build tools for creating AWS CloudFormation templates. For example, you can use the specification to build auto completion and validation functionality for AWS CloudFormation templates in your IDE (integrated development environment).
See AWS CloudFormation Specification Format.
The location of the specification for us-east-1
(N. Virginia) region.
export const DefaultSpecUrl: string;
Get the latest specification from the specified URL (or us-east-1
if not specified). For other regions, see the docs. This will validate the specification by default unless false
is passed as the second parameter.
function getLatestSpec(
url = DefaultSpecUrl,
validate = true,
): Promise<CloudFormationSpec>;
export interface CloudFormationSpec {
PropertyTypes: Dictionary<TypeDefinition>;
ResourceSpecificationVersion: string;
ResourceTypes: Dictionary<ResourceDefinition>;
}
export interface TypeDefinition {
AdditionalProperties?: boolean;
Documentation?: string;
DuplicatesAllowed?: boolean;
ItemType?: string;
PrimitiveItemType?: PrimitiveType;
PrimitiveType?: PrimitiveType;
Properties?: Dictionary<TypeDefinition>;
Required?: boolean;
Type?: string;
UpdateType?: UpdateType;
}
export interface ResourceDefinition extends TypeDefinition {
Attributes?: Dictionary<TypeDefinition>;
}
export interface Dictionary<T> {
[key: string]: T;
}
export enum PrimitiveType {
String = 'String',
Long = 'Long',
Integer = 'Integer',
Double = 'Double',
Boolean = 'Boolean',
Timestamp = 'Timestamp',
Json = 'Json',
}
export enum UpdateType {
Mutable = 'Mutable',
Immutable = 'Immutable',
Conditional = 'Conditional',
}
FAQs
This package retrieves and validates the AWS CloudFormation Resource Specification, and provides TypeScript types for the specification.
We found that @awboost/cfnspec demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.