Update-AmazonDynamoDB Cmdlet
Updates Amazon DynamoDB data.
Syntax
Update-AmazonDynamoDB [parameters]
Remarks
The Update-AmazonDynamoDB cmdlet allows you to use a syntax similar to SQL UPDATE statements to update Amazon DynamoDB data.
$conn = Connect-AmazonDynamoDB -AWSAccessKey "AccessKey" -AWSSecretKey "MyAccessSecret" -Domain "amazonaws.com" -AWSRegion "OREGON" Update-AmazonDynamoDB -Connection $conn -Table "Account" -Columns @("Name") -Values @("Jon Doe") -Id "1"The Where parameter can also be used to specify the primary key of the table:
Update-AmazonDynamoDB -Connection $conn -Table "Account" -Columns @("Name") -Values @("Jon Doe") -Where "Id = '1'"The primary key can also be passed to the cmdlet along the pipeline:
Select-AmazonDynamoDB -Connection $conn -Table Account -Where "FirstName = 'Bob'" | Update-AmazonDynamoDB -Columns @("FirstName") -Values @("Bob 2")