class Assign
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AppSync.Assign |
![]() | software.amazon.awscdk.services.appsync.Assign |
![]() | aws_cdk.aws_appsync.Assign |
![]() | @aws-cdk/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 * as appsync from '@aws-cdk/aws-appsync';
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.