@gradientedge/cdk-utils 9.17.0 → 9.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,7 +49,7 @@ class ApplicationConfiguration extends common_1.CommonConstruct {
49
49
  this.appConfigDeploymentStrategy = new aws_appconfig_1.CfnDeploymentStrategy(this, `${this.id}-ac-deployment-strategy`, {
50
50
  deploymentDurationInMinutes: this.props.appConfig.deploymentStrategy.deploymentDurationInMinutes,
51
51
  growthFactor: this.props.appConfig.deploymentStrategy.growthFactor,
52
- name: this.resourceNameFormatter.format(this.props.appConfig.deploymentStrategy.name),
52
+ name: this.resourceNameFormatter.format(this.props.appConfig.deploymentStrategy.name, this.props.resourceNameOptions?.appconfig),
53
53
  replicateTo: this.props.appConfig.deploymentStrategy.replicateTo,
54
54
  });
55
55
  }
@@ -88,7 +88,7 @@ class LogManager {
88
88
  throw `Logs logGroupName undefined for ${id}`;
89
89
  const logGroup = new logs.CfnLogGroup(scope, `${id}`, {
90
90
  ...props,
91
- logGroupName: `/${scope.resourceNameFormatter.format(props.logGroupName, scope.props.resourceNameOptions?.logs)}`,
91
+ logGroupName: `${scope.resourceNameFormatter.format(props.logGroupName, scope.props.resourceNameOptions?.logs)}`,
92
92
  retentionInDays: props.retention,
93
93
  });
94
94
  if (props.tags && !lodash_1.default.isEmpty(props.tags)) {
@@ -112,7 +112,7 @@ class LogManager {
112
112
  throw `Logs logGroupName undefined for ${id}`;
113
113
  const logGroup = new logs.LogGroup(scope, `${id}`, {
114
114
  ...props,
115
- logGroupName: `/${scope.resourceNameFormatter.format(props.logGroupName, scope.props.resourceNameOptions?.logs)}`,
115
+ logGroupName: `${scope.resourceNameFormatter.format(props.logGroupName, scope.props.resourceNameOptions?.logs)}`,
116
116
  removalPolicy: props.removalPolicy ?? cdk.RemovalPolicy.DESTROY,
117
117
  retention: props.retention,
118
118
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "9.17.0",
3
+ "version": "9.19.0",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -79,7 +79,10 @@ export class ApplicationConfiguration extends CommonConstruct {
79
79
  this.appConfigDeploymentStrategy = new CfnDeploymentStrategy(this, `${this.id}-ac-deployment-strategy`, {
80
80
  deploymentDurationInMinutes: this.props.appConfig.deploymentStrategy.deploymentDurationInMinutes,
81
81
  growthFactor: this.props.appConfig.deploymentStrategy.growthFactor,
82
- name: this.resourceNameFormatter.format(this.props.appConfig.deploymentStrategy.name),
82
+ name: this.resourceNameFormatter.format(
83
+ this.props.appConfig.deploymentStrategy.name,
84
+ this.props.resourceNameOptions?.appconfig
85
+ ),
83
86
  replicateTo: this.props.appConfig.deploymentStrategy.replicateTo,
84
87
  })
85
88
  }
@@ -64,7 +64,7 @@ export class LogManager {
64
64
 
65
65
  const logGroup = new logs.CfnLogGroup(scope, `${id}`, {
66
66
  ...props,
67
- logGroupName: `/${scope.resourceNameFormatter.format(props.logGroupName, scope.props.resourceNameOptions?.logs)}`,
67
+ logGroupName: `${scope.resourceNameFormatter.format(props.logGroupName, scope.props.resourceNameOptions?.logs)}`,
68
68
  retentionInDays: props.retention,
69
69
  })
70
70
 
@@ -91,7 +91,7 @@ export class LogManager {
91
91
 
92
92
  const logGroup = new logs.LogGroup(scope, `${id}`, {
93
93
  ...props,
94
- logGroupName: `/${scope.resourceNameFormatter.format(props.logGroupName, scope.props.resourceNameOptions?.logs)}`,
94
+ logGroupName: `${scope.resourceNameFormatter.format(props.logGroupName, scope.props.resourceNameOptions?.logs)}`,
95
95
  removalPolicy: props.removalPolicy ?? cdk.RemovalPolicy.DESTROY,
96
96
  retention: props.retention,
97
97
  })