# Assign

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

- Source: [`aws-appsync/lib/key.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-appsync/lib/key.ts#L85)
- Type last changed: v2.60.0 · 12 Jan 2023

## 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');
```

## Initializer

```ts
new Assign(attr: string, arg: string)
```

## Methods

- `putInMap(map: string): string` — Renders the assignment as a map element.

- `renderAsAssignment(): string` — Renders the assignment as a VTL string.
