class InlineCode
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Synthetics.InlineCode |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awssynthetics#InlineCode |
![]() | software.amazon.awscdk.services.synthetics.InlineCode |
![]() | aws_cdk.aws_synthetics.InlineCode |
![]() | 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
Runtime
Family - _runtimeName
string
Returns
Called when the canary is initialized to allow this object to bind to the stack, add resources and have fun.