class InlineCode
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Synthetics.InlineCode |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awssynthetics#InlineCode |
Java | software.amazon.awscdk.services.synthetics.InlineCode |
Python | aws_cdk.aws_synthetics.InlineCode |
TypeScript (source) | aws-cdk-lib » aws_synthetics » InlineCode |
Extends
Code
Canary code from an inline string.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_synthetics as synthetics } from 'aws-cdk-lib';
const inlineCode = new synthetics.InlineCode('code');
Initializer
new InlineCode(code: string)
Parameters
- code
string
Methods
| Name | Description |
|---|---|
| bind(scope, handler, _family, _runtimeName?) | Called when the canary is initialized to allow this object to bind to the stack, add resources and have fun. |
bind(scope, handler, _family, _runtimeName?)
public bind(scope: Construct, handler: string, _family: RuntimeFamily, _runtimeName?: string): CodeConfig
Parameters
- scope
Construct - handler
string - _family
RuntimeFamily - _runtimeName
string
Returns
Called when the canary is initialized to allow this object to bind to the stack, add resources and have fun.

.NET
Go
Java
Python
TypeScript (