aws-cdk-lib.aws_appsync.Assign

class Assign

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

Utility class representing the assigment of a value to an attribute.

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 assign = new appsync.Assign('attr', 'arg');

Initializer

new Assign(attr: string, arg: string)

Parameters

  • attr string
  • arg string

Methods

NameDescription
putInMap(map)Renders the assignment as a map element.
renderAsAssignment()Renders the assignment as a VTL string.

putInMap(map)

public putInMap(map: string): string

Parameters

  • map string

Returns

  • string

Renders the assignment as a map element.


renderAsAssignment()

public renderAsAssignment(): string

Returns

  • string

Renders the assignment as a VTL string.