ProvideItems Class
The array that the Map state will iterate over.
| Source | aws-stepfunctions/lib/states/map-base.ts |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_stepfunctions as stepfunctions } from 'aws-cdk-lib';
declare const array: any;
const provideItems = stepfunctions.ProvideItems.jsonArray([array]);
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 as stepfunctions
# array: Any
provide_items = stepfunctions.ProvideItems.json_array([array])
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.*;
Object array;
ProvideItems provideItems = ProvideItems.jsonArray(List.of(array));
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;
var array;
var provideItems = ProvideItems.JsonArray(new [] { array });
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 array interface{}
provideItems := awscdk.Aws_stepfunctions.ProvideItems_JsonArray([]interface{}{
array,
})
Initializer
ts
new ProvideItems()
python
ProvideItems()
java
new ProvideItems()
csharp
new ProvideItems()
go
NewProvideItems()
Properties
The array that the Map state will iterate over.
Methods
jsonArray(array: any[]): ProvideItems // chainable@staticmethod def json_array(array: typing.List[Any]) -> ProvideItemspublic static ProvideItems jsonArray(List<Object> array)public static ProvideItems JsonArray(object[] array)func JsonArray(Array *[]interface{}) ProvideItems static #Use a JSON array as Map state items.
Example value: [1, "{% $two %}", 3]
jsonata(jsonataExpression: string): ProvideItems // chainable@staticmethod def jsonata(jsonata_expression: str) -> ProvideItemspublic static ProvideItems jsonata(String jsonataExpression)public static ProvideItems Jsonata(string jsonataExpression)func Jsonata(JsonataExpression *string) ProvideItems static #Use a JSONata expression as Map state items.
Example value: {% $states.input.items %}