Canary
This structure contains all information about one canary in your account.
Contents
- ArtifactConfig
-
A structure that contains the configuration for canary artifacts, including the encryption-at-rest settings for artifacts that the canary uploads to Amazon S3.
Type: ArtifactConfigOutput object
Required: No
- ArtifactS3Location
-
The location in Amazon S3 where Synthetics stores artifacts from the runs of this canary. Artifacts include the log file, screenshots, and HAR files.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 1024.
Required: No
- BrowserConfigs
-
A structure that specifies the browser type to use for a canary run. CloudWatch Synthetics supports running canaries on both
CHROME
andFIREFOX
browsers.Note
If not specified,
browserConfigs
defaults to Chrome.Type: Array of BrowserConfig objects
Array Members: Minimum number of 1 item. Maximum number of 2 items.
Required: No
- Code
-
This structure contains information about the canary's Lambda handler and where its code is stored by CloudWatch Synthetics.
Type: CanaryCodeOutput object
Required: No
- DryRunConfig
-
Returns the dry run configurations for a canary.
Type: DryRunConfigOutput object
Required: No
- EngineArn
-
The ARN of the Lambda function that is used as your canary's engine. For more information about Lambda ARN format, see Resources and Conditions for Lambda Actions.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 2048.
Pattern:
arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2,4}(-[a-z]{2,4})?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-_]+(:(\$LATEST|[a-zA-Z0-9-_]+))?
Required: No
- EngineConfigs
-
A list of engine configurations for the canary, one for each browser type that the canary is configured to run on.
All runtime versions
syn-nodejs-puppeteer-11.0
and above, andsyn-nodejs-playwright-3.0
and above, useengineConfigs
only. You can no longer useengineArn
in these versions.Runtime versions older than
syn-nodejs-puppeteer-11.0
andsyn-nodejs-playwright-3.0
continue to supportengineArn
to ensure backward compatibility.Type: Array of EngineConfig objects
Required: No
- ExecutionRoleArn
-
The ARN of the IAM role used to run the canary. This role must include
lambda.amazonaws.com
as a principal in the trust policy.Type: String
Length Constraints: Minimum length of 1. Maximum length of 2048.
Pattern:
arn:(aws[a-zA-Z-]*)?:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+
Required: No
- FailureRetentionPeriodInDays
-
The number of days to retain data about failed runs of this canary.
This setting affects the range of information returned by GetCanaryRuns, as well as the range of information displayed in the Synthetics console.
Type: Integer
Valid Range: Minimum value of 1. Maximum value of 1024.
Required: No
- Id
-
The unique ID of this canary.
Type: String
Pattern:
^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$
Required: No
- Name
-
The name of the canary.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 255.
Pattern:
^[0-9a-z_\-]+$
Required: No
- ProvisionedResourceCleanup
-
Specifies whether to also delete the Lambda functions and layers used by this canary when the canary is deleted. If it is
AUTOMATIC
, the Lambda functions and layers will be deleted when the canary is deleted.If the value of this parameter is
OFF
, then the value of theDeleteLambda
parameter of the DeleteCanary operation determines whether the Lambda functions and layers will be deleted.Type: String
Valid Values:
AUTOMATIC | OFF
Required: No
- RunConfig
-
A structure that contains information about a canary run.
Type: CanaryRunConfigOutput object
Required: No
- RuntimeVersion
-
Specifies the runtime version to use for the canary. For more information about runtime versions, see Canary Runtime Versions.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 1024.
Required: No
- Schedule
-
A structure that contains information about how often the canary is to run, and when these runs are to stop.
Type: CanaryScheduleOutput object
Required: No
- Status
-
A structure that contains information about the canary's status.
Type: CanaryStatus object
Required: No
- SuccessRetentionPeriodInDays
-
The number of days to retain data about successful runs of this canary.
This setting affects the range of information returned by GetCanaryRuns, as well as the range of information displayed in the Synthetics console.
Type: Integer
Valid Range: Minimum value of 1. Maximum value of 1024.
Required: No
- Tags
-
The list of key-value pairs that are associated with the canary.
Type: String to string map
Map Entries: Maximum number of 50 items.
Key Length Constraints: Minimum length of 1. Maximum length of 128.
Key Pattern:
^(?!aws:)[a-zA-Z+-=._:/]+$
Value Length Constraints: Maximum length of 256.
Required: No
- Timeline
-
A structure that contains information about when the canary was created, modified, and most recently run.
Type: CanaryTimeline object
Required: No
- VisualReference
-
If this canary performs visual monitoring by comparing screenshots, this structure contains the ID of the canary run to use as the baseline for screenshots, and the coordinates of any parts of the screen to ignore during the visual monitoring comparison.
Type: VisualReferenceOutput object
Required: No
- VisualReferences
-
A list of visual reference configurations for the canary, one for each browser type that the canary is configured to run on. Visual references are used for visual monitoring comparisons.
syn-nodejs-puppeteer-11.0
and above, andsyn-nodejs-playwright-3.0
and above, only supportsvisualReferences
.visualReference
field is not supported.Versions older than
syn-nodejs-puppeteer-11.0
supports bothvisualReference
andvisualReferences
for backward compatibility. It is recommended to usevisualReferences
for consistency and future compatibility.Type: Array of VisualReferenceOutput objects
Array Members: Minimum number of 1 item. Maximum number of 2 items.
Required: No
- VpcConfig
-
If this canary is to test an endpoint in a VPC, this structure contains information about the subnets and security groups of the VPC endpoint. For more information, see Running a Canary in a VPC.
Type: VpcConfigOutput object
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: