class Assign
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppSync.Assign |
Java | software.amazon.awscdk.services.appsync.Assign |
Python | aws_cdk.aws_appsync.Assign |
TypeScript (source) | @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. |
InMap(map)
putpublic putInMap(map: string): string
Parameters
- map
string
Returns
string
Renders the assignment as a map element.
AsAssignment()
renderpublic renderAsAssignment(): string
Returns
string
Renders the assignment as a VTL string.