Skip to content
v2.274.0

DynamoProjectionExpression Class ​

Class to generate projection expression.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_stepfunctions_tasks as stepfunctions_tasks } from 'aws-cdk-lib';
const dynamoProjectionExpression = new stepfunctions_tasks.DynamoProjectionExpression();
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_stepfunctions_tasks as stepfunctions_tasks

dynamo_projection_expression = stepfunctions_tasks.DynamoProjectionExpression()
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.stepfunctions.tasks.*;

DynamoProjectionExpression dynamoProjectionExpression = new DynamoProjectionExpression();
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.StepFunctions.Tasks;

var dynamoProjectionExpression = new DynamoProjectionExpression();
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"

dynamoProjectionExpression := awscdk.Aws_stepfunctions_tasks.NewDynamoProjectionExpression()

Initializer ​

ts
new DynamoProjectionExpression()
python
DynamoProjectionExpression()
java
new DynamoProjectionExpression()
csharp
new DynamoProjectionExpression()
go
NewDynamoProjectionExpression()

Methods ​

atIndex(index: number): DynamoProjectionExpression // chainabledef at_index(self, index: int | float) -> DynamoProjectionExpressionpublic DynamoProjectionExpression atIndex(Number index)public DynamoProjectionExpression AtIndex(double index)func AtIndex(Index *float64) DynamoProjectionExpression#
Adds the array literal access for passed index.
1 parameter

Parameters

  • indexindexindexindexIndex — array index.
toString(): stringdef to_string(self, ) -> strpublic String toString()public string ToString()func ToString() *string#
converts and return the string expression.
withAttribute(attr: string): DynamoProjectionExpression // chainabledef with_attribute(self, attr: str) -> DynamoProjectionExpressionpublic DynamoProjectionExpression withAttribute(String attr)public DynamoProjectionExpression WithAttribute(string attr)func WithAttribute(Attr *string) DynamoProjectionExpression#
Adds the passed attribute to the chain.
1 parameter

Parameters

  • attrattrattrattrAttr — Attribute name.