aws-cdk-lib.aws_appsync.InlineCode

class InlineCode

LanguageType name
.NETAmazon.CDK.AWS.AppSync.InlineCode
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsappsync#InlineCode
Javasoftware.amazon.awscdk.services.appsync.InlineCode
Pythonaws_cdk.aws_appsync.InlineCode
TypeScript (source)aws-cdk-lib » aws_appsync » InlineCode

Extends Code

AppSync function 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_appsync as appsync } from 'aws-cdk-lib';
const inlineCode = new appsync.InlineCode('code');

Initializer

new InlineCode(code: string)

Parameters

  • code string

Methods

NameDescription
bind(_scope)Bind source code to an AppSync Function or resolver.

bind(_scope)

public bind(_scope: Construct): CodeConfig

Parameters

  • _scope Construct

Returns

  • CodeConfig

Bind source code to an AppSync Function or resolver.