UNPKG

typed-serverless

Version:

Helps you write a consistent Serverless Framework configuration in TypeScript

57 lines (56 loc) 1.56 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BuildArn = exports.CfStringify = exports.GetResourceLogicalId = exports.GetResourceName = exports.CfRefAtt = exports.CfRef = exports.ServerlessResourcePlaceholder = void 0; class ServerlessResourcePlaceholder { constructor(id, type, builder) { this.id = id; this.type = type; this.builder = builder; } } exports.ServerlessResourcePlaceholder = ServerlessResourcePlaceholder; class CfRef { constructor(id) { this.id = id; } } exports.CfRef = CfRef; class CfRefAtt extends CfRef { constructor(id, attribute) { super(id); this.id = id; this.attribute = attribute; } } exports.CfRefAtt = CfRefAtt; class GetResourceName { constructor(id) { this.id = id; } } exports.GetResourceName = GetResourceName; class GetResourceLogicalId { constructor(id) { this.id = id; } } exports.GetResourceLogicalId = GetResourceLogicalId; class CfStringify { constructor(content) { this.content = content; } } exports.CfStringify = CfStringify; /** * @link https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html * Valid formats: * - 'arn:partition:service:region:account-id:resource-id' * - 'arn:partition:service:region:account-id:resource-type/resource-id' * - 'arn:partition:service:region:account-id:resource-type:resource-id' */ class BuildArn { constructor(params) { this.params = params; } } exports.BuildArn = BuildArn;