You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 5, 2025. It is now read-only.
// Dear reader: I'm happy that you've stumbled upon this line too! You might wonder, why are we doing this and passing `undefined` when the list is empty?
117
117
// Answer: on regions that don't support ARM64 Lambdas, we can't use the `compatibleArchitectures` parameter. Otherwise CloudFormation will bail with an error.
@@ -125,7 +125,7 @@ export class LambdaPowertoolsLayer extends lambda.LayerVersion {
125
125
}
126
126
127
127
functiongetRuntimesFromRuntimeFamily(
128
-
runtimeFamily: lambda.RuntimeFamily
128
+
runtimeFamily: lambda.RuntimeFamily,
129
129
): lambda.Runtime[]|undefined{
130
130
switch(runtimeFamily){
131
131
caselambda.RuntimeFamily.PYTHON:
@@ -151,22 +151,22 @@ function getRuntimesFromRuntimeFamily(
151
151
}
152
152
153
153
functiongetLanguageNameFromRuntimeFamily(
154
-
runtimeFamily: lambda.RuntimeFamily
154
+
runtimeFamily: lambda.RuntimeFamily,
155
155
): string{
156
156
switch(runtimeFamily){
157
157
caselambda.RuntimeFamily.PYTHON:
158
-
return"Python";
158
+
return'Python';
159
159
caselambda.RuntimeFamily.NODEJS:
160
-
return"TypeScript";
160
+
return'TypeScript';
161
161
default:
162
-
return"Unknown";
162
+
return'Unknown';
163
163
}
164
164
}
165
165
166
166
// Docker expects a single string for the --platform option.
167
167
// getDockerPlatformNameFromArchitectures converts the Architecture enum to a string.
0 commit comments