@aws-cdk_aws-synthetics-alpha.InlineCode
class InlineCode
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Synthetics.Alpha.InlineCode |
![]() | github.com/aws/aws-cdk-go/awscdksyntheticsalpha/v2#InlineCode |
![]() | software.amazon.awscdk.services.synthetics.alpha.InlineCode |
![]() | aws_cdk.aws_synthetics_alpha.InlineCode |
![]() | @aws-cdk/aws-synthetics-alpha » 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 * as synthetics_alpha from '@aws-cdk/aws-synthetics-alpha';
const inlineCode = new synthetics_alpha.InlineCode('code');
Initializer
new InlineCode(code: string)
Parameters
- code
string
Methods
Name | Description |
---|---|
bind(_scope, handler, _family) | Called when the canary is initialized to allow this object to bind to the stack, add resources and have fun. |
bind(_scope, handler, _family)
public bind(_scope: Construct, handler: string, _family: RuntimeFamily): CodeConfig
Parameters
- _scope
Construct
- handler
string
- _family
Runtime
Family
Returns
Called when the canary is initialized to allow this object to bind to the stack, add resources and have fun.