@aws-cdk_aws-synthetics-alpha.InlineCode

class InlineCode 🔹

LanguageType name
.NETAmazon.CDK.AWS.Synthetics.Alpha.InlineCode
Gogithub.com/aws/aws-cdk-go/awscdksyntheticsalpha/v2#InlineCode
Javasoftware.amazon.awscdk.services.synthetics.alpha.InlineCode
Pythonaws_cdk.aws_synthetics_alpha.InlineCode
TypeScript (source)@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

NameDescription
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 RuntimeFamily

Returns

  • CodeConfig

Called when the canary is initialized to allow this object to bind to the stack, add resources and have fun.