Class InlineCode
Canary code from an inline string.
Inherited Members
Namespace: Amazon.CDK.AWS.Synthetics
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class InlineCode : Code
Syntax (vb)
Public Class InlineCode Inherits Code
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Synthetics;
var inlineCode = new InlineCode("code");
Synopsis
Constructors
InlineCode(string) | Canary code from an inline string. |
Methods
Bind(Construct, string, RuntimeFamily, string?) | Called when the canary is initialized to allow this object to bind to the stack, add resources and have fun. |
Constructors
InlineCode(string)
Canary code from an inline string.
public InlineCode(string code)
Parameters
- code string
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Synthetics;
var inlineCode = new InlineCode("code");
Methods
Bind(Construct, string, RuntimeFamily, string?)
Called when the canary is initialized to allow this object to bind to the stack, add resources and have fun.
public override ICodeConfig Bind(Construct scope, string handler, RuntimeFamily family, string? runtimeName = null)
Parameters
- scope Construct
- handler string
- family RuntimeFamily
- runtimeName string
Returns
Overrides
Remarks
ExampleMetadata: fixture=_generated