# AttributeValuesStep

Utility class to allow assigning a value to an attribute.

Obtainable from: [Values.attribute](/cdk/api/v2/docs/aws-cdk-lib.aws_appsync.Values.html#attribute)

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

## Example

TypeScript:

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

declare const assign: appsync.Assign;
const attributeValuesStep = new appsync.AttributeValuesStep('attr', 'container', [assign]);
```

Python:

```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

attribute_values_step = appsync.AttributeValuesStep("attr", "container", [assign])
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appsync.*;

Assign assign;

AttributeValuesStep attributeValuesStep = new AttributeValuesStep("attr", "container", List.of(assign));
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppSync;

Assign assign;

var attributeValuesStep = new AttributeValuesStep("attr", "container", new [] { assign });
```

Golang:

```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"

var assign Assign

attributeValuesStep := awscdk.Aws_appsync.NewAttributeValuesStep(jsii.String("attr"), jsii.String("container"), []Assign{
	assign,
})
```

## Initializer

TypeScript:

```ts
new AttributeValuesStep(attr: string, container: string, assignments: Assign[])
```

Python:

```python
AttributeValuesStep(attr: str, container: str, assignments: typing.List[Assign])
```

Java:

```java
new AttributeValuesStep(String attr, String container, List<Assign> assignments)
```

C# / .NET:

```csharp
new AttributeValuesStep(string attr, string container, Assign[] assignments)
```

Golang:

```go
NewAttributeValuesStep(Attr *string, Container *string, Assignments *[]Assign)
```

## Methods

- `is(val: string): AttributeValues` — Assign the value to the current attribute.
