AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
ConvertFrom-DDBItem-InputObject <Dictionary`2[]>-NumericType <Type>
S
will be converted to String
.BOOL
will be converted to Boolean
.N
will be converted to the type specified by the NumericType
parameter.B
will be converted to MemoryStream
.M
will be converted to Hashtable
.SS
will be converted to HashSet<String>
.NS
will be converted to a HashSet of the type specified by the parameter NumericType
.BS
will be converted to HashSet<MemoryStream>
.L
will be converted to Array
.Required? | False |
Position? | 1 |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Aliases | Item, Items, Attributes, UnprocessedItems |
Double
. There is a risk for loss of precision when converting to Single
or Double
because these types do not support up to 38 digits of precision as DynamoDB numeric values do. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
@{
SongTitle = 'Somewhere Down The Road'
Artist = 'No One You Know'
} | ConvertTo-DDBItem
Get-DDBItem -TableName 'Music' -Key $key | ConvertFrom-DDBItem
Name Value
---- -----
Genre Country
Artist No One You Know
Price 1.94
CriticRating 9
SongTitle Somewhere Down The Road
AlbumTitle Somewhat FamousConvertFrom-DDBItem is used to convert the result of Get-DDBItem from a hashtable of DynamoDB AttributeValues to a hashtable of common types like string and double.
AWS Tools for PowerShell: 2.x.y.z