Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
Synopsis
- data GetAttributes = GetAttributes' {
- consistentRead :: Maybe Bool
- attributeNames :: Maybe [Text]
- domainName :: Text
- itemName :: Text
- newGetAttributes :: Text -> Text -> GetAttributes
- getAttributes_consistentRead :: Lens' GetAttributes (Maybe Bool)
- getAttributes_attributeNames :: Lens' GetAttributes (Maybe [Text])
- getAttributes_domainName :: Lens' GetAttributes Text
- getAttributes_itemName :: Lens' GetAttributes Text
- data GetAttributesResponse = GetAttributesResponse' {
- attributes :: Maybe [Attribute]
- httpStatus :: Int
- newGetAttributesResponse :: Int -> GetAttributesResponse
- getAttributesResponse_attributes :: Lens' GetAttributesResponse (Maybe [Attribute])
- getAttributesResponse_httpStatus :: Lens' GetAttributesResponse Int
Creating a Request
data GetAttributes Source #
See: newGetAttributes
smart constructor.
GetAttributes' | |
|
Instances
Create a value of GetAttributes
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:consistentRead:GetAttributes'
, getAttributes_consistentRead
- Determines whether or not strong consistency should be enforced when
data is read from SimpleDB. If 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.
$sel:attributeNames:GetAttributes'
, getAttributes_attributeNames
- The names of the attributes.
$sel:domainName:GetAttributes'
, getAttributes_domainName
- The name of the domain in which to perform the operation.
$sel:itemName:GetAttributes'
, getAttributes_itemName
- The name of the item.
Request Lenses
getAttributes_consistentRead :: Lens' GetAttributes (Maybe Bool) Source #
Determines whether or not strong consistency should be enforced when
data is read from SimpleDB. If 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.
getAttributes_attributeNames :: Lens' GetAttributes (Maybe [Text]) Source #
The names of the attributes.
getAttributes_domainName :: Lens' GetAttributes Text Source #
The name of the domain in which to perform the operation.
getAttributes_itemName :: Lens' GetAttributes Text Source #
The name of the item.
Destructuring the Response
data GetAttributesResponse Source #
See: newGetAttributesResponse
smart constructor.
GetAttributesResponse' | |
|
Instances
newGetAttributesResponse Source #
Create a value of GetAttributesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:attributes:GetAttributesResponse'
, getAttributesResponse_attributes
- The list of attributes returned by the operation.
$sel:httpStatus:GetAttributesResponse'
, getAttributesResponse_httpStatus
- The response's http status code.
Response Lenses
getAttributesResponse_attributes :: Lens' GetAttributesResponse (Maybe [Attribute]) Source #
The list of attributes returned by the operation.
getAttributesResponse_httpStatus :: Lens' GetAttributesResponse Int Source #
The response's http status code.