14
14
limitations under the License.
15
15
*/
16
16
17
+ import * as cdk from 'aws-cdk-lib' ;
17
18
import {
18
19
Choice ,
19
20
Condition ,
@@ -79,7 +80,7 @@ export class CreateModelStateMachine extends Construct {
79
80
lambdaFunction : new Function ( this , 'SetModelToCreatingFunc' , {
80
81
deadLetterQueueEnabled : true ,
81
82
deadLetterQueue : new Queue ( this , 'SetModelToCreatingDLQ' , {
82
- queueName : ' SetModelToCreatingDLQ' ,
83
+ queueName : ` ${ cdk . Stack . of ( this ) . stackName } - SetModelToCreatingDLQ` ,
83
84
enforceSSL : true ,
84
85
} ) ,
85
86
runtime : getDefaultRuntime ( ) ,
@@ -104,7 +105,7 @@ export class CreateModelStateMachine extends Construct {
104
105
lambdaFunction : new Function ( this , 'StartCopyDockerImageFunc' , {
105
106
deadLetterQueueEnabled : true ,
106
107
deadLetterQueue : new Queue ( this , 'StartCopyDockerImageDLQ' , {
107
- queueName : ' StartCopyDockerImageDLQ' ,
108
+ queueName : ` ${ cdk . Stack . of ( this ) . stackName } - StartCopyDockerImageDLQ` ,
108
109
enforceSSL : true ,
109
110
} ) ,
110
111
runtime : getDefaultRuntime ( ) ,
@@ -127,7 +128,7 @@ export class CreateModelStateMachine extends Construct {
127
128
lambdaFunction : new Function ( this , 'PollDockerImageAvailableFunc' , {
128
129
deadLetterQueueEnabled : true ,
129
130
deadLetterQueue : new Queue ( this , 'PollDockerImageAvailableDLQ' , {
130
- queueName : ' PollDockerImageAvailableDLQ' ,
131
+ queueName : ` ${ cdk . Stack . of ( this ) . stackName } - PollDockerImageAvailableDLQ` ,
131
132
enforceSSL : true ,
132
133
} ) ,
133
134
runtime : getDefaultRuntime ( ) ,
@@ -150,7 +151,7 @@ export class CreateModelStateMachine extends Construct {
150
151
lambdaFunction : new Function ( this , 'HandleFailureFunc' , {
151
152
deadLetterQueueEnabled : true ,
152
153
deadLetterQueue : new Queue ( this , 'HandleFailureDLQ' , {
153
- queueName : ' HandleFailureDLQ' ,
154
+ queueName : ` ${ cdk . Stack . of ( this ) . stackName } - HandleFailureDLQ` ,
154
155
enforceSSL : true ,
155
156
} ) ,
156
157
runtime : getDefaultRuntime ( ) ,
@@ -179,7 +180,7 @@ export class CreateModelStateMachine extends Construct {
179
180
lambdaFunction : new Function ( this , 'StartCreateStackFunc' , {
180
181
deadLetterQueueEnabled : true ,
181
182
deadLetterQueue : new Queue ( this , 'StartCreateStackDLQ' , {
182
- queueName : ' StartCreateStackDLQ' ,
183
+ queueName : ` ${ cdk . Stack . of ( this ) . stackName } - StartCreateStackDLQ` ,
183
184
enforceSSL : true ,
184
185
} ) ,
185
186
runtime : getDefaultRuntime ( ) ,
@@ -202,7 +203,7 @@ export class CreateModelStateMachine extends Construct {
202
203
lambdaFunction : new Function ( this , 'PollCreateStackFunc' , {
203
204
deadLetterQueueEnabled : true ,
204
205
deadLetterQueue : new Queue ( this , 'PollCreateStackDLQ' , {
205
- queueName : ' PollCreateStackDLQ' ,
206
+ queueName : ` ${ cdk . Stack . of ( this ) . stackName } - PollCreateStackDLQ` ,
206
207
enforceSSL : true ,
207
208
} ) ,
208
209
runtime : getDefaultRuntime ( ) ,
@@ -231,7 +232,7 @@ export class CreateModelStateMachine extends Construct {
231
232
lambdaFunction : new Function ( this , 'AddModelToLitellmFunc' , {
232
233
deadLetterQueueEnabled : true ,
233
234
deadLetterQueue : new Queue ( this , 'AddModelToLitellmDLQ' , {
234
- queueName : ' AddModelToLitellmDLQ' ,
235
+ queueName : ` ${ cdk . Stack . of ( this ) . stackName } - AddModelToLitellmDLQ` ,
235
236
enforceSSL : true ,
236
237
} ) ,
237
238
runtime : getDefaultRuntime ( ) ,
0 commit comments