@aws-cdk_aws-synthetics-alpha.Runtime

class Runtime 🔹

LanguageType name
.NETAmazon.CDK.AWS.Synthetics.Alpha.Runtime
Gogithub.com/aws/aws-cdk-go/awscdksyntheticsalpha/v2#Runtime
Javasoftware.amazon.awscdk.services.synthetics.alpha.Runtime
Pythonaws_cdk.aws_synthetics_alpha.Runtime
TypeScript (source)@aws-cdk/aws-synthetics-alpha » Runtime

Runtime options for a canary.

Example

const canary = new synthetics.Canary(this, 'MyCanary', {
  schedule: synthetics.Schedule.rate(Duration.minutes(5)),
  test: synthetics.Test.custom({
    code: synthetics.Code.fromAsset(path.join(__dirname, 'canary')),
    handler: 'index.handler',
  }),
  runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_4_0,
  environmentVariables: {
    stage: 'prod',
  },
});

Initializer

new Runtime(name: string, family: RuntimeFamily)

Parameters

  • name string — The name of the runtime version.
  • family RuntimeFamily — The Lambda runtime family.

Properties

NameTypeDescription
family🔹RuntimeFamilyThe Lambda runtime family.
name🔹stringThe name of the runtime version.
static SYNTHETICS_1_0⚠️RuntimeDeprecated by AWS Synthetics. You can't create canaries with deprecated runtimes..
static SYNTHETICS_NODEJS_2_0⚠️RuntimeDeprecated by AWS Synthetics. You can't create canaries with deprecated runtimes..
static SYNTHETICS_NODEJS_2_1⚠️RuntimeDeprecated by AWS Synthetics. You can't create canaries with deprecated runtimes..
static SYNTHETICS_NODEJS_2_2⚠️RuntimeDeprecated by AWS Synthetics. You can't create canaries with deprecated runtimes..
static SYNTHETICS_NODEJS_PUPPETEER_3_0⚠️RuntimeDeprecated by AWS Synthetics. You can't create canaries with deprecated runtimes..
static SYNTHETICS_NODEJS_PUPPETEER_3_1⚠️RuntimeDeprecated by AWS Synthetics. You can't create canaries with deprecated runtimes..
static SYNTHETICS_NODEJS_PUPPETEER_3_2⚠️RuntimeDeprecated by AWS Synthetics. You can't create canaries with deprecated runtimes..
static SYNTHETICS_NODEJS_PUPPETEER_3_3⚠️Runtimesyn-nodejs-puppeteer-3.3 includes the following: Deprecated by AWS Synthetics. You can't create canaries with deprecated runtimes..
static SYNTHETICS_NODEJS_PUPPETEER_3_4⚠️RuntimeDeprecated by AWS Synthetics. You can't create canaries with deprecated runtimes..
static SYNTHETICS_NODEJS_PUPPETEER_3_5🔹Runtimesyn-nodejs-puppeteer-3.5 includes the following: - Lambda runtime Node.js 14.x - Puppeteer-core version 10.1.0 - Chromium version 92.0.4512.
static SYNTHETICS_NODEJS_PUPPETEER_3_6🔹Runtimesyn-nodejs-puppeteer-3.6 includes the following: - Lambda runtime Node.js 14.x - Puppeteer-core version 10.1.0 - Chromium version 92.0.4512.
static SYNTHETICS_NODEJS_PUPPETEER_3_7🔹Runtimesyn-nodejs-puppeteer-3.7 includes the following: - Lambda runtime Node.js 14.x - Puppeteer-core version 10.1.0 - Chromium version 92.0.4512.
static SYNTHETICS_NODEJS_PUPPETEER_3_8🔹Runtimesyn-nodejs-puppeteer-3.8 includes the following: - Lambda runtime Node.js 14.x - Puppeteer-core version 10.1.0 - Chromium version 92.0.4512.
static SYNTHETICS_NODEJS_PUPPETEER_3_9🔹Runtimesyn-nodejs-puppeteer-3.9 includes the following:.
static SYNTHETICS_NODEJS_PUPPETEER_4_0🔹Runtimesyn-nodejs-puppeteer-4.0 includes the following: - Lambda runtime Node.js 16.x - Puppeteer-core version 5.5.0 - Chromium version 92.0.4512.
static SYNTHETICS_PYTHON_SELENIUM_1_0🔹Runtimesyn-python-selenium-1.0 includes the following: - Lambda runtime Python 3.8 - Selenium version 3.141.0 - Chromium version 83.0.4103.0.
static SYNTHETICS_PYTHON_SELENIUM_1_1🔹Runtimesyn-python-selenium-1.1 includes the following: - Lambda runtime Python 3.8 - Selenium version 3.141.0 - Chromium version 83.0.4103.0.
static SYNTHETICS_PYTHON_SELENIUM_1_2🔹Runtimesyn-python-selenium-1.2 includes the following: - Lambda runtime Python 3.8 - Selenium version 3.141.0 - Chromium version 92.0.4512.0.
static SYNTHETICS_PYTHON_SELENIUM_1_3🔹Runtimesyn-python-selenium-1.3 includes the following: - Lambda runtime Python 3.8 - Selenium version 3.141.0 - Chromium version 92.0.4512.0.

family🔹

Type: RuntimeFamily

The Lambda runtime family.


name🔹

Type: string

The name of the runtime version.


static SYNTHETICS_1_0⚠️

⚠️ Deprecated: Use the latest version instead

Type: Runtime

Deprecated by AWS Synthetics. You can't create canaries with deprecated runtimes..

syn-1.0 includes the following:

  • Synthetics library 1.0
  • Synthetics handler code 1.0
  • Lambda runtime Node.js 10.x
  • Puppeteer-core version 1.14.0
  • The Chromium version that matches Puppeteer-core 1.14.0

See also: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-1.0


static SYNTHETICS_NODEJS_2_0⚠️

⚠️ Deprecated: Use the latest version instead

Type: Runtime

Deprecated by AWS Synthetics. You can't create canaries with deprecated runtimes..

syn-nodejs-2.0 includes the following:

  • Lambda runtime Node.js 10.x
  • Puppeteer-core version 3.3.0
  • Chromium version 83.0.4103.0

See also: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-2.0


static SYNTHETICS_NODEJS_2_1⚠️

⚠️ Deprecated: Use the latest version instead

Type: Runtime

Deprecated by AWS Synthetics. You can't create canaries with deprecated runtimes..

syn-nodejs-2.1 includes the following:

  • Lambda runtime Node.js 10.x
  • Puppeteer-core version 3.3.0
  • Chromium version 83.0.4103.0

See also: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-2.1


static SYNTHETICS_NODEJS_2_2⚠️

⚠️ Deprecated: Use the latest version instead

Type: Runtime

Deprecated by AWS Synthetics. You can't create canaries with deprecated runtimes..

syn-nodejs-2.2 includes the following:

  • Lambda runtime Node.js 10.x
  • Puppeteer-core version 3.3.0
  • Chromium version 83.0.4103.0

See also: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-2.2


static SYNTHETICS_NODEJS_PUPPETEER_3_0⚠️

⚠️ Deprecated: Use the latest version instead

Type: Runtime

Deprecated by AWS Synthetics. You can't create canaries with deprecated runtimes..

syn-nodejs-puppeteer-3.0 includes the following:

  • Lambda runtime Node.js 12.x
  • Puppeteer-core version 5.5.0
  • Chromium version 88.0.4298.0

See also: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-3.0


static SYNTHETICS_NODEJS_PUPPETEER_3_1⚠️

⚠️ Deprecated: Use the latest version instead

Type: Runtime

Deprecated by AWS Synthetics. You can't create canaries with deprecated runtimes..

syn-nodejs-puppeteer-3.1 includes the following:

  • Lambda runtime Node.js 12.x
  • Puppeteer-core version 5.5.0
  • Chromium version 88.0.4298.0

See also: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-3.1


static SYNTHETICS_NODEJS_PUPPETEER_3_2⚠️

⚠️ Deprecated: Use the latest version instead

Type: Runtime

Deprecated by AWS Synthetics. You can't create canaries with deprecated runtimes..

syn-nodejs-puppeteer-3.2 includes the following:

  • Lambda runtime Node.js 12.x
  • Puppeteer-core version 5.5.0
  • Chromium version 88.0.4298.0

See also: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-3.2


static SYNTHETICS_NODEJS_PUPPETEER_3_3⚠️

⚠️ Deprecated: Use the latest version instead

Type: Runtime

syn-nodejs-puppeteer-3.3 includes the following: Deprecated by AWS Synthetics. You can't create canaries with deprecated runtimes..

  • Lambda runtime Node.js 12.x
  • Puppeteer-core version 5.5.0
  • Chromium version 88.0.4298.0

See also: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-3.3


static SYNTHETICS_NODEJS_PUPPETEER_3_4⚠️

⚠️ Deprecated: Use the latest version instead

Type: Runtime

Deprecated by AWS Synthetics. You can't create canaries with deprecated runtimes..

syn-nodejs-puppeteer-3.4 includes the following:

  • Lambda runtime Node.js 12.x
  • Puppeteer-core version 5.5.0
  • Chromium version 88.0.4298.0

See also: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-3.4


static SYNTHETICS_NODEJS_PUPPETEER_3_5🔹

Type: Runtime

syn-nodejs-puppeteer-3.5 includes the following: - Lambda runtime Node.js 14.x - Puppeteer-core version 10.1.0 - Chromium version 92.0.4512.

See also: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-3.5


static SYNTHETICS_NODEJS_PUPPETEER_3_6🔹

Type: Runtime

syn-nodejs-puppeteer-3.6 includes the following: - Lambda runtime Node.js 14.x - Puppeteer-core version 10.1.0 - Chromium version 92.0.4512.

See also: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-3.6


static SYNTHETICS_NODEJS_PUPPETEER_3_7🔹

Type: Runtime

syn-nodejs-puppeteer-3.7 includes the following: - Lambda runtime Node.js 14.x - Puppeteer-core version 10.1.0 - Chromium version 92.0.4512.

New Features:

  • Logging enhancement: The canary will upload logs to Amazon S3 even if it times out or crashes.
  • Lambda layer size reduced: The size of the Lambda layer used for canaries is reduced by 34%.

See also: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-3.7


static SYNTHETICS_NODEJS_PUPPETEER_3_8🔹

Type: Runtime

syn-nodejs-puppeteer-3.8 includes the following: - Lambda runtime Node.js 14.x - Puppeteer-core version 10.1.0 - Chromium version 92.0.4512.

New Features:

  • Profile cleanup: Chromium profiles are now cleaned up after each canary run.

See also: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-3.8


static SYNTHETICS_NODEJS_PUPPETEER_3_9🔹

Type: Runtime

syn-nodejs-puppeteer-3.9 includes the following:.

  • Lambda runtime Node.js 14.x
  • Puppeteer-core version 5.5.0
  • Chromium version 92.0.4512

New Features:

  • Dependency upgrades: Upgrades some third-party dependency packages.

See also: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-3.9


static SYNTHETICS_NODEJS_PUPPETEER_4_0🔹

Type: Runtime

syn-nodejs-puppeteer-4.0 includes the following: - Lambda runtime Node.js 16.x - Puppeteer-core version 5.5.0 - Chromium version 92.0.4512.

New Features:

  • Dependency upgrades: The Node.js dependency is updated to 16.x.

See also: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_nodejs_puppeteer.html#CloudWatch_Synthetics_runtimeversion-nodejs-puppeteer-4.0


static SYNTHETICS_PYTHON_SELENIUM_1_0🔹

Type: Runtime

syn-python-selenium-1.0 includes the following: - Lambda runtime Python 3.8 - Selenium version 3.141.0 - Chromium version 83.0.4103.0.

See also: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_python_selenium.html#CloudWatch_Synthetics_runtimeversion-syn-python-selenium-1.0


static SYNTHETICS_PYTHON_SELENIUM_1_1🔹

Type: Runtime

syn-python-selenium-1.1 includes the following: - Lambda runtime Python 3.8 - Selenium version 3.141.0 - Chromium version 83.0.4103.0.

New Features:

  • Custom handler function: You can now use a custom handler function for your canary scripts.
  • Configuration options for adding metrics and step failure configurations: These options were already available in runtimes for Node.js canaries.
  • Custom arguments in Chrome: You can now open a browser in incognito mode or pass in proxy server configuration.
  • Cross-Region artifact buckets: A canary can store its artifacts in an Amazon S3 bucket in a different Region.

See also: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_python_selenium.html#CloudWatch_Synthetics_runtimeversion-syn-python-selenium-1.1


static SYNTHETICS_PYTHON_SELENIUM_1_2🔹

Type: Runtime

syn-python-selenium-1.2 includes the following: - Lambda runtime Python 3.8 - Selenium version 3.141.0 - Chromium version 92.0.4512.0.

New Features:

  • Updated dependencies: The only new features in this runtime are the updated dependencies.

See also: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_python_selenium.html#CloudWatch_Synthetics_runtimeversion-syn-python-selenium-1.2


static SYNTHETICS_PYTHON_SELENIUM_1_3🔹

Type: Runtime

syn-python-selenium-1.3 includes the following: - Lambda runtime Python 3.8 - Selenium version 3.141.0 - Chromium version 92.0.4512.0.

New Features:

  • More precise timestamps: The start time and stop time of canary runs are now precise to the millisecond.

See also: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_python_selenium.html#CloudWatch_Synthetics_runtimeversion-syn-python-selenium-1.3