enum ResourceToReplicateTags
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Synthetics.ResourceToReplicateTags |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awssynthetics#ResourceToReplicateTags |
![]() | software.amazon.awscdk.services.synthetics.ResourceToReplicateTags |
![]() | aws_cdk.aws_synthetics.ResourceToReplicateTags |
![]() | aws-cdk-lib » aws_synthetics » ResourceToReplicateTags |
Resources that tags applied to a canary should be replicated to.
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_7_0,
resourcesToReplicateTags: [synthetics.ResourceToReplicateTags.LAMBDA_FUNCTION],
});
Members
Name | Description |
---|---|
LAMBDA_FUNCTION | Replicate canary tags to the Lambda function. |
LAMBDA_FUNCTION
Replicate canary tags to the Lambda function.
When specified, CloudWatch Synthetics will keep the tags of the canary and the Lambda function synchronized. Any future changes made to the canary's tags will also be applied to the function.