class Assign
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AppSync.Assign |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsappsync#Assign |
![]() | software.amazon.awscdk.services.appsync.Assign |
![]() | aws_cdk.aws_appsync.Assign |
![]() | 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
Name | Description |
---|---|
put | Renders the assignment as a map element. |
render | 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.