class Runtime
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Synthetics.Alpha.Runtime |
![]() | github.com/aws/aws-cdk-go/awscdksyntheticsalpha/v2#Runtime |
![]() | software.amazon.awscdk.services.synthetics.alpha.Runtime |
![]() | aws_cdk.aws_synthetics_alpha.Runtime |
![]() | @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
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 | Deprecated by AWS Synthetics. You can't create canaries with deprecated runtimes.. |
static SYNTHETICS_NODEJS_PUPPETEER_3_1 | Runtime | Deprecated by AWS Synthetics. You can't create canaries with deprecated runtimes.. |
static SYNTHETICS_NODEJS_PUPPETEER_3_2 | Runtime | Deprecated by AWS Synthetics. You can't create canaries with deprecated runtimes.. |
static SYNTHETICS_NODEJS_PUPPETEER_3_3 | Runtime | syn-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 | Runtime | Deprecated by AWS Synthetics. You can't create canaries with deprecated runtimes.. |
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_NODEJS_PUPPETEER_3_6 | 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. |
static SYNTHETICS_NODEJS_PUPPETEER_3_7 | 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. |
static SYNTHETICS_NODEJS_PUPPETEER_3_8 | 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. |
static SYNTHETICS_NODEJS_PUPPETEER_3_9 | Runtime | syn-nodejs-puppeteer-3.9 includes the following:. |
static SYNTHETICS_NODEJS_PUPPETEER_4_0 | 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. |
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. |
static SYNTHETICS_PYTHON_SELENIUM_1_1 | 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. |
static SYNTHETICS_PYTHON_SELENIUM_1_2 | 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. |
static SYNTHETICS_PYTHON_SELENIUM_1_3 | 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. |
family
Type:
Runtime
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
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
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
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
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
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
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
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
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
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_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.
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%.
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.
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.
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.
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.
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.
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.
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.