SimpleDB.Client.
get_attributes
(**kwargs)¶Returns all of the attributes associated with the specified item. Optionally, the attributes returned can be limited to one or more attributes by specifying an attribute name parameter.
If the item does not exist on the replica that was accessed for this operation, an empty set is returned. The system does not return an error as it cannot guarantee the item does not exist on other replicas.
See also: AWS API Documentation
Request Syntax
response = client.get_attributes(
DomainName='string',
ItemName='string',
AttributeNames=[
'string',
],
ConsistentRead=True|False
)
The names of the attributes.
true
, any data previously written to SimpleDB will be returned. Otherwise, results will be consistent eventually, and the client may not see data that was written immediately before your read.dict
Response Syntax
{
'Attributes': [
{
'Name': 'string',
'AlternateNameEncoding': 'string',
'Value': 'string',
'AlternateValueEncoding': 'string'
},
]
}
Response Structure
Exceptions
SimpleDB.Client.exceptions.InvalidParameterValue
SimpleDB.Client.exceptions.MissingParameter
SimpleDB.Client.exceptions.NoSuchDomain