class DynamoProjectionExpression
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.StepFunctions.Tasks.DynamoProjectionExpression |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctionstasks#DynamoProjectionExpression |
Java | software.amazon.awscdk.services.stepfunctions.tasks.DynamoProjectionExpression |
Python | aws_cdk.aws_stepfunctions_tasks.DynamoProjectionExpression |
TypeScript (source) | aws-cdk-lib » aws_stepfunctions_tasks » DynamoProjectionExpression |
Class to generate projection expression.
Example
// 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();
Initializer
new DynamoProjectionExpression()
Methods
Name | Description |
---|---|
at | Adds the array literal access for passed index. |
to | converts and return the string expression. |
with | Adds the passed attribute to the chain. |
atIndex(index)
public atIndex(index: number): DynamoProjectionExpression
Parameters
- index
number
— array index.
Returns
Adds the array literal access for passed index.
toString()
public toString(): string
Returns
string
converts and return the string expression.
withAttribute(attr)
public withAttribute(attr: string): DynamoProjectionExpression
Parameters
- attr
string
— Attribute name.
Returns
Adds the passed attribute to the chain.