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(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
DynamoUpdateItem(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
DynamoUpdateItem(Construct, String, IDynamoUpdateItemProps) |
Properties
TaskMetrics | |
TaskPolicies |
Constructors
DynamoUpdateItem(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected DynamoUpdateItem(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
DynamoUpdateItem(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected DynamoUpdateItem(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
DynamoUpdateItem(Construct, String, IDynamoUpdateItemProps)
public DynamoUpdateItem(Construct scope, string id, IDynamoUpdateItemProps props)
Parameters
- scope Constructs.Construct
- id System.String
Descriptive identifier for this chainable.
- props IDynamoUpdateItemProps
Properties
TaskMetrics
protected override ITaskMetricsConfig TaskMetrics { get; }
Property Value
Overrides
TaskPolicies
protected override PolicyStatement[] TaskPolicies { get; }
Property Value