UNPKG

nx-serverless-cdk

Version:

nx-serverless-cdk is an Nx plugin for creating AWS CDK applications and libraries inside an Nx monorepo. It offers the possibility to test and debug CDK applications as well as AWS Lambda functions locally. The plugin provides the full flexibility of the

16 lines 725 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toValidSsmParameterName = void 0; /** * Filters out invalid SSM parameter name characters (https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-su-create.html). * Throws an error if the resulting name has zero length. */ const toValidSsmParameterName = (parameterName) => { const validName = parameterName.replace(/[^a-zA-Z0-9_./-]/g, ''); if (!validName) { throw new Error(`The valid SSM parameter name for '${parameterName}' is an empty string.`); } return validName; }; exports.toValidSsmParameterName = toValidSsmParameterName; //# sourceMappingURL=to-valid-ssm-parameter-name.js.map