class Runtime
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Synthetics.Runtime |
![]() | software.amazon.awscdk.services.synthetics.Runtime |
![]() | aws_cdk.aws_synthetics.Runtime |
![]() | @aws-cdk/aws-synthetics ยป 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_3_1,
environmentVariables: {
stage: 'prod',
},
});
Initializer
new Runtime(name: string, family: RuntimeFamily)
Parameters
- name
string
โ The name of the runtime version. - family
Runtime
โ The Lambda runtime family.Family
Properties
Name | Type | Description |
---|---|---|
family | Runtime | The Lambda runtime family. |
name | string | The name of the runtime version. |
static SYNTHETICS_1_0 | Runtime | Deprecated by AWS Synthetics. You can't create canaries with deprecated runtimes.. |
static SYNTHETICS_NODEJS_2_0 | Runtime | Deprecated by AWS Synthetics. You can't create canaries with deprecated runtimes.. |
static SYNTHETICS_NODEJS_2_1 | Runtime | Deprecated by AWS Synthetics. You can't create canaries with deprecated runtimes.. |
static SYNTHETICS_NODEJS_2_2 | Runtime | Deprecated by AWS Synthetics. You can't create canaries with deprecated runtimes.. |
static SYNTHETICS_NODEJS_PUPPETEER_3_0 | Runtime | 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. |
static SYNTHETICS_NODEJS_PUPPETEER_3_1 | Runtime | 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. |
static SYNTHETICS_NODEJS_PUPPETEER_3_2 | Runtime | 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. |
static SYNTHETICS_NODEJS_PUPPETEER_3_3 | Runtime | syn-nodejs-puppeteer-3.3 includes the following: - Lambda runtime Node.js 12.x - Puppeteer-core version 5.5.0 - Chromium version 88.0.4298.0. |
static SYNTHETICS_NODEJS_PUPPETEER_3_4 | Runtime | 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. |
static SYNTHETICS_NODEJS_PUPPETEER_3_5 | 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. |
static SYNTHETICS_PYTHON_SELENIUM_1_0 | 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. |
family
Type:
Runtime
The Lambda runtime family.
name
Type:
string
The name of the runtime version.
static SYNTHETICS_1_0
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
static SYNTHETICS_NODEJS_2_0
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
static SYNTHETICS_NODEJS_2_1
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
static SYNTHETICS_NODEJS_2_2
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
static SYNTHETICS_NODEJS_PUPPETEER_3_0
Type:
Runtime
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.
static SYNTHETICS_NODEJS_PUPPETEER_3_1
Type:
Runtime
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.
static SYNTHETICS_NODEJS_PUPPETEER_3_2
Type:
Runtime
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.
static SYNTHETICS_NODEJS_PUPPETEER_3_3
Type:
Runtime
syn-nodejs-puppeteer-3.3
includes the following: - Lambda runtime Node.js 12.x - Puppeteer-core version 5.5.0 - Chromium version 88.0.4298.0.
static SYNTHETICS_NODEJS_PUPPETEER_3_4
Type:
Runtime
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.
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.
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.