@awboost/cfntypes

0.100.236 • Public • Published

@awboost/cfntypes

Typescript types for AWS CloudFormation types.

Resource Types

The resource types are all defined individually as interfaces with predictable names, and also as properties of the ResourceTypes interface keyed by the CloudFormation resource type.

import { ResourceTypes, ResourceType } from "@cfnboost/cfntypes";

type ApiGatewayProps = ResourceTypes[ResourceType.ApiGatewayRestApi];
// also exported as ApiGatewayRestApi

Attribute Types

The attribute types are all defined individually as interfaces with predictable names, and also as properties of the AttributeTypes interface keyed by the CloudFormation resource type. Note that not all resource types have attributes.

import { AttributeTypes, AttributeTypeFor } from "@cfnboost/cfntypes";

type ApiGatewayRestApiAttribs = AttributeTypes["AWS::ApiGateway::RestApi"];
// also exported as ApiGatewayRestApiAttributes

// the AttributeTypeFor helper returns `never` for resources
// with no attributes defined
type NeverAttribs = AttributeTypeFor<"AWS::ApiGateway::Account">;

Readme

Keywords

none

Package Sidebar

Install

npm i @awboost/cfntypes

Weekly Downloads

475

Version

0.100.236

License

MIT

Unpacked Size

9.21 MB

Total Files

5

Last publish

Collaborators

  • gordonmleigh