AWS::Synthetics::CanaryResource Type definition for AWS::Synthetics::Canary
20 configurable properties. 6 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
ArtifactS3Location | string | Required |
Code | Code | Required |
ExecutionRoleArn | string | Required |
Name | string | RequiredCreate-only |
RuntimeVersion | string | Required |
Schedule | Schedule | Required |
ArtifactConfig | ArtifactConfig | |
BrowserConfigs | Array<BrowserConfig> | |
DeleteLambdaResourcesOnCanaryDeletion | boolean | Write-onlyDeprecated |
DryRunAndUpdate | boolean | Write-only |
FailureRetentionPeriod | integer | |
ProvisionedResourceCleanup | string | |
ResourcesToReplicateTags | Array<string> | Write-only |
RunConfig | RunConfig | |
StartCanaryAfterCreation | boolean | Write-only |
SuccessRetentionPeriod | integer | |
Tags | Array<Tag> | |
VisualReference | VisualReference | Write-onlyDeprecated |
VisualReferences | Array<VisualReference> | Write-only |
VPCConfig | VPCConfig |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
Id | string | Id of the canary |
State | string | State of the canary |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::Synthetics::Canary
Resources:
MyResource:
Type: AWS::Synthetics::Canary
Properties:
Name: "my-name"
Code: "value"
ArtifactS3Location: "value"
ExecutionRoleArn: "arn:aws:service:region:account:resource"
Schedule: "value"
RuntimeVersion: "value"
Tags:
- Key: Environment
Value: ProductionPermissions CloudFormation needs in your IAM role to manage this resource.
synthetics:CreateCanarysynthetics:StartCanarysynthetics:GetCanarysynthetics:TagResources3:CreateBuckets3:GetObjects3:GetObjectVersions3:PutBucketEncryptionsynthetics:UpdateCanarysynthetics:StartCanarysynthetics:StartCanaryDryRunsynthetics:StopCanarysynthetics:GetCanarysynthetics:GetCanaryRunssynthetics:TagResourcesynthetics:UntagResourcesynthetics:GetCanarysynthetics:DescribeCanariessynthetics:ListTagsForResourceiam:ListRoless3:ListAllMyBucketss3:GetBucketLocationsynthetics:DeleteCanarysynthetics:GetCanarylambda:DeleteFunctionlambda:DeleteLayerVersionsynthetics:DescribeCanariesOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterNameThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
Name