Class DynamoUpdateItem
A StepFunctions task to call DynamoUpdateItem.
Inherited Members
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class DynamoUpdateItem : TaskStateBase, IChainable, INextable
Syntax (vb)
Public Class DynamoUpdateItem Inherits TaskStateBase Implements IChainable, INextable
Remarks
ExampleMetadata: infused
Examples
Table myTable;
new DynamoUpdateItem(this, "UpdateItem", new DynamoUpdateItemProps {
Key = new Dictionary<string, DynamoAttributeValue> {
{ "MessageId", DynamoAttributeValue.FromString("message-007") }
},
Table = myTable,
ExpressionAttributeValues = new Dictionary<string, DynamoAttributeValue> {
{ ":val", DynamoAttributeValue.NumberFromString(JsonPath.StringAt("$.Item.TotalCount.N")) },
{ ":rand", DynamoAttributeValue.FromNumber(20) }
},
UpdateExpression = "SET TotalCount = :val + :rand"
});
Synopsis
Constructors
| DynamoUpdateItem(Construct, string, IDynamoUpdateItemProps) | A StepFunctions task to call DynamoUpdateItem. |
Properties
| TaskMetrics | A StepFunctions task to call DynamoUpdateItem. |
| TaskPolicies | A StepFunctions task to call DynamoUpdateItem. |
Methods
| JsonPath(Construct, string, IDynamoUpdateItemJsonPathProps) | A StepFunctions task using JSONPath to call DynamoUpdateItem. |
| Jsonata(Construct, string, IDynamoUpdateItemJsonataProps) | A StepFunctions task using JSONata to call DynamoUpdateItem. |
Constructors
DynamoUpdateItem(Construct, string, IDynamoUpdateItemProps)
A StepFunctions task to call DynamoUpdateItem.
public DynamoUpdateItem(Construct scope, string id, IDynamoUpdateItemProps props)
Parameters
- scope Construct
- id string
Descriptive identifier for this chainable.
- props IDynamoUpdateItemProps
Remarks
ExampleMetadata: infused
Properties
TaskMetrics
A StepFunctions task to call DynamoUpdateItem.
protected override ITaskMetricsConfig? TaskMetrics { get; }
Property Value
Overrides
Remarks
ExampleMetadata: infused
TaskPolicies
A StepFunctions task to call DynamoUpdateItem.
protected override PolicyStatement[]? TaskPolicies { get; }
Property Value
Overrides
Remarks
ExampleMetadata: infused
Methods
JsonPath(Construct, string, IDynamoUpdateItemJsonPathProps)
A StepFunctions task using JSONPath to call DynamoUpdateItem.
public static DynamoUpdateItem JsonPath(Construct scope, string id, IDynamoUpdateItemJsonPathProps props)
Parameters
- scope Construct
- id string
- props IDynamoUpdateItemJsonPathProps
Returns
Remarks
ExampleMetadata: infused
Jsonata(Construct, string, IDynamoUpdateItemJsonataProps)
A StepFunctions task using JSONata to call DynamoUpdateItem.
public static DynamoUpdateItem Jsonata(Construct scope, string id, IDynamoUpdateItemJsonataProps props)
Parameters
- scope Construct
- id string
- props IDynamoUpdateItemJsonataProps
Returns
Remarks
ExampleMetadata: infused