ts-aws
v0.0.2
Published
Aws typescript types for cloudformation
Downloads
3
Readme
AWS Typescript Types
Typescript types for aws cloudformation resources. The types are generated from the aws documentation.
Usage
npm install ts-aws
import { CfResource } from './cf'
const Resources = {
MyFunction: {
Type: 'AWS::Lambda::Function',
Properties: {
Handler: 'index.handler',
Role: { 'Fn::GetAtt': ['Role', 'Arn'] },
Code: { S3Bucket: 'FunctionBucket' },
Environment: { Variables: { BUCKET: { Ref: 'MyBucket' } } },
},
},
MyBucket: {
Type: 'AWS::S3::Bucket',
Properties: { BucketName: 'my-bucket' },
},
} satisfies Record<string, CfResource>