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 |
Use for OnlineStore
serving from a FeatureStore
. Only the latest
records stored in the OnlineStore
can be retrieved. If no Record with
RecordIdentifierValue
is found, then an empty result is returned.
Synopsis
- data GetRecord = GetRecord' {}
- newGetRecord :: Text -> Text -> GetRecord
- getRecord_featureNames :: Lens' GetRecord (Maybe (NonEmpty Text))
- getRecord_featureGroupName :: Lens' GetRecord Text
- getRecord_recordIdentifierValueAsString :: Lens' GetRecord Text
- data GetRecordResponse = GetRecordResponse' {
- record :: Maybe (NonEmpty FeatureValue)
- httpStatus :: Int
- newGetRecordResponse :: Int -> GetRecordResponse
- getRecordResponse_record :: Lens' GetRecordResponse (Maybe (NonEmpty FeatureValue))
- getRecordResponse_httpStatus :: Lens' GetRecordResponse Int
Creating a Request
See: newGetRecord
smart constructor.
GetRecord' | |
|
Instances
Create a value of GetRecord
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:featureNames:GetRecord'
, getRecord_featureNames
- List of names of Features to be retrieved. If not specified, the latest
value for all the Features are returned.
$sel:featureGroupName:GetRecord'
, getRecord_featureGroupName
- The name of the feature group in which you want to put the records.
$sel:recordIdentifierValueAsString:GetRecord'
, getRecord_recordIdentifierValueAsString
- The value that corresponds to RecordIdentifier
type and uniquely
identifies the record in the FeatureGroup
.
Request Lenses
getRecord_featureNames :: Lens' GetRecord (Maybe (NonEmpty Text)) Source #
List of names of Features to be retrieved. If not specified, the latest value for all the Features are returned.
getRecord_featureGroupName :: Lens' GetRecord Text Source #
The name of the feature group in which you want to put the records.
getRecord_recordIdentifierValueAsString :: Lens' GetRecord Text Source #
The value that corresponds to RecordIdentifier
type and uniquely
identifies the record in the FeatureGroup
.
Destructuring the Response
data GetRecordResponse Source #
See: newGetRecordResponse
smart constructor.
GetRecordResponse' | |
|
Instances
Create a value of GetRecordResponse
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:record:GetRecordResponse'
, getRecordResponse_record
- The record you requested. A list of FeatureValues
.
$sel:httpStatus:GetRecordResponse'
, getRecordResponse_httpStatus
- The response's http status code.
Response Lenses
getRecordResponse_record :: Lens' GetRecordResponse (Maybe (NonEmpty FeatureValue)) Source #
The record you requested. A list of FeatureValues
.
getRecordResponse_httpStatus :: Lens' GetRecordResponse Int Source #
The response's http status code.