Assign Class
Utility class representing the assigment of a value to an attribute.
Example
ts
// 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');
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appsync as appsync
assign = appsync.Assign("attr", "arg")
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
assign := awscdk.Aws_appsync.NewAssign(jsii.String("attr"), jsii.String("arg"))
Initializer
ts
new Assign(attr: string, arg: string)
python
Assign(attr: str, arg: str)
java
new Assign(String attr, String arg)
csharp
new Assign(string attr, string arg)
go
NewAssign(Attr *string, Arg *string)
Methods
putInMap(map: string): stringdef put_in_map(self, map: str) -> strpublic String putInMap(String map)public string PutInMap(string map)func PutInMap(Map *string) *string#Renders the assignment as a map element.
renderAsAssignment(): stringdef render_as_assignment(self, ) -> strpublic String renderAsAssignment()public string RenderAsAssignment()func RenderAsAssignment() *string#Renders the assignment as a VTL string.