Interface CfnCanary.RunConfigProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnCanary.RunConfigProperty.Jsii$Proxy
- Enclosing class:
CfnCanary
This structure is required.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.synthetics.*; RunConfigProperty runConfigProperty = RunConfigProperty.builder() .activeTracing(false) .environmentVariables(Map.of( "environmentVariablesKey", "environmentVariables")) .memoryInMb(123) .timeoutInSeconds(123) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnCanary.RunConfigProperty
static final class
An implementation forCfnCanary.RunConfigProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Object
Specifies whether this canary is to use active AWS X-Ray tracing when it runs.default Object
Specifies the keys and values to use for any environment variables used in the canary script.default Number
The maximum amount of memory that the canary can use while running.default Number
How long the canary is allowed to run before it must stop.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getActiveTracing
Specifies whether this canary is to use active AWS X-Ray tracing when it runs.Active tracing enables this canary run to be displayed in the ServiceLens and X-Ray service maps even if the canary does not hit an endpoint that has X-Ray tracing enabled. Using X-Ray tracing incurs charges. For more information, see Canaries and X-Ray tracing .
You can enable active tracing only for canaries that use version
syn-nodejs-2.0
or later for their canary runtime. -
getEnvironmentVariables
Specifies the keys and values to use for any environment variables used in the canary script.Use the following format:
{ "key1" : "value1", "key2" : "value2", ...}
Keys must start with a letter and be at least two characters. The total size of your environment variables cannot exceed 4 KB. You can't specify any Lambda reserved environment variables as the keys for your environment variables. For more information about reserved keys, see Runtime environment variables .
-
getMemoryInMb
The maximum amount of memory that the canary can use while running.This value must be a multiple of 64. The range is 960 to 3008.
-
getTimeoutInSeconds
How long the canary is allowed to run before it must stop.You can't set this time to be longer than the frequency of the runs of this canary.
If you omit this field, the frequency of the canary is used as this value, up to a maximum of 900 seconds.
-
builder
-