Skip to content

Commit

Permalink
Add newest version of ADOT lambda layers
Browse files Browse the repository at this point in the history
Signed-off-by: Raphael Silva <rapphil@gmail.com>
  • Loading branch information
rapphil committed Oct 11, 2023
1 parent 9cb9fb8 commit 54ea514
Show file tree
Hide file tree
Showing 2 changed files with 370 additions and 16 deletions.
54 changes: 39 additions & 15 deletions packages/aws-cdk-lib/aws-lambda/lib/adot-layers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,9 @@ abstract class AdotLambdaLayerVersion {
*/
export class AdotLambdaLayerJavaSdkVersion extends AdotLambdaLayerVersion {
/**
* The latest layer version available in this CDK version. New versions could
* introduce incompatible changes. Make sure to test them before deploying to production.
* Version 1.30.0
*/
public static readonly LATEST = new AdotLambdaLayerJavaSdkVersion('1.28.1');
public static readonly V1_30_0 = new AdotLambdaLayerJavaSdkVersion('1.30.0');

/**
* Version 1.28.1
Expand All @@ -225,6 +224,12 @@ export class AdotLambdaLayerJavaSdkVersion extends AdotLambdaLayerVersion {
*/
public static readonly V1_19_0 = new AdotLambdaLayerJavaSdkVersion('1.19.0');

/**
* The latest layer version available in this CDK version. New versions could
* introduce incompatible changes. Make sure to test them before deploying to production.
*/
public static readonly LATEST = this.V1_30_0;

private constructor(protected readonly layerVersion: string) {
super(AdotLambdaLayerType.JAVA_SDK, layerVersion);
}
Expand All @@ -235,10 +240,9 @@ export class AdotLambdaLayerJavaSdkVersion extends AdotLambdaLayerVersion {
*/
export class AdotLambdaLayerJavaAutoInstrumentationVersion extends AdotLambdaLayerVersion {
/**
* The latest layer version available in this CDK version. New versions could
* introduce incompatible changes. Make sure to test them before deploying to production.
* Version 1.30.0
*/
public static readonly LATEST = new AdotLambdaLayerJavaAutoInstrumentationVersion('1.28.1');
public static readonly V1_30_0 = new AdotLambdaLayerJavaAutoInstrumentationVersion('1.30.0');

/**
* Version 1.28.1
Expand All @@ -250,6 +254,12 @@ export class AdotLambdaLayerJavaAutoInstrumentationVersion extends AdotLambdaLay
*/
public static readonly V1_19_2 = new AdotLambdaLayerJavaAutoInstrumentationVersion('1.19.2');

/**
* The latest layer version available in this CDK version. New versions could
* introduce incompatible changes. Make sure to test them before deploying to production.
*/
public static readonly LATEST = this.V1_30_0;

private constructor(protected readonly layerVersion: string) {
super(AdotLambdaLayerType.JAVA_AUTO_INSTRUMENTATION, layerVersion);
}
Expand All @@ -260,10 +270,9 @@ export class AdotLambdaLayerJavaAutoInstrumentationVersion extends AdotLambdaLay
*/
export class AdotLambdaLayerPythonSdkVersion extends AdotLambdaLayerVersion {
/**
* The latest layer version available in this CDK version. New versions could
* introduce incompatible changes. Make sure to test them before deploying to production.
* Version 1.20.0
*/
public static readonly LATEST = new AdotLambdaLayerPythonSdkVersion('1.19.0-1');
public static readonly V1_20_0 = new AdotLambdaLayerPythonSdkVersion('1.20.0');

/**
* Version 1.19.0
Expand Down Expand Up @@ -300,6 +309,12 @@ export class AdotLambdaLayerPythonSdkVersion extends AdotLambdaLayerVersion {
*/
public static readonly V1_13_0 = new AdotLambdaLayerPythonSdkVersion('1.13.0');

/**
* The latest layer version available in this CDK version. New versions could
* introduce incompatible changes. Make sure to test them before deploying to production.
*/
public static readonly LATEST = this.V1_20_0;

private constructor(protected readonly layerVersion: string) {
super(AdotLambdaLayerType.PYTHON_SDK, layerVersion);
}
Expand All @@ -310,10 +325,9 @@ export class AdotLambdaLayerPythonSdkVersion extends AdotLambdaLayerVersion {
*/
export class AdotLambdaLayerJavaScriptSdkVersion extends AdotLambdaLayerVersion {
/**
* The latest layer version available in this CDK version. New versions could
* introduce incompatible changes. Make sure to test them before deploying to production.
* Version 1.16.0
*/
public static readonly LATEST = new AdotLambdaLayerJavaScriptSdkVersion('1.15.0-1');
public static readonly V1_16_0 = new AdotLambdaLayerJavaScriptSdkVersion('1.16.0');

/**
* Version 1.15.0
Expand All @@ -325,6 +339,12 @@ export class AdotLambdaLayerJavaScriptSdkVersion extends AdotLambdaLayerVersion
*/
public static readonly V1_7_0 = new AdotLambdaLayerJavaScriptSdkVersion('1.7.0');

/**
* The latest layer version available in this CDK version. New versions could
* introduce incompatible changes. Make sure to test them before deploying to production.
*/
public static readonly LATEST = this.V1_16_0;

private constructor(protected readonly layerVersion: string) {
super(AdotLambdaLayerType.JAVASCRIPT_SDK, layerVersion);
}
Expand All @@ -335,10 +355,9 @@ export class AdotLambdaLayerJavaScriptSdkVersion extends AdotLambdaLayerVersion
*/
export class AdotLambdaLayerGenericVersion extends AdotLambdaLayerVersion {
/**
* The latest layer version available in this CDK version. New versions could
* introduce incompatible changes. Make sure to test them before deploying to production.
* Version 0.84.0
*/
public static readonly LATEST = new AdotLambdaLayerGenericVersion('0.82.0');
public static readonly V0_84_0 = new AdotLambdaLayerGenericVersion('0.84.0');

/**
* Version 0.82.0
Expand All @@ -350,6 +369,11 @@ export class AdotLambdaLayerGenericVersion extends AdotLambdaLayerVersion {
*/
public static readonly V0_62_1 = new AdotLambdaLayerGenericVersion('0.62.1');

/**
* The latest layer version available in this CDK version. New versions could
* introduce incompatible changes. Make sure to test them before deploying to production.
*/
public static readonly LATEST = this.V0_84_0;
private constructor(protected readonly layerVersion: string) {
super(AdotLambdaLayerType.GENERIC, layerVersion);
}
Expand Down
Loading

0 comments on commit 54ea514

Please sign in to comment.