Skip to content
v2.273.0

AttributeValuesStep Class ​

Utility class to allow assigning 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';

declare const assign: appsync.Assign;
const attributeValuesStep = new appsync.AttributeValuesStep('attr', 'container', [assign]);
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
// 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));
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 });
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 ​

ts
new AttributeValuesStep(attr: string, container: string, assignments: Assign[])
python
AttributeValuesStep(attr: str, container: str, assignments: typing.List[Assign])
java
new AttributeValuesStep(String attr, String container, List<Assign> assignments)
csharp
new AttributeValuesStep(string attr, string container, Assign[] assignments)
go
NewAttributeValuesStep(Attr *string, Container *string, Assignments *[]Assign)

Methods ​

is(val: string): AttributeValuesdef is(self, val: str) -> AttributeValuespublic AttributeValues is(String val)public AttributeValues Is(string val)func Is(Val *string) AttributeValues#
Assign the value to the current attribute.