// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as stepfunctions_tasks from '@aws-cdk/aws-stepfunctions-tasks';
const dynamoProjectionExpression = new stepfunctions_tasks.DynamoProjectionExpression();
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as lambda from '@aws-cdk/aws-lambda';
import * as stepfunctions from '@aws-cdk/aws-stepfunctions';
import * as stepfunctions_tasks from '@aws-cdk/aws-stepfunctions-tasks';
declare const function_: lambda.Function;
declare const taskInput: stepfunctions.TaskInput;
const runLambdaTask = new stepfunctions_tasks.RunLambdaTask(function_, /* all optional props */ {
clientContext: 'clientContext',
integrationPattern: stepfunctions.ServiceIntegrationPattern.FIRE_AND_FORGET,
invocationType: stepfunctions_tasks.InvocationType.REQUEST_RESPONSE,
payload: taskInput,
qualifier: 'qualifier',
});
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as sqs from '@aws-cdk/aws-sqs';
import * as stepfunctions from '@aws-cdk/aws-stepfunctions';
import * as stepfunctions_tasks from '@aws-cdk/aws-stepfunctions-tasks';
import * as cdk from '@aws-cdk/core';
declare const queue: sqs.Queue;
declare const taskInput: stepfunctions.TaskInput;
const sendToQueue = new stepfunctions_tasks.SendToQueue(queue, {
messageBody: taskInput,
// the properties below are optional
delay: cdk.Duration.minutes(30),
integrationPattern: stepfunctions.ServiceIntegrationPattern.FIRE_AND_FORGET,
messageDeduplicationId: 'messageDeduplicationId',
messageGroupId: 'messageGroupId',
});
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as stepfunctions from '@aws-cdk/aws-stepfunctions';
import * as stepfunctions_tasks from '@aws-cdk/aws-stepfunctions-tasks';
import * as cdk from '@aws-cdk/core';
declare const activity: stepfunctions.Activity;
const invokeActivity = new stepfunctions_tasks.InvokeActivity(activity, /* all optional props */ {
heartbeat: cdk.Duration.minutes(30),
});
declare const myTable: dynamodb.Table;
new tasks.DynamoUpdateItem(this, 'UpdateItem', {
key: {
MessageId: tasks.DynamoAttributeValue.fromString('message-007')
},
table: myTable,
expressionAttributeValues: {
':val': tasks.DynamoAttributeValue.numberFromString(sfn.JsonPath.stringAt('$.Item.TotalCount.N')),
':rand': tasks.DynamoAttributeValue.fromNumber(20),
},
updateExpression: 'SET TotalCount = :val + :rand',
});